/* Ready52 landing. Tokens: docs/design/tokens.md (Pimento). Light, dark, more contrast; components use tokens only. */
@font-face {
  font-family: 'Figtree Fallback';
  src: local('Arial'), local('Liberation Sans'), local('Helvetica Neue'), local('Helvetica');
  size-adjust: 100.1%; ascent-override: 94.9%; descent-override: 25%; line-gap-override: 0%;
}
@font-face {
  font-family: 'Familjen Fallback';
  src: local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'), local('Helvetica Bold'), local('Arial');
  font-weight: 600 700; size-adjust: 92.6%; ascent-override: 110.7%; descent-override: 24.3%; line-gap-override: 0%;
}
@font-face {
  font-family: 'Figtree Variable';
  font-style: normal; font-display: swap; font-weight: 300 900;
  src: url('/fonts/figtree-latin.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Familjen Grotesk Variable';
  font-style: normal; font-display: swap; font-weight: 400 700;
  src: url('/fonts/familjen-grotesk-latin.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --tile: #fbf6ee; --surface: #ffffff; --ink: #2b1d16; --ink-2: #5b483c; --ink-3: #6a5748;
  --line: #e4d8ca; --line-strong: #8a786b;
  --brand: #7a3b1a; --brand-soft: #f5e6d6; --brand-solid: #7a3b1a; --brand-solid-hover: #62300f; --brand-solid-pressed: #4d250c;
  --on-solid: #ffffff; --gold: #f0b323; --focus: var(--brand);
  --chrome: #2b1d16; --chrome-ink: #fbf6ee; --chrome-brand: #e3c7a8; --chrome-line: #8c7a6c;
  --logo-tile: var(--brand-solid); --logo-glyph: #fbf6ee; --logo-gold: var(--gold); --logo-ink: var(--ink); --logo-52: var(--brand);

  --text-scale: 1;
  --leading: 1.6;
  --font: 'Figtree Variable', 'Figtree Fallback', system-ui, sans-serif;
  --display: 'Familjen Grotesk Variable', 'Familjen Fallback', var(--font);
  --font-readable: system-ui, 'Segoe UI', Verdana, sans-serif;
  --fs-sm: 0.875rem; --fs-lg: 1.125rem;
  --fs-xl: clamp(1.625rem, 1.2rem + 1.8vw, 2.25rem);
  --fs-2xl: clamp(2.125rem, 1.4rem + 3.2vw, 3.5rem);
  --fs-3xl: 3rem;
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px;
  --tap: 44px;
  --section-y: 64px;
  --gutter: 20px;
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --tile: #16100c; --surface: #211813; --ink: #f3ebe3; --ink-2: #cfbfb2; --ink-3: #ab9a8d;
  --line: #3a2b22; --line-strong: #8c7a6c;
  --brand: #e3c7a8; --brand-soft: #32231a; --brand-solid: #9b5329; --brand-solid-hover: #ad5f31; --brand-solid-pressed: #85451f;
  --chrome: #0f0a07; --chrome-ink: #f3ebe3;
  --logo-glyph: #ffffff;
}
:root[data-contrast='more'] {
  --ink: #120b07; --ink-2: #120b07; --ink-3: #3a2b22; --line: #8a786b; --line-strong: #4a3a30;
  --brand: #4d230c; --brand-soft: #f1dcc8; --brand-solid: #4d230c; --brand-solid-hover: #341606; --brand-solid-pressed: #240e03;
  --chrome-line: #c9b8aa;
}
:root[data-theme='dark'][data-contrast='more'] {
  --tile: #000000; --surface: #0d0907; --ink: #ffffff; --ink-2: #f4ece5; --ink-3: #dccfc4; --line: #6e5c4f; --line-strong: #b8a596;
  --brand: #f0dcc4; --brand-soft: #2a1b12; --brand-solid: #9b5329; --brand-solid-hover: #a85b2e; --brand-solid-pressed: #85451f;
  --chrome: #000000; --chrome-line: #8c7a6c;
}
:root[data-font='readable'] { --font: var(--font-readable); --display: var(--font-readable); }
:root[data-font='readable'] a { text-decoration: underline; }
:root[data-spacing='wide'] { --leading: 1.8; letter-spacing: 0.04em; word-spacing: 0.12em; }
:root[data-spacing='wide'] :is(h1, h2, h3) { line-height: 1.35; letter-spacing: 0.02em; }
:root[data-spacing='wide'] p { margin-block-end: 0.5em; }
:root[data-motion='reduce'] *, :root[data-motion='reduce'] *::before, :root[data-motion='reduce'] *::after {
  transition: none !important; animation: none !important; scroll-behavior: auto !important;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: calc(100% * var(--text-scale)); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; background: var(--tile); color: var(--ink); font-family: var(--font); line-height: var(--leading); min-width: 320px; overflow-wrap: break-word; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
.band :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }
img, svg { max-width: 100%; }
.small { font-size: var(--fs-sm); }

.skip { position: absolute; left: 12px; top: -80px; z-index: 40; background: var(--brand-solid); color: var(--on-solid); padding: 12px 16px; border-radius: var(--r-md); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 10; background: var(--tile); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 8px; min-height: 64px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: inline-flex; align-items: center; min-height: var(--tap); margin-inline-end: auto; }
.brand svg { height: 32px; width: auto; display: block; }
.logo-tile { fill: var(--logo-tile); }
.logo-glyph { stroke: var(--logo-glyph); }
.logo-gold { stroke: var(--logo-gold); }
.logo-ink { fill: var(--logo-ink); }
.logo-52 { fill: var(--logo-52); }
.site-nav { display: contents; }
.nav-links { display: flex; flex-wrap: wrap; gap: 0 4px; list-style: none; margin: 0; padding: 0; order: 5; width: 100%; }
.nav-links a { display: inline-flex; align-items: center; min-height: var(--tap); padding-inline: 12px; color: var(--ink); text-decoration: none; font-weight: 500; border-radius: var(--r-sm); }
.nav-links a:hover { background: var(--brand-soft); }
.js .nav-links { display: none; }
.js .nav-links.open { display: flex; flex-direction: column; align-items: stretch; padding-block: 4px 8px; }
.menu-btn { display: none; }
.js .menu-btn { display: inline-flex; }
.btn.header-cta { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px;
  font: 600 1rem/1.2 var(--font); border-radius: var(--r-md); border: 2px solid transparent; text-decoration: none; cursor: pointer; text-align: center;
}
.btn-solid { background: var(--brand-solid); color: var(--on-solid); }
.btn-solid:hover { background: var(--brand-solid-hover); }
.btn-solid:active { background: var(--brand-solid-pressed); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); min-height: var(--tap); padding: 8px 14px; }
.btn-ghost:hover { background: var(--brand-soft); }
.btn-ghost[aria-expanded='true'] { background: var(--brand-soft); border-color: var(--brand); }
.btn svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.display-btn { display: none; }
.js .display-btn { display: inline-flex; }

/* ---------- Display panel ---------- */
.display-panel {
  position: absolute; top: calc(100% + 8px); right: var(--gutter); left: var(--gutter); max-width: 380px; margin-inline-start: auto;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: 16px 18px 18px;
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.18); z-index: 30;
}
.display-panel[hidden] { display: none; }
.display-panel h2 { font-size: 1.125rem; margin-bottom: 8px; }
.display-panel fieldset { border: 0; margin: 0 0 12px; padding: 0; min-width: 0; }
.display-panel legend { font-weight: 600; font-size: var(--fs-sm); color: var(--ink-2); padding: 0; margin-bottom: 4px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label, .check { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); }
.seg label { position: relative; padding: 0 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-md); cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label:has(input:checked) { background: var(--brand-solid); color: var(--on-solid); border-color: var(--brand-solid); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.check { width: 100%; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--brand-solid); margin: 0; }
.panel-actions { display: flex; gap: 8px; margin-top: 8px; }

/* ---------- Sections ---------- */
section, .band { padding-block: var(--section-y); }
.alt { background: var(--brand-soft); }
.section-head { max-width: 62ch; margin-bottom: 32px; }
.section-head h2 { font-size: var(--fs-xl); margin-bottom: 8px; }
.section-head p { color: var(--ink-2); font-size: var(--fs-lg); margin: 0; }
.eyebrow { font-weight: 600; color: var(--brand); font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }

/* ---------- Hero ---------- */
.hero { padding-top: 40px; }
.hero-grid { display: grid; gap: 32px; }
.hero h1 { font-size: var(--fs-2xl); margin-bottom: 16px; }
.hero .lead { font-size: var(--fs-lg); max-width: 56ch; color: var(--ink-2); }
.hero-actions { display: flex; flex-direction: column; gap: 8px; margin-block: 24px 12px; max-width: 420px; }
.text-link { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); font-weight: 600; }
.hero-note { color: var(--ink-2); font-size: var(--fs-sm); margin: 0; }
.disclaimer { color: var(--ink-2); font-size: var(--fs-sm); margin: 16px 0 0; max-width: 62ch; }

/* ---------- 52-week grid ---------- */
.year-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; }
.year-label { font-weight: 600; font-size: var(--fs-sm); color: var(--ink-2); margin: 0 0 12px; }
.weeks { display: grid; grid-template-columns: repeat(13, 1fr); gap: 6px; margin: 0; padding: 0; }
.weeks i { display: block; aspect-ratio: 1; border-radius: 22%; background: var(--brand-soft); border: 1.5px solid var(--line-strong); }
.weeks i.d { background: var(--brand-solid); border-color: var(--brand-solid); }
.weeks i.n { background: var(--gold); border: 2px solid var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 14px 0 0; font-size: var(--fs-sm); color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 16px; height: 16px; border-radius: 22%; display: inline-block; background: var(--brand-soft); border: 1.5px solid var(--line-strong); }
.legend i.d { background: var(--brand-solid); border-color: var(--brand-solid); }
.legend i.n { background: var(--gold); border: 2px solid var(--ink); }
html.js[data-motion='normal'] .reveal:not(.in) .weeks i { opacity: 0; transform: scale(0.6); }
html.js[data-motion='normal'] .reveal.in .weeks i { animation: cell 180ms ease-out backwards; animation-delay: calc(var(--i) * 12ms); }
@keyframes cell { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }

/* ---------- Steps, audience ---------- */
.steps, .audience { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.step { align-content: start; display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: start; }
.step-num { font-family: var(--display); font-weight: 700; font-size: var(--fs-3xl); line-height: 1; color: var(--brand); }
.step h3, .aud h3 { font-size: 1.25rem; margin-bottom: 6px; }
.step p, .aud p { margin: 0; color: var(--ink-2); }
.closing { margin: 32px 0 0; font-weight: 600; }
.aud { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.aud svg { width: 28px; height: 28px; margin-top: 2px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Plans ---------- */
.plan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.plan { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.plan h3 { font-size: 1.375rem; }
.price { margin: 0; }
.amount { font-family: var(--display); font-weight: 700; font-size: var(--fs-xl); }
.per { color: var(--ink-2); }
.plan-desc { margin: 0; color: var(--ink-2); }
.limits { margin: 0; padding-left: 1.2em; }
.plan .btn { margin-top: auto; }
.plans-empty { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: 24px; margin: 0; font-size: var(--fs-lg); max-width: 62ch; }
.plans-empty p { margin: 0; }
.plans-empty p + p { margin-top: 16px; }
.plans-note { color: var(--ink-2); margin: 16px 0 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; padding-block: 10px; font-weight: 600; font-size: var(--fs-lg); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--brand); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 180ms ease-out; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq .answer { padding: 0 0 16px; max-width: 62ch; color: var(--ink-2); }
.faq .answer p { margin: 0; }

/* ---------- Contact band, footer ---------- */
.band { background: var(--chrome); color: var(--chrome-ink); border-top: 1px solid var(--chrome-line); }
.band h2 { font-size: var(--fs-xl); margin-bottom: 8px; }
.band p { max-width: 52ch; }
.band-actions { display: flex; flex-direction: column; gap: 8px; max-width: 420px; margin-top: 20px; }
.band .btn-cream { background: var(--chrome-ink); color: var(--chrome); }
.band .btn-cream:hover { background: #ffffff; }
.band a:not(.btn) { color: var(--chrome-brand); }
.band .text-link { color: var(--chrome-brand); }
.support-line { margin: 20px 0 0; font-size: var(--fs-sm); }
.site-footer { background: var(--chrome); color: var(--chrome-ink); padding-block: 40px 32px; }
.strip { display: grid; grid-template-columns: repeat(26, 1fr); gap: 3px; max-width: 360px; margin: 0 0 28px; padding: 0; }
.strip i { aspect-ratio: 1; border-radius: 22%; background: transparent; border: 1px solid var(--chrome-line); display: block; }
.strip i.d { background: var(--chrome-brand); border-color: var(--chrome-brand); }
.strip i.n { background: var(--gold); border-color: var(--gold); }
.foot-grid { display: grid; gap: 20px; }
.site-footer .brand { margin: 0 0 12px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0 8px; }
.footer-links a { display: inline-flex; align-items: center; min-height: var(--tap); padding-inline: 4px; color: var(--chrome-ink); }
.site-footer p { color: var(--chrome-ink); max-width: 62ch; margin: 0 0 8px; }
.footer-logo { --logo-ink: var(--chrome-ink); --logo-52: var(--chrome-brand); --logo-tile: #9b5329; --logo-glyph: #ffffff; }

/* ---------- Placeholder pages ---------- */
.page-main { padding-block: 64px; min-height: 50vh; }
.page-main h1 { font-size: var(--fs-2xl); margin-bottom: 12px; }

@media (min-width: 768px) {
  :root { --section-y: 88px; --gutter: 32px; }
  .weeks { grid-template-columns: repeat(26, 1fr); }
  .hero-actions { flex-direction: row; align-items: center; gap: 20px; max-width: none; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .step { grid-template-columns: 1fr; }
  .audience { grid-template-columns: repeat(2, 1fr); gap: 28px 32px; }
  .plan-list { grid-template-columns: repeat(2, 1fr); }
  .band-actions { flex-direction: row; align-items: center; gap: 20px; max-width: none; }
  .foot-grid { grid-template-columns: 1fr auto; align-items: start; }
}
@media (min-width: 960px) {
  .bar { flex-wrap: nowrap; gap: 4px; }
  .site-nav, .js .site-nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
  .nav-links, .js .nav-links, .js .nav-links.open { display: flex; flex-direction: row; order: 0; width: auto; padding: 0; }
  .brand { margin-inline-end: 0; }
  .menu-btn, .js .menu-btn { display: none; }
  .btn.header-cta { display: inline-flex; min-height: var(--tap); padding-block: 8px; margin-inline-start: 8px; }
}
@media (min-width: 1100px) {
  :root { --section-y: 112px; }
  .hero { padding-top: 96px; }
  .hero-grid { grid-template-columns: 7fr 5fr; gap: 56px; align-items: center; }
  .weeks { grid-template-columns: repeat(13, 1fr); gap: 8px; }
  .year-card { padding: 24px; }
  .audience { grid-template-columns: repeat(4, 1fr); }
  .aud { grid-template-columns: 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
  .plan-list { grid-template-columns: repeat(3, 1fr); }
  .plan-list[data-count='1'] { grid-template-columns: minmax(0, 420px); }
  .plan-list[data-count='2'] { grid-template-columns: repeat(2, minmax(0, 420px)); }
}

.weeks i:nth-child(1){--i:0}.weeks i:nth-child(2){--i:1}.weeks i:nth-child(3){--i:2}.weeks i:nth-child(4){--i:3}.weeks i:nth-child(5){--i:4}.weeks i:nth-child(6){--i:5}.weeks i:nth-child(7){--i:6}.weeks i:nth-child(8){--i:7}.weeks i:nth-child(9){--i:8}.weeks i:nth-child(10){--i:9}.weeks i:nth-child(11){--i:10}.weeks i:nth-child(12){--i:11}.weeks i:nth-child(13){--i:12}.weeks i:nth-child(14){--i:13}.weeks i:nth-child(15){--i:14}.weeks i:nth-child(16){--i:15}.weeks i:nth-child(17){--i:16}.weeks i:nth-child(18){--i:17}.weeks i:nth-child(19){--i:18}.weeks i:nth-child(20){--i:19}.weeks i:nth-child(21){--i:20}.weeks i:nth-child(22){--i:21}.weeks i:nth-child(23){--i:22}.weeks i:nth-child(24){--i:23}.weeks i:nth-child(25){--i:24}.weeks i:nth-child(26){--i:25}.weeks i:nth-child(27){--i:26}.weeks i:nth-child(28){--i:27}.weeks i:nth-child(29){--i:28}.weeks i:nth-child(30){--i:29}.weeks i:nth-child(31){--i:30}.weeks i:nth-child(32){--i:31}.weeks i:nth-child(33){--i:32}.weeks i:nth-child(34){--i:33}.weeks i:nth-child(35){--i:34}.weeks i:nth-child(36){--i:35}.weeks i:nth-child(37){--i:36}.weeks i:nth-child(38){--i:37}.weeks i:nth-child(39){--i:38}.weeks i:nth-child(40){--i:39}.weeks i:nth-child(41){--i:40}.weeks i:nth-child(42){--i:41}.weeks i:nth-child(43){--i:42}.weeks i:nth-child(44){--i:43}.weeks i:nth-child(45){--i:44}.weeks i:nth-child(46){--i:45}.weeks i:nth-child(47){--i:46}.weeks i:nth-child(48){--i:47}.weeks i:nth-child(49){--i:48}.weeks i:nth-child(50){--i:49}.weeks i:nth-child(51){--i:50}.weeks i:nth-child(52){--i:51}
