/* 10pence customer portal. Tokens follow 10pence design guide v1.0 (tokens.css). */

/* ---- Tokens (verbatim from tokens.css) ---------------------------------- */
:root {
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --surface-glass: rgba(255,255,255,0.72);
  --border: rgba(11,15,25,0.08);
  --border-strong: #D9DBDF;
  --divider: #ECEDEF;
  --track: #F1F2F4;
  --chart-muted: #E4E6EA;
  --text: #0B0F19;
  --text-muted: #4B5563;
  --inverse: #0B0F19;
  --on-inverse: #FFFFFF;
  --accent: #FF7A1A;
  --on-accent: #0B0F1A;
  --accent-text-lg: #D9580A;
  --accent-text: #B9520C;
  --accent-tint: #FFE8D6;
  --gain: #15803D;
  --gain-tint: #DCFCE7;
  --alert: #B91C1C;
  --glow-blue: rgba(147,197,253,0.45);
  --glow-orange: rgba(255,122,26,0.16);
  --font: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --radius-pill: 999px; --radius-card: 22px; --radius-key: 16px; --radius-bar: 8px;
  --blur-glass: 16px;
  --shadow-float: 0 12px 32px rgba(11,15,25,0.10);
  --shadow-raise: 0 2px 8px rgba(11,15,25,0.08);
}
@media (prefers-color-scheme: dark) { :root {
  --bg: #07090D;
  --surface: #111419;
  --surface-glass: rgba(17,20,25,0.72);
  --border: rgba(255,255,255,0.08);
  --border-strong: #2E333B;
  --divider: #1E2229;
  --track: #22262E;
  --chart-muted: #2A2E36;
  --text: #F5F6F7;
  --text-muted: #9BA1AB;
  --inverse: #F5F6F7;
  --on-inverse: #0B0F19;
  --accent: #FF7A1A;
  --on-accent: #0B0F1A;
  --accent-text-lg: #FF8A3D;
  --accent-text: #FF9A52;
  --accent-tint: #3A2412;
  --gain: #4ADE80;
  --gain-tint: #10301C;
  --alert: #F87171;
  --glow-blue: rgba(59,130,246,0.22);
  --glow-orange: rgba(255,122,26,0.14);
  --shadow-float: 0 12px 32px rgba(0,0,0,0.45);
  --shadow-raise: 0 2px 8px rgba(0,0,0,0.40);
} }

/* ---- Portal additions (derived from the tokens above) ------------------- */
:root {
  color-scheme: light dark;
  --font-mono: ui-monospace, "Cascadia Mono", "JetBrains Mono", Consolas, "SFMono-Regular", Menlo, monospace;
  --alert-tint: color-mix(in srgb, var(--alert) 10%, var(--surface));
  --alert-line: color-mix(in srgb, var(--alert) 35%, var(--surface));
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-7: 32px; --space-8: 48px;
  --page-max: 1080px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.5 var(--font);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

h1, h2, h3, p, ol, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 50;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--inverse);
  color: var(--on-inverse);
  font-weight: 600;
}
.skip:focus { top: var(--space-4); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.mono {
  font-family: var(--font-mono);
  font-variant-ligatures: none;
  font-variant-numeric: tabular-nums slashed-zero;
  letter-spacing: 0;
}
.muted { color: var(--text-muted); }
.nowrap { white-space: nowrap; }
.caption { font-size: 13px; line-height: 1.35; }
.caption-strong { font-size: 13px; line-height: 1.35; font-weight: 600; }
.alert-text { color: var(--alert); }

.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- Background glows (behind content only) ----------------------------- */
.glows {
  position: absolute;
  inset: 0 0 auto 0;
  height: 900px;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}
.glow {
  position: absolute;
  border-radius: var(--radius-pill);
  filter: blur(70px);
}
.glow--blue {
  width: 520px; height: 520px;
  top: -200px; right: -180px;
  background: var(--glow-blue);
}
.glow--orange {
  width: 420px; height: 420px;
  top: 220px; left: -240px;
  background: var(--glow-orange);
  filter: blur(80px);
}

/* ---- Type scale (design guide §4) --------------------------------------- */
.title-hero {
  font-size: clamp(40px, 6.2vw, 60px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.05em;
}
.title-xl {
  font-size: clamp(32px, 5vw, 40px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.05em;
}
.title-section {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.title-m {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.title-s {
  font-size: 16px;
  line-height: 1.3;
  font-weight: 600;
}
.lede {
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 34em;
}

/* ---- Brand -------------------------------------------------------------- */
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: var(--radius-pill);
}
.brand-mark { width: 28px; height: 28px; }
.brand-wordmark {
  display: block;
  height: 30px;
  width: auto;
}
.mark-bar { fill: var(--text); }
.mark-ring { stroke: var(--accent); }

/* ---- Header and navigation ---------------------------------------------- */
.top {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--space-5) var(--space-5) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.top-actions { display: flex; gap: var(--space-2); }

.tabbar {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 6px;
  border-radius: var(--radius-pill);
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(var(--blur-glass));
  backdrop-filter: blur(var(--blur-glass));
  border: 1px solid var(--border);
}
.tab-form { display: contents; }
.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 44px;
  min-width: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: color .15s ease, background-color .15s ease;
}
.tab:hover { color: var(--text); }
.tab.is-active {
  background: var(--inverse);
  color: var(--on-inverse);
}
.tab.is-active .icon { stroke: var(--accent); stroke-width: 2; }
.account-pill {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  margin: 0 6px 0 4px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}

/* ---- Page frame --------------------------------------------------------- */
.page {
  flex: 1;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--space-8) var(--space-5) 72px;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.narrow {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.section {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-7);
  scroll-margin-top: var(--space-6);
}

.foot {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--space-6) var(--space-5) var(--space-7);
  border-top: 1px solid var(--divider);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2) var(--space-6);
  color: var(--text-muted);
  font-size: 13px;
}

/* ---- Surfaces ----------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: var(--space-2);
  padding: 4px 12px 4px 4px;
  border-radius: var(--radius-pill);
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(var(--blur-glass));
  backdrop-filter: blur(var(--blur-glass));
  border: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.35;
  color: var(--text-muted);
}
.eyebrow-chip {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--accent-tint);
  color: var(--accent-text);
}
.avatar--muted { background: var(--chart-muted); color: var(--text); }

/* ---- Buttons ------------------------------------------------------------ */
.btn-primary,
.btn-secondary,
.btn-plain {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 52px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, opacity .15s ease;
}
.btn-primary {
  padding: 0 6px 0 22px;
  border: 0;
  background: var(--inverse);
  color: var(--on-inverse);
}
.btn-primary:hover { opacity: .9; }
.btn-primary .badge {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--on-accent);
}
.btn-primary .badge .icon { stroke-width: 2.2; }
.btn-block { width: 100%; height: auto; min-height: 56px; justify-content: space-between; }
.btn-block > span:first-child { white-space: normal; text-align: left; line-height: 1.25; padding: 8px 0; }
.btn-block.btn-primary { padding-left: 24px; padding-right: 8px; }
.btn-block.btn-secondary { justify-content: center; }

.btn-secondary {
  gap: var(--space-2);
  padding: 0 22px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn-secondary:hover { border-color: var(--text-muted); }
.btn-small { height: 44px; padding: 0 18px; font-size: 14px; }

.btn-plain {
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
}
.btn-plain:hover { color: var(--text); }

button:disabled,
.is-locked {
  opacity: .45;
  cursor: not-allowed;
}
.btn-secondary:disabled:hover { border-color: var(--border-strong); }

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(var(--blur-glass));
  backdrop-filter: blur(var(--blur-glass));
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.icon-btn:hover { color: var(--text); }
.icon-btn.is-done { color: var(--gain); }

.link {
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 500;
}
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}
.actions--center { justify-content: center; }

/* ---- Forms -------------------------------------------------------------- */
.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.field-label { font-size: 14px; font-weight: 600; }
.input {
  width: 100%;
  height: 56px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 17px;
  letter-spacing: .04em;
  transition: border-color .15s ease;
}
.input::placeholder { color: var(--text-muted); opacity: .7; }
.input:hover { border-color: var(--text-muted); }
.input:focus { border-color: var(--text); outline: none; }
.input:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.input:disabled { opacity: .5; cursor: not-allowed; }
.input--code,
.input--key { text-transform: uppercase; }
.input--code::placeholder,
.input--key::placeholder { text-transform: none; }

.turnstile-slot { min-height: 65px; }

.inline-note {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  color: var(--text-muted);
}

.form-card { padding: var(--space-7); }
.form-foot {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px solid var(--divider);
}

/* ---- Banners and callouts ----------------------------------------------- */
.banners { display: flex; flex-direction: column; gap: var(--space-3); }
.banners:empty { display: none; }
.banner,
.callout {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--border);
}
.banner .icon,
.callout .icon { margin-top: 2px; color: var(--text-muted); }
.banner--alert,
.callout--alert {
  background: var(--alert-tint);
  border-color: var(--alert-line);
}
.banner--alert .icon,
.callout--alert .icon { color: var(--alert); }
.banner--alert strong,
.callout--alert strong { color: var(--alert); }

/* ---- Status pills ------------------------------------------------------- */
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--track);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: var(--radius-pill);
  background: currentColor;
}
.status:has(.icon)::before { content: none; }
.status .icon { width: 14px; height: 14px; }
.status--small { height: 28px; padding: 0 12px; }
.status--gain { background: var(--gain-tint); color: var(--gain); }
.status--alert { background: var(--alert-tint); color: var(--alert); }

/* ---- Landing ------------------------------------------------------------ */
.hero {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.hero--split,
.hero--showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--space-8);
  padding-top: var(--space-5);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.hero-copy .actions { margin-top: var(--space-2); }
.hero--center {
  align-items: center;
  text-align: center;
}
.hero--center .eyebrow { align-self: center; }
.hero--center .lede { margin: 0 auto; }

.hero-highlights {
  list-style: none;
  padding: 0;
  margin: var(--space-1) 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-5);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}
.hero-highlights li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-highlights li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  flex-shrink: 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 44em;
}
.eyebrow--compact { margin-bottom: var(--space-1); }

/* Clean standalone 10pence dark menu showcase */
.showcase-menu-wrap {
  display: flex;
  justify-content: flex-end;
}

.mock-menu {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  display: flex;
  gap: 10px;
  padding: 12px;
  border-radius: 24px;
  background: #07090D;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: var(--shadow-float);
  overflow: hidden;
  min-height: 368px;
  color: #F5F6F7;
}
.mock-glow {
  position: absolute;
  border-radius: var(--radius-pill);
  pointer-events: none;
}
.mock-glow--blue {
  width: 150px; height: 150px;
  top: -54px; right: -42px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.22) 0%, transparent 70%);
}
.mock-glow--orange {
  width: 140px; height: 140px;
  bottom: -48px; left: -48px;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.14) 0%, transparent 70%);
}

.mock-rail {
  position: relative;
  z-index: 2;
  width: 44px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  border-radius: var(--radius-pill);
  background: rgba(17, 20, 25, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.mock-logo {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mock-logo-svg { width: 21px; height: 21px; }
.mock-logo-svg .mark-bar { fill: #F5F6F7; }
.mock-logo-svg .mark-ring { stroke: #FF7A1A; }
.mock-rail-rule {
  width: 16px;
  height: 1px;
  background: #1E2229;
  margin: 2px 0;
}
.mock-tab {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: #9BA1AB;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.mock-tab .icon { width: 15px; height: 15px; }
.mock-tab:hover:not(.is-active) {
  color: #F5F6F7;
  background: rgba(255, 255, 255, 0.06);
}
.mock-tab.is-active {
  background: #F5F6F7;
  color: #FF7A1A;
}

.mock-main {
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 2px 2px 0;
}
.mock-wordmark {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #9BA1AB;
  line-height: 1.1;
}
.mock-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #F5F6F7;
  line-height: 1.15;
}
.mock-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  background: rgba(17, 20, 25, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 10px;
  color: #9BA1AB;
  white-space: nowrap;
}
.mock-status-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: #4ADE80;
}
.mock-status-fps { color: #F5F6F7; font-weight: 600; }
.mock-status-ok { color: #4ADE80; font-weight: 600; }
.mock-status-sep { color: #525866; }

.mock-card {
  background: #111419;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
}
.mock-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  min-height: 40px;
  border: 0;
  background: transparent;
  text-align: left;
}
.mock-row + .mock-row,
.mock-row + .mock-slider,
.mock-slider + .mock-row {
  border-top: 1px solid #1E2229;
}
.mock-row--btn {
  cursor: pointer;
  transition: background-color 0.14s ease;
}
.mock-row--btn:hover {
  background: rgba(255, 255, 255, 0.035);
}
.mock-row--hero {
  justify-content: flex-start;
  padding: 11px 12px;
}
.mock-hero-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #3A2412;
  color: #FF7A1A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mock-hero-icon .icon { width: 14px; height: 14px; }
.mock-row-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.mock-row-name {
  font-size: 12.5px;
  font-weight: 500;
  color: #F5F6F7;
  line-height: 1.25;
}
.mock-row-name--bold { font-weight: 700; }
.mock-row-sub {
  font-size: 10.5px;
  color: #9BA1AB;
  line-height: 1.25;
}
.mock-row-swatch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.mock-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}
.mock-dot--purple { background: #BD70FF; }
.mock-dot--blue { background: #5CA3FF; }

.mock-sw {
  position: relative;
  width: 30px;
  height: 17px;
  border-radius: var(--radius-pill);
  background: #22262E;
  border: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
.mock-sw::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 11px;
  height: 11px;
  border-radius: var(--radius-pill);
  background: #8B929D;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.18s ease;
}
.mock-sw.is-on { border-color: transparent; }
.mock-sw.is-on::after { transform: translateX(13px); }
.mock-sw--orange.is-on { background: #FF7A1A; }
.mock-sw--orange.is-on::after { background: #F5F6F7; }
.mock-sw--std.is-on { background: #F5F6F7; }
.mock-sw--std.is-on::after { background: #0B0F19; }

.mock-pill {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: #0B0E14;
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #F5F6F7;
  font-size: 11px;
  font-weight: 500;
}
.mock-seg {
  display: inline-flex;
  padding: 2px;
  border-radius: var(--radius-pill);
  background: #07090D;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
}
.mock-seg-item {
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  color: #9BA1AB;
  font-weight: 500;
}
.mock-seg-item.is-active {
  background: #262A32;
  color: #F5F6F7;
  font-weight: 600;
}
.mock-badge-gain {
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: #10301C;
  color: #4ADE80;
  font-size: 11px;
  font-weight: 600;
}

.mock-slider {
  padding: 9px 12px 11px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.mock-slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mock-val {
  font-size: 11.5px;
  font-weight: 600;
  color: #FF9A52;
}
.mock-track {
  position: relative;
  display: block;
  height: 5px;
  border-radius: var(--radius-pill);
  background: #22262E;
}
.mock-fill {
  position: relative;
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
  background: #FF7A1A;
}
.mock-fill::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: var(--radius-pill);
  background: #F5F6F7;
  border: 2px solid #07090D;
}
.mock-fill--70 { width: 70%; }
.mock-fill--65 { width: 65%; }
.mock-fill--55 { width: 55%; }
.mock-fill--40 { width: 40%; }

.access-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  align-items: stretch;
  gap: var(--space-5);
}
.access-steps-card {
  padding: var(--space-7);
  gap: var(--space-4);
}

.create-card {
  padding: var(--space-7);
  gap: var(--space-4);
  scroll-margin-top: var(--space-6);
  justify-content: space-between;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}
.feature { gap: var(--space-3); }
.feature p { font-size: 14px; line-height: 1.5; }

/* ---- One-time code reveal ----------------------------------------------- */
.reveal {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-7);
  gap: var(--space-5);
}
.reveal-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.ref-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 4px 4px 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  border: 1px solid var(--border);
}
.ref-value {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
}
.code-tiles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-3);
}
.code-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 84px;
  border-radius: var(--radius-key);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  font-size: clamp(16px, 4.8vw, 32px);
  font-weight: 700;
  letter-spacing: .08em;
  padding-left: .08em;
  color: var(--text);
  user-select: all;
}
.code-plain {
  text-align: center;
  font-size: 15px;
  color: var(--text-muted);
  user-select: all;
  overflow-wrap: anywhere;
}

.continue {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.confirm {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 44px;
  font-weight: 600;
  cursor: pointer;
}
.confirm input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--inverse);
  cursor: pointer;
}

/* ---- Dashboard ---------------------------------------------------------- */
.account-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
}
.account-ref-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-2);
}
.title-ref {
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.05;
  font-weight: 700;
}

.subs {
  width: 100%;
  border-collapse: collapse;
}
.subs th,
.subs td {
  padding: 0 var(--space-3);
  height: 62px;
  text-align: left;
  vertical-align: middle;
}
.subs th:first-child,
.subs td:first-child { padding-left: 0; }
.subs th:last-child,
.subs td:last-child { padding-right: 0; }
.subs thead th {
  height: auto;
  padding-bottom: var(--space-2);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.subs tbody tr { border-top: 1px solid var(--divider); }
.subs-name { font-size: 15px; font-weight: 600; }
.subs-remaining {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.empty {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-7);
}
.meta dt { font-size: 13px; color: var(--text-muted); }
.meta dd { font-size: 15px; font-weight: 600; }

.download {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-6) var(--space-7);
  align-items: start;
}
.download-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}
.download--locked { grid-column: 1 / -1; align-items: stretch; }
.steps {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.steps li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  font-size: 14px;
}
.steps li + li { border-top: 1px solid var(--divider); }
.step-n {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--track);
  font-size: 13px;
  font-weight: 700;
}
.steps li > span:last-child { padding-top: 4px; }

/* ---- Status page -------------------------------------------------------- */
.message-card {
  padding: var(--space-7);
  gap: var(--space-5);
  margin-top: var(--space-6);
}
.message-card .actions { margin-top: var(--space-2); }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 959px) {
  .hero--split,
  .hero--showcase { grid-template-columns: minmax(0, 1fr); gap: var(--space-7); padding-top: 0; }
  .showcase-menu-wrap { justify-content: flex-start; }
  .mock-menu { max-width: 100%; min-height: auto; }
  .access-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .download { grid-template-columns: minmax(0, 1fr); }
  .account-pill { display: none; }
}

@media (max-width: 767px) {
  .split { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 599px) {
  .page { padding: var(--space-7) var(--space-5) var(--space-8); }
  .top-nav-link { display: none; }
  .card,
  .create-card,
  .access-steps-card,
  .form-card,
  .reveal,
  .message-card { padding: var(--space-5); }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .lede { font-size: 16px; }
  .input { padding: 0 18px; font-size: 15px; letter-spacing: .02em; }

  /* Floating tab bar (design guide §6) when signed in. */
  body.is-authed { padding-bottom: 100px; }
  .tabbar {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 20px;
    z-index: 20;
    height: 64px;
    padding: 8px;
    justify-content: space-between;
    box-shadow: var(--shadow-float);
  }
  .tab { height: 48px; width: 56px; padding: 0; }
  .tab .tab-label {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .tab.is-active { width: auto; padding: 0 18px; }
  .tab.is-active .tab-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }

  .code-tiles { gap: 6px; }
  .code-tile { height: 60px; border-radius: 12px; letter-spacing: .02em; padding-left: .02em; }
  .reveal-head { flex-direction: column; align-items: flex-start; }
  .ref-badge { flex-wrap: wrap; border-radius: var(--radius-key); padding: 8px 8px 8px 12px; }
  .actions--center .btn-secondary { flex: 1 1 140px; }

  .subs thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .subs, .subs tbody, .subs tr, .subs th, .subs td { display: block; }
  .subs tbody tr {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: var(--space-2) var(--space-4);
    padding: var(--space-4) 0;
  }
  .subs th, .subs td { height: auto; padding: 0; }
  .subs .subs-name { grid-column: 1 / -1; display: flex; }
  .subs td { display: contents; }
  .subs td::before {
    content: attr(data-label);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--text-muted);
  }
  .subs td > * { justify-self: start; }
  .subs-remaining { font-size: 20px; }
  .account-head { align-items: flex-start; }
}

/* ---- Preferences -------------------------------------------------------- */
@media (prefers-reduced-transparency: reduce) {
  .tabbar,
  .eyebrow,
  .icon-btn {
    background: var(--surface);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0s !important;
    animation-duration: 0s !important;
  }
}
