/* TRC Voice Program — studio-ledger design system.
   Paper canvas, ink rail, amber tally light. */

:root {
  --paper: #FAF7F1;
  --panel: #FFFFFF;
  --ink: #1B1611;
  --dim: #6E6558;
  --line: #E7DFD0;
  --amber: #E8930C;
  --amber-soft: #FBEDD6;
  --amber-deep: #A96706;
  --dark: #171310;
  --dark-panel: #221D17;
  --dark-ink: #F4EFE6;
  --dark-dim: #9A9083;
  --dark-line: #332C24;
  --ok: #2F9E5F;
  --ok-soft: #DDF1E5;
  --warn-soft: #FBEDD6;
  --bad: #B4462B;
  --bad-soft: #F6E1DB;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 999px;

  --rail: 258px;
  --shadow-card: 0 1px 2px rgba(27, 22, 17, .04), 0 8px 24px -18px rgba(27, 22, 17, .28);

  --display: "Space Grotesk", "Helvetica Neue", Helvetica, sans-serif;
  --ui: "Inter", "Helvetica Neue", Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 15px;
  line-height: 1.55;
  /* ss01 is the crossbarred "1" the Pencil comps are set in. Keep it. */
  font-feature-settings: "cv05" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display { font-family: var(--display); letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; }
h2 { font-size: 21px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 12px; }
a { color: inherit; }

.num { font-variant-numeric: tabular-nums; }

.i-svg { width: 18px; height: 18px; flex: none; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  border-radius: 4px;
}
.rail :focus-visible, .stat-dark :focus-visible { outline-color: #F5B44A; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Shell ────────────────────────────────────────────────────────────── */
/* The gradient paints the rail's column for the full document height, so the
   ink rail never stops short on a long page. */
.shell {
  display: flex;
  min-height: 100vh;
  background: linear-gradient(to right, var(--dark) 0, var(--dark) var(--rail), var(--paper) var(--rail));
}

.rail {
  width: var(--rail);
  flex: 0 0 var(--rail);
  background: var(--dark);
  color: var(--dark-ink);
  padding: 30px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 34px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.rail .brand-eyebrow {
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dark-dim);
  font-weight: 600;
}
.rail .brand-name { font-family: var(--display); font-size: 25px; font-weight: 700; letter-spacing: -.02em; margin-top: 3px; }
.rail nav { display: flex; flex-direction: column; gap: 2px; margin-top: auto; margin-bottom: auto; }
.rail nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  min-height: 44px;
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--dark-dim);
  font-size: 14.5px;
  font-weight: 500;
  transition: background-color .14s ease, color .14s ease;
}
.rail nav a:hover { color: var(--dark-ink); background: rgba(255,255,255,.045); }
.rail nav a[aria-current="page"] { background: var(--dark-panel); color: var(--dark-ink); font-weight: 600; }
.rail nav a[aria-current="page"] svg { color: var(--amber); }
.rail nav svg { width: 18px; height: 18px; flex: none; opacity: .95; }

.railcard {
  display: flex; align-items: center; gap: 12px;
  background: var(--dark-panel);
  border-radius: var(--r-md);
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
}
.railcard .who { min-width: 0; }
.railcard .who b { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.railcard .who span { display: block; font-size: 12px; color: var(--dark-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.avatar {
  width: 36px; height: 36px; flex: none;
  border-radius: var(--r-pill);
  background: var(--amber);
  color: #2A1B05;
  display: grid; place-items: center;
  font-family: var(--display);
  font-size: 13px; font-weight: 700;
}
.avatar.sm { width: 30px; height: 30px; font-size: 11.5px; background: var(--amber-soft); color: var(--amber-deep); }

.main { flex: 1 1 auto; min-width: 0; padding: 28px clamp(18px, 3vw, 44px) 72px; }
.pagehead { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.pagehead .sub { color: var(--dim); font-size: 14.5px; margin-top: 4px; }
.pagehead .spacer { flex: 1 1 auto; }

.railtoggle { display: none; }

/* ── Cards ────────────────────────────────────────────────────────────── */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
}
.card + .card { margin-top: 18px; }
.card > h2 { margin-bottom: 16px; }
.cardhead { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.cardhead .spacer { flex: 1 1 auto; }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }

/* ── Hero stat (dark) ─────────────────────────────────────────────────── */
.stat-dark {
  background: var(--dark);
  color: var(--dark-ink);
  border-radius: var(--r-lg);
  padding: 26px 28px 24px;
}
.stat-dark .label, .label {
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 600; color: var(--dark-dim);
}
.card .label { color: var(--dim); }
.stat-dark .big {
  font-family: var(--display);
  font-size: clamp(46px, 6.5vw, 62px);
  font-weight: 700; line-height: 1; letter-spacing: -.035em;
  margin-top: 14px;
}
.stat-dark .big small { font-family: var(--ui); font-size: 17px; font-weight: 400; color: var(--dark-dim); letter-spacing: 0; margin-left: 10px; }
.stat-dark .foot { font-size: 13.5px; color: var(--dark-dim); margin-top: 12px; }
.wavechip {
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
  color: var(--amber); background: rgba(232,147,12,.13);
  border-radius: var(--r-pill); padding: 5px 11px;
}

.bar { height: 9px; border-radius: var(--r-pill); background: rgba(255,255,255,.09); margin-top: 18px; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: var(--r-pill); background: var(--amber); }
.bar.light { background: var(--line); }
.bar.light > i { background: var(--amber); }

/* ── Stat tiles ───────────────────────────────────────────────────────── */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 18px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; box-shadow: var(--shadow-card); }
.tile b { display: block; font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.tile.accent b { color: var(--amber); }
.tile span { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-weight: 600; margin-top: 7px; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font-family: var(--ui); font-size: 14.5px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: background-color .14s ease, border-color .14s ease, color .14s ease;
}
.btn:hover { background: #F6F1E8; }
.btn.primary { background: var(--amber); border-color: var(--amber); color: #2A1B05; }
.btn.primary:hover { background: #D68609; border-color: #D68609; }
.btn.ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn.ink:hover { background: #322921; border-color: #322921; }
.btn.sm { min-height: 34px; padding: 0 13px; font-size: 13px; border-radius: var(--r-sm); }
.btn.danger { color: var(--bad); border-color: #EAD4CC; }
.btn.danger:hover { background: var(--bad-soft); }
/* Reads as a label, not a control: same outlined shape as the comp, but no
   hover, no pointer, and still announced to screen readers. */
.factchip {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  color: var(--dim); font-size: 15px;
}
.btn.link { background: none; border-color: transparent; color: var(--dim); padding: 0 4px; text-decoration: underline; text-underline-offset: 3px; }
.btn.link:hover { background: none; color: var(--ink); }
.btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn.danger[aria-pressed="true"] { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn.block { width: 100%; }

.btnrow { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── Filters / chips ──────────────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 15px;
  border-radius: var(--r-pill); border: 1px solid var(--line);
  background: var(--panel); color: var(--ink);
  font-size: 13.5px; font-weight: 600; text-decoration: none;
  transition: background-color .14s ease, color .14s ease, border-color .14s ease;
}
.chip:hover { background: #F6F1E8; }
.chip[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.pill {
  display: inline-flex; align-items: center; padding: 4px 11px;
  border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600;
  background: var(--amber-soft); color: var(--amber-deep);
}
.pill.neutral { background: #F2ECE1; color: var(--dim); }
.pill.ok { background: var(--ok-soft); color: #1D7544; }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.ink { background: #F2ECE1; color: var(--ink); }

/* ── Tables ───────────────────────────────────────────────────────────── */
.tablewrap { overflow-x: auto; margin: 0 -24px; padding: 0 24px; }
table.data { width: 100%; border-collapse: collapse; min-width: 640px; }
table.data th {
  text-align: left; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--dim); font-weight: 600; padding: 0 14px 12px 0; white-space: nowrap;
}
table.data td { padding: 14px 14px 14px 0; border-top: 1px solid var(--line); vertical-align: middle; font-size: 14.5px; }
table.data tr:first-child td { border-top: 1px solid var(--line); }
table.data td.num, table.data th.num { font-variant-numeric: tabular-nums; }
table.data td.right, table.data th.right { text-align: right; padding-right: 0; }
.who-cell { display: flex; align-items: center; gap: 11px; min-width: 0; }
.who-cell b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Slot grid (the signature element) ────────────────────────────────── */
.weekgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.daycol { min-width: 0; }
.daycol .dow { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-weight: 600; text-align: center; }
.daycol .dom { font-family: var(--display); font-size: 19px; font-weight: 700; text-align: center; margin: 2px 0 10px; font-variant-numeric: tabular-nums; }
.slot {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 44px; margin-bottom: 8px;
  border-radius: var(--r-md);
  font-family: var(--ui); font-size: 13.5px; font-weight: 600;
  font-variant-numeric: tabular-nums;
  border: 1px solid transparent; cursor: pointer;
  text-decoration: none;
  transition: background-color .14s ease, border-color .14s ease, transform .14s ease;
}
.slot:hover { transform: translateY(-1px); }
.slot.morning { background: var(--amber-soft); border-color: #F3D7A6; color: var(--amber-deep); }
.slot.morning:hover { background: #F8E3BF; }
.slot.night { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.slot.night:hover { background: #322921; }
.slot.empty { background: #F1EBE0; border-color: #F1EBE0; color: #B4A995; cursor: default; }
.slot.empty:hover { transform: none; }
.slot.mine { position: relative; box-shadow: inset 0 0 0 2px var(--ok); }
.slot.full { opacity: .45; cursor: not-allowed; }
.slot.full:hover { transform: none; }
.legend { display: flex; gap: 18px; font-size: 13px; color: var(--dim); align-items: center; }
.legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 7px; }
.legend i.m { background: var(--amber); }
.legend i.n { background: var(--ink); }

/* ── Coverage strip (dark) ────────────────────────────────────────────── */
.coverage { background: var(--dark); color: var(--dark-ink); border-radius: var(--r-lg); padding: 24px 26px; margin-top: 18px; }
.coverage .head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.coverage h2 { font-size: 19px; }
.coverage .note { color: var(--dark-dim); font-size: 13.5px; margin-left: auto; }
.covrow { display: flex; flex-wrap: wrap; gap: 8px; }
.cov {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 34px; padding: 0 13px;
  border-radius: var(--r-sm);
  background: var(--dark-panel); border: 1px solid var(--dark-line);
  color: var(--dark-ink); font-size: 13px; font-weight: 600; text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.cov small { color: var(--dark-dim); font-weight: 500; }
.cov.gap { border-color: var(--amber); color: var(--amber); background: rgba(232,147,12,.09); }
.cov.gap small { color: var(--amber); opacity: .8; }

/* ── Forms ────────────────────────────────────────────────────────────── */
.field { margin-bottom: 18px; }
.field > label, .fieldlabel { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; }
.field .hint { font-size: 13px; color: var(--dim); margin-top: 6px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number],
input[type=date], input[type=time], select, textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  font-family: var(--ui);
  font-size: 16px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
textarea { min-height: 92px; resize: vertical; line-height: 1.5; }
select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%236E6558' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
input::placeholder, textarea::placeholder { color: #978D7D; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--bad); }
.err { color: var(--bad); font-size: 13px; margin-top: 6px; font-weight: 500; }

.checkrow { display: flex; flex-wrap: wrap; gap: 10px; }
.checkrow label {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--panel); font-size: 14.5px; font-weight: 500; cursor: pointer;
}
.checkrow input { accent-color: var(--amber); width: 17px; height: 17px; }
.checkrow label:has(input:checked) { border-color: var(--amber); background: var(--amber-soft); color: var(--amber-deep); font-weight: 600; }

.consent { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--amber); flex: none; }

.pwwrap { position: relative; }
.pwwrap input { padding-right: 68px; }
.pwtoggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  min-height: 34px; padding: 0 12px;
  border: none; background: transparent; color: var(--dim);
  font-family: var(--ui); font-size: 12.5px; font-weight: 600; cursor: pointer;
  border-radius: var(--r-sm);
}
.pwtoggle:hover { color: var(--ink); background: #F2ECE1; }

.flash { border-radius: var(--r-md); padding: 13px 16px; font-size: 14.5px; font-weight: 500; margin-bottom: 18px; }
.flash.ok { background: var(--ok-soft); color: #1D7544; }
.flash.bad { background: var(--bad-soft); color: var(--bad); }
.flash.info { background: var(--amber-soft); color: var(--amber-deep); }

.empty-state { text-align: center; padding: 40px 20px; color: var(--dim); }
.empty-state b { display: block; font-family: var(--display); font-size: 17px; color: var(--ink); margin-bottom: 6px; }

/* ── Stars ────────────────────────────────────────────────────────────── */
.stars { display: inline-flex; gap: 3px; }
.stars button {
  border: none; background: none; padding: 3px; cursor: pointer; line-height: 0;
  border-radius: 4px;
}
.stars svg { width: 17px; height: 17px; }
.stars .on svg { color: var(--amber); }
.stars .off svg { color: #D9CFBC; }

/* ── Audio row ────────────────────────────────────────────────────────── */
.audiorow { display: flex; align-items: center; gap: 11px; }
.playbtn {
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  border: none; cursor: pointer; display: grid; place-items: center;
}
.playbtn svg { width: 13px; height: 13px; margin-left: 1px; }
.playbtn[aria-pressed="true"] { background: var(--amber); color: #2A1B05; }
.wave { display: flex; align-items: center; gap: 2px; height: 22px; }
.wave i { width: 2.5px; border-radius: 2px; background: #DCD2C0; display: block; }
.wave i.lit { background: var(--amber); }
.dur { font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; }

/* ── Public landing ───────────────────────────────────────────────────── */
.pub { max-width: 1320px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }
.topbar { display: flex; align-items: center; gap: 22px; padding: 24px 0 8px; }
.topbar .logo-eyebrow { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
.topbar .logo-name { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.topbar nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.topbar nav a { color: var(--dim); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.topbar nav a:hover { color: var(--ink); }
.topbar nav a.btn { color: var(--ink); }

.hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 62px); align-items: center; padding: clamp(40px, 6vw, 84px) 0; }
.hero h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.03; letter-spacing: -.035em; text-wrap: balance; }
.hero h1 .amber { color: var(--amber); display: block; }
.hero .lede { font-size: clamp(16px, 1.4vw, 18.5px); color: var(--dim); max-width: 52ch; margin: 26px 0 30px; line-height: 1.6; }
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--amber-soft); color: var(--amber-deep);
  border-radius: var(--r-pill); padding: 8px 16px;
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
}
.eyebrow-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.heroshot { border-radius: 20px; overflow: hidden; background: var(--dark); aspect-ratio: 1196 / 1300; }
.heroshot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.herostats { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 52px); margin-top: 34px; }
.herostats b { display: block; font-family: var(--display); font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.herostats span { display: block; font-size: 13.5px; color: var(--dim); margin-top: 2px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); gap: 18px; padding-bottom: clamp(40px, 6vw, 80px); }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-card); }
.step .ico { width: 40px; height: 40px; border-radius: var(--r-md); background: var(--amber-soft); color: var(--amber-deep); display: grid; place-items: center; margin-bottom: 20px; }
.step .ico svg { width: 19px; height: 19px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--dim); font-size: 14.5px; margin: 0; }
.step:nth-child(2) .ico { background: #F3EEE4; color: var(--ink); }
.step:nth-child(4) .ico { background: var(--ok-soft); color: #1D7544; }

.section { padding: clamp(40px, 6vw, 76px) 0; border-top: 1px solid var(--line); }
.section > h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 10px; }
.section > .sub { color: var(--dim); margin-bottom: 30px; font-size: 16px; }

.paycard { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.paycard > div { background: var(--panel); padding: 24px; }
.paycard b { display: block; font-family: var(--display); font-size: 27px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.paycard span { display: block; font-size: 14px; color: var(--dim); margin-top: 6px; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font-family: var(--display); font-size: 16.5px; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; color: var(--amber); font-size: 22px; font-weight: 400; font-family: var(--ui); }
.faq details[open] summary::after { content: "–"; }
.faq details > p { color: var(--dim); padding-bottom: 18px; max-width: 76ch; margin: 0; }

.applyform { max-width: 660px; }
.formcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow-card); }
.split2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 18px; }

.recorder { border: 1px dashed var(--line); border-radius: var(--r-md); padding: 20px; background: #FCFAF6; }
.recorder .live { min-height: 46px; font-size: 15px; color: var(--dim); margin-top: 14px; line-height: 1.5; }
.recorder .live b { color: var(--ink); font-weight: 500; }
.reclevel { display: flex; align-items: flex-end; gap: 3px; height: 30px; margin-top: 14px; }
.reclevel i { flex: 1; background: #E3D9C7; border-radius: 2px; min-height: 3px; }
.reclevel i.lit { background: var(--amber); }
.rectimer { font-family: var(--display); font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }

.filedrop { border: 1px dashed var(--line); border-radius: var(--r-md); padding: 20px; background: #FCFAF6; }
.filedrop input[type=file] { font-size: 14px; width: 100%; color: var(--dim); }
.filedrop input[type=file]::file-selector-button {
  min-height: 40px; padding: 0 16px; margin-right: 14px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--panel); color: var(--ink);
  font-family: var(--ui); font-size: 14px; font-weight: 600; cursor: pointer;
}
.filedrop input[type=file]::file-selector-button:hover { background: #F6F1E8; }
.tabs { display: inline-flex; background: #F2ECE1; border-radius: var(--r-md); padding: 4px; gap: 4px; margin-bottom: 16px; }
.tabs button {
  min-height: 38px; padding: 0 16px; border: none; border-radius: var(--r-sm);
  background: transparent; color: var(--dim);
  font-family: var(--ui); font-size: 14px; font-weight: 600; cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--panel); color: var(--ink); box-shadow: var(--shadow-card); }

.footer { border-top: 1px solid var(--line); padding: 30px 0 46px; color: var(--dim); font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 16px 26px; align-items: center; }
.footer a { color: var(--dim); }

/* ── Auth pages ───────────────────────────────────────────────────────── */
.authpage { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; }
.authbox { width: 100%; max-width: 420px; }
.authbox .brandline { text-align: center; margin-bottom: 26px; }
.authbox .brandline .eyebrow { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
.authbox .brandline .name { font-family: var(--display); font-size: 27px; font-weight: 700; letter-spacing: -.02em; }
.authbox .alt { text-align: center; margin-top: 18px; font-size: 14px; color: var(--dim); }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .heroshot { order: -1; aspect-ratio: 16 / 10; }
}

@media (max-width: 860px) {
  .shell { display: block; background: var(--paper); }
  .rail {
    position: static; width: auto; height: auto; flex: none;
    flex-direction: row; align-items: center; gap: 14px;
    padding: 14px 18px;
    overflow: visible;
  }
  .rail .brandblock { min-width: 0; }
  .rail nav {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 40;
    background: var(--dark); margin: 0; padding: 8px 14px 16px;
    display: none;
  }
  .rail.open nav { display: flex; }
  .rail .railcard { margin-left: auto; padding: 8px 11px; }
  .rail .railcard .who { display: none; }
  .railtoggle {
    display: inline-grid; place-items: center;
    width: 44px; height: 44px; flex: none; order: -1;
    background: var(--dark-panel); border: 1px solid var(--dark-line); color: var(--dark-ink);
    border-radius: var(--r-md); cursor: pointer;
  }
  .railtoggle svg { width: 19px; height: 19px; }
  .main { padding: 20px 18px 64px; }
  .weekgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tablewrap { margin: 0 -18px; padding: 0 18px; }
  .card { padding: 18px; border-radius: var(--r-md); }
  .topbar nav a:not(.btn) { display: none; }
}

@media (max-width: 520px) {
  .weekgrid { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Everything tappable clears 44px on a phone. */
  .btn.sm, .pwtoggle, [role="tab"] { min-height: 44px; }
  .btn.link { min-height: 44px; }
}

@supports (padding: env(safe-area-inset-bottom)) {
  .main { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}
