/* LetReady design system */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/static/fonts/inter-latin.woff2') format('woff2');
}

:root {
  color-scheme: light;
  --bg: #f6f7f4;
  --surface: #ffffff;
  --surface-2: #f1f3ef;
  --surface-3: #e9ece6;
  --ink: #111c17;
  --ink-2: #33413a;
  --muted: #66746d;
  --line: #e2e6df;
  --line-strong: #cfd6cd;
  --brand: #147a55;
  --brand-strong: #0e5f42;
  --tick: #1f9d6b;
  --logo-bg: var(--surface);
  --brand-ink: #ffffff;
  --brand-soft: #e5f2ec;
  --brand-softer: #f1f8f4;
  --accent: #e9a93a;
  --red: #b3261e;      --red-soft: #fdeceb;    --red-line: #f3c4c0;
  --amber: #8a5300;    --amber-soft: #fff3db;  --amber-line: #f2d59c;
  --blue: #1f4f96;     --blue-soft: #eaf1fc;   --blue-line: #c9d9f3;
  --green: #17693a;    --green-soft: #e6f5ec;  --green-line: #bfe3cc;
  --grey-soft: #eef1ee;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(17, 28, 23, 0.05);
  --shadow: 0 1px 2px rgba(17, 28, 23, 0.04), 0 4px 16px rgba(17, 28, 23, 0.05);
  --shadow-lg: 0 2px 4px rgba(17, 28, 23, 0.04), 0 16px 40px rgba(17, 28, 23, 0.10);
  --sidebar-w: 256px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0e1412;
    --surface: #151d1a;
    --surface-2: #1b2521;
    --surface-3: #222e29;
    --ink: #e8efeb;
    --ink-2: #c3cec8;
    --muted: #8d9b94;
    --line: #26322d;
    --line-strong: #33413b;
    --brand: #3fb68b;
    --brand-strong: #5cc9a0;
    --tick: #5fd3a0;
    --brand-ink: #06140f;
    --brand-soft: #16312a;
    --brand-softer: #13241f;
    --red: #ff8a80;      --red-soft: #3a1b19;    --red-line: #5b2a26;
    --amber: #f3c46b;    --amber-soft: #34280f;  --amber-line: #574417;
    --blue: #8fb5f5;     --blue-soft: #172440;   --blue-line: #27395f;
    --green: #74d39a;    --green-soft: #15301f;  --green-line: #22492f;
    --grey-soft: #1f2925;
    --shadow-sm: none;
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.02);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 15px; line-height: 1.55; font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: var(--brand); text-underline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: 1.75rem; font-weight: 700; }
h2 { font-size: 1.125rem; font-weight: 650; }
h3 { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 0.8125rem; }
.nowrap { white-space: nowrap; }
.icon { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: middle; }
.icon.sm { width: 16px; height: 16px; }
.icon.lg { width: 22px; height: 22px; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.eyebrow { font-size: 0.75rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; border-radius: 6px; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 780; font-size: 1.1875rem; letter-spacing: -0.035em; line-height: 1; }
.logo-mark { width: 38px; height: 38px; flex: none; color: currentColor; }
.logo-text { display: flex; flex-direction: column; gap: 3px; }
.logo-text small { font-size: 0.625rem; font-weight: 600; letter-spacing: 0.02em; color: var(--muted); text-transform: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: var(--brand-ink); border: 1px solid var(--brand);
  padding: 0 16px; height: 40px; border-radius: 10px; font: inherit; font-weight: 600; font-size: 0.9375rem;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn.secondary:hover { background: var(--surface-2); }
.btn.ghost { background: transparent; color: var(--ink-2); border-color: transparent; box-shadow: none; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { background: var(--surface); color: var(--red); border-color: var(--red-line); }
.btn.danger:hover { background: var(--red-soft); }
.btn.small { height: 34px; padding: 0 12px; font-size: 0.875rem; border-radius: 8px; }
.btn.large { height: 48px; padding: 0 22px; font-size: 1rem; border-radius: 12px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
button.linklike { background: none; border: 0; cursor: pointer; font: inherit; color: inherit; padding: 0; }

/* ---------- forms ---------- */
label { display: block; font-weight: 550; margin-bottom: 6px; font-size: 0.875rem; color: var(--ink-2); }
.field { margin-bottom: 16px; }
.hint { color: var(--muted); font-size: 0.8125rem; font-weight: 400; margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[type=file], select, textarea {
  width: 100%; padding: 0 12px; height: 42px; border: 1px solid var(--line-strong); border-radius: 10px; font: inherit;
  background: var(--surface); color: var(--ink); transition: border-color 0.15s, box-shadow 0.15s;
}
input[type=file] { padding: 8px 10px; height: auto; }
textarea { min-height: 84px; padding: 10px 12px; resize: vertical; height: auto; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; margin: 0; color: var(--ink); font-size: 0.9375rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--brand); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.row > .field { flex: 1 1 180px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.inline { display: inline; }
.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.option { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: var(--surface); transition: border-color 0.15s, background 0.15s; }
.option:has(input:checked) { border-color: var(--brand); background: var(--brand-softer); }
.option .check span small { display: block; color: var(--muted); font-size: 0.8125rem; margin-top: 2px; }

/* ---------- flash ---------- */
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); margin-bottom: 20px; border: 1px solid transparent; font-size: 0.9375rem; }
.flash.success { background: var(--green-soft); color: var(--green); border-color: var(--green-line); }
.flash.error { background: var(--red-soft); color: var(--red); border-color: var(--red-line); }
.flash.info { background: var(--blue-soft); color: var(--blue); border-color: var(--blue-line); }
.errors { background: var(--red-soft); color: var(--red); border: 1px solid var(--red-line); padding: 12px 14px 12px 32px; border-radius: var(--radius); margin: 0 0 16px; font-size: 0.9375rem; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); margin-bottom: 20px; }
.card > :last-child { margin-bottom: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-head h2 { margin: 0; }
.card.flush { padding: 0; overflow: hidden; }
.card.flush .card-head { padding: 18px 22px 0; }
.grid { display: grid; gap: 20px; }
.grid > *, .overview > *, .shell > *, .hero > * { min-width: 0; }
.grid.two { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.halves { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }

/* ---------- pills & chips ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 650; white-space: nowrap; border: 1px solid transparent; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.overdue { background: var(--red-soft); color: var(--red); border-color: var(--red-line); }
.pill.due_soon { background: var(--amber-soft); color: var(--amber); border-color: var(--amber-line); }
.pill.upcoming, .pill.missing { background: var(--blue-soft); color: var(--blue); border-color: var(--blue-line); }
.pill.ok, .pill.done { background: var(--green-soft); color: var(--green); border-color: var(--green-line); }
.pill.na, .pill.later { background: var(--grey-soft); color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; padding: 4px 10px; border-radius: 8px; background: var(--surface-2); color: var(--ink-2); font-weight: 500; border: 1px solid var(--line); }
.chip .icon { width: 14px; height: 14px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-block; font-size: 0.6875rem; padding: 2px 7px; border-radius: 6px; background: var(--grey-soft); color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: 0.04em; }
.tag.legal { background: var(--brand-soft); color: var(--brand); }

/* ---------- app shell ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; background: linear-gradient(90deg, var(--surface) calc(var(--sidebar-w) - 1px), var(--line) calc(var(--sidebar-w) - 1px), var(--line) var(--sidebar-w), transparent var(--sidebar-w)); }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 22px; }
.sidebar .logo { padding: 0 8px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a, .side-nav button { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 9px; text-decoration: none; color: var(--ink-2); font-weight: 520; font-size: 0.9375rem; width: 100%; text-align: left; }
.side-nav a:hover, .side-nav button:hover { background: var(--surface-2); color: var(--ink); }
.side-nav a.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.side-nav .icon { color: currentColor; opacity: 0.85; }
.side-label { font-size: 0.6875rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding: 0 10px; margin-bottom: 6px; }
.side-props a { justify-content: space-between; font-size: 0.875rem; padding: 7px 10px; }
.side-props .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--green); }
.dot.overdue { background: var(--red); } .dot.due_soon { background: #d99a00; } .dot.missing { background: #5b8fd6; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.trial-card { background: var(--brand-softer); border: 1px solid var(--brand-soft); border-radius: var(--radius); padding: 14px; font-size: 0.8125rem; color: var(--ink-2); }
.trial-card strong { display: block; color: var(--ink); font-size: 0.875rem; margin-bottom: 2px; }
.meter { height: 6px; background: var(--surface-3); border-radius: 99px; overflow: hidden; margin: 10px 0; }
.meter span { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 0.8125rem; flex: none; }
.user-chip .who { min-width: 0; font-size: 0.8125rem; line-height: 1.3; }
.user-chip .who strong { display: block; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip .who span { color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-main { padding: 32px 40px 72px; max-width: 1180px; width: 100%; }
.topbar { display: none; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.crumb { display: inline-flex; align-items: center; gap: 4px; font-size: 0.8125rem; color: var(--muted); text-decoration: none; margin-bottom: 8px; }
.crumb:hover { color: var(--brand); }
.banner { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 16px; border-radius: var(--radius); margin-bottom: 20px; font-size: 0.9375rem; background: var(--amber-soft); color: var(--amber); border: 1px solid var(--amber-line); }

/* ---------- dashboard ---------- */
.overview { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 20px; margin-bottom: 20px; }
.score { display: flex; align-items: center; gap: 20px; }
.ring { position: relative; width: 112px; height: 112px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { stroke: var(--surface-3); }
.ring .value { stroke: var(--brand); transition: stroke-dashoffset 0.6s ease; }
.ring.warn .value { stroke: #d99a00; }
.ring.bad .value { stroke: var(--red); }
.ring .label { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .label b { font-size: 1.75rem; font-weight: 750; letter-spacing: -0.03em; line-height: 1; display: block; }
.ring .label span { font-size: 0.6875rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.stat .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.stat .num { font-size: 1.875rem; font-weight: 750; line-height: 1; letter-spacing: -0.03em; }
.stat .lbl { color: var(--muted); font-size: 0.8125rem; font-weight: 500; }
.stat.overdue .ico { background: var(--red-soft); color: var(--red); }
.stat.due_soon .ico { background: var(--amber-soft); color: var(--amber); }
.stat.missing .ico { background: var(--blue-soft); color: var(--blue); }
.stat.ok .ico { background: var(--green-soft); color: var(--green); }
.stat.overdue .num { color: var(--red); }

.rows { list-style: none; margin: 0; padding: 0; }
.rows > li { display: flex; align-items: center; gap: 14px; padding: 13px 22px; border-top: 1px solid var(--line); }
.rows > li:first-child { border-top: 0; }
.rows a.rowlink { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; flex: 1; min-width: 0; }
.rows a.rowlink:hover .title { color: var(--brand); }
.rows .body { flex: 1; min-width: 0; }
.rows .title { font-weight: 600; color: var(--ink); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows .sub { color: var(--muted); font-size: 0.8125rem; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows .end { text-align: right; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.rows .end .date { font-size: 0.8125rem; color: var(--muted); }
.tile { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); flex: none; }
.tile.overdue { background: var(--red-soft); color: var(--red); }
.tile.due_soon { background: var(--amber-soft); color: var(--amber); }
.tile.missing, .tile.upcoming { background: var(--blue-soft); color: var(--blue); }
.tile.ok, .tile.done { background: var(--green-soft); color: var(--green); }
.month { padding: 10px 22px; background: var(--surface-2); font-size: 0.75rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); border-top: 1px solid var(--line); }
.allclear { display: flex; align-items: center; gap: 14px; padding: 18px 22px 22px; color: var(--muted); }
.healthbar { display: flex; height: 6px; border-radius: 99px; overflow: hidden; background: var(--surface-3); gap: 2px; margin-top: 8px; }
.healthbar span { display: block; height: 100%; }
.healthbar .overdue { background: var(--red); } .healthbar .due_soon { background: #d99a00; } .healthbar .missing { background: #5b8fd6; } .healthbar .ok { background: #33a066; }
.updates { list-style: none; margin: 0; padding: 0; }
.updates li { padding: 14px 0; border-top: 1px solid var(--line); }
.updates li:first-child { border-top: 0; padding-top: 0; }
.updates .when { font-size: 0.75rem; font-weight: 650; color: var(--brand); text-transform: uppercase; letter-spacing: 0.05em; }
.updates .what { font-weight: 600; margin: 2px 0; }
.updates p { font-size: 0.8125rem; color: var(--muted); margin: 0; }

/* ---------- property page ---------- */
.prop-hero { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.facts { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 18px; }
.fact b { display: block; font-size: 1.375rem; letter-spacing: -0.02em; }
.fact span { font-size: 0.8125rem; color: var(--muted); }
.section-title { display: flex; align-items: center; gap: 10px; margin: 28px 0 12px; }
.section-title h2 { margin: 0; }
.section-title .count { font-size: 0.8125rem; color: var(--muted); }
.item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); margin-bottom: 12px; box-shadow: var(--shadow); overflow: hidden; scroll-margin-top: 20px; }
.item:target { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.item.na { opacity: 0.65; }
.tile.later { background: var(--grey-soft); color: var(--muted); }
.item-main { display: flex; gap: 16px; padding: 18px 20px; align-items: flex-start; }
.item-main .body { flex: 1; min-width: 0; }
.item-title { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.item-title h3 { margin: 0; }
.item-dates { display: flex; gap: 22px; flex-wrap: wrap; font-size: 0.8125rem; color: var(--muted); }
.item-dates strong { color: var(--ink); font-weight: 600; }
.item-notes { font-size: 0.8125rem; color: var(--ink-2); margin: 8px 0 0; }
.item-toolbar { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 20px 16px 74px; }
.item-panels { margin-left: 54px; }
.tool { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); font-size: 0.8125rem; font-weight: 600; cursor: pointer; list-style: none; user-select: none; }
.tool::-webkit-details-marker { display: none; }
.tool:hover { background: var(--surface-2); color: var(--ink); }
.tool.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.tool.primary:hover { background: var(--brand-strong); }
.tool.on { background: var(--surface-3); color: var(--ink); border-color: var(--line-strong); }
.tool.primary.on { background: var(--brand-strong); color: var(--brand-ink); border-color: var(--brand-strong); }
.item-panels { padding: 0 20px; }
.item-panels:has(.drawer.open) { padding-bottom: 18px; }
.drawer { display: none; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.drawer.open, .no-js .drawer { display: block; }
.no-js .drawer { margin-bottom: 12px; }
.no-js .item-toolbar { display: none; }
.no-js .item-panels { padding-bottom: 6px; }
.drawer h4 { margin: 0 0 10px; font-size: 0.875rem; }
.drawer .guidance { font-size: 0.8125rem; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 14px; }
.doclist { list-style: none; padding: 0; margin: 0 0 12px; }
.doclist li { display: flex; gap: 10px; align-items: center; padding: 8px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px; font-size: 0.875rem; }
.doclist li a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.history { list-style: none; padding: 0; margin: 0; font-size: 0.8125rem; }
.history li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px dashed var(--line-strong); }
.history li:first-child { border-top: 0; }
.dropzone { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px; border: 1.5px dashed var(--line-strong); border-radius: 10px; background: var(--surface); }
.dropzone input[type=file] { flex: 1 1 200px; border: 0; padding: 0; height: auto; background: transparent; }

/* ---------- empty states ---------- */
.empty { text-align: center; padding: 56px 24px; }
.empty .art { width: 72px; height: 72px; border-radius: 20px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin: 0 auto 18px; }
.empty .art svg { width: 34px; height: 34px; }
.empty p { max-width: 420px; margin: 0 auto 20px; color: var(--muted); }

/* ---------- marketing ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 16px; height: 64px; }
.site-links { display: flex; gap: 4px; align-items: center; margin-left: auto; }
.site-links a:not(.btn) { color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 520; font-size: 0.9375rem; }
.site-links a:not(.btn):hover { color: var(--ink); background: var(--surface-2); }
.hero { padding: 72px 0 56px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { font-size: 3.25rem; line-height: 1.05; letter-spacing: -0.035em; font-weight: 750; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.lead { font-size: 1.1875rem; color: var(--ink-2); max-width: 560px; margin-bottom: 28px; }
.hero-note { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; font-size: 0.875rem; color: var(--muted); }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note .icon { color: var(--brand); width: 16px; height: 16px; }
.preview { position: relative; }
.preview::before { content: ''; position: absolute; inset: -30px -20px -30px 10%; background: radial-gradient(60% 60% at 60% 40%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%); z-index: -1; filter: blur(10px); }
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.mock-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); display: block; }
.mock-body { padding: 18px; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.mock-stats div { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.mock-stats b { display: block; font-size: 1.375rem; letter-spacing: -0.02em; }
.mock-stats span { font-size: 0.75rem; color: var(--muted); }
.mock .rows > li { padding: 11px 4px; }
.float-card { position: absolute; right: -14px; bottom: -26px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 12px 14px; display: flex; gap: 12px; align-items: center; max-width: 280px; font-size: 0.8125rem; }
.float-card b { display: block; font-size: 0.875rem; }
.section { padding: 72px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 { font-size: 2rem; letter-spacing: -0.03em; margin: 8px 0 12px; }
.section-head p { color: var(--muted); font-size: 1.0625rem; margin: 0; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 24px; border-radius: var(--radius-lg); background: var(--bg); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 700; font-size: 0.875rem; margin-bottom: 14px; }
.step p { color: var(--muted); margin: 0; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature { padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.feature .tile { background: var(--brand-soft); color: var(--brand); margin-bottom: 16px; }
.feature p { color: var(--muted); margin: 0; font-size: 0.9375rem; }
.tracklist { display: flex; flex-wrap: wrap; gap: 8px; }
.tracklist .chip { padding: 8px 12px; font-size: 0.875rem; background: var(--surface); }
.penalties { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.penalty { padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.penalty b { display: block; font-size: 2.25rem; letter-spacing: -0.03em; line-height: 1; margin-bottom: 10px; color: var(--ink); }
.penalty span { color: var(--muted); font-size: 0.9375rem; }
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; padding: 26px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; }
.price-card.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow-lg); }
.price-card .badge { position: absolute; top: -11px; left: 26px; background: var(--brand); color: var(--brand-ink); font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 10px; border-radius: 99px; }
.price-card h3 { font-size: 1.0625rem; margin-bottom: 4px; }
.price-card .price { font-size: 2.5rem; font-weight: 750; letter-spacing: -0.04em; margin: 12px 0 4px; line-height: 1; }
.price-card .price span { font-size: 0.9375rem; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.price-card .blurb { color: var(--muted); font-size: 0.9375rem; min-height: 44px; }
.price-card form, .price-card .btn { margin-top: auto; }
.checklist { list-style: none; padding: 0; margin: 16px 0 24px; display: flex; flex-direction: column; gap: 8px; font-size: 0.9375rem; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .icon { color: var(--brand); width: 18px; height: 18px; margin-top: 2px; }
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.0625rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); font-weight: 400; font-size: 1.375rem; line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { color: var(--ink-2); margin: 12px 0 0; }
.cta-band { background: #0e5f42; color: #fff; border-radius: 24px; padding: 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: inherit; font-size: 1.875rem; margin: 0 0 6px; }
.cta-band p { margin: 0; opacity: 0.85; }
.cta-band .btn { background: #fff; color: #0e5f42; border-color: #fff; }
.cta-band .btn:hover { opacity: 0.92; }
.site-footer { padding: 40px 0; color: var(--muted); font-size: 0.8125rem; }
.site-footer .container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer nav { display: flex; gap: 16px; }
.app-footer { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.75rem; }
.app-footer a { color: var(--muted); }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-panel { background: #0e5f42; color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-panel::after { content: ''; position: absolute; width: 520px; height: 520px; right: -180px; bottom: -200px; border-radius: 50%; border: 80px solid rgba(255, 255, 255, 0.06); }
.auth-panel .logo { color: #fff; --tick: #3fb68b; --logo-bg: #0e5f42; }
.auth-panel .logo-text small { color: rgba(255,255,255,0.75); }
.auth-panel h2 { color: inherit; font-size: 2rem; letter-spacing: -0.03em; max-width: 440px; margin-bottom: 20px; }
.auth-panel ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; max-width: 420px; }
.auth-panel li { display: flex; gap: 12px; align-items: flex-start; opacity: 0.95; }
.auth-panel li .icon { margin-top: 2px; }
.auth-panel .foot { font-size: 0.8125rem; opacity: 0.75; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-form .inner { width: 100%; max-width: 400px; }
.auth-form h1 { font-size: 1.75rem; margin-bottom: 6px; }
.auth-form .sub { color: var(--muted); margin-bottom: 28px; }
.auth-form .alt { margin-top: 20px; font-size: 0.875rem; color: var(--muted); }
.auth-mobile-logo { display: none; margin-bottom: 28px; }
.simple-page { max-width: 760px; margin: 0 auto; padding: 48px 20px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .overview { grid-template-columns: 1fr; }
  .grid.two { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; background: none; }
  .sidebar { display: none; }
  .topbar { display: flex; position: sticky; top: 0; z-index: 20; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; height: 58px; background: var(--surface); border-bottom: 1px solid var(--line); }
  .topbar details { position: static; }
  .topbar summary { list-style: none; cursor: pointer; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); }
  .topbar summary::-webkit-details-marker { display: none; }
  .topbar .menu { position: absolute; left: 0; right: 0; top: 58px; background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px 16px 18px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 16px; max-height: calc(100vh - 58px); overflow-y: auto; }
  .app-main { padding: 22px 16px 56px; }
  .hero { grid-template-columns: 1fr; padding: 40px 0; gap: 40px; }
  .hero h1 { font-size: 2.375rem; }
  .steps, .features, .penalties, .price-grid, .grid.three, .grid.halves { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-panel { display: none; }
  .auth-mobile-logo { display: inline-flex; }
  .cta-band { padding: 32px 24px; }
  .float-card { right: 8px; }
  .site-links a.hide-sm { display: none; }
}
@media (max-width: 600px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .score { flex-direction: row; }
  .item-main { padding: 16px; gap: 12px; }
  .item-toolbar { padding: 0 16px 14px; }
  .item-panels { margin-left: 0; padding: 0 16px; }
  .rows > li { padding: 12px 16px; }
  .card.flush .card-head { padding: 16px 16px 0; }
  .month { padding: 8px 16px; }
  .option-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .section-head h2 { font-size: 1.625rem; }
  .card { padding: 18px; }
  .rows .end .date { display: none; }
}
