/* ============================================================
   Owed & Found — app design system.
   Ported from the approved brand system (apps/web/src/index.css +
   apps/landing/dashboard.html): moss/near-black palette, Inter /
   Inter Tight / IBM Plex Mono, pill buttons, 18px cards, mono money.
   Alert colors stay reserved for genuine alerts (§6/§8):
   amber = caution, red = error. Green is BRAND, not "success-only".
   ============================================================ */
:root {
  --paper: #FFFFFF;
  --paper-deep: #F2F3F0;
  --ink: #0A0F0D;
  --ink-2: #1A211E;
  --mut: #5C6660;
  --line: #E4E6E2;
  --line-2: #EDEFEA;
  --night: #0A0F0D;
  --green: #466D1D;
  --green-hi: #59872A;
  --green-deep: #3A5C17;
  --green-soft: #A8D46A;
  --green-tint: #EDF3E2;
  --amber: #B0741E;
  --amber-tint: #FBF3E5;
  --red: #C2453A;
  --red-tint: #FBECEA;
  --gold: #9A7B2D;
  --white: #FFF;
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 1px 2px rgba(10, 15, 13, .04), 0 8px 24px -16px rgba(10, 15, 13, .18);
  /* legacy aliases still referenced by templates */
  --muted: var(--mut);
  --card: var(--paper);
  --ok: var(--green);
  --warn: var(--amber);
  --err: var(--red);
  --accent: var(--green-deep);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  background: var(--paper-deep);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Inter Tight', sans-serif; letter-spacing: -.02em; color: var(--ink); line-height: 1.15; }
h1 { font-size: 1.8rem; font-weight: 800; margin: 0 0 .5rem; }
h2 { font-size: 1.15rem; font-weight: 700; margin: 1.6rem 0 .6rem; }
h3 { font-size: 1rem; font-weight: 700; margin: 0 0 .4rem; }
a { color: var(--green-deep); text-decoration-color: color-mix(in srgb, var(--green-deep) 35%, transparent); text-underline-offset: 2px; }
a:hover { color: var(--green); }
.mono { font-family: 'IBM Plex Mono', monospace; }
.muted, .small.muted { color: var(--mut); }
.small { font-size: .85rem; }
::selection { background: var(--green-soft); color: var(--ink); }
::placeholder { color: #9AA39D; }

/* ── App shell ─────────────────────────────────────────────── */
.app-shell { display: grid; grid-template-columns: 244px 1fr; min-height: 100vh; }
.side {
  background: var(--night); color: #B9CCC2;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; padding: 20px 14px;
}
.wordmark {
  font-family: 'Inter Tight', sans-serif; font-weight: 800; font-size: 19px;
  letter-spacing: -.03em; color: var(--white); text-decoration: none;
  display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px;
}
.wordmark .mark { width: 28px; height: 28px; border-radius: 8px; flex: none; }
.wordmark i { font-style: normal; color: var(--green-soft); }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.nav-sec {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: #6E8579; padding: 15px 10px 6px;
}
.side .item {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 11px;
  text-decoration: none; font-size: 14px; font-weight: 500; color: #9AA5A0;
  transition: background .2s, color .2s;
}
.side .item svg { width: 17px; height: 17px; flex: none; opacity: .9; }
.side .item:hover { background: rgba(247, 246, 241, .06); color: var(--white); }
.side .item.on { background: var(--green); color: #fff; font-weight: 600; }
.side .item.on svg { opacity: 1; }
.spacer { flex: 1; min-height: 16px; }
.scan-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 4px; background: var(--green); color: #fff; text-decoration: none;
  border-radius: 999px; font-weight: 700; font-size: 14px; padding: 12px;
  transition: transform .2s var(--ease), background .2s;
}
.scan-cta:hover { background: var(--green-hi); color: #fff; transform: translateY(-1px); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 14px 6px 2px; margin-top: 8px; border-top: 1px solid #23302A; }
.user-chip .avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--green-deep); color: #fff; font-family: 'Inter Tight'; font-weight: 700;
  font-size: 15px; text-transform: uppercase;
}
.user-chip .who { min-width: 0; flex: 1; }
.user-chip .who b { display: block; font-size: 12.5px; color: var(--white); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip .who small { font-size: 11px; color: #6E8579; text-transform: capitalize; }
.user-chip .signout { background: transparent; border: none; color: #6E8579; padding: 6px; border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.user-chip .signout svg { width: 18px; height: 18px; }
.user-chip .signout:hover { color: var(--white); background: rgba(247, 246, 241, .06); }

.app-main { min-width: 0; display: flex; flex-direction: column; }
.app-main main { flex: 1; max-width: 1080px; width: 100%; padding: 26px 34px 60px; }
.app-footer {
  padding: 22px 34px; border-top: 1px solid var(--line); color: var(--mut);
  font-size: 12.5px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
}
.app-footer a { color: var(--mut); }
.app-footer a:hover { color: var(--green); }
.app-footer span { margin-left: auto; }

/* ── Public shell (signed-out) ─────────────────────────────── */
.pub-shell { min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); }
.pub-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px; border-bottom: 1px solid var(--line); position: sticky; top: 0;
  background: rgba(255, 255, 255, .85); backdrop-filter: blur(12px); z-index: 20;
}
.pub-nav .wordmark { color: var(--ink); padding: 0; }
.pub-nav nav { display: flex; align-items: center; gap: 22px; }
.pub-nav .nl { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 14.5px; }
.pub-nav .nl:hover { color: var(--green); }
.pub-shell main { flex: 1; max-width: 1080px; width: 100%; margin: 0 auto; padding: 34px 28px 60px; }
.app-footer.pub { justify-content: center; }
.app-footer.pub span { margin-left: 0; }

/* ── Cards / panels ────────────────────────────────────────── */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; margin: 16px 0; box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
section > h1:first-child { margin-bottom: .2rem; }

/* ── KPI tiles ─────────────────────────────────────────────── */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 14px; margin: 18px 0; }
.kpi {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 17px 18px 15px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.kpi .n {
  font-family: 'IBM Plex Mono', monospace; font-size: 1.7rem; font-weight: 600;
  letter-spacing: -.01em; display: block; color: var(--ink);
}
.kpi .note { color: var(--mut); font-size: .82rem; margin-top: 3px; display: block; }
/* uppercase mono eyebrow when a KPI leads with a label */
.kpi small, .kpi .label {
  font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--mut); display: block; margin-bottom: 6px;
}

/* ── Buttons (pills) ───────────────────────────────────────── */
button, .btn, a.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--green); color: #fff; border: 1px solid transparent;
  padding: 10px 20px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 14px;
  cursor: pointer; text-decoration: none; line-height: 1.2;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s, border-color .2s;
}
button:hover, .btn:hover, a.btn:hover {
  background: var(--green-hi); color: #fff; transform: translateY(-1px);
  box-shadow: 0 12px 26px -14px rgba(70, 109, 29, .6);
}
button:active, .btn:active { transform: translateY(0) scale(.99); }
button.secondary, .btn.secondary, a.btn.secondary {
  background: var(--paper); color: var(--ink); border-color: var(--line);
}
button.secondary:hover, .btn.secondary:hover, a.btn.secondary:hover {
  background: var(--paper-deep); color: var(--ink); border-color: #D3D7CE; box-shadow: none;
}
button.danger, .btn.danger { background: var(--red); }
button.danger:hover, .btn.danger:hover { background: #A93A30; box-shadow: 0 12px 26px -14px rgba(194, 69, 58, .55); }
button:disabled, button[disabled] { background: #C7CCC4; color: #fff; cursor: not-allowed; transform: none; box-shadow: none; }
button.linklike, .linklike {
  background: none; color: var(--mut); border: none; padding: 3px 4px; border-radius: 6px;
  text-decoration: underline; text-underline-offset: 2px; font-size: .9rem; font-weight: 500;
}
button.linklike:hover { color: var(--red); background: none; transform: none; box-shadow: none; }

.pill { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; text-decoration: none; border: none; cursor: pointer; padding: 10px 22px; border-radius: 999px; transition: transform .25s var(--ease), background .25s, box-shadow .25s; }
.pill:hover { transform: translateY(-1px); }
.pill-black { background: var(--ink); color: #fff; }
.pill-black:hover { background: #1C2420; color: #fff; box-shadow: 0 12px 26px -14px rgba(10, 15, 13, .5); }
.pill-green { background: var(--green); color: #fff; }
.pill-green:hover { background: var(--green-hi); color: #fff; }

/* ── Forms ─────────────────────────────────────────────────── */
form.stack { display: flex; flex-direction: column; }
form.stack label, label { display: block; margin: .7rem 0 .25rem; font-weight: 600; font-size: .9rem; color: var(--ink-2); }
label .muted, label span.muted { font-weight: 400; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=search], input[type=password], select, textarea {
  width: 100%; max-width: 30rem; padding: 10px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: 14.5px; background: var(--paper); color: var(--ink-2); transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-tint); }
input[type=checkbox], input[type=radio] { accent-color: var(--green); width: auto; margin-right: .35rem; transform: scale(1.05); }
input[type=file] { font-size: 14px; }
[aria-invalid=true] { border-color: var(--red); }
[aria-invalid=true]:focus { box-shadow: 0 0 0 3px var(--red-tint); }
p[role=alert], .field-error { color: var(--red); margin: .3rem 0; font-size: .88rem; font-weight: 500; }
.error-summary { border: 1px solid var(--red); background: var(--red-tint); color: #8F332B; padding: .7rem 1rem; border-radius: var(--radius-sm); font-weight: 500; }

/* ── Tables ────────────────────────────────────────────────── */
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); font-weight: 600; }
td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line-2); }
tbody tr:hover td { background: var(--paper-deep); }

/* ── Badges (status) ───────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px; border-radius: 999px;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600; letter-spacing: .02em;
  background: var(--line-2); color: var(--mut); border: 1px solid transparent;
}
.badge.ok { color: var(--green-deep); background: var(--green-tint); }
.badge.warn { color: var(--amber); background: var(--amber-tint); }
.badge.err { color: var(--red); background: var(--red-tint); }

/* ── Money (matches page) — size carries weight (§2), green is brand ── */
.matches-summary { display: flex; flex-direction: column; gap: .15rem; }
.big-money { font-family: 'IBM Plex Mono', monospace; font-size: 2.3rem; font-weight: 600; line-height: 1.1; letter-spacing: -.01em; color: var(--ink); }
.match-head { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.match-amount { font-family: 'IBM Plex Mono', monospace; font-size: 1.55rem; font-weight: 600; min-width: 6rem; color: var(--green-deep); }
.match-meta { flex: 1 1 16rem; }
.match-actions { margin: .7rem 0 0; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }

/* ── Cues ──────────────────────────────────────────────────── */
.next-step {
  background: var(--night); color: var(--white); border-radius: var(--radius-sm);
  padding: .8rem 1.1rem; margin: .7rem 0 0; font-weight: 600; position: relative; overflow: hidden;
}
.next-step::before { content: ""; position: absolute; inset: -60% -20% auto auto; width: 240px; height: 240px; background: radial-gradient(circle, rgba(168, 212, 106, .18), transparent 60%); pointer-events: none; }
.attestation { border: 1px solid var(--amber); background: var(--amber-tint); padding: .9rem 1.1rem; border-radius: var(--radius-sm); font-size: .95rem; }
.human-only { border-left: 3px solid var(--amber); padding-left: .85rem; }

/* ── Address suggest listbox ───────────────────────────────── */
ul[role=listbox]#addr-suggest, #addr-suggest ul { list-style: none; margin: .35rem 0 0; padding: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); max-width: 30rem; }
#addr-suggest li[role=option] { list-style: none; }
#addr-suggest li[role=option] button, #addr-suggest li[role=option] .btn { width: 100%; justify-content: flex-start; background: transparent; color: var(--ink-2); border: none; border-radius: 8px; padding: 9px 11px; font-weight: 500; }
#addr-suggest li[role=option] button:hover { background: var(--green-tint); color: var(--green-deep); transform: none; box-shadow: none; }
#addr-suggest .muted { padding: 6px 8px; display: block; }

/* ── Empty states ──────────────────────────────────────────── */
.empty-state, .card.empty-state {
  border: 1px dashed #D3D7CE; border-radius: var(--radius); padding: 1.4rem 1.5rem; color: var(--mut);
  background: color-mix(in srgb, var(--paper) 60%, var(--paper-deep)); box-shadow: none;
}

/* ── Toast + purge banner ──────────────────────────────────── */
#toast { position: fixed; bottom: 1.2rem; right: 1.2rem; z-index: 60; }
.toast { background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: var(--radius-sm); box-shadow: 0 16px 40px -18px rgba(10, 15, 13, .6); font-size: 14px; }
.toast form { display: inline; margin-left: .75rem; }
.toast a, .toast button.linklike { color: var(--green-soft); }
.purge-banner { background: var(--red-tint); color: #8F332B; border-bottom: 1px solid #F0C9C4; padding: .6rem 34px; font-weight: 500; }
.purge-banner a { color: #8F332B; font-weight: 700; }

/* ── Live browser widget ───────────────────────────────────── */
.widget-wrap { border: 3px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.widget-wrap.agent-driving { border-color: var(--green); }
.widget-wrap.you-control { border-color: var(--green-soft); }
.widget-statusbar { display: flex; gap: .8rem; align-items: center; padding: .5rem .9rem; background: var(--paper); border-bottom: 1px solid var(--line); font-size: .85rem; }
.mode-badge { font-weight: 700; font-size: 13px; }
/* Agent working: green + a gentle pulse so it's unmistakably "thinking", not frozen. */
.agent-driving .mode-badge { color: var(--green); animation: modepulse 1.1s ease-in-out infinite; }
.you-control .mode-badge { color: var(--ink-2); }
@keyframes modepulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .agent-driving .mode-badge { animation: none; } }
.link-state { margin-left: auto; font-size: .8rem; color: var(--mut); }
canvas.browser-canvas { display: block; width: 100%; background: #111; }

/* ── Assisted filing — human controls over the live official site ── */
.assist-lede { color: var(--ink-2); max-width: 64ch; margin: 0 0 1rem; line-height: 1.5; }
.widget-url { font-size: .8rem; color: var(--mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46%; }
.assist-now { background: var(--green-tint); border-radius: 12px; padding: .7rem .95rem; margin: 1rem 0 .6rem; font-weight: 500; }
.assist-actions { margin-top: 1rem; display: grid; gap: .5rem; }
.assist-row { display: flex; gap: .6rem; align-items: center; }
.assist-row input[type=text] { flex: 1; min-width: 0; }
.assist-close { margin-top: 1rem; }
.linklike { background: none; border: none; color: var(--mut); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.linklike:hover { color: var(--ink); }
.assist-ended { text-align: center; }
.assist-help { margin-top: 1.1rem; display: grid; gap: .5rem; }
.assist-help .cta { display: inline-flex; align-items: center; gap: 8px; background: var(--green); color: #fff; border: none; border-radius: 999px; font: inherit; font-weight: 650; font-size: 15px; padding: 11px 22px; cursor: pointer; justify-self: start; transition: background .2s, transform .2s var(--ease); }
.assist-help .cta:hover { background: var(--green-hi); transform: translateY(-1px); }
.assist-ask { margin-top: .6rem; }
.small { font-size: .82rem; }
.assist-result { margin: .3rem 0 .2rem; padding: .9rem 1.05rem; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.assist-result-ok { font-weight: 650; color: var(--green-deep); margin: 0 0 .5rem; }
.assist-result-note { margin: 0 0 .5rem; color: var(--ink-2); }
.assist-fields { margin: .2rem 0 .6rem 1.1rem; }
.assist-fields b { font-weight: 600; }
.assist-yours { border-left: 3px solid var(--amber); padding-left: .85rem; margin-top: .7rem; }
.assist-yours ul { margin: .3rem 0 0 1rem; }
.assist-chat { border: 1px solid var(--line); border-radius: 12px; padding: .7rem .9rem; margin-top: .6rem; }
.assist-q { color: var(--mut); margin: 0 0 .3rem; }
.assist-a { margin: 0; }
.you-only-list { list-style: none; padding: 0; display: grid; gap: .55rem; margin: 0; }
.you-only-list li { display: flex; gap: .6rem; align-items: baseline; }
.you-only-list .badge { flex: none; }
.small-print { background: var(--paper-deep); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; align-items: center; flex-wrap: wrap; padding: 12px 16px; gap: 6px; }
  .wordmark { padding: 0; margin-right: auto; }
  .side-nav { flex-direction: row; overflow-x: auto; gap: 4px; order: 3; width: 100%; padding-top: 8px; }
  .nav-sec, .spacer { display: none; }
  .side .item { white-space: nowrap; padding: 8px 12px; }
  .scan-cta { margin: 0; padding: 10px 16px; }
  .user-chip { border-top: none; padding: 0; margin: 0; }
  .user-chip .who { display: none; }
  .app-main main, .app-footer, .pub-shell main { padding-left: 18px; padding-right: 18px; }
}
@media (max-width: 560px) {
  .app-main main { padding: 18px 14px 44px; }
  h1 { font-size: 1.5rem; }
  .big-money { font-size: 1.9rem; }
}
/* ── Guided single-track workflow (/app) ───────────────────── */
.guided { max-width: 640px; margin: 0 auto; }
.track-eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); margin-bottom: 12px; }
.track-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 30px; }
.track-card.center { text-align: center; padding: 46px 34px; }
.track-card.center h1 { margin: 10px 0 14px; }
.track-amount { font-family: 'IBM Plex Mono', monospace; font-size: 2.9rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink); line-height: 1; }
.track-source { color: var(--mut); font-size: 14.5px; margin-top: 8px; }
.lead { color: var(--mut); font-size: 15.5px; line-height: 1.6; max-width: 46ch; margin: 0 auto 24px; }
.empty-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; align-items: center; }

/* progress rail */
.rail { list-style: none; display: flex; margin: 26px 0 6px; padding: 0; }
.rail li { flex: 1; position: relative; text-align: center; padding-top: 28px; font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); }
.rail li::before, .rail li::after { content: ""; position: absolute; top: 9px; height: 2px; background: var(--line); }
.rail li::before { left: 0; width: 50%; }
.rail li::after { right: 0; width: 50%; }
.rail li:first-child::before, .rail li:last-child::after { display: none; }
.rail .dot { position: absolute; top: 2px; left: 50%; transform: translateX(-50%); width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line); z-index: 1; }
.rail .rail-done { color: var(--green-deep); }
.rail .rail-done::before, .rail .rail-done::after { background: var(--green); }
.rail .rail-done .dot { background: var(--green); border-color: var(--green); }
.rail .rail-now { color: var(--ink); font-weight: 600; }
.rail .rail-now::before { background: var(--green); }
.rail .rail-now .dot { border-color: var(--green); }
.rail .rail-now .dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--green); animation: railpulse 1.6s infinite; }
@keyframes railpulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* the single next action — the focal point */
.next-block { background: var(--green-tint); border: 1px solid #D3E3BE; border-radius: var(--radius); padding: 22px 24px; margin: 22px 0 6px; }
.next-eyebrow { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--green-deep); font-weight: 600; }
.next-title { font-family: 'Inter Tight', sans-serif; font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; margin: 9px 0 5px; color: var(--ink); }
.next-hint { color: var(--mut); font-size: 14px; margin: 0 0 18px; }
.cta-big, a.cta-big { display: inline-flex; align-items: center; gap: 8px; background: var(--green); color: #fff; border: none; border-radius: 999px; font: inherit; font-weight: 700; font-size: 15.5px; padding: 14px 28px; cursor: pointer; text-decoration: none; transition: transform .2s var(--ease), background .2s, box-shadow .2s; }
.cta-big:hover, a.cta-big:hover { background: var(--green-hi); color: #fff; transform: translateY(-1px); box-shadow: 0 14px 30px -14px rgba(70, 109, 29, .6); }
.next-block form { margin: 0; }

.later { display: block; margin: 18px 2px 0; color: var(--mut); font-size: 14px; text-decoration: none; padding: 13px 16px; border: 1px dashed #D3D7CE; border-radius: var(--radius-sm); transition: border-color .2s, color .2s; }
.later:hover { color: var(--green-deep); border-color: var(--green-soft); }
.later .later-n { font-family: 'Inter Tight', sans-serif; font-weight: 700; color: var(--ink); }
.paid-so-far { margin: 14px 4px 0; color: var(--green-deep); font-size: 13.5px; }

/* ── Landing (signed-out home) ─────────────────────────────── */
.lp-hero { position: relative; overflow: hidden; background: var(--night); color: #fff; border-radius: 26px; padding: clamp(38px, 6vw, 72px); margin-top: 6px; }
.lp-hero::before { content: ""; position: absolute; inset: -30% -8% auto auto; width: 520px; height: 520px; background: radial-gradient(circle, rgba(168, 212, 106, .20), transparent 62%); pointer-events: none; }
.lp-hero::after { content: ""; position: absolute; width: 420px; height: 420px; left: -150px; bottom: -230px; border-radius: 50%; background: rgba(70, 109, 29, .40); filter: blur(90px); pointer-events: none; }
.lp-kicker { position: relative; display: inline-flex; align-items: center; gap: 8px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--green-soft); background: rgba(168, 212, 106, .12); border: 1px solid rgba(168, 212, 106, .28); padding: 7px 14px; border-radius: 999px; margin-bottom: 22px; }
.lp-kicker i { width: 6px; height: 6px; border-radius: 50%; background: var(--green-soft); }
.lp-hero h1 { position: relative; font-family: 'Inter Tight'; font-weight: 800; font-size: clamp(33px, 5vw, 58px); line-height: 1.03; letter-spacing: -.035em; color: #fff; max-width: 17ch; margin: 0 0 18px; }
.lp-hero h1 em { font-style: normal; color: var(--green-soft); }
.lp-hero p { position: relative; color: rgba(255, 255, 255, .74); max-width: 58ch; font-size: clamp(15px, 1.3vw, 17px); line-height: 1.6; margin: 0 0 28px; }
.lp-ctas { position: relative; display: flex; gap: 12px; flex-wrap: wrap; }
.lp-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .3); }
.lp-ghost:hover { border-color: #fff; color: #fff; }

.lp-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0 8px; }
.lp-trust > div { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.lp-trust b { display: block; font-family: 'Inter Tight'; font-weight: 700; font-size: 15.5px; margin-bottom: 5px; color: var(--ink); }
.lp-trust span { font-size: 13.5px; color: var(--mut); line-height: 1.5; }

.lp-steps { margin-top: 40px; border-top: 2px solid var(--ink); }
.lp-steps .step-row { display: grid; grid-template-columns: 92px 1fr; gap: 24px; align-items: baseline; padding: 26px 4px; border-bottom: 1px solid var(--line); transition: padding-left .35s var(--ease); }
.lp-steps .step-row:hover { padding-left: 14px; }
.lp-steps .no { font-family: 'Inter Tight'; font-weight: 700; font-size: clamp(26px, 3vw, 42px); color: #D6DAD0; letter-spacing: -.03em; transition: color .3s; }
.lp-steps .step-row:hover .no { color: var(--green); }
.lp-steps h3 { font-family: 'Inter Tight'; font-size: clamp(20px, 2.3vw, 27px); font-weight: 700; margin: 0 0 6px; }
.lp-steps p { color: var(--mut); font-size: 15px; max-width: 62ch; }

.lp-final { margin-top: 40px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.lp-final p { font-family: 'Inter Tight'; font-weight: 700; font-size: clamp(20px, 2.4vw, 30px); letter-spacing: -.02em; color: var(--ink); }
@media (max-width: 760px) { .lp-trust { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .lp-steps .step-row { grid-template-columns: 1fr; gap: 6px; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
