/* =============================================================================
   learn.css: every page the learn Worker writes (landing, test checkout, welcome, sign in, privacy, terms).
   Colours, faces and radii come from the main site's tokens.css (copied by build.py); each has her brand value as a
   fallback so the pages stay hers even before tokens.css is in. The Bali devices kept: pills 48px tall, radius 20,
   sans label and a drawn arrow; white cards; no shadows; no accent borders; section rhythm 96 / 56.
   ========================================================================== */

:root {
  --l-ground: var(--ground, #F8F2E8);
  --l-card: var(--card, #FFFFFF);
  --l-ink: var(--ink, #1D1E3A);
  --l-brand: var(--brand, #4747F3);
  --l-mint: var(--mint, #00D588);
  --l-mint-ink: var(--mint-ink, #08734B);
  --l-quiet: color-mix(in srgb, var(--l-ink) 74%, transparent);
  --l-line: color-mix(in srgb, var(--l-ink) 14%, transparent);
  --l-tint: color-mix(in srgb, var(--l-mint) 14%, var(--l-ground));
  --l-err: #A12A1E;
  --l-serif: var(--serif, "Fraunces", "Iowan Old Style", Georgia, serif);
  --l-sans: var(--sans, "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
  --l-pill: var(--r-pill, 20px);
  --l-box: var(--r-box, 40px);
  --l-sec: 96px;
  --l-gut: 32px;
}
@media (max-width: 600px) { :root { --l-sec: 56px; --l-gut: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.lp {
  margin: 0; background: var(--l-ground); color: var(--l-ink);
  font-family: var(--l-sans); font-size: 18px; line-height: 1.55; letter-spacing: -0.005em;
  min-height: 100vh; display: flex; flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--l-brand); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--l-brand); outline-offset: 2px; }
b { font-weight: 600; }
.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 16px; z-index: 10; background: var(--l-card); padding: 8px 14px; border-radius: var(--l-pill); }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--l-gut); }
.narrow { max-width: 760px; }
.lp-main { flex: 1 0 auto; }
.sec { padding: var(--l-sec) 0; }
.sec--tint { background: var(--l-tint); }

/* ---- header: a white pill 8px from the top, her logo left ---- */
.lp-head { padding: 8px 8px 0; }
.lp-head__in {
  max-width: 1180px; margin: 0 auto; min-height: 64px; padding: 8px 8px 8px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--l-card); border-radius: var(--l-pill);
}
.lp-logo { display: block; flex: none; }
.lp-logo img { height: 52px; width: auto; }
@media (max-width: 600px) { .lp-head__in { min-height: 60px; padding-left: 14px; } .lp-logo img { height: 40px; } }

/* ---- type ---- */
.h1 {
  font-family: var(--l-serif); font-weight: 400; color: var(--l-brand);
  font-size: clamp(40px, 5.2vw, 64px); line-height: 1.04; letter-spacing: -0.02em; margin: 0 0 20px;
  font-variation-settings: "opsz" 96;
}
.h2 { font-family: var(--l-serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 24px; color: var(--l-ink); }
.h3 { font-family: var(--l-sans); font-weight: 600; font-size: 20px; line-height: 1.3; margin: 0 0 8px; }
.lead { font-size: 20px; line-height: 1.5; margin: 0 0 24px; max-width: 34em; }
.small { font-size: 16px; color: var(--l-quiet); }
.chip {
  display: inline-flex; align-items: center; min-height: 32px; padding: 6px 14px; margin: 0 0 20px;
  border-radius: var(--l-pill); background: var(--l-card); color: var(--l-ink);
  font-size: 14px; line-height: 18px; letter-spacing: 0.02em; text-transform: uppercase;
}
.chip--mint, .card .chip { background: var(--l-tint); color: var(--l-mint-ink); }
.note { margin: 0 0 24px; padding: 14px 18px; border-radius: var(--l-pill); background: var(--l-card); font-size: 17px; }
.note--warn { background: #FFF1E6; }

/* ---- pills (Bali's signature: 48px, radius 20, padding 0 20, a drawn arrow) ---- */
.pills { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 8px; }
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 20px; border: 1px solid transparent; border-radius: var(--l-pill);
  font-family: var(--l-sans); font-size: 20px; line-height: 24px; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.pill .ar { width: 18px; height: 18px; flex: none; }
.pill__t { display: inline-flex; align-items: center; }
.pill--dark { background: var(--l-ink); color: #FFFFFF; }
.pill--dark:hover { background: var(--l-brand); }
.pill--outline { background: transparent; color: var(--l-ink); border-color: var(--l-ink); }
.pill--outline:hover { background: var(--l-ink); color: #FFFFFF; }
.pill[data-small] { height: 44px; font-size: 18px; padding: 0 16px; }
@media (max-width: 600px) { .pill { font-size: 18px; } .pills .pill { flex: 1 1 auto; } }

/* ---- landing ---- */
.hero { padding-top: 64px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; align-items: center; }
.hero__ill { display: block; color: var(--l-mint); }
.hero__ill img { width: 100%; max-width: 380px; margin-left: auto; }
.price { display: flex; align-items: baseline; gap: 12px; margin: 0 0 28px; }
.price__n { font-family: var(--l-serif); font-size: 44px; line-height: 1; color: var(--l-ink); }
.price__t { font-size: 17px; color: var(--l-quiet); }
.sc { color: inherit; text-decoration: none; font-size: .55em; vertical-align: super; margin-left: 2px; }
@media (max-width: 860px) {
  .hero { padding-top: 32px; }
  .hero__grid { grid-template-columns: 1fr; gap: 8px; }
  .hero__ill { order: -1; }
  .hero__ill img { max-width: 200px; margin: 0; }
}

.steps { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.card { background: var(--l-card); border-radius: var(--l-pill); padding: 24px; }
.steps .card p { margin: 0; color: var(--l-quiet); font-size: 17px; }
.card__n {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; margin-bottom: 16px;
  background: var(--l-mint); color: var(--l-ink); font-weight: 600; font-size: 17px;
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---- Add to Home Screen help ---- */
.a2hs { background: var(--l-card); border-radius: var(--l-pill); margin: 24px 0 0; }
.a2hs summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.a2hs summary::-webkit-details-marker { display: none; }
.a2hs summary::after { content: "+"; font-size: 24px; line-height: 1; font-weight: 400; }
.a2hs[open] summary::after { content: "\2212"; }
.a2hs__body { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; padding: 0 20px 20px; }
.a2hs__h { font-weight: 600; margin: 0 0 6px; }
.a2hs ol { margin: 0; padding-left: 20px; font-size: 17px; }
.a2hs__note { grid-column: 1 / -1; margin: 8px 0 0; font-size: 16px; color: var(--l-quiet); }
@media (max-width: 600px) { .a2hs__body { grid-template-columns: 1fr; } }

/* ---- forms ---- */
.lp-form { margin: 0 0 24px; }
.lp-form label { display: block; font-weight: 600; font-size: 16px; margin: 16px 0 8px; }
.lp-form input[type=email], .lp-form input[type=text] {
  width: 100%; height: 48px; padding: 0 16px; font: inherit; font-size: 18px; color: var(--l-ink);
  background: var(--l-card); border: 1px solid var(--l-ink); border-radius: 12px;
}
.lp-form__row { display: flex; gap: 12px; align-items: stretch; }
.lp-form__row input { flex: 1 1 auto; min-width: 0; }
@media (max-width: 600px) { .lp-form__row { flex-direction: column; } }
.lp-form--code input { letter-spacing: 3px; font-variant-numeric: tabular-nums; }
.lp-hint { font-size: 15px; color: var(--l-quiet); margin: 8px 0 0; }
.lp-err { color: var(--l-err); font-size: 16px; margin: 12px 0 0; }

/* ---- the test checkout ---- */
.co__banner { background: var(--l-tint); border-radius: var(--l-pill); padding: 18px 22px; margin: 0 0 16px; }
.co__banner p { margin: 0; font-size: 17px; }
.co__banner-h { font-family: var(--l-serif); font-size: 26px !important; line-height: 1.2; color: var(--l-ink); margin-bottom: 4px !important; }
.co__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 12px; align-items: start; }
.co__sum p { color: var(--l-quiet); }
.co__total { display: flex; justify-content: space-between; border-top: 1px solid var(--l-line); padding-top: 16px; margin: 24px 0 0; font-size: 22px; color: var(--l-ink) !important; }
.co__form label:first-child { margin-top: 0; }
.co__two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co__form .pill { width: 100%; margin-top: 24px; }
@media (max-width: 860px) { .co__grid { grid-template-columns: 1fr; } }

/* ---- the email as it would arrive (demo) ---- */
.mail { margin: 8px 0 24px; }
.mail__demo { margin: 0 0 10px; font-size: 16px; color: var(--l-mint-ink); font-weight: 600; }
.mail__card { border-radius: var(--l-pill); overflow: hidden; background: var(--l-card); border: 1px solid var(--l-line); }
.mail__meta { margin: 0; padding: 14px 18px; display: grid; gap: 4px; font-size: 15px; border-bottom: 1px solid var(--l-line); }
.mail__meta div { display: flex; gap: 10px; }
.mail__meta dt { width: 64px; flex: none; color: var(--l-quiet); }
.mail__meta dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.mail__body > div { padding: 16px 8px !important; }
.mail__sent { font-size: 17px; }

/* ---- privacy and terms ---- */
.placeholder { margin: 0 0 32px; background: var(--l-tint); }
.placeholder__h { font-family: var(--l-serif); font-size: 28px; margin: 0 0 8px; color: var(--l-ink); }
.placeholder p:last-child { margin: 0; }
.facts { padding-left: 20px; }
.facts li { margin: 0 0 8px; }

/* ---- the drawing ---- */
.lp-ill img { pointer-events: none; }

/* ---- footer ---- */
.lp-foot { padding: 48px 0 32px; background: var(--l-card); margin-top: auto; }
.demo-notes { background: var(--l-ground); border-radius: var(--l-pill); padding: 16px 20px; margin: 0 0 32px; font-size: 15px; color: var(--l-quiet); }
.demo-notes__h { margin: 0 0 6px; font-weight: 600; color: var(--l-ink); font-size: 14px; text-transform: uppercase; letter-spacing: .02em; }
.demo-notes ul { margin: 0; padding-left: 18px; }
.lp-foot__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.lp-foot__brand { font-family: var(--l-serif); font-size: 32px; color: var(--l-brand); text-decoration: none; }
.lp-foot__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.lp-foot__nav a, .lp-foot__credit { color: var(--l-ink); font-size: 16px; }
