/* learnquarter.com: shared styles for the home page and the legal pages.
   Brand: LearnQuarter guidelines v1 (packages/ui/brand.ts). White and ink
   carry most of the page, cobalt leads, sky / green-teal / coral are the four
   jobs (Win, Teach, Run, Care) and are used in small amounts.
   Layout idea: a "quarter" is a district seen from above, so the hero sits on
   a faint grid of rounded city blocks. */

@font-face { font-family: "Prompt"; font-weight: 600; font-style: normal; font-display: swap; src: url("/lq-site/assets/prompt-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Prompt"; font-weight: 700; font-style: normal; font-display: swap; src: url("/lq-site/assets/prompt-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("/lq-site/assets/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("/lq-site/assets/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("/lq-site/assets/inter-latin-600-normal.woff2") format("woff2"); }

:root {
  --cobalt: #1E56C8;
  --cobalt-deep: #17459F;
  --cobalt-ink: #12306E;
  --cobalt-wash: #EEF3FC;
  --sky: #5DBDF4;
  --teal: #1FA58A;
  --coral: #FF6A55;
  --ink: #16181D;
  --text: #3A404C;
  --muted: #5B6270;
  --line: #E3E7EE;
  --line-soft: #EEF1F5;
  --soft: #F5F7FA;
  --white: #FFFFFF;
  --brand: "Prompt", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(22, 24, 29, 0.05), 0 12px 36px rgba(30, 86, 200, 0.10);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { font-family: var(--brand); margin: 0; letter-spacing: -0.015em; text-wrap: balance; color: var(--ink); }
p { margin: 0; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }
::selection { background: #CFE0FB; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--white); padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }

.in { width: 100%; max-width: 1200px; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* ---------- top bar ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 31; background: rgba(255, 255, 255, 0.92); }
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.topbar.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(22, 24, 29, 0.05); }
.nav { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { display: block; height: 30px; width: auto; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0 auto; padding: 0; }
.nav-links a { display: inline-block; padding: 8px 12px; border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--text); transition: color .15s, background-color .15s; }
.nav-links a:hover { color: var(--cobalt); background: var(--cobalt-wash); }
.nav-end { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-links + .nav-end { margin-left: 0; }
.signin { padding: 8px 12px; border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--text); }
.signin:hover { color: var(--cobalt); background: var(--cobalt-wash); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; font-family: var(--body); font-weight: 600; font-size: 16px; line-height: 1; border-radius: 12px; padding: 14px 22px; border: 1px solid transparent; cursor: pointer; transition: background-color .15s, border-color .15s, transform .15s, box-shadow .15s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform .15s; }
.btn:hover svg { transform: translateX(2px); }
.btn-primary { background: var(--cobalt); color: var(--white); box-shadow: 0 6px 18px rgba(30, 86, 200, 0.28); }
.btn-primary:hover { background: var(--cobalt-deep); }
.btn-ghost { background: var(--white); color: var(--cobalt); border-color: #C9D6EF; }
.btn-ghost:hover { border-color: var(--cobalt); }
.btn-white { background: var(--white); color: var(--cobalt); }
.btn-white:hover { background: #E8EFFC; }
.btn-sm { min-height: 40px; font-size: 14.5px; padding: 10px 16px; border-radius: 10px; box-shadow: none; }

/* ---------- shared section bits ---------- */
.sec { padding-block: clamp(64px, 9vw, 112px); scroll-margin-top: 72px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cobalt); }
.eyebrow i { width: 8px; height: 8px; border-radius: 2px; background: currentColor; display: inline-block; }
.sec-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 600; line-height: 1.1; }
.sec-head p { font-size: 18px; color: var(--text); max-width: 40em; }
.sec-head.center { margin-inline: auto; text-align: center; align-items: center; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--white) 0%, #F4F7FD 100%); border-bottom: 1px solid var(--line-soft); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 46px, rgba(30, 86, 200, 0.075) 46px 48px),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(30, 86, 200, 0.075) 46px 48px);
  -webkit-mask-image: radial-gradient(ellipse 60% 75% at 78% 42%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 75% at 78% 42%, #000 0%, transparent 75%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 72px); align-items: center; padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 104px); }
.hero-copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hero h1 { font-size: clamp(42px, 6.4vw, 76px); font-weight: 700; line-height: 1.02; letter-spacing: -0.025em; }
.hero h1 span { color: var(--cobalt); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--text); max-width: 33em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.note { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--teal); opacity: 0.35; }

/* product picture */
.shot { position: relative; min-width: 0; padding: 18px 0 52px; }
.window { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 2px 4px rgba(22, 24, 29, 0.04), 0 30px 70px rgba(30, 86, 200, 0.16); overflow: hidden; }
.win-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); background: #FBFCFE; }
.co { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14.5px; min-width: 0; }
.mono { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; color: var(--white); font-family: var(--brand); font-weight: 700; font-size: 14px; flex-shrink: 0; background: #7A3FB8; }
.on { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.on img { height: 13px; width: auto; display: block; }
.win-body { display: grid; grid-template-columns: 58px minmax(0, 1fr); min-height: 330px; }
.rail { border-right: 1px solid var(--line-soft); padding: 14px 0; display: flex; flex-direction: column; align-items: center; gap: 10px; background: #FBFCFE; }
.rail span { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; }
.rail svg { width: 16px; height: 16px; }
.rail .r-win { background: #E3F3FD; color: #1478B5; }
.rail .r-teach { background: #DDF3EE; color: #137A65; }
.rail .r-run { background: #E6EDFA; color: var(--cobalt); }
.rail .r-care { background: #FFE7E3; color: #C2412E; }
.win-main { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.hello { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.hello b { font-family: var(--brand); font-size: 19px; font-weight: 600; }
.hello span { font-size: 12.5px; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile { border: 1px solid var(--line-soft); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tile small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile strong { font-family: var(--brand); font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; }
.feed { display: flex; flex-direction: column; }
.feed div { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line-soft); font-size: 13.5px; }
.feed div:first-child { border-top: 0; }
.feed i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.feed em { font-style: normal; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.feed span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.float { position: absolute; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 12px 14px; display: flex; align-items: center; gap: 12px; font-size: 13.5px; }
.float b { display: block; font-weight: 600; font-size: 13.5px; }
.float small { display: block; color: var(--muted); font-size: 12px; }
.float .ic { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.float .ic svg { width: 18px; height: 18px; }
.f-paid { right: -16px; bottom: 0; }
.f-paid .ic { background: #DDF3EE; color: #137A65; }
.f-words { left: -26px; bottom: 6px; }
.f-words .ic { background: #FFE7E3; color: #C2412E; }
.example-tag { position: absolute; right: 0; top: -6px; font-size: 11.5px; color: var(--muted); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
@media (prefers-reduced-motion: no-preference) {
  .f-paid { animation: bob 6s ease-in-out infinite; }
  .f-words { animation: bob 7s ease-in-out -2s infinite; }
  @keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
}

/* ---------- made for ---------- */
.madefor { padding-block: 28px; border-bottom: 1px solid var(--line-soft); }
.madefor-row { display: flex; align-items: center; gap: 14px 28px; flex-wrap: wrap; justify-content: center; }
.madefor-row > span { font-size: 14px; color: var(--muted); font-weight: 500; }
.kinds { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; list-style: none; margin: 0; padding: 0; }
.kinds li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line-soft); font-size: 14.5px; font-weight: 500; color: var(--ink); }
.kinds svg { width: 16px; height: 16px; color: var(--cobalt); }

/* ---------- four parts ---------- */
.jobs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.job { border: 1px solid var(--line); border-radius: 18px; padding: 24px 22px; display: flex; flex-direction: column; gap: 18px; background: var(--white); min-width: 0; transition: border-color .2s, box-shadow .2s, transform .2s; }
.job:hover { border-color: #CFD8E8; box-shadow: var(--shadow); transform: translateY(-2px); }
.job-head { display: flex; flex-direction: column; gap: 6px; }
.job-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.job-tag i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.job h3 { font-size: 22px; font-weight: 600; line-height: 1.2; }
.apps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.apps li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start; }
.apps .ic { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }
.apps .ic svg { width: 18px; height: 18px; }
.apps b { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-family: var(--brand); font-weight: 600; font-size: 16px; line-height: 1.3; }
.apps b small { font-family: var(--body); font-weight: 500; font-size: 12.5px; color: var(--muted); }
.apps p { font-size: 14.5px; color: var(--text); line-height: 1.5; margin-top: 2px; }
.j-win .job-tag { color: #1478B5; } .j-win .job-tag i { background: var(--sky); } .j-win .ic { background: #E3F3FD; color: #1478B5; }
.j-teach .job-tag { color: #137A65; } .j-teach .job-tag i { background: var(--teal); } .j-teach .ic { background: #DDF3EE; color: #137A65; }
.j-run .job-tag { color: var(--cobalt); } .j-run .job-tag i { background: var(--cobalt); } .j-run .ic { background: #E6EDFA; color: var(--cobalt); }
.j-care .job-tag { color: #C2412E; } .j-care .job-tag i { background: var(--coral); } .j-care .ic { background: #FFE7E3; color: #C2412E; }

/* ---------- one set of records ---------- */
.flow-sec { background: var(--soft); border-block: 1px solid var(--line-soft); }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; position: relative; }
.flow::before { content: ""; position: absolute; left: 10%; right: 10%; top: 27px; height: 2px; background: repeating-linear-gradient(90deg, #BFCDE8 0 8px, transparent 8px 14px); }
.flow li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding-inline: 10px; min-width: 0; }
.flow .dot { width: 56px; height: 56px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; background: var(--white); border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(22, 24, 29, 0.06); position: relative; z-index: 1; }
.flow .dot svg { width: 24px; height: 24px; }
.flow li > div { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.flow b { font-family: var(--brand); font-weight: 600; font-size: 17px; line-height: 1.25; }
.flow p { font-size: 14.5px; color: var(--text); max-width: 15em; }
.flow small { font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--muted); }

/* ---------- made yours ---------- */
.yours { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.points li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
.points .ic { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--cobalt-wash); color: var(--cobalt); }
.points .ic svg { width: 20px; height: 20px; }
.points b { display: block; font-family: var(--brand); font-weight: 600; font-size: 18px; margin-bottom: 2px; }
.points span { color: var(--text); font-size: 15.5px; }

.demo { border: 1px solid var(--line); border-radius: 20px; background: var(--white); box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.demo-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.demo-top .mono { background: var(--brandc, #7A3FB8); transition: background-color .25s; }
.demo-body { padding: 20px 18px 22px; display: flex; flex-direction: column; gap: 18px; }
.demo-label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; display: block; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatches button { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { font: 500 14px var(--body); min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid #C9D6EF; background: var(--white); color: var(--cobalt); cursor: pointer; transition: background-color .15s, color .15s; }
.seg button[aria-pressed="true"] { background: var(--cobalt); color: var(--white); border-color: var(--cobalt); }
.booking { border: 1px solid var(--line-soft); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: #FBFCFE; }
.booking p { font-size: 16.5px; line-height: 1.5; }
.booking em { font-style: normal; font-weight: 600; color: var(--brandc, #7A3FB8); transition: color .25s; }
.booking .demo-btn { align-self: flex-start; display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--white); background: var(--brandc, #7A3FB8); transition: background-color .25s; }
.wordlist { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.wordlist div { background: var(--soft); border-radius: 8px; padding: 8px 6px; font-size: 13px; text-align: center; min-width: 0; overflow-wrap: anywhere; }

/* ---------- trust ---------- */
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.trust article { border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.trust .ic { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: var(--white); margin-bottom: 6px; }
.trust .ic svg { width: 20px; height: 20px; }
.trust h3 { font-size: 19px; font-weight: 600; }
.trust p { font-size: 15.5px; color: var(--text); }
.trust-more { margin-top: 22px; font-size: 15px; color: var(--muted); }
.trust-more a, .prose a, .faq a, .sec-head a { color: var(--cobalt); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #A9BEE6; }
.trust-more a:hover, .prose a:hover, .faq a:hover, .sec-head a:hover { text-decoration-color: currentColor; }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 26px 24px; border-radius: 18px; background: var(--soft); }
.steps li::before { content: counter(step); font-family: var(--brand); font-weight: 700; font-size: 16px; width: 38px; height: 38px; border-radius: 11px; background: var(--cobalt); color: var(--white); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.steps h3 { font-size: 19px; font-weight: 600; }
.steps p { font-size: 15.5px; color: var(--text); }

/* ---------- questions ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-wrap .sec-head { margin-bottom: 0; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 2px; font-family: var(--brand); font-weight: 600; font-size: 18px; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--cobalt); transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 2px 22px; color: var(--text); font-size: 16px; max-width: 40em; }

/* ---------- closing band ---------- */
.cta { padding-block: clamp(24px, 4vw, 40px) clamp(48px, 6vw, 72px); }
.cta-box { position: relative; overflow: hidden; border-radius: 28px; background: var(--cobalt); color: var(--white); padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; }
.cta-mark { position: absolute; right: -36px; bottom: -48px; width: 300px; height: 300px; opacity: 0.14; pointer-events: none; }
.cta-box h2 { color: var(--white); font-size: clamp(30px, 4.2vw, 46px); font-weight: 600; line-height: 1.1; }
.cta-box p { color: #DCE6FA; font-size: 18px; margin-top: 12px; max-width: 34em; }
.cta-box .actions { position: relative; z-index: 1; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #B9BFCB; padding-block: 64px 0; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 48px; }
.foot-brand { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.foot-brand img { height: 28px; width: auto; display: block; }
.foot-brand p { font-size: 15px; max-width: 24em; line-height: 1.6; }
.social { display: flex; gap: 10px; margin-top: 4px; }
.social a { width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.07); color: var(--white); transition: background-color .15s; }
.social a:hover { background: rgba(255, 255, 255, 0.16); }
.social svg { width: 18px; height: 18px; }
.foot-col { display: flex; flex-direction: column; gap: 14px; }
.foot-col h3 { font-family: var(--body); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { font-size: 15px; color: #B9BFCB; transition: color .15s; }
.foot-col a:hover { color: var(--white); }
.foot-col .addr { font-size: 15px; line-height: 1.6; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, 0.10); padding-block: 22px calc(22px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; font-size: 14px; }
.foot-bottom a { color: #B9BFCB; } .foot-bottom a:hover { color: var(--white); }

/* ---------- legal pages ---------- */
.doc-head { background: linear-gradient(180deg, var(--white) 0%, #F4F7FD 100%); border-bottom: 1px solid var(--line-soft); padding-block: clamp(48px, 7vw, 80px) clamp(36px, 5vw, 56px); }
.doc-head h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 700; line-height: 1.05; margin-top: 12px; }
.doc-head p { margin-top: 14px; color: var(--text); font-size: 18px; max-width: 40em; }
.doc-head .updated { font-size: 14px; color: var(--muted); margin-top: 18px; }
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding-block: clamp(40px, 6vw, 72px) clamp(64px, 9vw, 104px); align-items: start; }
.toc { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; }
.toc b { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.toc a { color: var(--text); padding: 5px 0; }
.toc a:hover { color: var(--cobalt); }
.prose { max-width: 720px; min-width: 0; }
.prose h2 { font-size: 24px; font-weight: 600; margin: 44px 0 12px; scroll-margin-top: 92px; line-height: 1.25; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; font-weight: 600; margin: 26px 0 8px; }
.prose p, .prose li { font-size: 16.5px; color: var(--text); line-height: 1.7; }
.prose p + p { margin-top: 14px; }
.prose ul { margin: 12px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .callout { margin: 18px 0; padding: 18px 20px; border-radius: 14px; background: var(--cobalt-wash); color: var(--cobalt-ink); font-size: 16px; }
.table-wrap { overflow-x: auto; margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.prose th, .prose td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; color: var(--text); }
.prose th { font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: var(--soft); }
.prose tr:last-child td { border-bottom: 0; }
.prose code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 14px; background: var(--soft); padding: 2px 6px; border-radius: 6px; color: var(--ink); }

/* ---------- smaller screens ---------- */
@media (max-width: 1080px) {
  .jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .hero-grid, .yours, .faq-wrap { grid-template-columns: minmax(0, 1fr); }
  .nav-links { display: none; }
  .shot { max-width: 620px; }
  .f-words { left: 8px; }
  .f-paid { right: 8px; }
  .flow { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .flow::before { left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, #BFCDE8 0 8px, transparent 8px 14px); }
  .flow li { flex-direction: row; align-items: flex-start; text-align: left; gap: 18px; padding-inline: 0; }
  .flow li > div { align-items: flex-start; gap: 4px; }
  .flow .dot { flex-shrink: 0; }
  .flow p { max-width: none; }
  .trust, .steps { grid-template-columns: minmax(0, 1fr); }
  .cta-box { grid-template-columns: minmax(0, 1fr); }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; display: none; }
}
@media (max-width: 640px) {
  .prose table { min-width: 0; font-size: 14px; }
  .prose th, .prose td { padding: 10px 12px; }
  .prose td code { word-break: break-all; }
  body { font-size: 15.5px; }
  .jobs { grid-template-columns: minmax(0, 1fr); }
  .signin { display: none; }
  .brand img { height: 26px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles .tile:nth-child(3) { display: none; }
  .win-body { grid-template-columns: minmax(0, 1fr); }
  .rail { display: none; }
  .float { position: static; margin-top: 12px; animation: none !important; }
  .shot { display: flex; flex-direction: column; padding-bottom: 0; }
  .example-tag { position: static; align-self: flex-end; margin-bottom: 10px; }
  .wordlist { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .actions .btn { flex: 1 1 auto; }
}
@media (max-width: 400px) {
  .nav { gap: 12px; }
  .nav-end .btn { padding: 10px 12px; font-size: 13.5px; white-space: nowrap; }
  /* The logo gives way first, so the button always fits beside it. */
  .brand { flex: 0 1 auto; min-width: 0; }
  .brand img { width: 164px; max-width: 100%; height: auto; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
