/* Program Partner marketing site — built from the Claude Design canvas.
   Tokens follow the Program Partner design system (terracotta primary, cream background, ink foreground). */

/* Typography: Cabin for every role (docs/TYPOGRAPHY.md, approved 4 November 2026).
   Fonts are served from this site (SIL Open Font License, see assets/fonts/), so no visitor data goes to a font service.
   Cabin is one variable file per subset (weights 400–700); Latin Extended loads only when a page uses it. */
@font-face { font-family: "Cabin"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/cabin-latin-ext-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cabin"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/cabin-latin-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Cabin has no tabular figures. Cabin Figures supplies equal-width digits only, for .tabular-nums. */
@font-face { font-family: "Cabin Figures"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/cabin-figures-400.woff2") format("woff2"); unicode-range: U+0030-0039; }
@font-face { font-family: "Cabin Figures"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/cabin-figures-500.woff2") format("woff2"); unicode-range: U+0030-0039; }
/* A local face sized to Cabin's metrics, so text shown before Cabin arrives takes the same space. */
@font-face { font-family: "Cabin Fallback"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Arimo"); size-adjust: 94.74%; ascent-override: 101.86%; descent-override: 26.39%; line-gap-override: 0%; }

:root {
  --bg: #F9F5E8;
  --fg: #1C292C;
  --card: #FFFDF9;
  --sand: #EFE3D0;
  --sand-2: #E9DCC4;
  --border: #CAD7D9;
  --border-soft: #E6ECED;
  --muted: #4B5F64;
  --primary: #AA452B;
  --primary-hover: #8E3923;
  --primary-deep: #6A2E1F;
  --accent: #FDD4C6;
  --coral: #E07655;
  --ok-bg: #E3EEE6;
  --ok-fg: #1F5133;
  --ink-2: #34474B;
  --font-sans: "Cabin", "Cabin Fallback", ui-sans-serif, system-ui, sans-serif;
  --font-heading: "Cabin", "Cabin Fallback", ui-sans-serif, system-ui, sans-serif;
  --font-numeric: "Cabin Figures", "Cabin", "Cabin Fallback", ui-sans-serif, system-ui, sans-serif;
  --radius: 12px;
  --pad-x: clamp(20px, 5vw, 40px);
  --section-y: clamp(64px, 9vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .font-heading { font-family: var(--font-heading); font-weight: 500; font-style: normal; margin: 0; letter-spacing: -0.01em; }
/* Aligned money and counts. Cabin Figures sets the digits; Cabin sets everything else. */
.tabular-nums { font-family: var(--font-numeric); font-variant-numeric: tabular-nums; }
p { margin: 0; }
a { color: var(--primary); }
a:hover { color: var(--primary-deep); }
img, svg { display: block; max-width: 100%; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Layout */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad-x); }
.wrap-wide { max-width: 1320px; margin: 0 auto; padding: 0 var(--pad-x); }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 var(--pad-x); }
.section { padding: var(--section-y) 0; }
.section-tight { padding: clamp(56px, 8vw, 96px) 0; }
.band-dark { background: var(--fg); color: var(--bg); }
.band-dark h1, .band-dark h2, .band-dark h3 { color: var(--bg); }
.band-dark .muted { color: #CAD7D9; }
.band-dark a { color: var(--coral); }
.band-sand { background: var(--sand); }
.stack { display: flex; flex-direction: column; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }

/* Type */
.display { font-size: clamp(42px, 6.4vw, 80px); line-height: 1.03; letter-spacing: -0.015em; text-wrap: balance; }
.display-sm { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.03; letter-spacing: -0.015em; text-wrap: balance; }
.h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; text-wrap: balance; }
.h2-sm { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; text-wrap: balance; }
.h3 { font-size: 22px; line-height: 1.25; }
.eyebrow { font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--muted); }
.lede { font-size: clamp(18px, 1.8vw, 21px); line-height: 1.55; color: var(--muted); max-width: 620px; }
.body-lg { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; text-wrap: pretty; }
.muted { color: var(--muted); }
.pull { font-family: var(--font-heading); font-weight: 500; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.25; text-wrap: balance; }
.link { font-weight: 600; font-size: 17px; text-decoration: underline; text-underline-offset: 3px; width: max-content; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 8px; font-weight: 600; text-decoration: none; white-space: nowrap;
  min-height: 48px; padding: 0 26px; font-size: 16px; cursor: pointer; border: 1.5px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn-primary { background: var(--primary); color: var(--card); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--card); }
.btn-outline { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn-outline:hover { background: var(--fg); color: var(--bg); }
.band-dark .btn-outline { color: var(--bg); border-color: var(--bg); }
.band-dark .btn-outline:hover { background: var(--bg); color: var(--fg); }
.btn[disabled] { opacity: .6; cursor: default; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--border); }
.skip { position: absolute; left: 12px; top: -60px; background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-weight: 600; z-index: 60; }
.skip:focus { top: 12px; }
.header-row { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 5vw, 40px); display: flex; align-items: center; gap: 12px; height: 72px; }
.brand { display: flex; align-items: center; flex: none; padding: 4px 0; border-radius: 6px; }
.brand img { height: 48px; width: auto; }
.nav-main { display: none; align-items: center; gap: 2px; margin-left: 20px; }
.nav-main > a, .nav-main summary { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--fg); text-decoration: none; text-underline-offset: 6px; cursor: pointer; list-style: none; }
.nav-main summary::-webkit-details-marker { display: none; }
.nav-main > a:hover, .nav-main summary:hover { background: #F0EBDD; color: var(--fg); }
.nav-main > a[aria-current="page"], .nav-main details.is-current > summary { text-decoration: underline; }
.nav-main details { position: relative; }
.menu-panel { position: absolute; top: calc(100% + 8px); left: 0; background: var(--card); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 16px 40px -16px rgb(28 41 44 / .3); padding: 10px; }
.menu-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.menu-panel.cols-2 { width: 560px; } .menu-panel.cols-2 ul { grid-template-columns: 1fr 1fr; }
.menu-panel.w-240 { width: 240px; } .menu-panel.w-260 { width: 260px; }
.menu-panel a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 15px; color: var(--fg); text-decoration: none; }
.menu-panel a:hover { background: #F0EBDD; }
.menu-panel a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.menu-panel .more { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 8px; }
.menu-panel .more a { font-weight: 600; color: var(--primary); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.login-link { display: none; padding: 10px 12px; font-size: 15px; font-weight: 500; color: var(--primary); text-underline-offset: 4px; }
.header-actions .btn { min-height: 44px; padding: 0 16px; font-size: 15px; }
.mobile-menu { position: static; }
.mobile-menu > summary { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 15px; font-weight: 500; background: var(--card); cursor: pointer; list-style: none; }
.mobile-menu > summary::-webkit-details-marker { display: none; }
.mobile-panel { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 72px); overflow: auto; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: 0 24px 40px -24px rgb(28 41 44 / .35); }
.mobile-panel nav { max-width: 1200px; margin: 0 auto; padding: 16px clamp(16px, 5vw, 40px) 28px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 24px; }
.mobile-panel .group-label { font-size: 13px; font-weight: 600; color: var(--muted); padding: 8px 0; }
.mobile-panel ul { list-style: none; margin: 0; padding: 0; }
.mobile-panel li a { display: flex; align-items: center; min-height: 44px; font-size: 16px; color: var(--fg); text-decoration: none; }
.mobile-panel li a.strong { font-weight: 600; color: var(--primary); }
@media (max-width: 420px) {
  .header-row { gap: 8px; padding: 0 12px; }
  .brand img { height: 40px; }
  .header-actions { gap: 6px; }
  .header-actions .btn { padding: 0 12px; font-size: 14px; }
  .mobile-menu > summary { padding: 0 10px; }
}
@media (min-width: 1024px) {
  .nav-main { display: flex; }
  .login-link { display: inline-flex; }
  .mobile-menu { display: none; }
}

/* Hero */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 104px); }
.hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(32px, 5vw, 56px); }
.hero-text { flex: 1 1 340px; min-width: 0; max-width: 860px; display: flex; flex-direction: column; gap: 22px; }
.crumb { font-size: 15px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumb a { color: var(--muted); text-underline-offset: 3px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-visual { flex: 1 1 100%; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.shot-pair { position: relative; padding-right: 9%; padding-bottom: 48px; }
.shot-pair .shot-phone { position: absolute; right: 0; bottom: 0; width: 22%; min-width: 110px; }

/* Program tabs (home hero) */
.tabs { display: flex; flex-wrap: wrap; gap: 4px 28px; border-bottom: 1px solid var(--border); }
.tabs [role="tab"] { white-space: nowrap; min-height: 44px; padding: 0; margin-bottom: -1px; font-size: 16px; font-weight: 500; cursor: pointer; background: transparent; color: var(--muted); border: 0; border-bottom: 2px solid transparent; display: inline-flex; align-items: center; }
.tabs [role="tab"]:hover { color: var(--fg); }
.tabs [role="tab"][aria-selected="true"] { color: var(--fg); font-weight: 600; border-bottom-color: var(--primary); }
/* "hidden" always wins, even over a component that sets its own display (the form's error boxes are flex). */
[hidden] { display: none !important; }

/* Screenshot frames */
.frame { margin: 0; display: flex; flex-direction: column; gap: 10px; width: 100%; }
.frame-browser { background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 2px rgb(28 41 44 / .06), 0 18px 40px -18px rgb(28 41 44 / .25); }
.frame-browser .bar { display: flex; align-items: center; gap: 4px; padding: 5px 8px; border-bottom: 1px solid var(--border); background: #F0EBDD; }
.frame-browser .bar span { width: 5px; height: 5px; border-radius: 50%; background: var(--border); }
.frame-browser .screen { position: relative; aspect-ratio: 16 / 10; background: var(--card); }
.frame-phone { align-items: center; }
/* iPhone 15 Pro proportions: 393 x 852 pt screen, 18 pt black border, 3 pt titanium band (435 x 894 overall).
   Everything is in percentages of the device box, so it scales to any width. */
.frame-phone .device { position: relative; width: 100%; max-width: var(--phone-max, 280px); aspect-ratio: 435 / 894; border-radius: 17.5% / 8.5%;
  background: linear-gradient(100deg, #5f6164 0%, #b9bbbd 3%, #7d7f82 7%, #9a9c9f 50%, #7d7f82 93%, #b9bbbd 97%, #5f6164 100%);
  box-shadow: 0 1px 2px rgb(28 41 44 / .12), 0 26px 50px -18px rgb(28 41 44 / .45), inset 0 0 0 1px rgb(255 255 255 / .18); }
.frame-phone .device::before { content: ""; position: absolute; inset: .45% .92%; border-radius: 17% / 8.3%; background: #050506; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06); }
.frame-phone .screen { position: absolute; top: 2.35%; bottom: 2.35%; left: 4.83%; right: 4.83%; border-radius: 14% / 6.45%; overflow: hidden; background: var(--card); z-index: 1; }
.frame-phone .hw { position: absolute; width: 1.1%; border-radius: 2px; background: linear-gradient(90deg, #6a6c6f, #a9abad 50%, #6a6c6f); }
.frame-phone .hw-action { left: -.7%; top: 15.5%; height: 3.6%; }
.frame-phone .hw-vol-up { left: -.7%; top: 22%; height: 7%; }
.frame-phone .hw-vol-down { left: -.7%; top: 31%; height: 7%; }
.frame-phone .hw-side { right: -.7%; top: 25%; height: 11%; }
/* iPad proportions to match: thin even border, aluminium edge, front camera on the long edge */
.frame-tablet .device { position: relative; width: 100%; padding: 2.4%; border-radius: 4.2% / 6%; background: #08090a;
  box-shadow: inset 0 0 0 2px #a7a9ac, inset 0 0 0 3px #4b4d50, 0 1px 2px rgb(28 41 44 / .12), 0 26px 50px -18px rgb(28 41 44 / .45); }
.frame-tablet .device::before { content: ""; position: absolute; top: 1.6%; left: 50%; width: .7%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: #1c2a33; box-shadow: inset 0 0 0 1px #2b3a44; }
.frame-tablet .screen { position: relative; aspect-ratio: 1180 / 820; border-radius: 1.6% / 2.3%; overflow: hidden; background: var(--card); }
.frame .screen img, .frame .screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.frame .screen .shot-d { display: none; }
[data-shot-theme="dark"] .frame .screen .shot-l { display: none; }
[data-shot-theme="dark"] .frame .screen .shot-d { display: block; }
.shot-toggle { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; border: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; background: rgb(28 41 44 / .72); color: #fff; fill: currentColor; opacity: .85; }
.shot-toggle:hover, .shot-toggle:focus-visible { opacity: 1; }
.shot-toggle .i-pause { display: none; }
.shot-toggle[data-playing] .i-pause { display: inline; }
.shot-toggle[data-playing] .i-play { display: none; }
.theme-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 4px; font-size: 15px; color: var(--muted); }
.theme-switch .seg { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); }
.theme-switch button { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent; color: var(--fg); font: inherit; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.theme-switch button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.theme-switch svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.frame .screen .placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--muted); background: repeating-linear-gradient(135deg, #FFFDF9 0 12px, #F5EFE0 12px 24px); }
.frame figcaption { font-size: 14px; line-height: 1.45; color: var(--muted); }

/* Feature lists */
.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); column-gap: 64px; border-top: 1px solid var(--border); }
.feature-list a { display: flex; flex-direction: column; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--border); color: var(--fg); text-decoration: none; min-width: 0; }
.feature-list a:hover { color: var(--primary); }
.feature-list .t { font-family: var(--font-heading); font-weight: 500; font-size: 22px; line-height: 1.25; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.feature-list .b { font-size: 16px; line-height: 1.5; color: var(--muted); }

/* Steps (grid) */
.steps-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(28px, 4vw, 48px); align-items: start; }
.steps-grid li { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.steps-grid .num-row { display: flex; align-items: center; gap: 16px; }
.steps-grid .num { font-family: var(--font-heading); font-weight: 500; font-size: 56px; line-height: 1; color: var(--primary); }
.steps-grid .rule { flex: 1; height: 1px; background: var(--border); }
.band-dark .steps-grid .num { color: var(--coral); }
.band-dark .steps-grid .rule { background: rgb(255 255 255 / .18); }
.steps-grid p { font-size: 18px; line-height: 1.6; }
/* Steps (showcase, alternating) */
.steps-show { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: clamp(40px, 6vw, 72px); }
.steps-show li { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(24px, 3.5vw, 48px); min-width: 0; }
.steps-show li:nth-child(even) { flex-direction: row-reverse; }
.steps-show .text { flex: 1 1 200px; max-width: 270px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.steps-show .num { font-family: var(--font-heading); font-weight: 500; font-size: 44px; line-height: 1; color: var(--primary); }
.steps-show .vis { flex: 4 1 520px; min-width: 0; display: flex; justify-content: center; }
.callout { font-size: 17px; line-height: 1.6; font-weight: 500; padding: 18px 22px; border-radius: 12px; max-width: 820px; background: var(--accent); color: var(--primary-deep); }

/* Check cards (What you get) */
.check-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; flex: 1 1 560px; min-width: 0; }
.check-grid li { display: flex; gap: 14px; align-items: flex-start; padding: 22px 22px 24px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; font-size: 17px; line-height: 1.55; text-wrap: pretty; }
.check-grid .tick { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 14px; }
.card-sand { background: var(--sand); border: 0; }
.card-shadow { box-shadow: 0 1px 2px rgb(28 41 44 / .06), 0 18px 40px -24px rgb(28 41 44 / .25); }
.pill { font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; width: max-content; }
.pill-accent { background: var(--accent); color: var(--primary-deep); }
.pill-ok { background: var(--ok-bg); color: var(--ok-fg); }
.pill-sand { background: var(--sand); color: var(--fg); }

/* FAQ */
.faq { display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 72px); }
.faq .faq-head { flex: 1 1 280px; max-width: 400px; }
.faq .faq-list { flex: 2 1 480px; min-width: 0; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 18px; font-weight: 500; padding: 20px 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-right: 4px; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .a { font-size: 17px; line-height: 1.6; color: var(--muted); padding-bottom: 20px; max-width: 640px; }

/* CTA band */
.cta-band { background: var(--fg); color: var(--bg); }
.cta-band .row { padding-top: var(--section-y); padding-bottom: var(--section-y); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.cta-band h2 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; letter-spacing: -0.015em; color: var(--bg); }
.cta-band .copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.cta-band .copy p { font-size: 18px; line-height: 1.6; color: #E4DCC9; }
.cta-band .act { flex: 0 1 auto; display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
.site-footer { background: var(--fg); color: var(--bg); }
.site-footer .inner { max-width: 1200px; margin: 0 auto; padding: 64px var(--pad-x) 32px; display: grid; gap: 48px; }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 40px; }
.site-footer .about { display: grid; gap: 16px; align-content: start; grid-column: 1 / -1; max-width: 420px; }
.site-footer .about img { height: 44px; width: auto; }
.site-footer nav h2 { font-family: var(--font-sans); font-size: 14px; font-weight: 600; color: var(--bg); margin-bottom: 12px; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer nav a { color: var(--bg); text-decoration: none; font-size: 15px; }
.site-footer nav a:hover { text-decoration: underline; color: var(--coral); }
.site-footer .meta { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; border-top: 1px solid var(--muted); padding-top: 24px; font-size: 15px; }
.site-footer .meta a { color: var(--bg); }
.site-footer .meta a.mail { color: var(--coral); font-weight: 500; }
.site-footer .legal { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; }
.site-footer .legal a { color: var(--bg); }

/* Forms */
.form-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: clamp(20px, 4vw, 40px); display: flex; flex-direction: column; gap: 26px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field legend { font-size: 16px; font-weight: 600; padding: 0; }
.field .opt { font-weight: 400; color: var(--muted); }
.field .help { font-size: 14px; color: var(--muted); }
.input, .select, .textarea { height: 48px; font: inherit; font-size: 16px; color: var(--fg); background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 0 12px; width: 100%; }
.textarea { height: auto; min-height: 120px; padding: 12px; resize: vertical; }
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--primary); border-width: 2px; }
.form-grid { display: grid; }
.choices { display: grid; gap: 4px 16px; }
.choices label { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; cursor: pointer; font-weight: 400; }
.choices input[type="checkbox"], .choices input[type="radio"] { accent-color: var(--primary); width: 20px; height: 20px; margin: 0; flex: none; }
.err { color: var(--primary); font-size: 15px; font-weight: 500; display: flex; gap: 6px; align-items: center; }
.alert { background: var(--accent); color: var(--primary-deep); border-radius: 12px; padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; font-size: 16px; line-height: 1.5; }
.alert a { color: var(--primary-deep); }
.alert ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Ticker (home) */
.ticker { display: block; position: relative; height: 1.2em; line-height: 1.2; overflow: hidden; color: var(--primary); }
.ticker-track { display: flex; flex-direction: column; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.ticker-track span { height: 1.2em; flex: none; white-space: nowrap; }

/* Pathways showcase */
.pw { background: var(--fg); color: var(--bg); }
.pw .muted { color: #CAD7D9; }
.pw .btn-outline { color: var(--bg); border-color: var(--bg); }
.pw .btn-outline:hover { background: var(--bg); color: var(--fg); }
.pw-head { display: flex; flex-wrap: wrap; gap: 20px 64px; align-items: end; justify-content: space-between; }
.pw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 16px; border-radius: 999px; font-size: 15px; font-weight: 500; cursor: pointer; background: transparent; color: var(--bg); border: 1.5px solid var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.chip[aria-pressed="true"] { background: var(--primary); color: var(--card); border-color: var(--primary); font-weight: 600; }
.pw-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.pw-tabs [role="tab"] { flex: 1 1 auto; justify-content: center; min-height: 48px; padding: 0 18px; border-radius: 10px; font-size: 16px; font-weight: 500; cursor: pointer; background: transparent; color: var(--bg); border: 1.5px solid var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.pw-tabs [role="tab"][aria-selected="true"] { background: var(--bg); color: var(--fg); border-color: var(--bg); font-weight: 600; }
.pw-stage { position: relative; width: 100%; aspect-ratio: 1120 / 660; border-radius: 14px; overflow: hidden; background: var(--bg); border: 1px solid var(--ink-2); box-shadow: 0 1px 2px rgb(28 41 44 / .06), 0 24px 48px -20px rgb(0 0 0 / .35); color: var(--fg); }
.pw-canvas { position: absolute; left: 0; top: 0; width: 1120px; height: 660px; transform-origin: 0 0; font-family: var(--font-sans); }
.pw-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.pw-foot p { font-size: 16px; line-height: 1.55; color: #CAD7D9; max-width: 820px; }

/* Legal */
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; }
.legal-nav a { font-weight: 500; }
.legal-nav a[aria-current="page"] { color: var(--fg); font-weight: 600; }
.legal-body { display: flex; flex-direction: column; gap: 18px; font-size: 18px; line-height: 1.7; text-wrap: pretty; }
.legal-body h2 { margin-top: 24px; font-size: 30px; line-height: 1.2; }
.legal-body ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal-body .quote { padding: 4px 0 4px 20px; border-left: 3px solid var(--border); color: var(--muted); }
.legal-body .hl { background: var(--accent); color: var(--primary-deep); }
.legal-body .tbl { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.legal-body table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.legal-body th { text-align: left; vertical-align: bottom; padding: 12px 14px; border-bottom: 1px solid var(--border); font-weight: 600; }
.legal-body td { vertical-align: top; padding: 12px 14px; border-top: 1px solid var(--border-soft); }

/* Security */
.toc { flex: 1 1 220px; max-width: 280px; position: sticky; top: 96px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
.toc a { display: block; padding: 8px 0 8px 16px; font-size: 15px; color: var(--fg); text-decoration: none; }
.toc a:hover { color: var(--primary); text-decoration: underline; }
.bullets { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.bullets li { display: flex; gap: 12px; font-size: 18px; line-height: 1.6; }
.bullets .dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); margin-top: 12px; }

/* Two-column comparison table (Switching page) */
.compare-wrap { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--card, #fff); }
.compare-table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.compare-table th, .compare-table td { text-align: left; vertical-align: top; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table thead th { font-size: 15px; font-weight: 600; background: var(--sand); }
.compare-table thead th:nth-child(3) { color: var(--primary); }
.compare-table tbody th { font-weight: 600; width: 22%; }
.compare-table td { width: 39%; }
@media (max-width: 720px) {
  .compare-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare-table, .compare-table tbody, .compare-table tr, .compare-table th, .compare-table td { display: block; width: auto; }
  .compare-table tr { padding: 16px 18px; border-bottom: 1px solid var(--border); }
  .compare-table tbody tr:last-child { border-bottom: 0; }
  .compare-table tbody th, .compare-table td { padding: 0; border: 0; }
  .compare-table tbody th { width: auto; font-size: 17px; margin-bottom: 10px; }
  .compare-table td + td { margin-top: 10px; }
  .compare-table td::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
}

/* Pricing and subscribe */
.price-section { padding: 0; }
.subscribe-section { padding: 0 0 var(--section-y); }
.price-card { max-width: 640px; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px; align-items: start; }
.price-grid .price-card { max-width: none; }
.price-name { font-size: 28px; line-height: 1.2; }
.price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.price-amount { font-size: clamp(56px, 8vw, 80px); line-height: 1; font-weight: 500; letter-spacing: -0.02em; color: var(--fg); }
.price-per { font-size: 18px; color: var(--muted); }
/* Two prices on one line (the studio plan): smaller numerals, and each price keeps its unit. */
.price-line-pair .price-amount { font-size: clamp(44px, 6vw, 64px); }
.price-pair { display: inline-flex; align-items: baseline; gap: 4px 12px; white-space: nowrap; }
.price-demo, .small-print { font-size: 15px; }
/* The school plan is the main plan: a terracotta edge and an audience badge set it apart from the studio card. */
.price-card-main { border: 2px solid var(--primary); }
.price-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.price-badges .pill { margin: 0; }
.pill-primary { background: var(--primary); color: #fff; }
/* What the price comes to, in plain terms (a month's share of the yearly price, or a lesson's tuition). */
.price-anchor { font-size: 17px; font-weight: 600; color: var(--primary-deep); }
.subscribe-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px; align-items: start; }


/* Home: customer quotes (hidden until the content editor has at least one real quote). */
.quote-wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.quote-card { justify-content: space-between; gap: 22px; }
.quote-card blockquote { margin: 0; }
.quote-card blockquote p { font-size: clamp(20px, 2.2vw, 24px); line-height: 1.4; text-wrap: pretty; }
.quote-card blockquote p::before { content: "\201C"; }
.quote-card blockquote p::after { content: "\201D"; }
.quote-card .who { display: flex; align-items: center; gap: 14px; }
.quote-card .who img, .quote-card .who .initial { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: center 30%; }
.quote-card .who .initial { display: grid; place-items: center; background: var(--accent); color: var(--primary-deep); font-size: 24px; font-weight: 600; }
.quote-card .who p { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.quote-card .who .name { font-weight: 600; font-size: 17px; }
.quote-card .who .role { color: var(--muted); font-size: 15px; line-height: 1.4; }
.usage-line { font-size: 18px; font-weight: 600; color: var(--primary-deep); }

/* Home: dated outside mentions, a slim strip under the founder story (hidden until there's a real one). */
.mentions { padding: 0 0 clamp(40px, 6vw, 64px); }
.mentions-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 28px; border-top: 1px solid var(--border); padding-top: 24px; }
.mentions-h { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.mentions-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 32px; }
.mentions-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 16px; }
.mentions-list a, .mentions-list .src { font-weight: 600; }
.mentions-list .what, .mentions-list time { color: var(--muted); font-size: 15px; }
.mentions-list q { font-style: normal; }

/* What's new (/changelog/) */
.changelog { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.changelog li { padding: clamp(24px, 3vw, 32px) 0; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; scroll-margin-top: 96px; }
.changelog .when { font-size: 15px; font-weight: 600; color: var(--muted); }
.changelog h2 { font-size: clamp(22px, 2.4vw, 26px); line-height: 1.25; }
.changelog h2 a { color: inherit; text-decoration: none; }
.changelog h2 a:hover, .changelog h2 a:focus-visible { text-decoration: underline; }
.changelog p:last-child { font-size: 17px; line-height: 1.6; }

/* Blog (/blog/ and /blog/<slug>): articles from HeyCatch. The index reuses the What's new list; an article's HTML
   arrives with no classes (scripts/blog.mjs strips them), so its elements are styled here on top of .legal-body. */
.blog-list .when { font-size: 15px; font-weight: 500; }
.blog-body h2, .blog-body h3, .blog-body h4 { scroll-margin-top: 96px; }
.blog-body h3 { margin-top: 12px; font-size: 24px; line-height: 1.25; }
.blog-body h4 { margin-top: 8px; font-size: 20px; line-height: 1.3; }
.blog-body ol { margin: 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 8px; }
.blog-body ul { padding-left: 0; padding-inline-start: 22px; }
.blog-body blockquote { margin: 0; padding: 4px 0; padding-inline-start: 20px; border-inline-start: 3px solid var(--border); color: var(--muted); }
.blog-body code, .blog-body kbd { font-size: .88em; background: var(--sand); border-radius: 4px; padding: 2px 5px; }
.blog-body pre { margin: 0; overflow-x: auto; padding: 16px; border-radius: 12px; background: var(--sand); line-height: 1.5; }
.blog-body pre code { background: none; padding: 0; }
.blog-body table { display: block; overflow-x: auto; }
.blog-body th { text-align: start; }
.blog-body hr { width: 100%; margin: 8px 0; border: 0; border-top: 1px solid var(--border); }
.blog-body img { height: auto; border-radius: 12px; }
.blog-body figure { margin: 0; }
.blog-body summary { cursor: pointer; font-weight: 600; }
.blog-toc { padding: 20px 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.blog-body .blog-toc h2 { margin-top: 0; font-size: 20px; }
.blog-body .blog-toc ul { margin-top: 12px; padding: 0; list-style: none; font-size: 17px; }

/* Related pages, at the end of each page (base.njk; src/_data/related.js). */
.related { border-top: 1px solid var(--border); }
.related-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.related-list a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px 22px; border: 1px solid var(--border); border-radius: 16px; background: var(--card); color: var(--fg); text-decoration: none; }
.related-list a:hover { border-color: var(--primary); }
.related-name { font-weight: 600; font-size: 19px; line-height: 1.3; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.related-blurb { color: var(--muted); font-size: 16px; line-height: 1.5; }
