/* Whitecoat Toolkit — site styles */
:root {
  --bg: #ffffff;
  --surface: #f5f5f7;
  --surface-2: #fbfbfd;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --line-soft: #e8e8ed;
  --accent: #0e7c86;
  --accent-ink: #0a5f67;
  --accent-soft: #e3f3f4;
  --warn: #b25000;
  --ok: #1f8a4c;
  --progress: #f0a000;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 2px 6px rgba(0,0,0,.04), 0 18px 48px rgba(0,0,0,.08);
  --nav-h: 52px;
  --gutter: clamp(16px, 5vw, 40px);
  --max: 1080px;
  --ease: cubic-bezier(.22,.8,.24,1);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 64px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px; line-height: 1.5; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.nav-inner { max-width: var(--max); margin: 0 auto; height: 100%; padding: 0 var(--gutter); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 650; letter-spacing: -0.02em; font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--ink-2); font-size: 13.5px; }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-cta { font-size: 13px !important; padding: 6px 13px; border-radius: 999px; background: var(--ink); color: #fff !important; font-weight: 550; }
.nav-cta:hover { text-decoration: none; background: #000; }
.nav-cta.is-unlocked { background: var(--accent-soft); color: var(--accent-ink) !important; }
.nav-auth { font-weight: 550; color: var(--accent-ink) !important; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; width: 40px; height: 40px; border-radius: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); margin: 5px auto; transition: transform .3s var(--ease), opacity .2s; }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(255,255,255,.94); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    padding: 8px var(--gutter) 20px; border-bottom: 1px solid var(--line-soft);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .nav-links a { font-size: 19px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
  .nav-links .nav-cta { margin-top: 14px; text-align: center; font-size: 16px !important; padding: 12px; border: 0; }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav.open .nav-toggle span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .nav.open .nav-toggle span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
}

/* ---------- Type ---------- */
.eyebrow { font-size: 14px; font-weight: 600; color: var(--accent); letter-spacing: 0; margin: 0 0 10px; text-transform: none; }
.display { font-size: clamp(44px, 8.4vw, 96px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 700; margin: 0; }
.headline { font-size: clamp(34px, 5.6vw, 64px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 700; margin: 0 0 18px; }
.section-title { font-size: clamp(28px, 4.2vw, 44px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; margin: 0 0 18px; }
.lede { font-size: clamp(19px, 2.3vw, 24px); line-height: 1.38; color: var(--muted); letter-spacing: -0.015em; margin: 0; }
.lede strong { color: var(--ink); font-weight: 600; }
.small { font-size: 14px; color: var(--muted); }
.muted { color: var(--muted); }
.grad { background: linear-gradient(100deg, #0e7c86 0%, #2a6fdb 55%, #7b4bd6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent; font-size: 16px; font-weight: 560; cursor: pointer;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s; white-space: nowrap; text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-ink); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: #000; }
.btn.ghost { background: transparent; color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.btn.ghost:hover { background: var(--accent-soft); }
.btn.quiet { background: var(--surface); color: var(--ink); }
.btn.quiet:hover { background: #ebebef; }
.btn.soon { background: var(--surface); color: var(--muted); cursor: default; border-color: var(--line-soft); }
.btn.soon:active { transform: none; }
.compare .card.paid .btn.soon { background: rgba(255,255,255,.1); color: #d2d2d7; border-color: rgba(255,255,255,.15); }
.compare .card.paid .soon-line { color: #d2d2d7; margin: 10px 0 0; font-size: 15.5px; }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.link-arrow { font-weight: 560; }
.link-arrow::after { content: " ›"; }

/* ---------- Sections ---------- */
section { position: relative; }
.band { padding: clamp(72px, 12vw, 150px) 0; }
.band.tight { padding: clamp(56px, 8vw, 96px) 0; }
.band.gray { background: var(--surface); }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; max-width: 720px; }
.divider { border: 0; height: 1px; background: var(--line-soft); margin: 0; }

/* Hero */
.hero { padding: clamp(84px, 14vw, 170px) 0 clamp(56px, 8vw, 100px); text-align: center; overflow: hidden; }
.hero .lede { margin: 26px auto 0; max-width: 680px; }
.hero .btns { justify-content: center; margin-top: 36px; }
.paths { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 46px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 550; color: var(--ink-2); }
.hero-glow { position: absolute; inset: auto 0 -40% 0; height: 70%; background: radial-gradient(60% 60% at 50% 0%, rgba(14,124,134,.10), transparent 70%); pointer-events: none; z-index: -1; }
.warning { display: inline-flex; gap: 8px; align-items: center; margin-top: 30px; font-size: 13.5px; color: var(--muted); }

/* Cards / grids */
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 860px) { .grid.three { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px) { .grid.two, .grid.three { grid-template-columns: 1fr; } }
.card { background: var(--bg); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.band.gray .card { box-shadow: none; }
.card h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 8px; }
.card p { margin: 0; color: var(--ink-2); }
.tile { background: var(--surface); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 10px; min-height: 220px; position: relative; overflow: hidden; }
.band.gray .tile { background: var(--bg); }
.tile .num { font-size: 13px; font-weight: 650; color: var(--muted); }
.tile h3 { font-size: 24px; letter-spacing: -0.025em; line-height: 1.15; margin: 0; }
.tile p { margin: 0; color: var(--ink-2); font-size: 16px; }
.tile .tag { margin-top: auto; align-self: flex-start; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.tag.free { background: var(--accent-soft); color: var(--accent-ink); }
.tag.paid { background: #1d1d1f; color: #fff; }
.tile.wide { grid-column: span 2; }
@media (max-width: 600px) { .tile.wide { grid-column: auto; } }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; margin-top: 48px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 28px; border-radius: var(--radius); background: var(--bg); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 650; font-size: 15px; margin-bottom: 18px; }
.step h3 { margin: 0 0 6px; font-size: 21px; letter-spacing: -0.02em; }
.step p { margin: 0; color: var(--ink-2); font-size: 16px; }

.note { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius-sm); background: #fff8eb; color: #5c3d00; font-size: 15.5px; line-height: 1.45; }
.note.info { background: var(--accent-soft); color: #0a4a50; }
.note svg { flex: none; margin-top: 2px; }

/* Compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 48px; text-align: left; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }
.compare .card { padding: 34px; }
.compare ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.compare li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; color: var(--ink-2); }
.compare li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.5L13 6.6' fill='none' stroke='%230a5f67' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.compare .card.paid { background: var(--ink); color: #f5f5f7; }
.compare .card.paid h3 { color: #fff; }
.compare .card.paid li { color: #d2d2d7; }
.compare .card.paid li::before { background-color: rgba(255,255,255,.12); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.5L13 6.6' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.price { font-size: 44px; font-weight: 700; letter-spacing: -0.04em; margin: 8px 0 0; }
.price small { font-size: 16px; font-weight: 500; color: #a1a1a6; letter-spacing: 0; }
.compare .card.paid .price { color: #fff; }
.compare .card.paid .checkout-note { font-size: 14px; color: #a1a1a6; margin: 20px 0 0 !important; line-height: 1.5; }
.compare .card.paid .btns { margin-top: 26px; }
.compare .card.paid .btn.ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.compare .card.paid .btn.ghost:hover { background: rgba(255,255,255,.1); }

/* Locked previews */
.locked { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); min-height: 340px; isolation: isolate; }
.locked + .locked { margin-top: 18px; }
.locked-preview { padding: 30px; filter: blur(7px) saturate(.9); opacity: .75; pointer-events: none; user-select: none; transform: scale(1.02); }
.locked-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 28px; background: linear-gradient(180deg, rgba(245,245,247,.25), rgba(245,245,247,.75) 60%);
}
.locked-overlay .lock { width: 46px; height: 46px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; margin-bottom: 16px; box-shadow: var(--shadow); }
.locked-overlay h3 { font-size: clamp(22px, 3vw, 28px); letter-spacing: -0.025em; margin: 0 0 8px; }
.locked-overlay p { margin: 0 auto 20px; max-width: 460px; color: var(--ink-2); font-size: 16px; }
.locked-overlay .btns { justify-content: center; }
.fake-line { height: 12px; border-radius: 6px; background: #c9c9cf; margin: 10px 0; }
.fake-row { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid #dedee3; }
.fake-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #b8b8bf; flex: none; }
.fake-dot.on { background: var(--accent); border-color: var(--accent); }
.fake-title { height: 22px; width: 45%; border-radius: 8px; background: #b8b8bf; margin-bottom: 18px; }
.fake-chip { display: inline-block; height: 28px; width: 110px; border-radius: 999px; background: #d6d6dc; margin-right: 8px; }

/* Creator */
.creator { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
@media (max-width: 760px) { .creator { grid-template-columns: 1fr; } }
.creator-photo { border-radius: 28px; overflow: hidden; aspect-ratio: 4/5; background: #000; box-shadow: var(--shadow); }
.creator-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 68%; }
.creator blockquote { margin: 0; font-size: clamp(19px, 2.2vw, 23px); line-height: 1.45; letter-spacing: -0.015em; color: var(--ink-2); }
.creator blockquote p { margin: 0 0 18px; }
.sig { margin-top: 26px; display: grid; gap: 4px; font-size: 16px; }
.sig strong { font-size: 19px; letter-spacing: -0.02em; }

/* Footer */
.footer { background: var(--surface); padding: 40px 0 56px; font-size: 13px; color: var(--muted); }
.footer .wrap { display: grid; gap: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--ink-2); }
.footer p { margin: 0; max-width: 820px; line-height: 1.55; }

/* ---------- Resources page ---------- */
.page-head { padding: clamp(64px, 10vw, 120px) 0 clamp(28px, 4vw, 44px); }
.page-head .lede { max-width: 760px; margin-top: 18px; }
.chipbar { position: sticky; top: var(--nav-h); z-index: 40; background: rgba(255,255,255,.82); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line-soft); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px var(--gutter); max-width: var(--max); margin: 0 auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 7px 14px; border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 14px; font-weight: 550; white-space: nowrap; border: 0; cursor: pointer; }
.chip:hover { text-decoration: none; background: #ebebef; }
.chip.active, .chip[aria-selected="true"] { background: var(--ink); color: #fff; }
.intro-notes { display: grid; gap: 12px; margin-top: 28px; }
.intro-notes p { margin: 0; }
.res-section { padding: clamp(56px, 8vw, 96px) 0; }
.res-section > p, .res-section > ul { max-width: 780px; color: var(--ink-2); }
.res-section > p { margin: 0 0 14px; }
.res-section h3.sub { font-size: 21px; letter-spacing: -0.02em; margin: 40px 0 14px; }
.res-section a:not(.res-card) { font-weight: 520; }
.list { padding-left: 1.2em; margin: 0 0 16px; display: grid; gap: 8px; }
.list li { padding-left: 4px; }
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin: 18px 0 24px; }
@media (max-width: 520px) { .res-grid { grid-template-columns: 1fr; } }
.res-card { display: flex; flex-direction: column; gap: 6px; padding: 20px 20px 18px; border-radius: 18px; background: var(--surface); color: var(--ink); transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s; }
a.res-card:hover { text-decoration: none; transform: translateY(-3px); background: #fff; box-shadow: var(--shadow); }
.res-name { font-weight: 650; font-size: 17px; letter-spacing: -0.015em; }
.res-name strong { font-weight: inherit; }
.res-desc { color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.res-desc a { font-weight: 550; }
.res-link { margin-top: auto; padding-top: 8px; font-size: 13.5px; color: var(--accent-ink); font-weight: 560; word-break: break-word; }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 28px; align-items: start; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }
.calc-step { background: var(--surface); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); }
.calc-step + .calc-step { margin-top: 18px; }
.calc-step h2 { font-size: 24px; letter-spacing: -0.025em; margin: 0 0 4px; }
.calc-step .hint { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.field { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid #e3e3e8; }
.field:first-of-type { border-top: 0; }
.field label { font-size: 16px; line-height: 1.3; }
.field label small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.field .cost { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.stepper { display: inline-flex; align-items: center; background: #fff; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.stepper button { width: 40px; height: 40px; border: 0; background: none; font-size: 20px; cursor: pointer; border-radius: 50%; color: var(--accent-ink); -webkit-tap-highlight-color: transparent; }
.stepper button:hover { background: var(--accent-soft); }
.stepper input { width: 52px; border: 0; text-align: center; font-size: 17px; font-weight: 600; background: transparent; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.money { display: inline-flex; align-items: center; background: #fff; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); padding: 0 12px; height: 42px; }
.money span { color: var(--muted); }
.money input { width: 80px; border: 0; font-size: 17px; font-weight: 600; text-align: right; background: transparent; font-variant-numeric: tabular-nums; }
.money input:focus, .stepper input:focus { outline: none; }
.money:focus-within, .stepper:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.switch { position: relative; width: 52px; height: 32px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; z-index: 1; }
.switch .track { position: absolute; inset: 0; border-radius: 999px; background: #d1d1d6; transition: background .25s; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .3s var(--ease); }
.switch input:checked + .track { background: var(--ok); }
.switch input:checked + .track::after { transform: translateX(20px); }
.switch input:focus-visible + .track { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }
.fine { font-size: 13.5px; color: var(--muted); margin: 14px 0 0; line-height: 1.45; }
.summary { position: sticky; top: calc(var(--nav-h) + 20px); background: var(--ink); color: #f5f5f7; border-radius: var(--radius); padding: 28px; }
.summary h2 { font-size: 15px; font-weight: 600; color: #a1a1a6; margin: 0 0 4px; letter-spacing: 0; }
.total { font-size: clamp(46px, 6vw, 60px); font-weight: 700; letter-spacing: -0.045em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.sum-rows { margin: 22px 0 0; display: grid; gap: 0; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 15px; color: #d2d2d7; font-variant-numeric: tabular-nums; }
.sum-row b { color: #fff; font-weight: 600; }
.sum-row.sub { color: #fff; font-weight: 600; }
.sum-extra { margin-top: 18px; display: grid; gap: 8px; font-size: 14px; color: #a1a1a6; }
.sum-extra div { display: flex; justify-content: space-between; gap: 10px; }
.sum-extra b { color: #7ee0a4; font-weight: 600; font-variant-numeric: tabular-nums; }
.summary .btn { margin-top: 20px; width: 100%; background: rgba(255,255,255,.12); color: #fff; }
.summary .reset-btn { background: transparent; border-color: rgba(255,255,255,.25); }
.summary .reset-btn + .btn { margin-top: 10px; }
.summary .btn:hover { background: rgba(255,255,255,.2); }
@media (max-width: 900px) {
  .summary { position: static; }
  .mini-total { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 45; display: flex; justify-content: space-between; align-items: center;
    background: rgba(29,29,31,.86); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); color: #fff; border-radius: 18px; padding: 12px 18px; box-shadow: 0 10px 30px rgba(0,0,0,.25);
    transition: transform .35s var(--ease), opacity .35s; }
  .mini-total.hide { transform: translateY(140%); opacity: 0; }
  .mini-total b { font-size: 22px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
  .mini-total a { color: #7ee0a4; font-size: 14px; font-weight: 560; }
}
@media (min-width: 901px) { .mini-total { display: none; } }

/* Tables */
.table-wrap { overflow-x: auto; margin: 16px 0 24px; border-radius: 16px; border: 1px solid var(--line-soft); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 13px 16px; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
th { background: var(--surface); font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
th strong { font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 640px) {
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
  table.stack tr:last-child { border-bottom: 0; }
  table.stack td { border: 0; padding: 3px 0; }
  table.stack td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 6px; }
  table.stack td:first-child::before { display: none; }
  table.stack td:first-child { font-size: 17px; font-weight: 600; }
  .table-wrap { overflow: visible; }
}

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.open { display: flex; }
.modal-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.32); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: fade .3s var(--ease); }
.modal-card { position: relative; width: min(440px, 100%); background: #fff; border-radius: 28px; padding: 36px 30px 30px; box-shadow: 0 30px 80px rgba(0,0,0,.3); animation: pop .45s var(--ease); text-align: center; }
.modal-card h2 { font-size: 28px; letter-spacing: -0.03em; margin: 0 0 8px; line-height: 1.12; }
.modal-card p { color: var(--ink-2); margin: 0 0 22px; font-size: 16px; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--surface); cursor: pointer; font-size: 18px; color: var(--muted); }
.code-input { width: 100%; height: 56px; border-radius: 16px; border: 1px solid var(--line); padding: 0 18px; font-size: 19px; font-weight: 600; letter-spacing: .08em; text-align: center; text-transform: uppercase; font-family: ui-monospace, "SF Mono", Menlo, monospace; background: var(--surface-2); }
.code-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.modal-card .btn { width: 100%; margin-top: 14px; }
.form-error { color: #c4271e; font-size: 14.5px; min-height: 22px; margin: 10px 0 0 !important; }
.welcome-mark { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; background: linear-gradient(135deg, #0e7c86, #2a6fdb); display: grid; place-items: center; animation: pop .6s var(--ease) .1s both; }
.welcome-name { font-size: clamp(34px, 7vw, 42px) !important; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Watermark */
.watermark { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 44; display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,.78); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 6px 20px rgba(0,0,0,.08);
  font-size: 12.5px; color: var(--muted); pointer-events: none; white-space: nowrap; max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis; }
.watermark b { color: var(--ink); font-weight: 600; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(64px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; z-index: 120; background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 999px; font-size: 14.5px; transition: all .35s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Members ---------- */
.seg { display: inline-flex; background: var(--surface); padding: 4px; border-radius: 999px; gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; border: 0; background: transparent; padding: 9px 16px; border-radius: 999px; font-size: 14.5px; font-weight: 560; color: var(--ink-2); cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.m-panel { padding: 36px 0 120px; }
.m-panel[hidden] { display: none; }
.progress-card { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; background: var(--surface); border-radius: var(--radius); padding: 26px; margin: 26px 0 22px; }
@media (max-width: 560px) { .progress-card { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
.ring { width: 128px; height: 128px; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 11; }
.ring .bg { stroke: #e3e3e8; }
.ring .fg { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .8s var(--ease); }
.ring .pct { position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.ring .pct small { display: block; font-size: 11.5px; font-weight: 550; color: var(--muted); letter-spacing: 0; text-align: center; margin-top: -2px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, minmax(0,1fr)); width: 100%; } }
.stat { background: #fff; border-radius: 14px; padding: 12px 14px; }
.stat b { display: block; font-size: 24px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--muted); }
.cl-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 10px; margin-top: 30px; }
.cl-title h2 { margin: 0; font-size: clamp(26px, 4vw, 36px); letter-spacing: -0.03em; line-height: 1.1; }
.subtabs { display: flex; gap: 6px; margin: 4px 0 18px; border-bottom: 1px solid var(--line-soft); }
.subtabs button { border: 0; background: none; padding: 12px 4px; margin-right: 18px; font-size: 15px; font-weight: 560; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subtabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.phase { border-radius: 18px; background: #fff; border: 1px solid var(--line-soft); margin-bottom: 12px; overflow: hidden; }
.phase > summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 18px 20px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.phase > summary::-webkit-details-marker { display: none; }
.phase-n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-weight: 650; font-size: 14px; }
.phase.complete .phase-n { background: var(--ok); color: #fff; }
.phase-t { flex: 1; font-weight: 620; font-size: 17px; letter-spacing: -0.015em; line-height: 1.3; }
.phase-c { font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.chev { width: 12px; height: 12px; flex: none; transition: transform .3s var(--ease); }
.phase[open] .chev { transform: rotate(180deg); }
.phase-bar { height: 3px; background: var(--line-soft); }
.phase-bar i { display: block; height: 100%; background: var(--accent); transition: width .5s var(--ease); }
.task { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 14px; padding: 16px 20px; border-top: 1px solid var(--line-soft); }
.check { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #c7c7cc; background: #fff; cursor: pointer; display: grid; place-items: center; margin-top: 1px; transition: all .25s var(--ease); -webkit-tap-highlight-color: transparent; padding: 0; }
.check svg { opacity: 0; transform: scale(.6); transition: all .25s var(--ease); }
.task[data-status="Done"] .check { background: var(--ok); border-color: var(--ok); }
.task[data-status="Done"] .check svg { opacity: 1; transform: none; }
.task[data-status="In progress"] .check { border-color: var(--progress); background: conic-gradient(var(--progress) 0 50%, #fff 50% 100%); }
.task[data-status="Not applicable"] .check { border-style: dashed; background: var(--surface); }
.task[data-status="Done"] .task-name { color: var(--muted); text-decoration: line-through; text-decoration-color: #b0b0b5; }
.task[data-status="Not applicable"] .task-name { color: var(--muted); }
.task-name { font-weight: 580; font-size: 16.5px; line-height: 1.35; letter-spacing: -0.01em; }
.task-det { color: var(--ink-2); font-size: 15px; margin: 4px 0 0; line-height: 1.45; }
.task-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.when { font-size: 12.5px; color: var(--muted); background: var(--surface); padding: 4px 10px; border-radius: 999px; }
.status-sel { appearance: none; -webkit-appearance: none; font: inherit; font-size: 13px; font-weight: 560; padding: 5px 28px 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236e6e73' stroke-width='1.5'/%3E%3C/svg%3E") right 10px center/10px no-repeat; cursor: pointer; color: var(--ink-2); }
.status-sel.s-done { background-color: #e7f5ec; border-color: #bfe3cd; color: #17683a; }
.status-sel.s-prog { background-color: #fff4dc; border-color: #f3d9a0; color: #8a5a00; }
.note-btn { border: 0; background: none; color: var(--accent-ink); font-size: 13px; font-weight: 560; cursor: pointer; padding: 5px 4px; }
.task textarea, .dl-row input, .dl-row textarea { width: 100%; font: inherit; font-size: 15px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--surface-2); resize: vertical; }
.task textarea { margin-top: 10px; min-height: 64px; }
.task textarea:focus, .dl-row input:focus, .dl-row textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.dl-row { display: grid; grid-template-columns: minmax(0,1.2fr) 170px minmax(0,1.2fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--line-soft); align-items: center; }
.dl-row:first-child { border-top: 0; }
.dl-row .m { font-weight: 560; }
.dl-row input[type=date] { height: 42px; }
@media (max-width: 640px) { .dl-row { grid-template-columns: 1fr; gap: 8px; } }
.link-list { display: grid; gap: 10px; }
.foot-note { font-size: 13.5px; color: var(--muted); margin-top: 22px; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 26px; }
@media (max-width: 520px) { .plan-grid { grid-template-columns: 1fr; } }
.plan { background: var(--surface); border-radius: var(--radius); padding: 26px; }
.plan h3 { font-size: 20px; letter-spacing: -0.02em; margin: 0 0 14px; line-height: 1.25; }
.plan ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; counter-reset: s; }
.plan li { position: relative; padding-left: 30px; font-size: 15.5px; color: var(--ink-2); line-height: 1.45; }
.plan li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: #fff; font-size: 12px; font-weight: 650; display: grid; place-items: center; color: var(--accent-ink); }
.tips { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 26px; }
.tips .card { box-shadow: none; border: 1px solid var(--line-soft); }
.tips h3 { font-size: 19px; }
.prose { max-width: 780px; }
.prose h3 { font-size: 21px; letter-spacing: -0.02em; margin: 34px 0 10px; }
.prose p { color: var(--ink-2); margin: 0 0 12px; }
.prose .list { color: var(--ink-2); }
.iv-section { margin-top: 56px; }
.iv-section > h2 { font-size: clamp(26px, 3.6vw, 34px); letter-spacing: -0.03em; margin: 0 0 14px; }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 26px; }
.dl-card { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 18px; background: var(--surface); border: 0; text-align: left; cursor: pointer; width: 100%; transition: transform .25s var(--ease), box-shadow .25s, background .2s; }
.dl-card:hover { background: #fff; box-shadow: var(--shadow); transform: translateY(-2px); }
.dl-ico { width: 44px; height: 52px; border-radius: 9px; flex: none; display: grid; place-items: end center; padding-bottom: 7px; font-size: 10.5px; font-weight: 750; color: #fff; letter-spacing: .03em; }
.dl-ico.xlsx { background: linear-gradient(160deg, #22a35a, #157a42); }
.dl-ico.docx { background: linear-gradient(160deg, #3b7ddd, #2257b5); }
.dl-card .dl-ico { color: #fff; font-size: 10.5px; }
.dl-card b { display: block; font-size: 16px; letter-spacing: -0.01em; }
.dl-card span { font-size: 13px; color: var(--muted); }
.perk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 26px; }
.perk { background: var(--surface); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.perk .brand-n { font-size: 13px; color: var(--muted); font-weight: 600; }
.perk h3 { margin: 0; font-size: 21px; letter-spacing: -0.02em; }
.perk p { margin: 0; color: var(--ink-2); font-size: 15px; }
.code-row { display: flex; align-items: center; gap: 8px; margin-top: 14px; background: #fff; border-radius: 14px; padding: 6px 6px 6px 16px; border: 1px dashed var(--line); }
.code-row code { flex: 1; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 16px; font-weight: 650; letter-spacing: .04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.disclosure { font-size: 14px; color: var(--muted); margin-top: 22px; }
.members-hero { padding: clamp(56px, 9vw, 104px) 0 8px; }
.members-hero .lede { margin-top: 14px; max-width: 720px; }
.status-line { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-top: 18px; }
.status-line .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.sticky-seg { position: sticky; top: var(--nav-h); z-index: 30; margin-top: 22px; padding: 10px 0; background: rgba(255,255,255,.82); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }
.hero .display, .hero .lede, .hero .btns, .hero .paths { animation: rise 1s var(--ease) both; }
.hero .lede { animation-delay: .12s; } .hero .btns { animation-delay: .22s; } .hero .paths { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Track picker */
.picker { max-width: 860px; }
.track-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.track-opt { position: relative; cursor: pointer; display: block; }
.track-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.track-box { display: flex; flex-direction: column; gap: 4px; padding: 20px 20px 18px 56px; border-radius: 18px; background: var(--surface); border: 2px solid transparent; transition: border-color .2s, background .2s; position: relative; min-height: 84px; }
.track-box b { font-size: 18px; letter-spacing: -0.02em; }
.track-box small { color: var(--muted); font-size: 13.5px; }
.track-tick { position: absolute; left: 18px; top: 22px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #c7c7cc; background: #fff; transition: all .2s var(--ease); }
.track-opt input:checked + .track-box { border-color: var(--accent); background: #fff; box-shadow: var(--shadow); }
.track-opt input:checked + .track-box .track-tick { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 3.8L18 8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; border-color: var(--accent); }
.track-opt input:focus-visible + .track-box { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }
.picker .btns { margin-top: 18px; }
.track-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }

