/* 1assignment.com — design system
   Emerald + gold on warm cream. Visual language borrowed from the work
   itself: originality reports, dockets, delivery threads. */

:root {
  --paper: #f6f1e7;
  --paper-2: #fbf8f1;
  --surface: #ffffff;
  --ink: #1b1813;
  --ink-soft: #5c5647;
  --ink-faint: #8a8371;
  --rule: #eae0c9;
  --rule-strong: #dccfb0;

  --emerald: #1e4b3d;
  --emerald-mid: #2a6650;
  --emerald-deep: #123026;
  --emerald-tint: #e7f0ea;
  --gold: #c08a28;
  --gold-soft: #e0a53d;
  --gold-tint: #f8edd6;
  --danger: #b3402c;
  --danger-tint: #f6e2dc;

  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --content: 1180px;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 26px;

  --sh-sm: 0 2px 8px rgba(27, 24, 19, .06), 0 8px 24px -12px rgba(27, 24, 19, .14);
  --sh: 0 4px 12px rgba(27, 24, 19, .07), 0 18px 40px -18px rgba(27, 24, 19, .22);
  --sh-lg: 0 8px 20px rgba(27, 24, 19, .08), 0 36px 70px -28px rgba(27, 24, 19, .32);
  --sh-em: 0 10px 22px -10px rgba(30, 75, 61, .55);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
a { color: var(--emerald); text-decoration: none; }
a:hover { color: var(--emerald-mid); }
:focus-visible { outline: 2px solid var(--emerald); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  color: var(--ink);
  text-wrap: balance;
}
p { margin: 0 0 1em; }
.serif { font-family: var(--serif); }
.tabular { font-variant-numeric: tabular-nums; }

.wrap { max-width: var(--content); margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; position: relative; }
section[id], div[id] { scroll-margin-top: 92px; }

/* ---------- Eyebrow + section heads ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--emerald);
  background: var(--emerald-tint);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.section-dark .eyebrow { background: rgba(255,255,255,.1); color: #e9dcc0; }

.section-head { max-width: 62ch; margin-bottom: 46px; }
.section-head h2 { font-size: clamp(27px, 3.4vw, 38px); }
.section-head p { color: var(--ink-soft); font-size: 17px; margin: 0; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-dark { background: var(--emerald-deep); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .section-head p { color: #b9c9c0; }

/* ---------- Announcement bar ---------- */

.announce {
  background: var(--emerald-deep);
  color: #e4dcc8;
  font-size: 13.5px;
  text-align: center;
  padding: 9px 16px;
}
.announce strong { color: var(--gold-soft); font-weight: 600; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 248, 241, .88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--rule);
  box-shadow: 0 6px 24px -18px rgba(27,24,19,.5);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

.wordmark {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0;
}
.wordmark span { color: var(--emerald); }
.wordmark:hover { color: var(--ink); }
.wordmark .mark {
  position: relative;
  margin-right: 9px;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--emerald);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}
/* The tick sits behind the numeral as a watermark, so the mark reads as a 1
   first and stays legible on any background the wordmark lands on. */
.wordmark .mark svg {
  position: absolute; display: block;
  width: 25px; height: 25px;
  top: 50%; left: 50%;
  transform: translate(-50%, -48%);
  opacity: 0.3;
}
.wordmark .mark .one {
  position: relative;
  font-family: var(--serif);
  font-size: 19px; font-weight: 700; line-height: 1;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { color: var(--ink-soft); font-size: 15px; font-weight: 500; white-space: nowrap; }
.main-nav a:hover { color: var(--emerald); }
.main-nav .btn { display: none; } /* drawer-only CTA */

.nav-actions { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lbl-short { display: none; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--rule-strong);
  background: var(--surface);
  border-radius: 10px;
  cursor: pointer;
  position: relative;
}
.nav-toggle i, .nav-toggle i::before, .nav-toggle i::after {
  content: "";
  position: absolute;
  left: 50%; translate: -50% 0;
  width: 17px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle i { top: 50%; margin-top: -1px; }
.nav-toggle i::before { translate: -50% 0; top: -6px; }
.nav-toggle i::after { translate: -50% 0; top: 6px; }
.site-header.nav-open .nav-toggle i { background: transparent; }
.site-header.nav-open .nav-toggle i::before { transform: rotate(45deg); top: 0; }
.site-header.nav-open .nav-toggle i::after { transform: rotate(-45deg); top: 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.2;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; }

.btn-primary { background: var(--emerald); color: #fff; border-color: var(--emerald); box-shadow: var(--sh-em); }
.btn-primary:hover { background: var(--emerald-mid); border-color: var(--emerald-mid); color: #fff; box-shadow: 0 14px 28px -12px rgba(30,75,61,.65); }

.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--rule-strong); }
.btn-secondary:hover { border-color: var(--emerald); color: var(--emerald); }

.btn-gold { background: var(--gold); color: #23190a; border-color: var(--gold); box-shadow: 0 10px 22px -10px rgba(192,138,40,.6); }
.btn-gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: #23190a; }

.btn-ghost-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-ghost-light:hover { background: rgba(255,255,255,.16); color: #fff; }

.btn-danger { color: var(--danger); border-color: var(--danger); background: transparent; }
.btn-danger:hover { background: var(--danger); color: #fff; }

.btn-sm, .btn-small { padding: 9px 16px; font-size: 13.5px; border-radius: 9px; }
.btn-lg { padding: 16px 30px; font-size: 16.5px; }
.btn-full { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Hero ---------- */

.hero { padding: 64px 0 76px; overflow: hidden; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.04;
  margin-bottom: 20px;
}
.hero h1 .swash { position: relative; white-space: nowrap; }
.hero h1 .swash svg {
  position: absolute;
  left: 0; right: 0; bottom: -.14em;
  width: 100%; height: .3em;
  color: var(--gold);
  overflow: visible;
}
.hero .lede { font-size: 18px; color: var(--ink-soft); max-width: 48ch; }
.hero-actions { display: flex; gap: 14px; margin: 30px 0 26px; flex-wrap: wrap; }

.trust-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.avatars { display: flex; }
.avatars span {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12.5px; font-weight: 700;
  color: #fff;
  border: 2px solid var(--paper);
  margin-left: -10px;
}
.avatars span:first-child { margin-left: 0; }
.trust-row .t-text { font-size: 14px; color: var(--ink-soft); }
.trust-row .stars { color: var(--gold); letter-spacing: 1px; font-size: 13px; }

/* Hero artifact cluster */
.hero-art { position: relative; min-height: 420px; display: grid; place-items: center; }
.hero-art .glow {
  position: absolute;
  width: 115%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(42,102,80,.22), rgba(42,102,80,0) 62%);
  pointer-events: none;
}
.hero-art .dots {
  position: absolute;
  inset: -10% -6%;
  background-image: radial-gradient(var(--rule-strong) 1.3px, transparent 1.3px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 42%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 45%, #000 42%, transparent 72%);
  pointer-events: none;
}
.art-stack { position: relative; width: 100%; max-width: 430px; }

.art-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  border: 1px solid rgba(234, 224, 201, .9);
}

/* Originality report artifact */
.report { padding: 22px 22px 18px; position: relative; }
.report-top {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 12px; margin-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.report-top .who { display: flex; align-items: center; gap: 10px; }
.report-top .tn {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--emerald-deep); color: #fff;
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 14px;
}
.report-top .title { font-family: var(--serif); font-weight: 700; font-size: 15px; line-height: 1.2; }
.report-top .sub { font-size: 11.5px; color: var(--ink-faint); }
.report-top .id { font-size: 11px; color: var(--ink-faint); }

.gauges { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.gauge {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 12px 14px;
  display: flex; align-items: center; gap: 12px;
}
.ring-wrap { position: relative; width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center; }
.ring { position: absolute; inset: 0; width: 42px; height: 42px; }
.ring circle { fill: none; stroke-width: 4.5; }
.ring .track { stroke: var(--rule); }
.ring .val { stroke: var(--emerald); stroke-linecap: round; }
.ring-tick { width: 17px; height: 17px; color: var(--emerald); position: relative; }
.gauge .n { font-family: var(--serif); font-size: 21px; font-weight: 700; line-height: 1; color: var(--emerald); }
.gauge .l { font-size: 11px; color: var(--ink-faint); margin-top: 3px; }

.report-lines { display: grid; gap: 7px; margin-bottom: 14px; }
.report-lines i { display: block; height: 7px; border-radius: 4px; background: var(--rule); }
.report-lines i.short { width: 62%; }
.report-lines i.mid { width: 84%; }

.report-foot {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px dashed var(--rule-strong);
  padding-top: 12px;
  font-size: 11.5px; color: var(--ink-faint);
}
.chip-ok {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--emerald-tint); color: var(--emerald);
  font-weight: 600; font-size: 11.5px;
  padding: 4px 10px; border-radius: 999px;
}
.chip-ok svg { width: 12px; height: 12px; }

/* Floating satellites */
.art-chat {
  position: absolute;
  left: -46px; bottom: -34px;
  width: 258px;
  padding: 13px 15px;
  display: flex; gap: 10px;
  z-index: 3;
}
.art-chat .av {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--emerald); color: #fff;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.art-chat p { margin: 0; font-size: 12.8px; line-height: 1.45; color: var(--ink-soft); }
.art-chat .nm { font-size: 11px; color: var(--ink-faint); margin-bottom: 2px; }

.art-badge {
  position: absolute;
  right: -30px; top: -26px;
  padding: 11px 15px;
  display: flex; align-items: center; gap: 10px;
  z-index: 3;
}
.art-badge .tick {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--gold); display: grid; place-items: center; flex-shrink: 0;
}
.art-badge .tick svg { width: 14px; height: 14px; color: #fff; }
.art-badge .t1 { font-size: 13px; font-weight: 700; line-height: 1.1; }
.art-badge .t2 { font-size: 11px; color: var(--ink-faint); }

@media (prefers-reduced-motion: no-preference) {
  .art-stack { animation: rise .7s cubic-bezier(.2,.7,.3,1) both; }
  .art-chat { animation: rise .7s cubic-bezier(.2,.7,.3,1) .18s both, bob 6s ease-in-out 1.2s infinite; }
  .art-badge { animation: rise .7s cubic-bezier(.2,.7,.3,1) .32s both, bob 7s ease-in-out 1.6s infinite reverse; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }

/* ---------- Marquee ---------- */

.marquee {
  border-block: 1px solid var(--rule);
  background: var(--paper-2);
  padding: 15px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; gap: 0; }
.marquee-track ul {
  display: flex; align-items: center; gap: 38px;
  list-style: none; margin: 0; padding: 0 19px;
  font-size: 14.5px; font-weight: 500; color: var(--ink-soft);
  white-space: nowrap;
}
.marquee-track li { display: flex; align-items: center; gap: 38px; }
.marquee-track li::after {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold);
  opacity: .7;
}
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: slide 38s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
}
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */

.stats { background: var(--emerald-deep); padding: 54px 0; }
.stats .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 26px; }
.stat { display: flex; gap: 16px; align-items: flex-start; }
.stat .si {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  display: grid; place-items: center; flex-shrink: 0;
  color: var(--gold-soft);
}
.stat .si svg { width: 21px; height: 21px; }
.stat .num { font-family: var(--serif); font-size: 34px; font-weight: 700; color: #fff; line-height: 1; }
.stat .label { font-size: 14px; color: #b9c9c0; margin-top: 6px; }

/* ---------- Comparison ---------- */

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.cmp {
  border-radius: var(--r-xl);
  padding: 30px 28px;
  position: relative;
}
.cmp h3 { font-size: 20px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.cmp ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cmp li { display: flex; gap: 12px; font-size: 15px; line-height: 1.5; }
.cmp li .ic { width: 21px; height: 21px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; margin-top: 1px; }
.cmp li .ic svg { width: 12px; height: 12px; }

.cmp-them { background: var(--surface); border: 1px solid var(--rule); color: var(--ink-soft); }
.cmp-them h3 { color: var(--ink-soft); }
.cmp-them .ic { background: #f0e6e2; color: var(--danger); }

.cmp-us {
  background: var(--emerald);
  color: #dfeae4;
  box-shadow: var(--sh-lg);
}
.cmp-us h3 { color: #fff; }
.cmp-us .ic { background: rgba(255,255,255,.16); color: var(--gold-soft); }
.cmp-us .tag {
  position: absolute; top: -13px; right: 24px;
  background: var(--gold); color: #23190a;
  font-size: 12px; font-weight: 700;
  padding: 5px 13px; border-radius: 999px;
}

/* ---------- Flow (how it works) ---------- */

.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fstep { position: relative; padding-top: 8px; }
/* Dashed run from the right edge of this icon to just before the next one.
   Icon is 60px wide and starts 8px down, so the line centres at 37px. */
.fstep::after {
  content: "";
  position: absolute;
  top: 37px;
  left: 72px;
  right: -8px;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.32) 0 6px, transparent 6px 14px);
}
.fstep:last-child::after { display: none; }
.fnum {
  width: 60px; height: 60px; border-radius: 17px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.18);
  display: grid; place-items: center;
  color: var(--gold-soft);
  margin-bottom: 18px;
  position: relative;
}
.fnum svg { width: 25px; height: 25px; }
.fnum b {
  position: absolute; top: -8px; right: -8px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--gold); color: #23190a;
  font-family: var(--serif); font-size: 13px; font-weight: 700;
  display: grid; place-items: center;
  border: 3px solid var(--emerald-deep);
  box-sizing: content-box;
}
.fstep h3 { font-size: 18px; margin-bottom: 8px; }
.fstep p { font-size: 14.5px; color: #b9c9c0; margin: 0; }

/* ---------- Subjects grid ---------- */

.subjects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.subj {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 22px 20px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.subj:hover { transform: translateY(-4px); box-shadow: var(--sh); border-color: var(--rule-strong); }
.subj .si {
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--emerald-tint); color: var(--emerald);
  display: grid; place-items: center; margin-bottom: 14px;
}
.subj .si svg { width: 20px; height: 20px; }
.subj h3 { font-size: 16px; margin-bottom: 5px; }
.subj p { font-size: 13.5px; color: var(--ink-faint); margin: 0; }

/* ---------- Device mockup (dashboard preview) ---------- */

/* ---------- After delivery panel ---------- */

.aftercare {
  background: var(--emerald-tint);
  border: 1px solid #d3e2d9;
  border-radius: var(--r-xl);
  padding: 42px 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}
.ac .ai {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--emerald); color: var(--gold-soft);
  display: grid; place-items: center; margin-bottom: 16px;
}
.ac .ai svg { width: 23px; height: 23px; }
.ac h3 { font-size: 18.5px; margin-bottom: 8px; }
.ac p { font-size: 15px; color: var(--ink-soft); margin: 0; }

#dashboard-preview { background: var(--paper-2); border-block: 1px solid var(--rule); }
.preview-split { display: grid; grid-template-columns: .82fr 1.18fr; gap: 54px; align-items: center; }
.bullets { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; }
.bullets li { display: flex; gap: 12px; font-size: 15.5px; color: var(--ink-soft); }
.bullets .ic {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--emerald-tint); color: var(--emerald);
  display: grid; place-items: center; flex-shrink: 0; margin-top: 1px;
}
.bullets .ic svg { width: 12px; height: 12px; }

.device {
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh-lg);
  border: 1px solid var(--rule);
  overflow: hidden;
}
.device-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
}
.device-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rule-strong); }
.device-bar .url {
  margin-left: 8px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-size: 11.5px;
  color: var(--ink-faint);
  padding: 3px 12px;
  flex: 1;
  text-align: center;
}
.device-body { padding: 18px; display: grid; gap: 14px; }

.mini-rows { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
.mini-row {
  display: grid; grid-template-columns: 58px 1fr auto;
  gap: 12px; align-items: center;
  background: var(--surface);
  padding: 11px 13px;
  font-size: 13px;
}
.mini-row.head { background: var(--emerald-tint); font-size: 11.5px; color: var(--emerald); font-weight: 600; }
.mini-row .dk { font-family: var(--serif); font-weight: 700; }
.mini-row .ttl { color: var(--ink); }
.pill {
  font-size: 11.5px; font-weight: 600;
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.pill.done { background: var(--emerald); color: #fff; }
.pill.prog { background: var(--gold-tint); color: #7a5714; }
.pill.new { background: var(--rule); color: var(--ink-soft); }

.mini-chat { border: 1px solid var(--rule); border-radius: var(--r); padding: 14px; display: grid; gap: 10px; background: var(--paper-2); }
.mini-msg { display: flex; gap: 9px; align-items: flex-end; }
.mini-msg .b {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: 13px; padding: 8px 12px; font-size: 12.8px; color: var(--ink-soft);
  max-width: 82%;
}
.mini-msg.me { justify-content: flex-end; }
.mini-msg.me .b { background: var(--emerald); color: #fff; border-color: var(--emerald); }
.mini-file {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: 10px; padding: 10px 12px; font-size: 12.8px;
}
.mini-file .fi { width: 26px; height: 26px; border-radius: 7px; background: var(--gold-tint); color: #7a5714; display: grid; place-items: center; flex-shrink: 0; }
.mini-file .fi svg { width: 14px; height: 14px; }
.mini-file .sz { margin-left: auto; color: var(--ink-faint); font-size: 11.5px; }

/* ---------- Testimonials ---------- */

.notes {
  display: flex; gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 18px;
  margin: 0 -4px;
  scrollbar-width: thin;
  scrollbar-color: var(--rule-strong) transparent;
}
.notes::-webkit-scrollbar { height: 6px; }
.notes::-webkit-scrollbar-thumb { background: var(--rule-strong); border-radius: 3px; }
.note {
  flex: 0 0 300px;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 22px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.note:hover { transform: translateY(-3px); box-shadow: var(--sh); }
.note .stars { color: var(--gold); font-size: 13.5px; letter-spacing: 2px; }
.note .quote { font-family: var(--serif); font-size: 16.5px; line-height: 1.45; color: var(--ink); margin: 0; flex: 1; }
.note .by { display: flex; align-items: center; gap: 11px; }
.note .by .av {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.note .by .nm { font-size: 13.5px; font-weight: 600; }
.note .by .cx { font-size: 12px; color: var(--ink-faint); }

/* ---------- Pricing ---------- */

.price-split { display: grid; grid-template-columns: 1fr .86fr; gap: 48px; align-items: center; }
.factors { display: grid; gap: 14px; }
.factor {
  display: flex; gap: 16px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 18px 20px;
}
.factor .fi {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--gold-tint); color: #7a5714;
  display: grid; place-items: center; flex-shrink: 0;
}
.factor .fi svg { width: 19px; height: 19px; }
.factor h3 { font-size: 16px; margin-bottom: 4px; }
.factor p { font-size: 14px; color: var(--ink-soft); margin: 0; }

.receipt {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  border: 1px solid var(--rule);
  padding: 26px;
  position: relative;
}
.receipt::before, .receipt::after {
  content: "";
  position: absolute; left: 0; right: 0; height: 10px;
}
.receipt-head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 12px; margin-bottom: 6px;
  font-family: var(--serif); font-weight: 700; font-size: 16px;
}
.receipt-head .id { font-family: var(--sans); font-weight: 500; font-size: 11.5px; color: var(--ink-faint); }
.receipt-row {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--rule-strong);
  font-size: 14.5px;
}
.receipt-row .k { color: var(--ink-faint); }
.receipt-row .v { font-weight: 600; text-align: right; }
.receipt-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 16px; padding-top: 16px;
  border-top: 2px solid var(--emerald);
  font-family: var(--serif); font-weight: 700; font-size: 24px;
  color: var(--emerald);
}
.receipt-total .label { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--ink-faint); }
.receipt-foot { margin: 14px 0 0; font-size: 12px; color: var(--ink-faint); }

/* ---------- FAQ ---------- */

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.faq details[open] { border-color: var(--rule-strong); box-shadow: var(--sh-sm); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 19px 22px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 17.5px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 11px; height: 11px;
  border-right: 2px solid var(--emerald);
  border-bottom: 2px solid var(--emerald);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform .2s ease;
  margin-top: -4px;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.faq .ans { padding: 0 22px 20px; color: var(--ink-soft); font-size: 15.5px; margin: 0; max-width: 72ch; }

/* ---------- CTA ---------- */

.cta {
  background: var(--emerald-deep);
  color: #fff;
  border-radius: var(--r-xl);
  padding: 56px 48px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 36px; flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.07) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  pointer-events: none;
}
.cta > * { position: relative; }
.cta h2 { color: #fff; font-size: clamp(25px, 3vw, 33px); margin: 0 0 8px; max-width: 20ch; }
.cta p { color: #b9c9c0; margin: 0; font-size: 15.5px; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--rule); padding: 54px 0 40px; background: var(--paper-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 { font-family: var(--sans); font-size: 12.5px; color: var(--ink-faint); font-weight: 700; letter-spacing: .04em; margin-bottom: 14px; }
.site-footer nav a { display: block; color: var(--ink-soft); font-size: 14.5px; margin-bottom: 10px; }
.site-footer nav a:hover { color: var(--emerald); }
.site-footer .blurb { color: var(--ink-soft); font-size: 14.5px; max-width: 34ch; margin: 14px 0 0; }
.footer-base {
  border-top: 1px solid var(--rule);
  margin-top: 38px; padding-top: 22px;
  font-size: 12.5px; color: var(--ink-faint);
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}

/* ---------- WhatsApp float ---------- */

.wa-float {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 70;
  display: inline-flex; align-items: center; gap: 10px;
  background: #1fa855; color: #fff;
  font-size: 14.5px; font-weight: 600;
  padding: 13px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 26px -8px rgba(31,168,85,.6);
  transition: transform .16s ease, box-shadow .16s ease;
}
.wa-float:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 32px -10px rgba(31,168,85,.7); }
.wa-float svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Reveal on scroll ---------- */

/* Only hide when JS is running, so the page is complete without it */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Forms ---------- */

.form-page { max-width: 460px; margin: 56px auto 90px; padding: 0 24px; }
.form-page .card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-xl);
  box-shadow: var(--sh);
  padding: 36px 32px;
}
.form-page h1 { font-size: 27px; margin-bottom: 8px; }
.form-page .sub { color: var(--ink-soft); font-size: 15px; margin-bottom: 26px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field .hint { font-size: 12.5px; color: var(--ink-faint); margin: 6px 0 0; }
.field label .lbl-opt { font-weight: 400; color: var(--ink-faint); }

input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="date"], input[type="tel"],
input[type="file"], select, textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input[type="file"] { padding: 10px 12px; font-size: 14px; }
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px var(--emerald-tint);
}

.form-error, .form-success {
  padding: 12px 14px; font-size: 14px; margin-bottom: 18px;
  border-radius: 10px; display: none;
}
.form-error { background: var(--danger-tint); border: 1px solid var(--danger); color: var(--danger); }
.form-success { background: var(--emerald-tint); border: 1px solid var(--emerald); color: var(--emerald); }
.form-error.show, .form-success.show { display: block; }
.form-foot { margin-top: 20px; font-size: 14.5px; color: var(--ink-soft); text-align: center; }

/* Guest submission (submit.html): wider than the auth cards because it pairs
   fields two-up, plus the confirmation panel that replaces the form. */
.form-page-wide { max-width: 640px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field-rule { border: 0; border-top: 1px solid var(--rule); margin: 4px 0 22px; }

.guest-done { display: none; text-align: center; padding: 6px 0 2px; }
.guest-done.show { display: block; }
.gd-check {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--emerald); color: #fff;
  display: grid; place-items: center; margin: 0 auto 16px;
}
.gd-check svg { width: 26px; height: 26px; }
.guest-done h2 { font-size: 24px; margin-bottom: 10px; }
.guest-done p { color: var(--ink-soft); font-size: 15px; margin-bottom: 12px; }
.gd-docket { font-family: var(--serif); font-size: 20px; color: var(--ink); }
.gd-next { font-size: 14px; }
.gd-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

/* WhatsApp call-to-action on the contact page. */
.wa-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; margin-bottom: 10px;
  border: 1px solid var(--rule-strong); border-radius: 12px;
  background: var(--paper-2); color: var(--ink);
  transition: border-color .15s ease, background .15s ease;
}
.wa-card:hover { border-color: #25D366; background: var(--surface); }
.wa-ic {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: #25D366; color: #fff; display: grid; place-items: center;
}
.wa-ic svg { width: 22px; height: 22px; }
.wa-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wa-body strong { font-size: 14.5px; }
.wa-num { font-size: 15px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.wa-go { margin-left: auto; color: var(--ink-faint); font-size: 18px; }
.wa-note { font-size: 12.5px; color: var(--ink-faint); margin: 0 0 24px; }

/* Highlighted alternative route sitting above a form: the gold tint separates
   it from the emerald the primary action uses, so it reads as a branch rather
   than a second submit button. */
.alt-route {
  display: flex; align-items: center; gap: 13px;
  padding: 14px 16px; margin: 4px 0 0;
  border: 1px solid var(--gold); border-radius: 12px;
  background: var(--gold-tint); color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.alt-route:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(192, 138, 40, .18); color: var(--ink); }
.ar-ic {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: var(--gold); color: #fff; display: grid; place-items: center;
}
.ar-ic svg { width: 20px; height: 20px; }
.ar-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ar-body strong { font-size: 14.5px; }
.ar-body span { font-size: 13px; color: var(--ink-soft); line-height: 1.45; }
.ar-go { margin-left: auto; color: #7a5714; font-size: 18px; flex-shrink: 0; }

/* Rule with a label, dividing the two routes. */
.alt-or { display: flex; align-items: center; gap: 12px; margin: 20px 0 22px; }
.alt-or::before, .alt-or::after { content: ''; flex: 1; height: 1px; background: var(--rule); }
.alt-or span { font-size: 12.5px; color: var(--ink-faint); text-transform: lowercase; }

/* Secondary route under the hero buttons. */
.hero-alt { margin: 16px 0 0; font-size: 14.5px; }
.hero-alt a { color: var(--ink-soft); border-bottom: 1px solid var(--rule-strong); padding-bottom: 1px; }
.hero-alt a:hover { color: var(--emerald); border-color: var(--emerald); }

/* ---------- App shell (dashboard / admin) ---------- */

.app-header { background: var(--surface); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 50; }
.app-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 68px; padding-block: 12px; flex-wrap: wrap; }
.app-header .who { font-size: 14px; color: var(--ink-soft); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.app-header .who strong { color: var(--ink); }

.app-body { max-width: var(--content); margin: 0 auto; padding: 36px 24px 80px; }
.app-top { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 26px; gap: 18px; flex-wrap: wrap; }
.app-top h1 { font-size: 27px; margin-bottom: 4px; }
.app-top .sub { color: var(--ink-soft); font-size: 14.5px; margin: 0; }

.filters { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.filters a {
  font-size: 13.5px; padding: 8px 15px;
  border: 1px solid var(--rule-strong); border-radius: 999px;
  color: var(--ink-soft); background: var(--surface);
}
.filters a.active { background: var(--emerald); color: #fff; border-color: var(--emerald); }
.filters a:hover:not(.active) { border-color: var(--emerald); color: var(--emerald); }

table.docket {
  width: 100%;
  border-collapse: separate; border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  overflow: hidden;
}
table.docket th {
  text-align: left; font-size: 12.5px; color: var(--emerald); font-weight: 600;
  padding: 13px 16px; border-bottom: 1px solid var(--rule); background: var(--emerald-tint);
}
table.docket td { padding: 15px 16px; border-bottom: 1px solid var(--rule); font-size: 14.5px; vertical-align: middle; }
table.docket tr:last-child td { border-bottom: none; }
table.docket tr.row-link { cursor: pointer; }
table.docket tr.row-link:hover { background: var(--paper-2); }
table.docket td.num { font-family: var(--serif); font-weight: 700; }

.stamp { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.stamp-new { color: var(--ink-soft); background: var(--rule); }
.stamp-in_progress { color: #7a5714; background: var(--gold-tint); }
.stamp-delivered { color: var(--emerald); background: var(--emerald-tint); }
.stamp-done { color: #fff; background: var(--emerald); }
.stamp-cancelled { color: var(--ink-faint); background: var(--rule); text-decoration: line-through; }

.empty-state {
  background: var(--surface); border: 1px dashed var(--rule-strong);
  border-radius: var(--r-lg); padding: 48px 24px; text-align: center; color: var(--ink-soft);
}
.empty-state p { margin-bottom: 18px; }

.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 26px; flex-wrap: wrap; }
.back-link { font-size: 14px; color: var(--ink-soft); display: inline-block; margin-bottom: 12px; }
.back-link:hover { color: var(--emerald); }
.order-head h1 { font-size: 25px; margin-bottom: 6px; }
.order-meta { font-size: 14px; color: var(--ink-faint); margin: 0 0 4px; }
.order-meta a { font-weight: 600; }

.order-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 26px; align-items: start; }

.panel {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--r-lg); box-shadow: var(--sh-sm);
  padding: 24px; margin-bottom: 22px;
}
.panel h2 { font-size: 16.5px; margin-bottom: 16px; }

.admin-controls { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.admin-controls select, .admin-controls input { width: auto; }

dl.brief { margin: 0; }
dl.brief div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 14.5px; }
dl.brief div:last-child { border-bottom: none; }
dl.brief dt { color: var(--ink-faint); }
dl.brief dd { margin: 0; font-weight: 600; text-align: right; }
.instructions { margin-top: 16px; font-size: 14.5px; color: var(--ink-soft); white-space: pre-wrap; }

.file-list { list-style: none; margin: 0 0 16px; padding: 0; }
.file-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 14.5px;
}
.file-list li:last-child { border-bottom: none; }
.file-list .fname { display: flex; align-items: center; gap: 10px; min-width: 0; }
.file-list .fname .clip { flex-shrink: 0; color: var(--ink-faint); }
.file-list .fname a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list .fmeta { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--ink-faint); white-space: nowrap; }
.file-kind { font-size: 11.5px; font-weight: 600; color: var(--ink-soft); background: var(--rule); padding: 3px 10px; border-radius: 999px; }
.file-kind.deliverable { color: var(--emerald); background: var(--emerald-tint); }
.file-kind.turnitin_report { color: #7a5714; background: var(--gold-tint); }

.upload-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.upload-row select { width: auto; }

.chat-note {
  margin: -4px 0 16px; padding: 11px 14px;
  font-size: 13.5px; line-height: 1.55; color: var(--ink-soft);
  background: var(--paper-2); border: 1px solid var(--rule); border-radius: 12px;
}
.chat-note a { font-weight: 600; }

.thread { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; max-height: 460px; overflow-y: auto; padding-right: 4px; }
.msg { max-width: 82%; }
.msg.mine { align-self: flex-end; text-align: right; }
.msg .meta { font-size: 12px; color: var(--ink-faint); margin-bottom: 4px; }
.msg .bubble {
  display: inline-block; text-align: left;
  background: var(--paper-2); border: 1px solid var(--rule);
  border-radius: 14px; padding: 10px 14px; font-size: 14.5px; line-height: 1.5;
}
.msg.mine .bubble { background: var(--emerald); border-color: var(--emerald); color: #fff; }
.msg-empty { color: var(--ink-faint); font-size: 14px; text-align: center; padding: 22px 0; }

.composer { display: flex; gap: 10px; align-items: flex-end; }
.composer textarea { min-height: 48px; max-height: 140px; }
.sync-note { margin: 10px 0 0; font-size: 12.5px; color: var(--ink-faint); }

/* Utility */
.text-soft { color: var(--ink-soft); }
.text-faint { color: var(--ink-faint); }
.hidden { display: none !important; }

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 52px; }
  .hero-art { min-height: 0; }
  .art-stack { max-width: 420px; margin: 0 auto; }
  .preview-split, .price-split { grid-template-columns: 1fr; gap: 34px; }
  .subjects { grid-template-columns: repeat(3, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .fstep::after { display: none; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); gap: 30px 24px; }
  .aftercare { grid-template-columns: 1fr 1fr; gap: 28px; padding: 34px 30px; }
}

@media (max-width: 860px) {
  section { padding: 64px 0; }

  .main-nav { display: none; }
  .nav-actions .btn-secondary { display: none; }
  .nav-toggle { display: block; }
  .site-header.nav-open .main-nav {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper-2);
    border-bottom: 1px solid var(--rule);
    box-shadow: var(--sh);
    padding: 8px 24px 20px;
  }
  .site-header.nav-open .main-nav a {
    padding: 15px 0;
    font-size: 17px;
    color: var(--ink);
    border-bottom: 1px solid var(--rule);
  }
  .site-header.nav-open .main-nav .btn { display: flex; margin-top: 16px; border-bottom: none; color: #fff; }

  .compare { grid-template-columns: 1fr; gap: 16px; }
  .cmp-us .tag { right: 18px; }
  .aftercare { grid-template-columns: 1fr; }
  .subjects { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .cta { padding: 40px 28px; border-radius: var(--r-lg); }
  .order-grid { grid-template-columns: 1fr; }
  .app-body { padding: 26px 20px 90px; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  section { padding: 54px 0; }

  .site-header .wrap { gap: 10px; }
  .wordmark { font-size: 18.5px; }
  .wordmark .mark { width: 25px; height: 25px; border-radius: 7px; margin-right: 7px; }
  .wordmark .mark svg { width: 22px; height: 22px; }
  .wordmark .mark .one { font-size: 17px; }
  .lbl-long { display: none; }
  .lbl-short { display: inline; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn-sm, .nav-actions .btn-small { padding: 11px 14px; min-height: 42px; }
  /* helper text beside auth buttons ("Already have an account?") */
  .nav-actions > span { display: none; }
  /* auth/simple headers have no drawer, so their single link must stay */
  .site-header.simple .nav-actions .btn-secondary { display: inline-flex; }

  .hero { padding: 40px 0 56px; }
  .hero .lede { font-size: 16.5px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 100%; }

  .art-stack { max-width: 100%; }
  .art-chat { left: 0; bottom: -26px; width: min(232px, 78%); }
  .art-badge { right: 0; top: -18px; }
  .hero-art .dots { display: none; }
  .gauges { grid-template-columns: 1fr; gap: 10px; }

  .flow { grid-template-columns: 1fr; gap: 26px; }
  .subjects { grid-template-columns: 1fr; }
  .stats .wrap { grid-template-columns: 1fr; gap: 22px; }
  .field-row { grid-template-columns: 1fr; }
  .aftercare { padding: 26px 22px; gap: 24px; }
  .subj { display: flex; gap: 16px; align-items: flex-start; padding: 18px; }
  .subj .si { margin-bottom: 0; }

  .note { flex-basis: 84%; }
  .faq summary { font-size: 16px; padding: 16px 18px; }
  .faq .ans { padding: 0 18px 18px; font-size: 15px; }

  .receipt, .factor { padding: 20px 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  /* Icon-only FAB on phones so it doesn't sit on top of content */
  .wa-float {
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    width: 54px; height: 54px;
    padding: 0;
    justify-content: center;
    font-size: 0;
    gap: 0;
  }
  .wa-float svg { width: 26px; height: 26px; }

  /* Docket table becomes labelled cards */
  table.docket { display: block; box-shadow: none; background: transparent; border: none; }
  table.docket thead { display: none; }
  table.docket tbody { display: block; }
  table.docket tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-sm);
    margin-bottom: 12px;
    padding: 15px 16px;
  }
  table.docket td { display: block; border-bottom: none; padding: 0; }

  /* Docket number and status share the top row */
  table.docket td.num { order: -2; font-size: 13.5px; color: var(--ink-faint); font-family: var(--sans); font-weight: 500; }
  table.docket td.num::before { content: "Docket "; }
  table.docket td.status { order: -1; margin-left: auto; }

  /* Title gets its own full-width line, prominent */
  table.docket td.ttl {
    flex: 1 1 100%;
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 2px;
  }

  /* Everything else is a labelled row */
  table.docket td[data-label] {
    flex: 1 1 100%;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    font-size: 14px;
    padding: 5px 0;
    border-top: 1px solid var(--rule);
  }
  table.docket td[data-label]::before {
    content: attr(data-label);
    color: var(--ink-faint);
    flex-shrink: 0;
  }

  /* Comfortable touch targets everywhere on phones */
  .btn { min-height: 44px; }
  .btn-sm, .btn-small { min-height: 42px; padding: 10px 16px; }
  .back-link { padding: 8px 0; }
  .filters a { min-height: 40px; display: inline-flex; align-items: center; }
  select, input, textarea { min-height: 44px; }

  /* App header: one tidy row */
  .app-header .wrap { min-height: 60px; gap: 10px; }
  .app-header .wordmark { font-size: 18px; }
  .app-header .who { gap: 8px; }
  .app-header .who > span { display: none; }
  .app-header .who .btn { padding: 9px 13px; font-size: 13px; }
  .thread { max-height: 400px; }
  .msg { max-width: 92%; }
}
