/* ============================================================
   FY26 Vested Options Offer — visual system
   Derived from the TO THE NEW design system (ttn-mis/mis-pipeline/
   design-system): Montserrat carried by weight, white ground, ink
   #1a1a1e, magenta/cyan/purple brand hues, the signature
   cyan→purple→magenta gradient spent in exactly one place per page,
   triangle motif corner-anchored. Money figures set in JetBrains
   Mono — ledger clarity. Vimium rule: no plain-letter shortcuts.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* brand hues */
  --magenta: #ec0b7c; --magenta-600: #cc0a6b; --magenta-700: #a30857;
  --magenta-50: #fde5f1; --magenta-100: #fbb9da;
  --cyan: #05bee7; --cyan-50: #e2f7fd;
  --purple: #6e2c91; --purple-50: #f0e9f6;
  --indigo: #363a96;
  --amber: #f5a623; --amber-soft: #fdf3dd;
  --red: #eb203e;
  --gradient: linear-gradient(90deg, #05bee7 0%, #6e2c91 52%, #ec0b7c 100%);
  --gradient-diag: linear-gradient(120deg, #05bee7 0%, #6e2c91 50%, #ec0b7c 100%);

  /* neutrals */
  --ink: #1a1a1e; --g900: #212127; --g700: #404049; --g600: #595964;
  --g500: #7c7c88; --g400: #a8a8b2; --g300: #d0d0d7; --g200: #e6e6ea;
  --g100: #f2f2f5; --g50: #f8f8fa; --white: #ffffff;

  /* semantics */
  --money: #1f9d63; --money-soft: #e9f6f0;
  --warn: #b47408;

  /* shape + depth */
  --r-sm: 4px; --r-md: 8px; --r-lg: 12px; --r-xl: 20px; --r-pill: 999px;
  --shadow-xs: 0 1px 2px rgba(26,26,30,.06);
  --shadow-sm: 0 1px 3px rgba(26,26,30,.08), 0 1px 2px rgba(26,26,30,.06);
  --shadow-md: 0 4px 12px rgba(26,26,30,.08), 0 2px 4px rgba(26,26,30,.05);
  --shadow-lg: 0 12px 28px rgba(26,26,30,.12), 0 4px 8px rgba(26,26,30,.06);
  --focus: 0 0 0 3px rgba(236,11,124,.35);
  --ease: cubic-bezier(.2, 0, 0, 1);

  --sans: "Montserrat", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--g50); color: var(--ink);
  font: 15px/1.6 var(--sans);
}
a { color: var(--indigo); text-decoration: none; }
a:hover { color: var(--magenta); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
::selection { background: var(--magenta-100); }

.wrap { max-width: 66rem; margin: 0 auto; padding: 0 1.4rem; }

/* ── brand thread: the gradient hairline that opens every page ── */
.brandbar { height: 4px; background: var(--gradient); }

/* ── header ── */
header.site { background: var(--white); border-bottom: 1px solid var(--g200); position: sticky; top: 0; z-index: 20; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1.4rem .7rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .85rem; }
.brand img { height: 34px; width: auto; display: block; }
.brand .sep { width: 1px; height: 26px; background: var(--g200); }
.app { font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em; }
.who { font-size: .82rem; color: var(--g600); display: flex; gap: .9rem; align-items: center; font-weight: 500; }
.who .quiet { color: var(--g400); font-weight: 600; }
.who .quiet:hover { color: var(--magenta); }

nav.tabs { display: flex; gap: .35rem; padding: 0 1.4rem .55rem; overflow-x: auto; }
nav.tabs a {
  color: var(--g600); font-weight: 600; font-size: .85rem; white-space: nowrap;
  padding: .38rem .95rem; border-radius: var(--r-pill);
  transition: background 140ms var(--ease), color 140ms var(--ease);
}
nav.tabs a:hover { background: var(--g100); color: var(--ink); }
nav.tabs a.on { background: var(--ink); color: var(--white); }


main { padding: 2rem 1.4rem 3rem; }

/* ── type ── */
h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; margin: .1rem 0 .4rem; }
h2 { font-size: 1.02rem; font-weight: 700; letter-spacing: -.01em; margin: 2rem 0 .7rem; }
h1 + .sub, .sub { color: var(--g600); font-size: .9rem; margin: 0 0 1rem; }
.eyebrow {
  display: flex; align-items: center; gap: .5rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--g500);
}
.eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--gradient); }
h2 .eyebrow { margin-bottom: .3rem; }

/* every money figure rides the mono face */
.num, td, .card .v, .amt, .sumbar { font-variant-numeric: tabular-nums; }
.mono, td.mono, .card .v { font-family: var(--mono); }

/* ── stat cards ── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: .8rem; margin: 1.1rem 0; }
.card {
  background: var(--white); border: 1px solid var(--g200); border-radius: var(--r-lg);
  padding: .85rem 1rem .8rem; box-shadow: var(--shadow-xs);
}
.card .k { font-size: .7rem; font-weight: 700; color: var(--g500); text-transform: uppercase; letter-spacing: .09em; }
.card .v { font-size: 1.45rem; font-weight: 700; margin-top: .3rem; letter-spacing: -.01em; }
.card .v small { display: block; font-size: .72rem; color: var(--g500); font-weight: 500; margin-top: .15rem; letter-spacing: 0; }
/* a reading page keeps its cards, prose and buttons on one measure, so their right edges line up */
.measure { max-width: 46rem; }
.measure .card .k { min-height: 2.5em; display: flex; align-items: flex-end; }
.card.hero .v { color: var(--money); }
.card.warn-card { border-color: #efdcae; background: var(--amber-soft); }

/* ── the signature: settlement hero ── */
.hero-settle {
  position: relative; overflow: hidden;
  background: var(--white); border: 1px solid var(--g200); border-radius: var(--r-xl);
  padding: 1.5rem 1.7rem 1.6rem; margin: 1.2rem 0 1.4rem; box-shadow: var(--shadow-md);
}
.hero-settle::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--gradient); }
.hero-settle::after {
  content: ""; position: absolute; top: -12px; right: -30px; width: 240px; height: 150px;
  background: url("/static/brand/triangles-scatter.png") no-repeat right top / contain;
  opacity: .5; pointer-events: none;
}
.hero-settle .amount {
  font-family: var(--mono); font-weight: 700; font-size: clamp(2rem, 5.5vw, 3rem);
  letter-spacing: -.02em; line-height: 1.1; margin: .35rem 0 .15rem;
  background: var(--gradient-diag); -webkit-background-clip: text; background-clip: text; color: transparent;
  width: fit-content;
}
.hero-settle .approx { color: var(--g600); font-size: .85rem; font-weight: 500; position: relative; z-index: 1; max-width: 46rem; padding-right: 2rem; }
.hero-settle.quiet::before { background: var(--purple); }
.hero-settle.quiet .amount { background: none; color: var(--ink); font-size: 1.5rem; font-family: var(--sans); font-weight: 800; position: relative; z-index: 1; max-width: 46rem; padding-right: 3rem; }

/* ── panels ── */
.panel { background: var(--white); border: 1px solid var(--g200); border-radius: var(--r-lg); padding: 1.1rem 1.3rem; margin: 1rem 0; box-shadow: var(--shadow-xs); }
.panel.note { background: var(--cyan-50); border-color: #bfe9f6; }
.panel.warn { background: var(--amber-soft); border-color: #efdcae; color: var(--warn); }
.panel.good { background: var(--money-soft); border-color: #cfe8da; }
.error { background: #fdecec; border: 1px solid #f3c2c2; color: #9f1d1d; border-radius: var(--r-md); padding: .7rem 1rem; margin: 1rem 0; font-weight: 500; }

/* ── tables ── */
.tablewrap { overflow-x: auto; background: var(--white); border: 1px solid var(--g200); border-radius: var(--r-lg); box-shadow: var(--shadow-xs); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: right; padding: .62rem .95rem; border-bottom: 1px solid var(--g100); font-size: .88rem; }
th { background: var(--g50); color: var(--g600); font-weight: 700; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
th:first-child, td:first-child { text-align: left; }
td { font-family: var(--mono); font-size: .84rem; }
td:first-child { font-family: var(--sans); font-weight: 600; font-size: .88rem; }
tr:last-child td { border-bottom: none; }
td.dim, .dim { color: var(--g600); }
td.plain { font-family: var(--sans); }
tr.itm td { background: #fbfefc; }
tr.itm td:first-child { box-shadow: inset 3px 0 0 var(--money); }
td.money, .money { color: var(--money); font-weight: 700; }
td.recover { color: var(--purple); font-family: var(--sans); font-size: .82rem; }
tfoot td { font-weight: 700; background: var(--g50); border-top: 1px solid var(--g200); }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  background: var(--magenta); color: var(--white); border: 2px solid var(--magenta);
  border-radius: var(--r-pill); padding: .55rem 1.5rem; font: 700 .88rem/1.3 var(--sans);
  cursor: pointer; transition: all 150ms var(--ease); box-shadow: var(--shadow-xs);
}
.btn:hover { background: var(--magenta-600); border-color: var(--magenta-600); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn.secondary { background: var(--white); color: var(--ink); border-color: var(--g300); box-shadow: none; }
.btn.secondary:hover { border-color: var(--magenta); color: var(--magenta); background: var(--white); }
.btn:disabled { background: var(--g200); border-color: var(--g200); color: var(--g500); cursor: not-allowed; transform: none; box-shadow: none; }
.btn.small { padding: .3rem .9rem; font-size: .76rem; border-width: 1.5px; }
.actions { display: flex; gap: .8rem; margin: 1.5rem 0; flex-wrap: wrap; align-items: center; }

/* ── forms ── */
input[type="number"], input[type="text"], input[type="search"], select, textarea {
  font: 500 .9rem/1.4 var(--sans); padding: .55rem .75rem; border: 1.5px solid var(--g300);
  border-radius: var(--r-md); background: var(--white); color: var(--ink);
  transition: border-color 140ms var(--ease), box-shadow 140ms var(--ease);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--magenta); box-shadow: var(--focus); }
input[type="number"] { width: 9.5rem; text-align: right; font-family: var(--mono); font-weight: 500; }
textarea { width: 100%; }
label.check { display: flex; gap: .65rem; align-items: flex-start; margin: .6rem 0; font-size: .88rem; cursor: pointer; }
label.check input { margin-top: .25rem; flex: none; width: 1.05rem; height: 1.05rem; accent-color: var(--magenta); }

/* choice cards on the election form */
.choice { display: grid; gap: .7rem; margin: 1rem 0; }
.choice label {
  display: flex; gap: .8rem; align-items: flex-start; cursor: pointer;
  background: var(--white); border: 1.5px solid var(--g200); border-radius: var(--r-lg);
  padding: .95rem 1.15rem; transition: border-color 140ms var(--ease), box-shadow 140ms var(--ease);
}
.choice label:hover { border-color: var(--g400); }
.choice label:has(input:checked) { border-color: var(--magenta); box-shadow: 0 0 0 1px var(--magenta), var(--shadow-sm); }
.choice input { margin-top: .3rem; accent-color: var(--magenta); width: 1.05rem; height: 1.05rem; flex: none; }
.choice strong { font-weight: 700; }
.choice .hint { color: var(--g600); font-size: .84rem; font-weight: 400; }

/* live election summary */
.sumbar {
  display: flex; align-items: baseline; gap: 1.6rem; flex-wrap: wrap;
  background: var(--white); color: var(--ink); border: 1px solid var(--g200); border-radius: var(--r-lg);
  padding: .9rem 1.3rem; margin: 1rem 0; box-shadow: var(--shadow-xs);
}
.sumbar .lbl { font-size: .64rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--g500); display: block; }
.sumbar .val { font-family: var(--mono); font-weight: 700; font-size: 1.3rem; }
.sumbar .val.gain { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sumbar .inr { font-size: .78rem; color: var(--g600); flex-basis: 100%; }

/* status pills */
.status { display: inline-block; border-radius: var(--r-pill); padding: .16rem .7rem; font-size: .7rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.status.participate { background: var(--money-soft); color: var(--money); }
.status.decline { background: var(--g100); color: var(--g600); }
.status.pending { background: var(--amber-soft); color: var(--warn); }

.windowstrip { font-size: .84rem; color: var(--g600); margin: .2rem 0 1.1rem; font-weight: 500; }
.windowstrip strong { color: var(--ink); }

/* recovery chips for underwater tiers */
.chips { display: flex; gap: .5rem; flex-wrap: wrap; margin: .6rem 0 0; }
.chip { border: 1px solid var(--purple-50); background: var(--purple-50); color: var(--purple); border-radius: var(--r-pill); padding: .2rem .75rem; font-size: .76rem; font-weight: 600; }

/* receipt steps — a real sequence, so numbers carry meaning */
.steps { counter-reset: s; display: grid; gap: .8rem; margin: 1rem 0; }
.steps > div { display: flex; gap: .9rem; background: var(--white); border: 1px solid var(--g200); border-radius: var(--r-lg); padding: .9rem 1.1rem; }
.steps > div::before {
  counter-increment: s; content: counter(s);
  flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--gradient-diag); color: var(--white);
  font: 700 .8rem/1.7rem var(--mono); text-align: center;
}


/* ── welcome / sign-in / picker pages ── */
.gate { min-height: 100svh; display: grid; place-items: center; background: var(--g50); position: relative; overflow: hidden; padding: 2rem 1.2rem; }
.gate::before { content: ""; position: fixed; inset: 0 0 auto 0; height: 4px; background: var(--gradient); z-index: 2; }
/* (no corner motif here: the scatter PNG carries a white ground, which only
   disappears on white surfaces — it lives on .hero-settle instead) */
.gate-card {
  position: relative; z-index: 1; width: 100%; max-width: 27rem;
  background: var(--white); border: 1px solid var(--g200); border-radius: var(--r-xl);
  padding: 2.2rem 2.2rem 1.9rem; box-shadow: var(--shadow-lg); text-align: left;
}
.gate-card img.logo { height: 44px; margin-bottom: 1.4rem; }
.gate-card h1 { font-size: 1.45rem; margin: .5rem 0 .5rem; }
.gate-card p { color: var(--g600); font-size: .9rem; margin: .4rem 0 1.2rem; }
.btn.google { width: 100%; background: var(--ink); border-color: var(--ink); padding: .7rem; font-size: .92rem; }
.btn.google:hover { background: var(--g900); border-color: var(--g900); }
.gate-foot { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--g100); color: var(--g500); font-size: .76rem; }

/* local persona picker */
.picker { max-width: 30rem; }
.picker .plist { max-height: 21rem; overflow-y: auto; border: 1px solid var(--g200); border-radius: var(--r-md); margin-top: .8rem; }
.picker .plist button {
  display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 1rem;
  background: var(--white); border: none; border-bottom: 1px solid var(--g100);
  padding: .6rem .9rem; font: 600 .85rem var(--sans); color: var(--ink); cursor: pointer; text-align: left;
}
.picker .plist button:hover { background: var(--magenta-50); }
.picker .plist button small { color: var(--g500); font-weight: 500; font-family: var(--mono); font-size: .72rem; }
.picker .grp { background: var(--g50); padding: .35rem .9rem; font-size: .64rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--g500); border-bottom: 1px solid var(--g100); }

/* ── prose (the offer) ── */
.prose { max-width: 46rem; padding: 1.6rem 1.9rem; }
.prose h2 { font-size: 1.05rem; margin: 1.3rem 0 .45rem; }
.prose p { margin: .7rem 0; color: var(--g700); font-size: .92rem; }
.prose strong { color: var(--ink); }
.prose > *:first-child { margin-top: 0; }

/* ── footer ── */
footer { margin-top: 2.5rem; }
footer .gbar { height: 3px; background: var(--gradient); opacity: .85; }
footer .inner { color: var(--g500); font-size: .78rem; padding: 1.1rem 1.4rem 2.2rem; background: var(--white); border-top: 1px solid var(--g200); }
footer p { margin: .25rem 0; max-width: 66rem; margin-inline: auto; }

/* ── responsive ── */
@media (max-width: 680px) {
  h1 { font-size: 1.3rem; }
  main { padding: 1.4rem 1rem 2.4rem; }
  .bar { padding-inline: 1rem; }
  .brand img { height: 26px; }
  .brand .sep { display: none; }
  .app { white-space: nowrap; }
  nav.tabs { padding-inline: 1rem; }
  th, td { padding: .5rem .6rem; }
  .hero-settle { padding: 1.2rem 1.2rem 1.3rem; }
  .hero-settle::after { display: none; }
  /* stacking tables: each row becomes a small card */
  table.stack thead { display: none; }
  table.stack tr { display: grid; grid-template-columns: 1fr auto; gap: .1rem .8rem; padding: .7rem .9rem; border-bottom: 1px solid var(--g100); }
  table.stack td { display: flex; justify-content: space-between; gap: 1rem; border: none; padding: .12rem 0; text-align: right; flex-wrap: wrap; }
  table.stack td::before { content: attr(data-l); font: 600 .68rem/1.8 var(--sans); text-transform: uppercase; letter-spacing: .07em; color: var(--g500); flex: none; }
  table.stack td.recover { display: block; text-align: left; }
  table.stack td.recover::before { display: block; }
  table.stack td:first-child { grid-column: 1 / -1; font-size: .95rem; }
  table.stack td:first-child::before { display: none; }
  tr.itm td:first-child { box-shadow: none; }
  table.stack tr.itm { box-shadow: inset 3px 0 0 var(--money); }
  /* the decision form's row carries an input: one cell per line, label left, control right */
  table.stack.decide td { grid-column: 1 / -1; }
  table.stack.decide td.offer { justify-content: space-between; }
  table.stack.decide td.offer input[type=number] { width: 7rem; }
  .sumbar { gap: 1rem; }
}

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

/* the offer cell on the decision form: one line on desktop, wraps on phones; the nav never hides a tab */
td.offer { white-space: nowrap; }
@media (max-width: 680px) {
  nav.tabs { flex-wrap: wrap; overflow: visible; }
  td.offer { white-space: normal; }
  td.offer input[type=number] { width: 6.5rem; }
}
