/* maneledger.com. Colors are the app's tokens (src/ui/theme.ts, same names in kebab-case; check.mjs fails if they
   drift). No web fonts: the app uses the platform fonts, and so does the site. No inline styles anywhere: the
   Content-Security-Policy only allows this file. */

:root {
  color-scheme: light dark;

  --canvas: #F6EFEA;
  --surface: #FFFDFB;
  --surface-alt: #F0E7E1;
  --border: #DED1C9;
  --border-strong: #8C7B73;
  --text: #2B1D24;
  --text-muted: #6A5660;
  --primary: #8A3B5C;
  --primary-pressed: #6E2848;
  --on-primary: #FFFFFF;
  --primary-soft: #F6E4E7;
  --primary-soft-pressed: #F0D4DA;
  --on-primary-soft: #6E2848;
  --primary-text: #8A3B5C;
  --focus-ring: #8A3B5C;
  --danger: #B3261E;
  --warning: #9D5D15;
  --warning-soft: #FFECCD;
  --on-warning-soft: #603714;
  --warning-border: #EDBE81;
  --success: #38734F;
  --success-soft: #DCF2E3;
  --on-success-soft: #1F432D;
  --inverse-surface: #2B1D24;
  --on-inverse: #F8F1F4;
  --inverse-primary: #E8B3C5;

  /* Site-only */
  --hero-glow: #EFD9E3;
  --bezel: #2B1D24;
  --bezel-edge: #2B1D24;
  --shadow-card: 0 1px 2px rgba(60, 30, 40, 0.06), 0 2px 8px rgba(60, 30, 40, 0.05);
  --shadow-raised: 0 2px 6px rgba(60, 30, 40, 0.10), 0 8px 20px rgba(60, 30, 40, 0.10);
  --shadow-phone: 0 18px 40px rgba(60, 30, 40, 0.22), 0 4px 10px rgba(60, 30, 40, 0.12);

  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Charter, "Bitstream Charter", "Iowan Old Style", Georgia, serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --gutter: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #161113;
    --surface: #211A1D;
    --surface-alt: #2C2327;
    --border: #3A2F34;
    --border-strong: #857379;
    --text: #F6EEF1;
    --text-muted: #BBA9B1;
    --primary: #A65175;
    --primary-pressed: #944466;
    --on-primary: #FFFFFF;
    --primary-soft: #3D2630;
    --primary-soft-pressed: #4B2F3C;
    --on-primary-soft: #F2D3DC;
    --primary-text: #E8B3C5;
    --focus-ring: #E8B3C5;
    --danger: #C1392D;
    --warning: #E5A14B;
    --warning-soft: #372613;
    --on-warning-soft: #FCD8A2;
    --warning-border: #6C4B25;
    --success: #72B68A;
    --success-soft: #1A2E21;
    --on-success-soft: #BFE6CB;
    --inverse-surface: #EFE5E9;
    --on-inverse: #2B1D24;
    --inverse-primary: #8A3B5C;

    --hero-glow: #2A1B22;
    --bezel: #0B0809;
    --bezel-edge: #4A3C42;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-raised: 0 4px 14px rgba(0, 0, 0, 0.5);
    --shadow-phone: 0 18px 44px rgba(0, 0, 0, 0.6);
  }
}

/* ---------------------------------------------------------------------------------------------------------------
   Base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  overflow-wrap: break-word;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
#main { flex: 1 0 auto; }

@media (min-width: 48em) {
  body { font-size: 1.125rem; }
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--primary-text); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; text-wrap: balance; }
h1, h2 { font-family: var(--font-serif); font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.125rem, 1.6rem + 2.4vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 1.45rem + 1.4vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.005em; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li + li { margin-top: 0.35em; }
strong { font-weight: 650; }
small, .small { font-size: 0.9375rem; }

.wrap { width: min(100% - 2 * var(--gutter), 72rem); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--gutter), 46rem); margin-inline: auto; }
.muted { color: var(--text-muted); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--gutter); top: -10rem; z-index: 10;
  background: var(--surface); color: var(--text); font-weight: 650;
  padding: 0.75rem 1.25rem; border-radius: var(--radius-md); box-shadow: var(--shadow-raised);
}
.skip-link:focus { top: 0.75rem; }

/* ---------------------------------------------------------------------------------------------------------------
   Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3.5rem; padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg); border: 2px solid transparent;
  font: inherit; font-weight: 650; line-height: 1.25; text-align: center; text-decoration: none;
  cursor: pointer;
}
.btn svg { width: 1.25em; height: 1.25em; flex: none; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-pressed); }
.btn-soft { background: var(--primary-soft); color: var(--on-primary-soft); }
.btn-soft:hover { background: var(--primary-soft-pressed); }
.btn-small { min-height: 3rem; padding: 0.5rem 1.125rem; border-radius: var(--radius-md); font-size: 1rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 0; }

/* ---------------------------------------------------------------------------------------------------------------
   Header and footer */

.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 1.5rem; min-height: 4.5rem; padding-block: 0.5rem; }
.brand {
  display: inline-flex; align-items: center; gap: 0.625rem; min-height: 3rem;
  color: var(--text); text-decoration: none;
  font-family: var(--font-serif); font-weight: 700; font-size: 1.4375rem; letter-spacing: -0.01em;
}
.brand img { width: 2.25rem; height: 2.25rem; border-radius: 9px; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0 0.25rem; list-style: none; margin: 0; padding: 0; }
.site-nav li + li { margin-top: 0; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 3rem; padding: 0 0.75rem; border-radius: var(--radius-md);
  color: var(--text); font-weight: 600; text-decoration: none;
}
.site-nav a:hover { background: var(--surface-alt); }
.site-nav a[aria-current="page"] { color: var(--primary-text); text-decoration: underline; text-underline-offset: 0.3em; }
/* The language link: the other language's name, in it ("Español", "English"), beside the main button. The whole menu
   shows from 64em, where the brand, the menu, the link and the button share a row in either language (the Spanish menu
   is the longer one); on a phone, where the brand and the button fill the row, the link gets a row of its own above
   them, at the right. */
.lang-switch { margin: 0; }
.lang-link {
  display: inline-flex; align-items: center; min-height: 3rem; padding: 0 0.75rem; border-radius: var(--radius-md);
  color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 0.3em;
}
.lang-link:hover { background: var(--surface-alt); }
/* Under 64em the menu keeps Pricing and FAQ (the other two only fit beside the brand), on a row of its own under the
   brand and the button, its first link's text in line with the brand. */
@media (max-width: 63.99em) {
  .site-nav { order: 1; flex-basis: 100%; margin: -0.5rem 0 0 -0.75rem; }
  .site-nav .nav-wide { display: none; }
  .lang-switch { margin-left: auto; }
}
@media (max-width: 31.99em) {
  .lang-switch { order: -1; flex-basis: 100%; display: flex; justify-content: flex-end; margin: 0 -0.75rem -0.5rem 0; }
  .lang-link { min-height: 2.75rem; }
  .header-cta { margin-left: auto; }
  /* The Spanish menu on one row down to 360 px (4304). */
  .site-nav { margin-left: -0.5rem; }
  .site-nav ul { gap: 0; }
  .site-nav a { padding: 0 0.5rem; font-size: 1rem; }
}
.footer-bottom .lang-foot { display: inline-flex; align-items: center; min-height: 2.75rem; }

.site-footer { margin-top: 5rem; border-top: 1px solid var(--border); background: var(--surface-alt); padding: 3rem 0 2.5rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.footer-grid h2 { font-family: var(--font-sans); font-size: 1rem; letter-spacing: 0; margin-bottom: 0.5rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li + li { margin-top: 0; }
.footer-grid a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--text); text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-brand p { margin: 0.75rem 0 0; color: var(--text-muted); max-width: 22rem; }
.footer-bottom { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.9375rem; }
.footer-bottom p { margin: 0 0 0.25rem; }

/* ---------------------------------------------------------------------------------------------------------------
   Landing: hero */

.hero {
  background:
    radial-gradient(60rem 30rem at 85% 0%, var(--hero-glow), transparent 70%),
    var(--canvas);
  padding: 3rem 0 4rem;
}
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 56em) {
  .hero { padding: 4.5rem 0 5.5rem; }
  .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 4rem; }
}
.eyebrow {
  display: inline-block; margin: 0 0 1rem; padding: 0.25rem 0.875rem; border-radius: 999px;
  background: var(--primary-soft); color: var(--on-primary-soft); font-weight: 650; font-size: 0.9375rem;
}
.lead { font-size: 1.1875rem; color: var(--text-muted); max-width: 38rem; }
@media (min-width: 48em) { .lead { font-size: 1.3125rem; } }
.hero h1 { max-width: 20ch; }
.hero-points {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; list-style: none; padding: 0; margin: 1.5rem 0 0;
  color: var(--text-muted); font-weight: 600;
}
.hero-points li { display: inline-flex; align-items: center; gap: 0.4rem; margin: 0; }
.hero-points svg { width: 1.25rem; height: 1.25rem; color: var(--success); flex: none; }

.stores { display: flex; flex-wrap: wrap; gap: 0.75rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.stores li { margin: 0; }
.store {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 3.5rem; padding: 0.4rem 0.875rem 0.4rem 0.625rem;
  border: 2px dashed var(--border-strong); border-radius: var(--radius-md); color: var(--text); text-decoration: none;
  line-height: 1.2;
}
a.store { border-style: solid; background: var(--inverse-surface); color: var(--on-inverse); border-color: var(--inverse-surface); }
.store svg { width: 1.375rem; height: 1.375rem; flex: none; }
.store small { display: block; font-size: 0.8125rem; color: var(--text-muted); font-weight: 600; white-space: nowrap; }
a.store small { color: var(--on-inverse); }
.store b { font-weight: 700; }

/* Phone frames around app screenshots */
.phone {
  margin: 0 auto; width: min(100%, 16.5rem); padding: 0.5rem; border-radius: 2.4rem;
  background: var(--bezel); border: 1px solid var(--bezel-edge); box-shadow: var(--shadow-phone);
}
.phone img { width: 100%; border-radius: 1.95rem; background: var(--surface-alt); }
.hero .phone { width: min(100%, 18rem); }
@media (min-width: 56em) {
  .phone { width: min(100%, 19rem); padding: 0.55rem; border-radius: 2.6rem; }
  .phone img { border-radius: 2.1rem; }
  .hero .phone { width: min(100%, 20rem); }
}
/* A part of a screen (not a whole phone): a card with the app's own background. */
.shot-card {
  margin: 0 auto; width: min(100%, 24rem); border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-phone);
}
.shot-card img { width: 100%; }
/* Part of a screen at the phones' scale: as wide as the screen inside a .phone frame. */
.shot-screen { width: min(100%, 15.5rem); border-radius: 1.95rem; }
@media (min-width: 56em) {
  .shot-screen { width: min(100%, 18rem); border-radius: 2.1rem; }
}

/* ---------------------------------------------------------------------------------------------------------------
   Landing: sections */

.section { padding: 4.5rem 0; }
.section-head { max-width: 44rem; margin-bottom: 2.5rem; }
.section-head p { color: var(--text-muted); font-size: 1.1875rem; margin: 0; }
.band { background: var(--surface-alt); }
/* Two bands in a row ("Built for the chair", then the business side) read as one: no second gap above the heading. */
.band + .band { padding-top: 0; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; counter-reset: step; }
.steps li {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 1rem; align-items: start;
  margin: 0; padding: 1.25rem; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-card);
  border: 1px solid var(--border); counter-increment: step;
}
.steps li::before {
  content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
  border-radius: 999px; background: var(--primary); color: var(--on-primary); font-weight: 700;
}
.steps h3 { margin-bottom: 0.25rem; }
.steps p { margin: 0; color: var(--text-muted); }
@media (min-width: 56em) {
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
  .steps li { display: block; padding: 1.5rem; }
  .steps li::before { margin-bottom: 0.875rem; }
  /* A heading that wraps gives every step the same rows, so the texts start on one line (4302). */
  @supports (grid-template-rows: subgrid) {
    .steps { row-gap: 0; }
    .steps li { display: grid; grid-row: span 3; grid-template-rows: subgrid; grid-template-columns: minmax(0, 1fr); gap: 0; }
    .steps li::before { grid-row: auto; }
  }
}

.feature { display: grid; gap: 2rem; align-items: center; padding: 2.5rem 0; }
.feature + .feature { border-top: 1px solid var(--border); }
@media (min-width: 56em) {
  .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; padding: 3.5rem 0; }
  .feature:nth-of-type(even) .feature-copy { order: 2; }
}
.feature h3 { font-family: var(--font-serif); font-size: clamp(1.625rem, 1.4rem + 1vw, 2.125rem); letter-spacing: -0.01em; }
.feature-copy > p { color: var(--text-muted); font-size: 1.1875rem; }
.tag {
  display: inline-block; vertical-align: middle; margin-left: 0.375rem; padding: 0.125rem 0.625rem; border-radius: 999px;
  background: var(--primary-soft); color: var(--on-primary-soft); font-family: var(--font-sans); font-size: 0.875rem; font-weight: 700;
  letter-spacing: 0;
}
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 2rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0.2rem; top: 0.42em; width: 0.9rem; height: 0.5rem;
  border-left: 3px solid var(--primary-text); border-bottom: 3px solid var(--primary-text); transform: rotate(-45deg);
}

.also { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); margin-top: 2rem; }
.card {
  padding: 1.5rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.card h3 { margin-bottom: 0.4rem; }
.card p { margin: 0; color: var(--text-muted); }
.icon-plate {
  display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 1rem; border-radius: var(--radius-md);
  background: var(--primary-soft); color: var(--on-primary-soft);
}
.icon-plate svg { width: 1.5rem; height: 1.5rem; }

/* Pricing */
.plans { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 1.75rem; }
/* A phone at 150 % zoom (about 260 px): words whole in the cards (4301). */
@media (max-width: 22em) {
  .card, .plan { padding: 1.25rem 1rem; }
  .ticks li { padding-left: 1.75rem; }
}
.plan h3 { font-size: 1.1875rem; margin-bottom: 0.75rem; }
.card .price { color: var(--text); }
.price { margin: 0 0 0.25rem; font-size: 2.5rem; font-weight: 750; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price span { font-size: 1.0625rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0; }
.plan .plan-note { color: var(--text-muted); margin: 0 0 1.25rem; min-height: 1.6em; }
.plan .ticks { margin: auto 0 0; }
.plan-featured { border: 2px solid var(--primary); }
/* The Monthly | Yearly switch (site/README.md "Pricing"): radios as one segmented control; each paid card holds both
   sides and :has() shows the checked one (no :has(): both sides, no switch). */
.period-switch {
  position: relative; display: flex; flex-wrap: wrap; gap: 0.25rem; justify-self: start; align-self: end;
  min-width: 0; margin: 0; padding: 0.25rem; border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  background: var(--surface);
}
.period-switch input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; }
.period-switch label {
  display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.25rem 0.5rem;
  min-height: 3rem; padding: 0.375rem 1.125rem; border-radius: var(--radius-md);
  color: var(--text); font-weight: 650; line-height: 1.25; cursor: pointer;
}
.period-switch label:hover { background: var(--surface-alt); }
.period-switch input:checked + label { background: var(--primary); color: var(--on-primary); }
.period-switch input:focus-visible + label { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.period-switch .save {
  padding: 0.0625rem 0.5rem; border-radius: 999px; background: var(--primary-soft); color: var(--on-primary-soft);
  font-size: 0.875rem; font-weight: 700; white-space: nowrap;
}
.price-was { margin: 0 0 0.125rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.plan-pro .period h3 { margin-bottom: 0.5rem; }
.plan-pro .period .tag { margin-left: 0.25rem; }
.plans-pro { grid-template-columns: minmax(0, 1fr); }
.plans-pro .plan .ticks { margin-top: 0; }
@media (max-width: 39.99em) {
  .plans-switch > .period-switch { justify-self: stretch; }
  .period-switch label { flex: 1 1 auto; }
}
.plans-ladder > .period-switch { grid-column: 1 / -1; }
@media (min-width: 35.5em) {
  .plans-ladder > .period-switch { order: -1; }
}
@media (min-width: 40em) {
  .plans-pro { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans-pro > .period-switch { order: -1; grid-column: 2; }
}
@supports selector(:has(*)) {
  .plans-switch:has(#period-year:checked) .period-month,
  .plans-switch:has(#period-month:checked) .period-year { display: none; }
}
@supports not selector(:has(*)) {
  .period-switch { display: none; }
}
.founding {
  display: grid; gap: 0.25rem 2rem; margin-top: 1rem; padding: 1.75rem; border-radius: var(--radius-lg);
  background: var(--primary-soft); color: var(--on-primary-soft); border: 1px solid var(--primary-soft-pressed);
}
.founding h3 { margin: 0 0 0.35rem; font-family: var(--font-serif); font-size: 1.5rem; }
.founding p { margin: 0; }
.founding a { color: inherit; font-weight: 650; }
.fine-print { margin-top: 1.5rem; color: var(--text-muted); font-size: 0.9375rem; max-width: 52rem; }

/* Privacy promise */
.promise-grid { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.promise-grid li { margin: 0; }

/* FAQ */
.faq { display: grid; gap: 0.75rem; max-width: 52rem; }
.faq details { border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.5rem;
  padding: 0.875rem 1.25rem; cursor: pointer; list-style: none; font-weight: 650; border-radius: var(--radius-lg);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 0.6rem; height: 0.6rem; margin-right: 0.25rem;
  border-right: 2.5px solid var(--primary-text); border-bottom: 2.5px solid var(--primary-text);
  transform: translateY(-25%) rotate(45deg);
}
.faq details[open] summary::after { transform: translateY(25%) rotate(-135deg); }
.faq .answer { padding: 0 1.25rem 1.25rem; }
.faq .answer > :last-child { margin-bottom: 0; }

/* Beta call to action */
.beta-card {
  padding: 2.25rem 1.5rem; border-radius: var(--radius-xl); background: var(--primary); color: var(--on-primary);
  box-shadow: var(--shadow-raised);
}
@media (min-width: 48em) { .beta-card { padding: 3.5rem; } }
.beta-card h2 { color: inherit; }
.beta-card a:not(.btn) { color: inherit; }
#beta { padding-top: 1.5rem; }
.beta-card :focus-visible { outline-color: var(--on-primary); }
.beta-card .ticks li::before { border-color: var(--on-primary); }
.beta-card .small { opacity: 1; }
.btn-light { background: var(--surface); color: var(--primary-text); }
.btn-light:hover { background: var(--primary-soft); }
.beta-cols { display: grid; gap: 1rem 3rem; }
@media (min-width: 56em) { .beta-cols { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; } }

/* ---------------------------------------------------------------------------------------------------------------
   Content pages (support, beta, legal, auth, 404) */

.page-head { padding: 3rem 0 1.5rem; }
.page-head h1 { font-size: clamp(2rem, 1.6rem + 1.8vw, 2.875rem); }
.page-head .lead { margin-bottom: 0; }

.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.4375rem, 1.3rem + 0.6vw, 1.75rem); margin: 2.5rem 0 0.75rem; scroll-margin-top: 1rem; }
.prose h3 { font-size: 1.1875rem; margin: 2rem 0 0.5rem; scroll-margin-top: 1rem; }
.prose li > ul, .prose li > ol { margin: 0.35em 0 0; }
.prose .actions { margin: 1.25rem 0 1.5rem; }
.prose code { font-size: 0.9em; background: var(--surface-alt); padding: 0.1em 0.35em; border-radius: 6px; }
.legal-meta { color: var(--text-muted); font-weight: 600; }

.draft-banner {
  display: flex; gap: 0.875rem; align-items: flex-start; margin: 0 0 2rem; padding: 1rem 1.25rem;
  border-radius: var(--radius-lg); background: var(--warning-soft); color: var(--on-warning-soft);
  border: 1px solid var(--warning-border);
}
.draft-banner svg { width: 1.5rem; height: 1.5rem; flex: none; color: var(--warning); margin-top: 0.15rem; }
.draft-banner p { margin: 0; }
mark.placeholder {
  background: var(--warning-soft); color: var(--on-warning-soft); border-bottom: 2px dotted var(--warning);
  padding: 0 0.15em; border-radius: 3px;
}
/* A long legal page's contents (lib/pages.mjs `legalContents`), folded like the FAQ. */
.legal-contents { margin: 0 0 2rem; }
.legal-contents details { border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.legal-contents summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.5rem;
  padding: 0.875rem 1.25rem; border-radius: var(--radius-lg); font-weight: 650; cursor: pointer; list-style: none;
}
.legal-contents summary::-webkit-details-marker { display: none; }
.legal-contents summary::after {
  content: ""; flex: none; width: 0.6rem; height: 0.6rem; margin-right: 0.25rem;
  border-right: 2.5px solid var(--primary-text); border-bottom: 2.5px solid var(--primary-text);
  transform: translateY(-25%) rotate(45deg);
}
.legal-contents details[open] summary::after { transform: translateY(25%) rotate(-135deg); }
.legal-contents ul { list-style: none; margin: 0; padding: 0 1.25rem 1rem; }
.legal-contents li + li { margin-top: 0; }
.legal-contents a { display: inline-flex; align-items: center; min-height: 2.75rem; }

/* Tables in legal text: a normal table on wide screens, one card per row on phones. */
.table-wrap { margin: 1.25rem 0 1.5rem; }
table.stack { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.5; }
table.stack th, table.stack td { text-align: left; vertical-align: top; padding: 0.75rem; border-bottom: 1px solid var(--border); }
table.stack th { background: var(--surface-alt); font-weight: 700; }
table.stack tbody tr { background: var(--surface); }
@media (max-width: 47.99em) {
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; }
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack tr { margin-bottom: 0.75rem; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
  table.stack td { border-bottom: 1px solid var(--border); }
  table.stack td:last-child { border-bottom: 0; }
  table.stack td::before { content: attr(data-label); display: block; font-weight: 700; color: var(--text-muted); font-size: 0.875rem; }
}

.callout {
  margin: 2rem 0; padding: 1.5rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.callout h2 { margin-top: 0; }
.callout > :last-child { margin-bottom: 0; }

.contact-card {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.5rem; margin: 0 0 2.5rem; padding: 1.75rem;
  border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-card);
}
.contact-card .email { font-size: clamp(1.25rem, 1.1rem + 1vw, 1.625rem); font-weight: 700; overflow-wrap: anywhere; }
.contact-card p { margin: 0; }

/* The waitlist form (/waitlist/, /es/lista/): a plain form posted to the waitlist-join function, which sends the
   visitor back to the thank-you page or to one of the problems below (#invalid, #check-failed...): each shows only
   when it is the page's target, so no script is needed for it. */
.waitlist-form {
  display: grid; gap: 1.25rem; margin: 0 0 1.5rem; padding: 1.5rem; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-card);
}
.waitlist-form .field { display: grid; gap: 0.375rem; margin: 0; }
.waitlist-form fieldset { border: 0; padding: 0; min-width: 0; }
.waitlist-form legend, .waitlist-form label:not(.choice) { font-weight: 650; }
.waitlist-form legend { margin-bottom: 0.25rem; }
.waitlist-form input[type="email"], .waitlist-form input[type="tel"] {
  min-height: 3.5rem; padding: 0.75rem 1rem; border-radius: var(--radius-md); border: 1px solid var(--border-strong);
  background: var(--canvas); color: var(--text); font: inherit; width: 100%;
}
.waitlist-form input:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.waitlist-form .hint { color: var(--text-muted); font-size: 0.9375rem; }
.waitlist-form .choice { display: flex; align-items: flex-start; gap: 0.75rem; min-height: 3rem; padding: 0.5rem 0; cursor: pointer; }
.waitlist-form .choice input { flex: none; width: 1.5rem; height: 1.5rem; margin: 0.125rem 0 0; accent-color: var(--primary); }
.waitlist-form .cf-turnstile { min-height: 65px; }
.waitlist-form .actions { margin: 0; }
.waitlist-form .btn { width: 100%; }
.form-problem {
  display: none; align-items: flex-start; gap: 0.5rem; margin: 0; padding: 0.875rem 1rem; border-radius: var(--radius-md);
  background: var(--warning-soft); color: var(--on-warning-soft); border: 1px solid var(--warning-border); font-weight: 600;
}
.form-problem:target { display: flex; }
.form-problem svg { width: 1.25em; height: 1.25em; flex: none; margin-top: 0.125em; }
.waitlist-card { margin-top: 2rem; }
.callout .actions + p, .callout .stores + p { margin-top: 1.25rem; }
/* A plan's name that must not break at its hyphen ("All-Access"). */
.nowrap { white-space: nowrap; }

pre.template {
  white-space: pre-wrap; margin: 1rem 0; padding: 1.25rem; border-radius: var(--radius-md); background: var(--surface);
  border: 1px solid var(--border-strong); font: inherit; font-size: 1rem; line-height: 1.7;
}

/* /licenses/: the app's open source notices (lib/licenses.mjs) */
.license-jump { color: var(--text-muted); }
.license-list { list-style: none; padding: 0; margin: 0 0 1rem; border-top: 1px solid var(--border); }
.license-list li { padding: 0.875rem 0; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.license-list p { margin: 0 0 0.25rem; }
.license-list p:last-child { margin-bottom: 0; }
.license-meta { color: var(--text-muted); }
.license-notice { margin-top: 0.5rem; padding: 0.75rem 1rem; border-radius: var(--radius-md); background: var(--surface-alt); }
.license-notice p { margin: 0 0 0.5rem; }
.license-fold { margin: 0 0 0.75rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); scroll-margin-top: 1rem; }
.license-fold summary { min-height: 3.5rem; padding: 0.875rem 1.25rem; cursor: pointer; font-weight: 650; border-radius: var(--radius-lg); overflow-wrap: anywhere; }
.license-text { padding: 0 1.25rem 1rem; font-size: 0.9375rem; overflow-wrap: anywhere; }

/* /auth: a single message, nothing else */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 2rem var(--gutter); }
.auth-card {
  max-width: 34rem; padding: 2.25rem 1.75rem; border-radius: var(--radius-xl); background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow-raised); text-align: center;
}
.auth-card img { margin: 0 auto 1.5rem; width: 4rem; height: 4rem; border-radius: 1rem; }
.auth-card h1 { font-size: clamp(1.75rem, 1.5rem + 1.2vw, 2.25rem); }
.auth-card p { color: var(--text-muted); }
.auth-card p:last-child { margin-bottom: 0; }
.auth-card { min-width: 0; }
.auth-card a { overflow-wrap: anywhere; }

.not-found { padding: 5rem 0 2rem; }
.not-found .actions + p { margin-top: 1.5rem; }

/* The one-stop shop (site.config.mjs `oneStopShop`; nothing here applies while its switches are off): its header links
   need 80em beside the brand in Spanish (they take the places of How it works and Support), the home page's cards keep
   their list under their text, the ladder's plans come in two groups with each list under its note, and the students'
   page's hero has no phone beside it. */
@media (max-width: 79.99em) { .site-nav .nav-wider { display: none; } }
.one-stop-card .ticks { margin: 1rem 0 0; }
.one-stop-card .actions { margin-top: 1.25rem; }
.plans-group { margin: 2.25rem 0 0.875rem; font-size: 1.1875rem; }
.section-head + .plans-group { margin-top: 0; }
.plans-ladder .plan .ticks { margin-top: 0; }
.plans-ladder .price span { white-space: nowrap; }
.study-hero .hero-copy { max-width: 46rem; }
.study-hero .stores + .small { margin-top: 1rem; }
