/* ==========================================================================
   Unplug creators: program page (/creators/) + dashboard (/creators/dashboard/)
   Layers on ../styles.css tokens. Two registers:
     - the program page is marketing register (fluid headings, the reveal)
     - the dashboard is product register (fixed rem, one loud number, no cards
       unless tappable)
   No side-stripe borders, no gradient text, no nested cards.
   ========================================================================== */

/* ------------------------------------------------------------ Shared bits */
.field { display: grid; gap: 6px; }
.field label { font-size: var(--text-xs); font-weight: 700; color: var(--text-2); letter-spacing: 0.02em; }
.field input[type="email"],
.field input[type="password"],
.field input[type="text"],
.field select {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 1rem;              /* 16px keeps iOS from zooming on focus */
  transition: border-color var(--dur-fast) ease;
}
.field input:focus-visible, .field select:focus-visible {
  outline: 2px solid var(--emerald-bright); outline-offset: 1px; border-color: var(--emerald-dim);
}
.field input[aria-invalid="true"] { border-color: oklch(0.72 0.16 25); }
.field .help { font-size: var(--text-xs); color: var(--text-3); }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { margin-top: 4px; accent-color: var(--emerald); width: 18px; height: 18px; flex: none; }
.check span { color: var(--text-2); font-size: var(--text-sm); line-height: 1.5; }
.check a { color: var(--emerald-bright); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--emerald-dim); }

.msg { font-size: var(--text-sm); line-height: 1.5; margin: 0; }
.msg.err { color: oklch(0.78 0.15 25); }
.msg.ok { color: var(--emerald-bright); }
.msg.quiet { color: var(--text-3); }

.btn-block { width: 100%; justify-content: center; }
.btn-quiet { background: none; border: none; color: var(--text-3); font-weight: 700; font-size: var(--text-sm); padding: 8px 4px; cursor: pointer; }
.btn-quiet:hover { color: var(--emerald-bright); }
.btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }
.btn:disabled { opacity: 0.5; pointer-events: none; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ============================================================ Program page */

/* Hero: the deal on the left, the earnings reveal on the right. Reuses
   .hero/.hero-grid/.reclaim/.slider/.reveal from styles.css. */
.creators-hero h1 { max-width: 15ch; }
.hero-deal { margin-top: var(--space-md); font-size: var(--text-lg); color: var(--text); max-width: 34ch; line-height: 1.35; }
.hero-deal b { color: var(--emerald); font-weight: 800; }

/* Calculator specifics on top of .reclaim */
.calc-worth { display: flex; gap: var(--space-xl); flex-wrap: wrap; margin-top: 6px; }
.calc-worth .worth { display: grid; gap: 2px; }
.calc-worth output {
  font-family: var(--font-display); font-weight: 800; line-height: 1;
  font-size: clamp(2.2rem, 1.3rem + 3.4vw, 3.1rem); letter-spacing: -0.02em;
  color: var(--amber);
}
.calc-worth .unit { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.calc-worth-sub { margin-top: 10px; font-size: var(--text-sm); color: var(--text-2); }

.ladder { width: 100%; border-collapse: collapse; margin-top: var(--space-md); }
.ladder th, .ladder td { padding: 9px 0; text-align: right; font-variant-numeric: tabular-nums; }
.ladder th:not(:first-child), .ladder td:not(:first-child) { padding-left: var(--space-md); }
.ladder thead th { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); border-bottom: 1px solid var(--border-soft); }
.ladder th:first-child, .ladder td:first-child { text-align: left; }
.ladder tbody th { font-weight: 700; color: var(--text); font-size: var(--text-sm); }
.ladder tbody td { color: var(--text-2); font-size: var(--text-sm); border-bottom: 1px solid var(--border-soft); }
.ladder tbody tr:last-child td, .ladder tbody tr:last-child th { border-bottom: 0; }
.ladder tbody th { border-bottom: 1px solid var(--border-soft); }
.ladder td.yr { font-family: var(--font-display); font-weight: 800; color: var(--amber-bright); font-size: var(--text-base); }

.you-row { display: flex; align-items: baseline; gap: var(--space-xs); flex-wrap: wrap; margin-top: var(--space-sm); }
.you-row label { font-size: var(--text-xs); font-weight: 700; color: var(--text-2); letter-spacing: 0.02em; }
.you-row input {
  width: 7ch; padding: 8px 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  font: inherit; font-size: 1rem; font-variant-numeric: tabular-nums; text-align: right;
}
.you-row input:focus-visible { outline: 2px solid var(--emerald-bright); outline-offset: 1px; }
.you-row output { font-size: var(--text-sm); color: var(--text-2); }
.you-row output b { color: var(--amber-bright); font-variant-numeric: tabular-nums; }
.calc-hint { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--text-3); line-height: 1.5; }
.calc-hint b { color: var(--text-2); font-weight: 700; }
.calc-year { margin-top: 10px; font-size: var(--text-base); color: var(--text-2); }
.calc-year b { color: var(--amber-bright); font-family: var(--font-display); font-weight: 800; font-size: 1.2em; letter-spacing: -0.01em; }
.calc-per { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--text-2); }
.calc-per b { color: var(--text); font-variant-numeric: tabular-nums; }
.calc-guard { margin-top: var(--space-md); padding-top: var(--space-sm); border-top: 1px solid var(--border-soft); font-size: var(--text-xs); color: var(--text-3); line-height: 1.5; }

/* The deal strip: three facts on a hairline band, no cards. */
.deal { padding-block: 0; }
.deal-strip {
  display: grid; grid-template-columns: 1fr;
  border-block: 1px solid var(--border-soft);
}
.deal-fact { padding: var(--space-md) 0; }
.deal-fact + .deal-fact { border-top: 1px solid var(--border-soft); }
.deal-fact b { display: block; font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); color: var(--text); letter-spacing: -0.02em; line-height: 1.05; }
.deal-fact > span { display: block; margin-top: 6px; font-size: var(--text-sm); color: var(--text-2); }
/* Live-term spans nested inside the bold fact must render as part of it. */
.deal-fact b span { display: inline; font-size: inherit; color: inherit; margin: 0; }
.deal-foot { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--text-3); max-width: 70ch; }
.deal-foot b { color: var(--text-2); font-weight: 700; }
@media (min-width: 720px) {
  .deal-strip { grid-template-columns: repeat(3, 1fr); column-gap: var(--space-xl); }
  .deal-fact + .deal-fact { border-top: 0; border-left: 1px solid var(--border-soft); padding-left: var(--space-lg); }
}

/* Sign-up / sign-in: one panel, one state at a time. */
.getlink { scroll-margin-top: 84px; }
.getlink-grid { display: grid; gap: var(--space-xl); grid-template-columns: 1fr; align-items: start; }
.getlink-copy h2 { max-width: 16ch; }
.getlink-copy .lead { margin-top: var(--space-sm); }
.getlink-list { margin-top: var(--space-lg); display: grid; gap: var(--space-sm); padding: 0; list-style: none; }
.getlink-list li { display: grid; grid-template-columns: auto 1fr; gap: var(--space-sm); align-items: start; color: var(--text-2); font-size: var(--text-base); }
.getlink-list .ic { width: 22px; height: 22px; color: var(--emerald); flex: none; margin-top: 2px; }
.getlink-list b { color: var(--text); font-weight: 700; }
.auth-panel {
  background: var(--surface-1); border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  padding: clamp(var(--space-md), 3vw, var(--space-lg));
  display: grid; gap: var(--space-sm);
}
.auth-panel h3 { font-size: var(--text-lg); color: var(--text); }
.auth-panel form { display: grid; gap: var(--space-sm); }
.auth-row { display: grid; gap: var(--space-sm); grid-template-columns: 1fr; }
.auth-actions { display: grid; gap: var(--space-2xs); margin-top: var(--space-2xs); }
/* Provider buttons: same set, order, labels and look as the app's
   "Choose how to sign in" screen (auth_method_selection_view.dart).
   Google keeps its required white/#DADCE0 treatment, Apple its black. */
.providers { display: grid; gap: 12px; }
.btn-provider {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; height: 52px; border-radius: var(--radius-md);
  border: 1px solid transparent; cursor: pointer;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  transition: filter var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out-quart);
}
.btn-provider:active { transform: scale(0.99); }
.btn-provider[aria-busy="true"] { opacity: 0.7; pointer-events: none; }
.btn-provider .pico { flex: none; display: block; height: 20px; width: 20px; }
.btn-google { background: #fff; color: #3C4043; border-color: #DADCE0; }
.btn-google:hover { filter: brightness(0.97); }
.btn-apple { background: #000; color: #fff; }
.btn-apple:hover { filter: brightness(1.35); }
.btn-apple .pico { width: 17px; }
#providers .auth-or { margin-top: var(--space-sm); }
#providers .webview-note, #providers .msg { margin-top: var(--space-2xs); }

.auth-or { display: flex; align-items: center; gap: var(--space-xs); color: var(--text-3); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.12em; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--border-soft); }
.auth-switch { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-md); justify-content: space-between; }
.auth-fine { font-size: var(--text-xs); color: var(--text-3); line-height: 1.5; }
.auth-fine a { color: var(--emerald-bright); }
.webview-note { font-size: var(--text-xs); color: var(--text-3); }
@media (min-width: 920px) {
  .getlink-grid { grid-template-columns: 0.9fr 1.1fr; gap: var(--space-3xl); }
  .auth-row { grid-template-columns: 1fr 1fr; }
}

/* What you're sharing: text + one loud proof number, no box. */
.sharing-grid { display: grid; gap: var(--space-xl); grid-template-columns: 1fr; align-items: center; }
.proof { display: grid; gap: 2px; }
.proof-line { font-size: var(--text-sm); color: var(--text-2); }
.proof-big { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 1.4rem + 5vw, 4.4rem); color: var(--amber); line-height: 1; letter-spacing: -0.03em; }
.proof-big small { font-size: 0.4em; color: var(--amber-bright); font-weight: 700; letter-spacing: 0; margin-left: 8px; }
.proof-sub { font-size: var(--text-base); color: var(--text-2); }
.proof-sub b { color: var(--text); }
@media (min-width: 920px) { .sharing-grid { grid-template-columns: 1.1fr 0.9fr; } }

/* Dashboard preview: one panel (it previews a real surface), example data. */
.preview-wrap { position: relative; margin-top: var(--space-xl); }
.preview-tag { position: absolute; top: -12px; left: var(--space-md); font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); background: var(--bg); padding: 4px 10px; border: 1px solid var(--border-soft); border-radius: 99px; }

/* Materials teaser */
.materials-row { display: flex; flex-wrap: wrap; gap: var(--space-sm); align-items: center; margin-top: var(--space-lg); }

/* ============================================================== Dashboard */
/* Product register: fixed rem type, one loud number on the bare background. */
.dash-body { color: var(--text-2); }
.dash { width: 100%; max-width: 760px; margin-inline: auto; padding: 0 var(--space-md) var(--space-3xl); }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: 68px; }
.dash-head .brand-logo { height: 26px; }
.dash-head .who { display: flex; align-items: center; gap: var(--space-sm); font-size: 0.875rem; color: var(--text-3); }
.dash-head .who b { color: var(--text-2); font-weight: 700; max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.banner {
  margin-top: var(--space-md);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid oklch(0.83 0.15 78 / 0.45);
  background: oklch(0.83 0.15 78 / 0.09);
  color: var(--amber-bright);
  font-size: 0.9375rem; line-height: 1.5;
}
.banner b { color: var(--amber-bright); font-weight: 800; }

.dash-grid { display: grid; gap: var(--space-2xl); grid-template-columns: 1fr; margin-top: var(--space-xl); }
.dash-main { display: grid; gap: var(--space-2xl); align-content: start; }
.dash-side { display: grid; gap: var(--space-2xl); align-content: start; }

.overline { font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }

/* The hero number */
.hero-num { display: grid; gap: 6px; }
.hero-num .value {
  font-family: var(--font-display); font-weight: 800; font-size: 3.25rem; line-height: 1;
  letter-spacing: -0.03em; color: var(--amber); font-variant-numeric: tabular-nums;
}
.hero-num .value.months { color: var(--text); }
.hero-num .sub { font-size: 0.9375rem; color: var(--text-2); }
.hero-num .sub b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.hero-num .actions { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-xs); align-items: center; }

/* Link block */
.linkblock { display: grid; gap: var(--space-sm); }
.linkblock .code {
  font-family: var(--font-display); font-weight: 800; font-size: 2.25rem; letter-spacing: 0.14em;
  color: var(--text); line-height: 1; padding-left: 0.07em; /* optical: offset the tracking */
}
.linkblock .code.skeleton { width: 8ch; height: 2.25rem; }
.linkrow { display: grid; gap: var(--space-2xs); grid-template-columns: 1fr; }
.linkrow input {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface-1); color: var(--text-2); font: inherit; font-size: 0.9375rem;
  text-overflow: ellipsis;
}
.linkrow input:focus-visible { outline: 2px solid var(--emerald-bright); outline-offset: 1px; }
.linkbtns { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.linkbtns .btn { padding: 11px 16px; font-size: 0.9375rem; }
.link-note { font-size: 0.8125rem; color: var(--text-3); line-height: 1.5; max-width: 60ch; }
.link-note b { color: var(--text-2); font-weight: 700; }
@media (min-width: 560px) { .linkrow { grid-template-columns: 1fr auto; align-items: center; } }

/* Handle claim: prefix + input in one field */
.handle { display: grid; gap: var(--space-xs); padding-top: var(--space-sm); border-top: 1px solid var(--border-soft); }
.handle-field { display: flex; align-items: center; gap: 2px; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 14px; }
.handle-field .prefix { color: var(--text-3); font-size: 0.9375rem; white-space: nowrap; }
.handle-field input { flex: 1; min-width: 8ch; background: none; border: none; padding: 12px 0; color: var(--text); font: inherit; font-size: 0.9375rem; text-transform: lowercase; }
.handle-field input:focus { outline: none; }
.handle-field:focus-within { outline: 2px solid var(--emerald-bright); outline-offset: 1px; }
.handle .also { font-size: 0.8125rem; color: var(--text-3); }
.handle .also b { color: var(--text-2); font-weight: 700; letter-spacing: 0.06em; }

/* People list: rows, hairlines, no boxes */
.people { display: grid; gap: var(--space-sm); }
.people-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-sm); }
.people-head .count { font-size: 0.875rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.people-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--border-soft); }
.person { display: grid; grid-template-columns: 1fr auto; gap: 4px var(--space-md); align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
.person .name { color: var(--text); font-weight: 700; font-size: 0.9375rem; }
.person .meta { font-size: 0.8125rem; color: var(--text-3); }
.person .earned { font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--text); font-variant-numeric: tabular-nums; grid-row: span 2; text-align: right; }
.person .earned.zero { color: var(--text-3); font-weight: 700; }
.status { display: inline-block; font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--border); color: var(--text-3); vertical-align: middle; margin-left: 8px; }
.status.subscribed { color: var(--emerald-bright); border-color: var(--emerald-dim); }
.status.reversed { color: oklch(0.78 0.15 25); border-color: oklch(0.5 0.12 25); }
.people-more { padding-top: var(--space-xs); font-size: 0.8125rem; color: var(--text-3); }
.empty { padding: var(--space-md) 0; color: var(--text-2); font-size: 0.9375rem; line-height: 1.55; max-width: 48ch; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.empty b { color: var(--text); }

/* Payouts: one state at a time */
.payouts { display: grid; gap: var(--space-sm); scroll-margin-top: 24px; }
.payouts .state-title { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; color: var(--text); letter-spacing: -0.01em; }
.payouts .state-body { font-size: 0.9375rem; color: var(--text-2); line-height: 1.55; max-width: 48ch; }
.payouts .state-body b { color: var(--text); font-variant-numeric: tabular-nums; }
.payouts .actions { display: flex; flex-wrap: wrap; gap: var(--space-xs); align-items: center; margin-top: var(--space-2xs); }
.payouts .held { display: grid; gap: 2px; font-size: 0.875rem; color: var(--text-3); }
.payouts .held b { color: var(--text-2); font-variant-numeric: tabular-nums; font-weight: 700; }

/* Materials + footer of the dashboard */
.dash-more { display: grid; gap: var(--space-xs); }
.dash-more a { color: var(--emerald-bright); font-weight: 700; font-size: 0.9375rem; }
.dash-fine { font-size: 0.8125rem; color: var(--text-3); line-height: 1.5; max-width: 60ch; }
.dash-fine a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }

/* Loading skeletons */
.skeleton { display: block; border-radius: 8px; background: linear-gradient(90deg, var(--surface-1) 0%, var(--surface-2) 50%, var(--surface-1) 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.skeleton.line { height: 14px; width: 60%; }
.skeleton.big { height: 3.25rem; width: 7ch; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (min-width: 960px) {
  .dash { max-width: 1040px; }
  .dash-grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--space-3xl); }
  .dash-side { position: sticky; top: 24px; }
}

/* Dashboard preview reuses the dashboard classes at a smaller scale. */
.preview .hero-num .value { font-size: 2.5rem; }
.preview .linkblock .code { font-size: 1.75rem; }
.preview { background: var(--surface-1); border: 1px solid var(--border-soft); border-radius: var(--radius-xl); padding: clamp(var(--space-md), 3vw, var(--space-xl)); display: grid; gap: var(--space-lg); }

@media (prefers-reduced-motion: reduce) {
  .skeleton { animation: none; }
}
