/* intake.readydds.com: the practice intake's look (plans/2026-11-20-practice-intake.md, Step 6).
   The same family as the dashboard: its tokens are copied from apps/dashboard/design-system/tokens.css (Kim's palette:
   Navy #1B3358, Warm White #F8FAF9, Dental Blue #2468B4, Fresh Teal #18A6A0 for done, CTA Coral #F26B5E for the one
   action), Instrument Sans for what people read, Geist Mono for the small labels. Phone first: every tap target is
   at least 44px, every input 16px so a phone doesn't zoom. No inline style or script anywhere (the page's CSP). */

:root {
  --ground: #F8FAF9; --surface: #FFFFFF; --surface-2: #F5F6F7;
  --line: #E7E9EB; --line-strong: #D3D8DC;
  --ink: #233746; --ink-2: #425360; --muted: #5F6E79; --faint: #A3ABB1; --head: #1B3358;
  --brand: #2468B4; --brand-soft: #EDF3F9; --brand-line: #CFDEEE; --brand-ink: #1F4E8C; --ring: rgba(36, 104, 180, .24);
  --accent: #F26B5E; --accent-hover: #F47D71; --on-accent: #13233D; --accent-shade: rgba(242, 107, 94, .34); --accent-edge: rgba(255, 255, 255, .28);
  --good: #18A6A0; --good-soft: #EAF7F6; --good-line: #C3E8E6; --good-ink: #0B6662;
  --bad: #D03E33; --bad-soft: #FBF0EF; --bad-line: #F2CFCB; --bad-ink: #962920;
  --band: #1B3358; --band-2: #142847; --band-glow: rgba(36, 104, 180, .42);
  --band-ink: #F8FAF9; --band-muted: rgba(248, 250, 249, .72); --band-dot: rgba(255, 255, 255, .10);
  --shadow-1: 0 1px 2px rgba(27, 51, 88, .06);
  --shadow: 0 1px 2px rgba(27, 51, 88, .04), 0 2px 6px -2px rgba(27, 51, 88, .05), 0 12px 28px -18px rgba(27, 51, 88, .20);
  --font: "Instrument Sans", "Segoe UI", -apple-system, system-ui, Helvetica, Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --r: 14px; --r-sm: 10px; --col: 680px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0B1420; --surface: #111C2A; --surface-2: #15212F;
    --line: #213146; --line-strong: #2D3F57;
    --ink: #E6ECF2; --ink-2: #B7C3CF; --muted: #8D9CAD; --faint: #5B6B7E; --head: #F3F6F9;
    --brand: #6FA4E4; --brand-soft: #132A45; --brand-line: #21426A; --brand-ink: #A9CAF2; --ring: rgba(111, 164, 228, .32);
    --accent-shade: rgba(242, 107, 94, .22);
    --good: #3FC1BA; --good-soft: #0F2E30; --good-line: #1A4C4D; --good-ink: #8EE0DA;
    --bad: #E25A4F; --bad-soft: #33181A; --bad-line: #5A2726; --bad-ink: #F4A59D;
    --band: #08111C; --band-2: #0A1522; --band-glow: rgba(36, 104, 180, .22); --band-dot: rgba(255, 255, 255, .06);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow: 0 1px 2px rgba(0, 0, 0, .30), 0 12px 28px -18px rgba(0, 0, 0, .70);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--band); color: var(--band-ink); }

/* ---- the band: the practice's own name, on navy ---- */
.band {
  position: relative; overflow: hidden; color: var(--band-ink);
  background:
    radial-gradient(120% 90% at 92% -10%, var(--band-glow), transparent 58%),
    linear-gradient(180deg, var(--band), var(--band-2));
}
.band::after {   /* a dot grid that fades out downward */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(var(--band-dot) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.band-in { position: relative; z-index: 1; max-width: var(--col); margin: 0 auto; padding: 22px 20px 40px; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-weight: 650; font-size: 15px; letter-spacing: -.01em; }
.wordmark-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--good);
  box-shadow: 0 0 0 3px rgba(36, 104, 180, .55), 0 0 18px rgba(24, 166, 160, .55);
}
.band-kicker {
  margin: 44px 0 10px; font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--band-muted);
}
.band-title {
  margin: 0; font-size: clamp(32px, 8.4vw, 50px); line-height: 1.02; font-weight: 600; letter-spacing: -.028em;
  text-wrap: balance;
}
.band-sub { margin: 14px 0 0; font-size: 15.5px; color: var(--band-muted); max-width: 44ch; }

/* ---- the page ---- */
.page { max-width: var(--col); margin: 0 auto; padding: 4px 20px 24px; }
.alert {
  display: grid; gap: 2px; margin-top: 28px; padding: 14px 16px; font-size: 14.5px;
  background: var(--bad-soft); border: 1px solid var(--bad-line); border-radius: var(--r-sm); color: var(--bad-ink);
}

/* sections: a number, a title, a hairline (no boxes) */
.sec { margin-top: 52px; animation: rise .7s var(--ease) both; }
.sec:nth-of-type(2) { animation-delay: .05s; } .sec:nth-of-type(3) { animation-delay: .1s; }
.sec:nth-of-type(4) { animation-delay: .15s; } .sec:nth-of-type(5) { animation-delay: .2s; }
.sec-head { display: flex; align-items: baseline; gap: 12px; }
.sec-n { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--brand); }
.sec-head h2 { margin: 0; font-size: 23px; line-height: 1.2; font-weight: 600; letter-spacing: -.018em; color: var(--head); }
.sec-rule { flex: 1; height: 1px; background: var(--line); align-self: center; }
.sec-lead { margin: 8px 0 4px; color: var(--muted); font-size: 15px; max-width: 54ch; }

/* fields */
.field { display: block; margin: 18px 0; }
.field-label, legend { display: block; margin: 0 0 8px; padding: 0; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.opt { margin-left: 6px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.field-hint { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="time"], select {
  width: 100%; min-height: 48px; padding: 11px 14px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-sm); box-shadow: var(--shadow-1);
  transition: border-color .18s, box-shadow .18s; -webkit-appearance: none; appearance: none;
}
select {
  padding-right: 40px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 19px) 21px, calc(100% - 14px) 21px; background-size: 5px 5px; background-repeat: no-repeat;
}
input:hover, select:hover { border-color: var(--brand-line); }
input:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring); }
.has-err input, input[aria-invalid="true"] { border-color: var(--bad); }
.err { margin: 6px 0 0; font-size: 13.5px; color: var(--bad-ink); }

/* choices as pills: one tap each */
fieldset.group { margin: 22px 0; padding: 0; border: 0; min-width: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }
.pill span {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 16px 0 14px;
  font-size: 15px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px;
  cursor: pointer; user-select: none; -webkit-user-select: none;
  transition: border-color .18s, background .18s, color .18s, box-shadow .18s;
}
.pill span::before {
  content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--faint);
  transition: background .18s, border-color .18s, box-shadow .18s;
}
.pill input[type="checkbox"] + span::before { border-radius: 3px; }
.pill span:hover { border-color: var(--brand-line); }
.pill input:checked + span { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-ink); font-weight: 600; }
.pill input:checked + span::before { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-line); }
.pill input:focus-visible + span { box-shadow: 0 0 0 4px var(--ring); }
.group.has-err .pill span { border-color: var(--bad-line); }

/* "That's me" */
.check {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 16px; padding: 0 18px 0 14px;
  font-size: 15px; font-weight: 600; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 999px; cursor: pointer;
}
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); }
.check:has(input:checked) { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-ink); }

.huddle-more { display: grid; grid-template-columns: 132px 1fr; gap: 0 12px; margin-top: 6px; }
.huddle-more .field { margin: 12px 0 0; }

/* what shows only when it's needed (where the browser can tell; otherwise everything shows) */
@supports selector(:has(*)) {
  .has-other .other { display: none; }
  .has-other:has(input[value="Other"]:checked) .other, .has-other.has-err .other { display: block; }
  .huddle .huddle-more { display: none; }
  .huddle:has(input[value="yes"]:checked) .huddle-more { display: grid; }
  .sec:has(input[name="it_is_me"]:checked) .it-fields { display: none; }
}
.other .field { margin: 12px 0 0; }

/* the team */
.private {
  display: inline-flex; align-items: center; gap: 7px; margin: 14px 0 0; padding: 6px 12px 6px 10px;
  font-size: 13px; font-weight: 600; color: var(--good-ink); background: var(--good-soft);
  border: 1px solid var(--good-line); border-radius: 999px;
}
.team { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--line); }
.person { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 18px 0 20px; border-bottom: 1px solid var(--line); }
.person-n { padding-top: 33px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.person-grid { display: grid; grid-template-columns: 1fr; gap: 0 12px; min-width: 0; }
.person-grid .field { margin: 8px 0; }
.group-tight { margin: 10px 0 0 !important; }
.group-tight legend { font-weight: 500; color: var(--muted); font-size: 13.5px; }
@media (min-width: 560px) {
  .person-grid { grid-template-columns: 1fr 1fr; }
  .person-grid > :nth-child(3), .person-grid > :nth-child(4) { grid-column: 1 / -1; }
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 16px; padding: 0 18px 0 14px;
  font: inherit; font-size: 15px; font-weight: 600; color: var(--brand-ink); background: transparent;
  border: 1px dashed var(--line-strong); border-radius: 999px; cursor: pointer; transition: border-color .18s, background .18s;
}
.btn-ghost:hover { border-color: var(--brand); background: var(--brand-soft); }
.btn-ghost:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring); }

/* the one action */
.send { margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--line); }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; padding: 0 30px;
  font: inherit; font-size: 17px; font-weight: 650; letter-spacing: -.01em; color: var(--on-accent); text-decoration: none;
  background: var(--accent); border: 0; border-radius: 999px; cursor: pointer;
  box-shadow: inset 0 1px 0 var(--accent-edge), 0 12px 26px -12px var(--accent-shade), var(--shadow-1);
  transition: background .2s, transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn-primary svg { transition: transform .25s var(--ease); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring), 0 12px 26px -12px var(--accent-shade); }
@media (min-width: 600px) { .btn-primary { width: auto; } }
.send-note { margin: 12px 0 0; font-size: 13.5px; color: var(--muted); }

/* the notes and the thanks */
.note { margin-top: 36px; font-size: 18px; color: var(--ink-2); max-width: 46ch; }
.done { margin-top: 40px; animation: rise .7s var(--ease) both; }
.done-mark {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  color: var(--good-ink); background: var(--good-soft); border: 1px solid var(--good-line);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--good-soft) 55%, transparent);
  animation: pop .6s var(--ease) both .1s;
}
.done-title { margin: 22px 0 8px; font-size: 29px; line-height: 1.15; font-weight: 600; letter-spacing: -.022em; color: var(--head); }
.done-text { margin: 8px 0 0; font-size: 16.5px; color: var(--ink-2); max-width: 50ch; }
.next { list-style: none; margin: 26px 0 0; padding: 0; border-top: 1px solid var(--line); }
.next li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.next-n { padding-top: 3px; font-family: var(--font-mono); font-size: 12px; color: var(--brand); }
.book { margin-top: 32px; padding: 24px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.book-lead { margin: 0 0 16px; font-size: 16.5px; font-weight: 600; color: var(--head); }
.book-note { margin: 12px 0 0; font-size: 13.5px; color: var(--muted); }

.foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; max-width: var(--col); margin: 0 auto; padding: 32px 20px 44px;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--muted);
}
.foot-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--faint); }
@media (max-width: 480px) { .foot { flex-direction: column; align-items: flex-start; gap: 4px; } .foot-sep { display: none; } }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
