/* Coursewake homepage. Hand-written, no framework, no external requests.
   Fraunces (headings only) and Geist (everything else) are self-hosted under /assets/fonts. */

@font-face { font-family: "Fraunces"; src: url("/assets/fonts/Fraunces.woff2?v=1ed5ef0e27") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/Geist.woff2?v=19f9c92546") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

/* ---------- Tokens, by role. Light first; true black below (system, then explicit). ---------- */
:root {
  --bg: #ffffff;
  --band: #f6f7f9;
  --surface: #ffffff;
  --text: #15171c;
  --muted: #575c68;
  --line: #e4e6eb;
  --edge: #d3d7de;
  --line-strong: #7d8491;       /* control borders: 3:1 or better */
  --link: #3b53c4;
  --btn: #3b53c4;
  --btn-hover: #2f44a8;
  --on-btn: #ffffff;
  --focus: #3b53c4;
  --mark: #4563d8;
  --butter: #f4ce65;            /* a fill, always with dark ink or beside text */
  --ink: #15171c;
  --blue: #3b53c4;              /* the flat Pocket-blue block */
  --on-blue: #ffffff;
  --on-blue-2: #e4e8fb;
  --prod-bg: #f6f7f9;
  /* the product's own tokens, used only inside the small working demos */
  --p-card: #ffffff;
  --p-card2: #fafbfc;
  --p-line: #e4e6eb;
  --p-text: #15171c;
  --p-muted: #575c68;
  --p-accent: #3557d6;
  --p-on-accent: #ffffff;
  --p-sel: #e8edff;
  --p-ok: #157e3c;
  --p-warn: #b45309;
  --p-bad: #c2261d;
  --chip-s: 65%; --chip-l: 94%; --chip-ts: 55%; --chip-tl: 30%;
  --show-light: block; --show-dark: none;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --band: #0b0c0e; --surface: #111317;
    --text: #e7e9ea; --muted: #9aa0a6; --line: #23272c; --edge: #2f3336; --line-strong: #6b7078;
    --link: #7b93f0; --btn: #f4ce65; --btn-hover: #f9dc86; --on-btn: #15171c; --focus: #8aa4ff;
    --mark: #7b93f0; --prod-bg: #000000;
    --p-card: #000000; --p-card2: #16181c; --p-line: #2f3336; --p-text: #e7e9ea; --p-muted: #8b9096;
    --p-accent: #1d9bf0; --p-on-accent: #000000; --p-sel: #16181c; --p-ok: #00ba7c; --p-warn: #ffd400; --p-bad: #f4212e;
    --chip-s: 30%; --chip-l: 19%; --chip-ts: 62%; --chip-tl: 74%;
    --show-light: none; --show-dark: block;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --band: #0b0c0e; --surface: #111317;
  --text: #e7e9ea; --muted: #9aa0a6; --line: #23272c; --edge: #2f3336; --line-strong: #6b7078;
  --link: #7b93f0; --btn: #f4ce65; --btn-hover: #f9dc86; --on-btn: #15171c; --focus: #8aa4ff;
  --mark: #7b93f0; --prod-bg: #000000;
  --p-card: #000000; --p-card2: #16181c; --p-line: #2f3336; --p-text: #e7e9ea; --p-muted: #8b9096;
  --p-accent: #1d9bf0; --p-on-accent: #000000; --p-sel: #16181c; --p-ok: #00ba7c; --p-warn: #ffd400; --p-bad: #f4212e;
  --chip-s: 30%; --chip-l: 19%; --chip-ts: 62%; --chip-tl: 74%;
  --show-light: none; --show-dark: block;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.62 "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
@media (min-width: 900px) { body { font-size: 1.125rem; } }
figure { margin: 0; }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 400; }
ul, ol, dl, dd { margin: 0; padding: 0; }
a { color: var(--link); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
strong, b { font-weight: 600; }
.on-light { display: var(--show-light); }
.on-dark { display: var(--show-dark); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.js-only { display: none; }
.js .js-only { display: inline; }
.js .no-js { display: none; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 60; background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 720px) { .wrap { padding-inline: 32px; } }
@media (min-width: 1240px) { .wrap { padding-inline: 20px; } }

/* Type: Fraunces on H1 and H2 only. Five sizes. */
h1, h2 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif; font-weight: 500; font-optical-sizing: auto;
  font-variation-settings: "SOFT" 80; text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 1.15rem + 4.1vw, 4.5rem); line-height: 0.97; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 1.3rem + 2.3vw, 3.125rem); line-height: 1.04; letter-spacing: -0.03em; }
h3 { font-weight: 600; font-size: clamp(1.3125rem, 1.15rem + 0.55vw, 1.625rem); line-height: 1.22; letter-spacing: -0.016em; text-wrap: balance; }
.lede { font-size: clamp(1.125rem, 1.04rem + 0.4vw, 1.3125rem); line-height: 1.55; }
.small { font-size: 0.875rem; line-height: 1.55; color: var(--muted); }
.prose { max-width: 60ch; }
.prose > p + p { margin-top: 1em; }

/* Run-in leads, inline chips, standalone statements */
.runin { font-weight: 600; }
.tag {
  display: inline-block; font-weight: 500; font-size: 0.82em; line-height: 1; padding: 0.38em 0.62em; border-radius: 7px;
  background: var(--band); color: var(--text); border: 1px solid var(--line); vertical-align: 0.06em; white-space: nowrap;
}
.band .tag, .moment .stage .tag { background: var(--bg); }
.claim { font-weight: 600; font-size: clamp(1.1875rem, 1.05rem + 0.6vw, 1.4375rem); line-height: 1.3; letter-spacing: -0.012em; }
.claim::before {
  content: ""; display: inline-block; width: 0.55em; height: 0.55em; margin-right: 0.6em; border-radius: 0.18em; background: var(--butter);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.16); vertical-align: 0.05em;
}
kbd {
  font: 500 0.72em/1 "Geist", sans-serif; display: inline-block; padding: 0.34em 0.55em; border: 1px solid var(--line-strong); border-radius: 6px;
  background: var(--surface); color: var(--text); vertical-align: 0.08em; white-space: nowrap;
}
.turn { display: inline-block; font-weight: 600; font-size: 0.84em; line-height: 1; padding: 0.46em 0.75em; border-radius: 9px; background: var(--p-accent); color: var(--p-on-accent); vertical-align: 0.04em; white-space: nowrap; }

/* Course chips, as in the product */
.chip {
  display: inline-block; font: 600 0.75rem/1 "Geist", sans-serif; padding: 5px 8px; border-radius: 7px; white-space: nowrap;
  background: hsl(var(--h, 225) var(--chip-s) var(--chip-l)); color: hsl(var(--h, 225) var(--chip-ts) var(--chip-tl));
}
.chip.eng { --h: 280; } .chip.cs { --h: 225; } .chip.math { --h: 140; } .chip.smp { --h: 225; } .chip.exm { --h: 140; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 12px;
  border: 1px solid transparent; font: 600 1rem/1 "Geist", sans-serif; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--btn); color: var(--on-btn); }
.btn-primary:hover { background: var(--btn-hover); text-decoration: none; }
.btn-ghost { color: var(--text); border-color: var(--line-strong); background: transparent; }
.btn-ghost:hover { border-color: var(--text); text-decoration: none; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 1.0625rem; }
.btn-lg, .pol .btn { white-space: normal; text-align: center; line-height: 1.25; padding-block: 12px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) { .btn-lg { padding: 0 18px; font-size: 1rem; } }

/* ---------- Header ---------- */
.site { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid transparent; }
.site.scrolled { border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: block; line-height: 0; border-radius: 8px; margin-right: auto; flex: none; }
.brand img { height: 24px; width: auto; }
.nav { display: none; }
.tools { display: flex; align-items: center; gap: 10px; }
.tools .btn { min-height: 44px; min-width: 0; padding: 0 16px; font-size: 0.9375rem; }
.tlink { display: none; }
.seg { display: none; padding: 3px; gap: 2px; border: 1px solid var(--line-strong); border-radius: 12px; }
.seg button { appearance: none; border: 0; background: transparent; color: var(--muted); font: 500 0.8125rem/1 "Geist", sans-serif; min-height: 32px; padding: 0 12px; border-radius: 9px; cursor: pointer; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.menu { position: relative; }
.menu summary {
  list-style: none; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line-strong); font: 500 0.9375rem/1 "Geist", sans-serif; color: var(--text);
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--text); color: var(--bg); border-color: var(--text); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); width: min(320px, calc(100vw - 40px)); background: var(--surface); border: 1px solid var(--edge);
  border-radius: 16px; padding: 8px; z-index: 50;
}
.menu-panel a:not(.btn) { display: flex; align-items: center; min-height: 48px; padding: 0 12px; color: var(--text); text-decoration: none; font-weight: 500; border-radius: 10px; }
.menu-panel a:not(.btn):hover { background: var(--band); }
.menu-panel .btn { width: 100%; margin-top: 6px; }
.menu-panel .seg { margin: 10px 4px 4px; width: calc(100% - 8px); }
.js .menu-panel .seg { display: flex; }
.menu-panel .seg button { flex: 1; }
.menu-cta { display: none; }
@media (max-width: 479px) { .tools .btn { padding: 0 12px; font-size: 0.875rem; } .brand img { height: 22px; } .bar { gap: 8px; } .tools { gap: 8px; } }
@media (max-width: 409px) { .tools > .btn { display: none; } .menu-cta { display: flex; } }
@media (min-width: 1240px) {
  .menu { display: none; }
  .nav { display: flex; gap: 2px; margin-right: 12px; }
  .nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.9375rem; border-radius: 10px; white-space: nowrap; }
  .nav a:hover { background: var(--band); }
  .nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
  .js .tools > .seg { display: inline-flex; }
  .tools { gap: 14px; }
  .tlink { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; color: var(--text); font-weight: 500; font-size: 0.9375rem; text-decoration: none; white-space: nowrap; }
  .tlink:hover { color: var(--link); text-decoration: underline; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(28px, 4.5vw, 64px) clamp(40px, 5.5vw, 80px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center; }
.hero-copy h1 { max-width: 12em; }
.hero-copy .lede { margin-top: 22px; max-width: 33em; }
.hero-copy .cta { margin-top: 28px; }
.fine { margin-top: 16px; font-size: 0.875rem; line-height: 1.55; color: var(--muted); text-wrap: balance; }
.fine span { white-space: nowrap; }
@media (max-width: 359px) { .hero-copy h1 { font-size: 2.125rem; } }
.window { margin: 0; min-width: 0; }
.win { border: 1px solid var(--edge); border-radius: 16px; overflow: hidden; background: var(--prod-bg); }
.win-bar { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 14px; background: var(--surface); border-bottom: 1px solid var(--edge); }
.win-url { flex: 1 1 auto; max-width: 340px; font-size: 0.8125rem; line-height: 1; color: var(--muted); background: var(--prod-bg); border-radius: 999px; padding: 9px 14px; }
.win-ext { margin-left: auto; width: 26px; height: 26px; }
.win-view { overflow: hidden; }
.win-view img { width: 100%; }
.window figcaption { margin-top: 12px; font-size: 0.8125rem; line-height: 1.5; color: var(--muted); max-width: 62ch; }
@media (max-width: 719px) {
  .win { border-bottom: 0; border-radius: 14px 14px 0 0; -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 84px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 84px), transparent); }
  .win-view { aspect-ratio: 772 / 400; }
  .win-view img { height: 100%; object-fit: cover; object-position: top; }
  .window figcaption { margin-top: 6px; }
}
/* narrow phones: zoom in on the Next due card so its text stays about 11px, instead of shrinking the whole dashboard to 6px */
@media (max-width: 479px) {
  .win-view { aspect-ratio: 3 / 2; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
  .win-view img { width: 150%; max-width: none; height: auto; object-fit: fill; }
}
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px 56px; } .hero-copy h1 { font-size: clamp(2.6rem, 4.9vw, 4.4rem); } }

/* ---------- Tour: the Pocket seam ---------- */
.tour { border-top: 1px solid var(--line); padding-block: clamp(56px, 7vw, 96px) clamp(64px, 8vw, 112px); }
.seam { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center; }
.pk-fig { position: relative; width: min(100%, 320px); aspect-ratio: 320 / 372; margin-inline: auto; }
.pk-fig .stack { position: absolute; inset: 0; }
.pk-row {
  position: absolute; left: var(--x); width: var(--w); height: 15%; min-height: 54px; top: var(--y); display: flex; align-items: flex-start; gap: 10px;
  padding: 7px 14px; background: var(--surface); border: 1px solid var(--edge); border-radius: 14px; font-size: 0.9375rem; line-height: 1.3;
}
.pk-row b { font-weight: 600; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-row .when { color: var(--muted); font-size: 0.8125rem; line-height: 1.5; white-space: nowrap; }
.pk-r1 { --x: 12%; --w: 76%; --y: 0%; }
.pk-r2 { --x: 7%; --w: 86%; --y: 9.1%; }
.pk-r3 { --x: 2%; --w: 96%; --y: 18.3%; }
.pk-fig .pocket { position: absolute; left: 10%; bottom: 0; width: 80%; height: auto; display: block; }
@media (prefers-reduced-motion: no-preference) {
  .pk-row { transition: transform 900ms cubic-bezier(0.32, 0.72, 0, 1); }
  .pk-r2 { transition-delay: 90ms; } .pk-r3 { transition-delay: 180ms; }
  .js .pk-fig:not(.go) .pk-row { transform: translateY(-46px); }
}
.seam-copy .lede { margin-top: 20px; max-width: 34em; }
.seam-copy .prose + .prose { margin-top: 14px; }
@media (min-width: 900px) { .seam { grid-template-columns: 320px minmax(0, 1fr); gap: 72px; } }
/* phones: a smaller Pocket with the same gesture; the heading is the first thing you see after the hairline */
@media (max-width: 599px) {
  .tour { padding-top: 44px; }
  .seam { gap: 20px; }
  .pk-fig { width: min(100%, 280px); aspect-ratio: 280 / 252; }
  .pk-fig .pocket { left: 21%; width: 58%; }
  .pk-row { height: 17.5%; min-height: 0; padding: 6px 12px; gap: 8px; font-size: 0.875rem; }
  .pk-row .when { font-size: 0.75rem; }
  .pk-r1 { --x: 10%; --w: 80%; --y: 0%; }
  .pk-r2 { --x: 5%; --w: 90%; --y: 11.1%; }
  .pk-r3 { --x: 0%; --w: 100%; --y: 22.2%; }
}

/* ---------- Moments ---------- */
.moment { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: clamp(72px, 8vw, 112px); align-items: center; }
.moment > * { min-width: 0; }
.moment h3 { margin-bottom: 14px; }
.moment .prose + .prose, .moment .prose + .claim, .moment .claim + .prose { margin-top: 14px; }
.moment .claim { margin-top: 20px; max-width: 34em; }
.plate { margin: 0; background: var(--prod-bg); border: 1px solid var(--edge); border-radius: 16px; overflow: hidden; }
.plate img { width: 100%; }
.plate figcaption, .cap { font-size: 0.8125rem; line-height: 1.5; color: var(--muted); }
.plate figcaption { padding: 10px 14px 12px; border-top: 1px solid var(--edge); background: var(--surface); }
.stack-figs { display: grid; gap: 16px; }
.scroll-hint { display: none; }
@media (max-width: 599px) {
  .strip-scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); }
  .strip-in { width: 790px; padding-right: 32px; }
  .plate:has(.strip-scroll:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
  .strip-scroll:focus-visible { outline: none; }
  .scroll-hint { display: inline; }
}
.nw { white-space: nowrap; }
.rows-hair { list-style: none; margin: 14px 0 0; max-width: 54ch; }
.rows-hair li { padding: 10px 0; border-top: 1px solid var(--line); }
.rows-hair li:last-child { border-bottom: 1px solid var(--line); }
.rows-hair + .prose { margin-top: 14px; }
.runin-list > div + div { margin-top: 16px; }
.runin-list dt { font-weight: 600; }
.runin-list dd { margin-top: 2px; max-width: 52ch; }

/* toolbar badge tally */
.tally { margin: 18px 0 4px; max-width: 26em; }
.tally > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line-strong); }
.tally dt { font-size: 1rem; line-height: 1.4; }
.tally dd { font: 600 1.375rem/1 "Geist", sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.tally .sum { border-top-width: 2px; border-bottom: 1px solid var(--line-strong); }
.tally .sum dt { font-weight: 600; }

/* toolbar mock */
.tb { background: var(--band); border: 1px solid var(--edge); border-radius: 16px; padding: 12px; }
.tb-strip { display: flex; align-items: center; gap: 10px; }
.tb-url { flex: 1; min-width: 0; height: 38px; display: flex; align-items: center; padding: 0 14px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); font-size: 0.8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-icon { position: relative; flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 12px; background: transparent; padding: 0; font: inherit; color: inherit; }
.js .tb-icon { cursor: pointer; }
.js .tb-icon:hover, .tb-icon[aria-expanded="true"] { background: var(--bg); }
.tb-icon img { width: 26px; height: 26px; }
.badge { position: absolute; right: 2px; bottom: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 6px; background: #c2261d; color: #fff; font: 700 0.6875rem/17px "Geist", sans-serif; text-align: center; }
.tb-pop { margin-top: 10px; background: var(--p-card); color: var(--p-text); border: 1px solid var(--p-line); border-radius: 12px; padding: 12px 6px 6px; }
.tb-pop[hidden] { display: block; visibility: hidden; }   /* closed: invisible and out of the accessibility tree, but still holds its height so the page below never jumps */
.tb-pop .ct { font: 800 0.6875rem/1 "Geist", sans-serif; letter-spacing: 0.06em; text-transform: uppercase; color: var(--p-muted); padding: 0 10px 8px; }
.tb-pop .it { display: block; padding: 8px 10px; border-radius: 10px; font-size: 0.8125rem; line-height: 1.45; }
.tb-pop .it b { display: block; font-weight: 600; font-size: 0.8125rem; }
.tb-pop .it small { color: var(--p-muted); font-size: 0.8125rem; }
.tb-pop .it small.late { color: var(--p-bad); font-weight: 700; }
.tb-note { margin-top: 10px; padding-inline: 2px; }

/* the live What if card */
.card { background: var(--p-card); color: var(--p-text); border: 1px solid var(--p-line); border-radius: 16px; padding: 16px; }
.m2 .card { box-shadow: none; }
.gr-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.gr-top .ct { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.1875rem; font-variation-settings: "SOFT" 80; letter-spacing: -0.01em; }
.gr-top span { font-size: 0.8125rem; color: var(--p-muted); }
.gr-course { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--p-line); }
.gr-course b { font-weight: 600; font-size: 0.9375rem; line-height: 1.3; }
.gr-course small { display: block; font-size: 0.8125rem; color: var(--p-muted); line-height: 1.4; }
.gr-pct { font: 700 1.1875rem/1 "Geist", sans-serif; display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.grade { display: inline-block; font: 700 0.75rem/1 "Geist", sans-serif; padding: 4px 7px; border-radius: 6px; background: var(--p-sel); color: var(--p-accent); }
.wi { padding-top: 14px; }
.wi-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wi-top .ct { font: 600 0.9375rem/1.2 "Geist", sans-serif; }
.wi-reset { display: none; min-height: 32px; padding: 0 12px; border: 1px solid var(--p-line); border-radius: 9px; background: var(--p-sel); color: var(--p-accent); font: 600 0.8125rem/1 "Geist", sans-serif; cursor: pointer; }
.js .wi-reset { display: inline-block; }
.wi-reset:hover { border-color: var(--p-accent); }
.wi-final { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 10px; font-size: 0.8125rem; color: var(--p-muted); }
.wi-final b { font: 700 1.75rem/1 "Geist", sans-serif; letter-spacing: -0.02em; color: var(--p-text); font-variant-numeric: tabular-nums; }
.wi-need { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 6px; }
.wi-need span { border: 1px solid var(--p-line); border-radius: 99px; padding: 3px 10px; font-size: 0.8125rem; line-height: 1.4; }
.wi-need b { font-weight: 700; }
.wi-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "lab proj" "slider slider"; column-gap: 12px; padding-top: 4px; font-size: 0.8125rem; line-height: 1.4; }
.wi-row label { grid-area: lab; font-weight: 600; }
.wi-proj { grid-area: proj; color: var(--p-muted); white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.wi-proj::before { content: "projected "; }
.wi-row .wi-slider { grid-area: slider; }
.card { container-type: inline-size; }
@container (min-width: 440px) {
  .wi-row { grid-template-columns: minmax(0, 1fr) 150px 3.2em; grid-template-areas: "lab slider proj"; align-items: center; padding-top: 0; }
  .wi-proj::before { content: none; }
}
.wi-slider { --th: 22px; --v: 90; position: relative; height: 34px; }
.wi-slider[data-v="100"] { --v: 100; }
.wi-slider::before, .wi-slider::after { content: ""; position: absolute; left: 0; top: 50%; height: 6px; margin-top: -3px; border-radius: 99px; }
.wi-slider::before { right: 0; background: var(--line-strong); }
.wi-slider::after { width: calc(var(--th) / 2 + (100% - var(--th)) * var(--v) / 100); background: var(--p-accent); }
.wi-slider input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; background: transparent; appearance: none; -webkit-appearance: none; z-index: 1; }
.js .wi-slider input { cursor: pointer; }
.wi-slider input::-webkit-slider-runnable-track { height: 34px; background: transparent; border: 0; }
.wi-slider input::-moz-range-track { height: 34px; background: transparent; border: 0; }
.wi-slider input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: var(--th); height: var(--th); margin-top: 6px; border-radius: 50%; background: var(--p-card); border: 2px solid var(--p-accent); }
.wi-slider input::-moz-range-thumb { width: calc(var(--th) - 4px); height: calc(var(--th) - 4px); border-radius: 50%; background: var(--p-card); border: 2px solid var(--p-accent); }
.wi-slider input:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; border-radius: 8px; }
.wi-graded { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0 6px; font-size: 0.8125rem; line-height: 1.4; }
.wi-graded span:first-child { font-weight: 600; }
.wi-graded span:last-child { color: var(--p-muted); font-variant-numeric: tabular-nums; }
.card-foot { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--p-line); font-size: 0.875rem; color: var(--p-muted); }

/* the Ctrl+K palette */
.stage { background: var(--band); border: 1px solid var(--line); border-radius: 18px; padding: 14px; margin: 0; }
.palette { background: var(--p-card); color: var(--p-text); border: 1px solid var(--p-line); border-radius: 14px; overflow: hidden; }
.pal-field { display: flex; align-items: center; gap: 12px; padding: 0 16px; height: 54px; border-bottom: 1px solid var(--p-line); }
.pal-field svg { flex: none; width: 18px; height: 18px; color: var(--p-muted); }
.pal-field input { flex: 1 1 auto; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--p-text); font: 500 1.0625rem/1 "Geist", sans-serif; outline: 0; }
.pal-field input::placeholder { color: var(--p-muted); opacity: 1; }
.pal-field:focus-within { box-shadow: inset 0 -2px 0 var(--focus); }
.pal-field kbd { flex: none; color: var(--p-muted); border-color: var(--p-line); background: var(--p-card2); }
.pal-list { list-style: none; margin: 0; padding: 6px; max-height: 328px; overflow-y: auto; }
.pal-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; }
.pal-list li[hidden] { display: none; }
.pal-list li[aria-selected="true"] { background: var(--p-sel); }
.pal-list li > svg { width: 18px; height: 18px; color: var(--p-muted); }
.pal-list .t { display: block; font-weight: 600; font-size: 0.9375rem; line-height: 1.35; }
.pal-list .s { display: block; font-size: 0.8125rem; line-height: 1.4; color: var(--p-muted); }
.pal-list mark { background: none; color: var(--p-accent); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1.5px; font: inherit; }
.pal-empty { padding: 20px 16px; color: var(--p-muted); font-size: 0.9375rem; border-bottom: 1px solid var(--p-line); }
.pal-empty[hidden] { display: none; }
.pal-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding: 10px 16px; border-top: 1px solid var(--p-line); font-size: 0.8125rem; color: var(--p-muted); }
.pal-foot .keys { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.pal-foot .keys span { display: inline-flex; align-items: center; gap: 6px; }
.pal-foot kbd { font-size: 0.75rem; padding: 3px 5px; border-color: var(--p-line); background: var(--p-card2); color: var(--p-muted); vertical-align: 0; }
.pal-foot kbd svg { width: 12px; height: 12px; display: block; }
.stage .cap { margin-top: 12px; padding-inline: 2px; }

/* Schedule Builder plate */
.plate-bleed { background: #0f1115; border-color: #2a2f38; max-width: 439px; width: 100%; }
.plate-bleed figcaption { color: #a2a8b5; background: #0f1115; border-top-color: #2a2f38; }

/* themes */
.pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.sw { position: relative; margin: 0; border: 1px solid var(--edge); border-radius: 16px; background: var(--bg); color: var(--text); }
.sw .pic { background: var(--prod-bg); border-radius: 15px 15px 0 0; overflow: hidden; }
.sw-l .pic { background: #f6f7f9; }
.sw-d .pic { background: #000; }
.sw figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; font-weight: 600; font-size: 1rem; border-top: 1px solid var(--edge); }
.sw figcaption small { font-weight: 400; font-size: 0.8125rem; color: var(--muted); }
.sw-btn { appearance: none; background: none; border: 0; margin: 0; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.sw-btn::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.sw-btn:focus-visible { outline: none; }
.sw-btn:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 3px; }
.sw:has(.sw-btn):hover { border-color: var(--text); }
.sw.is-on { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }

/* Also included */
.also { margin-top: clamp(72px, 8vw, 112px); padding-top: 28px; border-top: 1px solid var(--line-strong); }
.also h3 { margin-bottom: 8px; }
.also-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 56px; }
.also-list > div { padding: 14px 0; border-top: 1px solid var(--line); max-width: 56ch; }
.also-list dt { display: inline; font-weight: 600; }
.also-list dt::after { content: ". "; }
.also-list dd { display: inline; color: var(--text); }
@media (min-width: 900px) { .also-list { display: block; column-count: 2; column-gap: 56px; } .also-list > div { break-inside: avoid; } }

@media (min-width: 900px) {
  .moment { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; }
  .m1 .stack-figs { grid-column: 1 / span 7; } .m1 .copy { grid-column: 8 / span 5; }
  .m2 .card { grid-column: 1 / span 5; } .m2 .copy { grid-column: 7 / span 6; }
  .m3 .copy { grid-column: 1 / span 5; } .m3 .stage { grid-column: 7 / span 6; }
  .m4 .copy { grid-column: 1 / span 6; } .m4 .plate { grid-column: 8 / span 5; justify-self: end; }
  .m5 .copy { grid-column: 1 / span 4; } .m5 .pair { grid-column: 5 / span 8; grid-template-columns: 1fr 1fr; }
  .m3, .m4, .m5 { align-items: start; }
}
@media (min-width: 900px) and (min-height: 760px) { .m4 .copy { position: sticky; top: 96px; } }
/* tablets: the portrait card sits centred, the badge sum reads as an equation across the column */
@media (min-width: 600px) and (max-width: 899px) {
  .plate-bleed { margin-inline: auto; }
  .tally { max-width: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
  .tally > div { flex-direction: column-reverse; align-items: flex-start; justify-content: flex-end; gap: 4px; }
  .tally dd { font-size: 2rem; }
  .tally dt { text-wrap: balance; }
  .tally .sum { border-bottom: 0; }
}

/* ---------- Sections on a band ---------- */
.band { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec { padding-block: clamp(64px, 8.5vw, 120px); }
.sec-head { margin-bottom: 36px; }
.sec-head .lede { margin-top: 18px; max-width: 34em; }
.two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; }
@media (min-width: 900px) { .two { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 72px; } }

/* Privacy */
.promises { list-style: none; margin-top: 28px; display: grid; gap: 22px; }
.promises li { position: relative; padding-left: 22px; max-width: 42ch; font-size: 1.125rem; line-height: 1.55; }
.promises li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--text); }
.pol { margin-top: 32px; }
/* pinned only when the whole column fits the window; a pinned column taller than the viewport hides the button you tab to */
@media (min-width: 1240px) and (min-height: 940px) { .priv-l { position: sticky; top: 96px; align-self: start; } }
.leave { width: 100%; border-collapse: collapse; }
.leave caption { text-align: left; font-weight: 600; font-size: 1.375rem; line-height: 1.25; letter-spacing: -0.014em; padding-bottom: 4px; }
.leave .cap-sub { display: block; font-weight: 400; font-size: 1rem; letter-spacing: 0; line-height: 1.5; color: var(--muted); margin-top: 6px; }
.leave tbody th { text-align: left; vertical-align: top; font-weight: 600; width: 31%; padding: 20px 28px 20px 0; border-top: 1px solid var(--line-strong); line-height: 1.4; }
.leave td { vertical-align: top; padding: 20px 0; border-top: 1px solid var(--line-strong); font-size: 1rem; line-height: 1.6; }
.leave tbody tr:last-child th, .leave tbody tr:last-child td { border-bottom: 1px solid var(--line-strong); }
.leave td p + p { margin-top: 0.7em; }
.after { margin-top: 26px; max-width: 42ch; }
.after.small { font-size: 0.9375rem; color: var(--text); }
@media (max-width: 719px) {
  .leave, .leave caption, .leave tbody, .leave tr, .leave th, .leave td { display: block; width: auto; }
  .leave tbody th { width: auto; padding: 18px 0 4px; border-top: 1px solid var(--line-strong); }
  .leave tbody th + td, .leave td { padding: 0 0 18px; border-top: 0; }
  .leave tbody tr:last-child td { border-bottom: 1px solid var(--line-strong); }
  .leave tbody tr:last-child th { border-bottom: 0; }
}

/* Get the beta: one flat Pocket-blue block */
.beta-sec { background: var(--blue); color: var(--on-blue); padding-block: clamp(56px, 7.5vw, 104px); }
.beta-sec :focus-visible { outline-color: #ffffff; }
.beta-sec a { color: #ffffff; }
.beta-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.beta-head h2 { color: #ffffff; }
.beta-head .lede { margin-top: 18px; max-width: 28em; color: #ffffff; }
.beta-head .cta { margin-top: 28px; }
.beta-sec .btn-primary { background: #f4ce65; color: #15171c; }
.beta-sec .btn-primary:hover { background: #f9dc86; }
.beta-sec .btn-ghost { color: #ffffff; border-color: rgb(255 255 255 / 0.7); }
.beta-sec .btn-ghost:hover { border-color: #ffffff; }
.beta-small { margin-top: 16px; font-size: 0.9375rem; line-height: 1.55; color: var(--on-blue-2); max-width: 34em; }
.phone-only { display: none; }
@media (max-width: 820px), (pointer: coarse) { .phone-only { display: block; } }
.glyph { display: none; width: 112px; height: auto; margin-top: 40px; }
.steps { list-style: none; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.3rem minmax(0, 1fr); padding: 18px 0; border-top: 1px solid rgb(255 255 255 / 0.32); }
.steps li:last-child { border-bottom: 1px solid rgb(255 255 255 / 0.32); }
.steps li::before { content: counter(s) "."; font-weight: 600; color: var(--on-blue-2); font-variant-numeric: tabular-nums; }
.steps .st { display: block; font-weight: 600; font-size: 1.125rem; line-height: 1.4; }
.steps p { margin-top: 4px; color: var(--on-blue-2); font-size: 1rem; line-height: 1.55; max-width: 46ch; }
.beta-sec .turn { background: #ffffff; color: #3b53c4; }
.bn { display: inline-block; font-weight: 600; font-size: 0.9em; line-height: 1; padding: 0.3em 0.6em; border-radius: 8px; border: 1px solid rgb(255 255 255 / 0.6); color: #ffffff; white-space: nowrap; vertical-align: 0.04em; }
@media (min-width: 900px) {
  .beta-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 80px; align-items: start; }
  .glyph { display: block; }
}
@media (prefers-reduced-motion: no-preference) {
  .glyph .card-g { transition: transform 1000ms cubic-bezier(0.32, 0.72, 0, 1); }
  .js .glyph:not(.go) .card-g { transform: translate(9px, -26px) rotate(7deg); }
}
.glyph .card-g { transform-box: fill-box; transform-origin: center; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 72px; align-items: start; }
@media (min-width: 900px) { .faq { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.faq details { border-top: 1px solid var(--line-strong); }
.faq-col:last-child details:last-child { border-bottom: 1px solid var(--line-strong); }
@media (min-width: 900px) { .faq-col:first-child details:last-child { border-bottom: 1px solid var(--line-strong); } }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 20px 44px 20px 0; min-height: 56px; font-weight: 600; font-size: 1.0625rem; line-height: 1.4; letter-spacing: -0.006em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover { color: var(--link); }
.faq summary:hover::after { border-color: currentColor; }
.faq .ans { padding: 0 44px 24px 0; max-width: 60ch; font-size: 1.0625rem; line-height: 1.65; }
.faq .ans p + p { margin-top: 0.8em; }

/* Support */
.mail-big {
  display: inline-block; margin-top: 18px; font: 600 clamp(1.5rem, 0.6rem + 4.4vw, 3.75rem)/1.05 "Geist", sans-serif; letter-spacing: -0.035em; color: var(--text);
  text-decoration-color: var(--link); text-decoration-thickness: 3px; text-underline-offset: 0.14em; overflow-wrap: anywhere;
}
.mail-big:hover { color: var(--link); }
.ledger { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px 48px; margin-top: 44px; }
.ledger > div { border-top: 1px solid var(--line-strong); padding-top: 16px; }
.ledger dt { font-weight: 600; font-size: 1.125rem; line-height: 1.4; }
.ledger dd { margin-top: 6px; max-width: 42ch; font-size: 1.0625rem; line-height: 1.6; }
.ledger dd + dd { margin-top: 8px; }
@media (min-width: 900px) { .ledger { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.arrow-links { display: flex; flex-direction: column; gap: 4px; }
.arrow-links a { font-weight: 600; }
.ar { width: 0.9em; height: 0.9em; margin-left: 0.35em; vertical-align: -0.1em; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: 48px 56px; }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 36px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 40px; color: var(--text); font-weight: 500; font-size: 0.9375rem; }
.notice { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 72ch; font-size: 0.875rem; line-height: 1.65; color: var(--muted); }
.notice a { color: var(--muted); }
.brand-foot { display: block; line-height: 0; }
.brand-foot img { height: 24px; width: auto; }

/* ---------- Support page and 404 ---------- */
.cta-page { margin-top: 28px; }
.page { padding-block: clamp(40px, 6vw, 88px) clamp(64px, 8vw, 112px); }
.page h1 { font-size: clamp(2.5rem, 1.3rem + 3.6vw, 4rem); max-width: 14em; }
.page .lede { margin-top: 20px; max-width: 34em; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 48px; }
.block { padding-block: 32px; border-top: 1px solid var(--line-strong); }
.block h2 { font-family: "Geist", sans-serif; font-weight: 600; font-size: clamp(1.3125rem, 1.15rem + 0.55vw, 1.625rem); line-height: 1.22; letter-spacing: -0.016em; font-variation-settings: normal; margin-bottom: 12px; }
.block .prose + .prose, .block .prose + .claim, .block .claim + .prose, .block .steps-plain + .prose { margin-top: 14px; }
.steps-plain { list-style: none; counter-reset: sp; max-width: 60ch; }
.steps-plain li { counter-increment: sp; display: grid; grid-template-columns: 2.1rem minmax(0, 1fr); padding: 10px 0; }
.steps-plain li::before { content: counter(sp) "."; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
code { font: 500 0.88em "Geist", ui-monospace, monospace; background: var(--band); border: 1px solid var(--line); border-radius: 6px; padding: 0.12em 0.4em; }
@media (min-width: 900px) {
  .block { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 72px; }
  .block h2 { margin-bottom: 0; }
}

/* ---------- Reduced motion, forced colors ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .pk-row, .glyph .card-g { transform: none !important; }
}
@media (forced-colors: active) {
  .btn, .seg, .menu summary, .win, .plate, .card, .palette, .tb, .sw, .pk-row { border: 1px solid CanvasText; }
  .seg button[aria-pressed="true"], .sw.is-on { outline: 2px solid Highlight; }
  .wi-slider::before { background: CanvasText; forced-color-adjust: none; }
  .wi-slider::after { background: Highlight; forced-color-adjust: none; }
  .claim::before, .promises li::before { background: CanvasText; forced-color-adjust: none; }
  .beta-sec { background: Canvas; color: CanvasText; border-block: 1px solid CanvasText; }
  .beta-sec a, .beta-head h2, .beta-head .lede { color: LinkText; }
  .badge, .turn { border: 1px solid CanvasText; }
}
