/* Bookshift Studio sales page. Generated HTML: scripts/templates/studio_landing.html.
   Direction: a printer's proof sheet. Literata for reading, Plex for the app's voice,
   crop marks around every figure, proofreader's red and green for edits.
   All layout uses logical properties so a right-to-left locale mirrors cleanly. */

:root {
  color-scheme: light;
  --paper: #F7F6FA; --panel: #EFEDF5; --card: #FFFFFF;
  --ink: #1C1930; --ink-2: #4F4B66; --ink-3: #5E5A75;
  --rule: #DCD9E6; --rule-strong: #C4C0D4; --mark: #8E89A3;
  --violet: #5B46C2; --violet-hover: #4A36A8; --violet-wash: #ECE8FA; --violet-text: #4F3BB3; --on-violet: #FFFFFF;
  --proof: #B93A26; --proof-wash: #FBE9E5; --ins: #1F6B4F; --ins-wash: #E1F1E8;
  --night: #141B2B; --night-2: #1C2538; --night-rule: #2E3953; --night-ink: #EFEADF; --night-ink-2: #BDB6A8; --gold: #D8B26A;
  --page: #FFFEFA; --page-ink: #26222F; --page-soft: #6F6977;
  --shadow: 0 1px 2px rgb(28 25 48 / .06), 0 22px 44px -26px rgb(28 25 48 / .38);
  --radius: 10px;
  --header-h: 60px;
  --display: "Literata", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, "Noto Sans", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #12111A; --panel: #1A1825; --card: #1F1D2B;
    --ink: #ECEAF4; --ink-2: #B6B2C8; --ink-3: #A29EB6;
    --rule: #2D2A3C; --rule-strong: #3E3A51; --mark: #6F6A86;
    --violet: #A693F4; --violet-hover: #BDB0F8; --violet-wash: #262040; --violet-text: #BBADF7; --on-violet: #17122E;
    --proof: #F29079; --proof-wash: #3A211C; --ins: #86D6B3; --ins-wash: #16322A;
    --night: #0C1220; --night-2: #141C2D; --night-rule: #27314A;
    --shadow: 0 1px 2px rgb(0 0 0 / .35), 0 22px 44px -26px rgb(0 0 0 / .75);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #12111A; --panel: #1A1825; --card: #1F1D2B;
  --ink: #ECEAF4; --ink-2: #B6B2C8; --ink-3: #A29EB6;
  --rule: #2D2A3C; --rule-strong: #3E3A51; --mark: #6F6A86;
  --violet: #A693F4; --violet-hover: #BDB0F8; --violet-wash: #262040; --violet-text: #BBADF7; --on-violet: #17122E;
  --proof: #F29079; --proof-wash: #3A211C; --ins: #86D6B3; --ins-wash: #16322A;
  --night: #0C1220; --night-2: #141C2D; --night-rule: #27314A;
  --shadow: 0 1px 2px rgb(0 0 0 / .35), 0 22px 44px -26px rgb(0 0 0 / .75);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet-text); text-underline-offset: .18em; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; text-wrap: balance; overflow-wrap: break-word; }
p { margin: 0; }
[hidden] { display: none !important; }
.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.shell { max-width: 1240px; margin-inline: auto; padding-inline: 24px; }
@media (max-width: 640px) { .shell { padding-inline: 16px; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[id] { scroll-margin-top: calc(var(--header-h) + 28px); }
html:not(.js) .js-only { display: none !important; }

.skip { position: absolute; inset-inline-start: 16px; inset-block-start: -80px; z-index: 100; background: var(--violet); color: var(--on-violet); padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { inset-block-start: 12px; }

/* Small structural labels: sentence case, never shouted. */
.kicker { font-size: 15px; font-weight: 600; color: var(--violet-text); letter-spacing: -.01em; }
.fig-title, .pane-label, .card-label, .rail-title { font-size: 13.5px; font-weight: 600; color: var(--ink-3); }
.sub-title { font-family: var(--sans); font-size: 15.5px; font-weight: 600; color: var(--ink-2); letter-spacing: -.01em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 15px/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  transition: transform .18s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow .18s cubic-bezier(0.16, 1, 0.3, 1),
              background .18s ease,
              border-color .18s ease,
              color .18s ease;
}
.btn-primary {
  background: var(--violet);
  color: var(--on-violet);
  box-shadow: 0 1px 2px rgb(91 70 194 / .25), 0 4px 12px -2px rgb(91 70 194 / .35), inset 0 1px 0 rgb(255 255 255 / .2);
}
.btn-primary:hover {
  background: var(--violet-hover);
  box-shadow: 0 2px 4px rgb(91 70 194 / .3), 0 6px 16px -2px rgb(91 70 194 / .45), inset 0 1px 0 rgb(255 255 255 / .25);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgb(91 70 194 / .2);
}
.btn-primary:disabled { opacity: .65; cursor: progress; }
.btn-quiet {
  background: var(--card);
  color: var(--ink);
  border-color: var(--rule-strong);
  box-shadow: 0 1px 2px rgb(28 25 48 / .04);
}
.btn-quiet:hover {
  border-color: var(--violet);
  color: var(--violet-text);
  background: var(--panel);
  box-shadow: 0 2px 8px rgb(28 25 48 / .08);
  transform: translateY(-1px);
}
.btn-quiet:active {
  transform: translateY(0);
}
.btn-sm { min-height: 40px; padding: 7px 18px; font-size: 14px; }

/* ---------- header ---------- */
header.site { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-block-end: 1px solid var(--rule); }
.head-row { padding-block: 8px; display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-inline-end: auto; transition: opacity .15s ease; }
.brand:hover { opacity: .88; }
.brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 2px 6px -1px rgb(28 25 48 / .16); }
.brand span { font-family: var(--display); font-size: 19px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; }
.brand span i { font-style: italic; color: var(--violet-text); font-weight: 400; }
.head-nav { display: none; flex: 1 1 auto; min-width: 0; flex-wrap: wrap; justify-content: flex-end; gap: 4px 20px; font-size: 15px; }
.head-nav a { color: var(--ink-2); text-decoration: none; padding-block: 6px; font-weight: 500; transition: color .15s ease; }
.head-nav a:hover { color: var(--violet-text); }
.menu { position: relative; }
.menu summary {
  list-style: none;
  cursor: pointer;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-2);
  border: 1px solid var(--rule-strong);
  background: var(--card);
  transition: all .15s ease;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 10px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 0, 100% 20%, 0 20%, 0 40%, 100% 40%, 100% 60%, 0 60%, 0 80%, 100% 80%, 100% 100%, 0 100%);
  opacity: .85;
}
.menu summary:hover { background: var(--panel); color: var(--ink); border-color: var(--violet); }
.menu[open] summary { background: var(--panel); color: var(--ink); border-color: var(--violet); }
.menu-panel { position: absolute; inset-inline-end: 0; inset-block-start: calc(100% + 8px); min-width: min(230px, calc(100vw - 32px)); max-width: calc(100vw - 32px); display: grid; padding: 8px; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; box-shadow: var(--shadow); }
.menu-panel a { padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; }
.menu-panel a:hover { background: var(--panel); color: var(--violet-text); }
@media (min-width: 1100px) { .head-nav { display: flex; } .menu { display: none; } }
.menu-join { display: none; }
@media (max-width: 479px) { .head-cta { display: none; } .menu-join { display: block; color: var(--violet-text) !important; font-weight: 600; border-block-start: 1px solid var(--rule); border-radius: 0 0 8px 8px !important; } }

/* ---------- hero ---------- */
.hero { padding-block: 64px 56px; }
/* Phones: words, then the stage, then the platform chips and facts. Wide: the stage sits beside both. */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); grid-template-areas: "copy figure" "meta figure"; gap: 0 56px; }
  .hero-copy { grid-area: copy; align-self: end; }
  .hero-figure { grid-area: figure; }
  .hero-meta { grid-area: meta; align-self: start; }
}
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1.04; letter-spacing: -.025em; font-weight: 300; margin-block-start: 16px; max-width: 13ch; }
.lede { font-size: 1.17rem; line-height: 1.55; color: var(--ink-2); max-width: 44ch; margin-block-start: 22px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 30px; }
.platforms { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.platforms li { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 2px 7px; padding: 5px 13px; border: 1px solid var(--rule-strong); border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--card); }
.platforms small { font-weight: 400; color: var(--ink-3); font-size: 13px; }
@media (min-width: 1000px) { .platforms { margin-block-start: 28px; } }
.facts { display: grid; margin: 36px 0 0; padding: 0; list-style: none; border-block-start: 1px solid var(--rule); }
@media (min-width: 560px) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.facts li { padding-block: 14px 0; padding-inline-end: 16px; }
@media (max-width: 559px) { .facts li { padding-block: 12px; border-block-end: 1px solid var(--rule); } }
.facts b { display: block; font-size: 14.5px; font-weight: 600; }
.facts span { display: block; font-size: 14px; color: var(--ink-3); margin-block-start: 2px; }

/* Proof frame: printer's crop marks at each corner. */
.proof { min-width: 0; margin: 0; }
.fig-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 14px; margin-block-end: 10px; padding-inline: 2px; }
.tag { font-family: var(--mono); font-size: 12px; font-weight: 500; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--rule-strong); color: var(--ink-3); white-space: nowrap; margin-inline-start: auto; }
.tag.capture { border-color: transparent; background: var(--violet-wash); color: var(--violet-text); }

/* Hero stage: one passage through four modules. */
.stage { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.tabs { display: flex; align-items: center; gap: 4px; padding: 8px 12px; background: var(--panel); border-block-end: 1px solid var(--rule); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.window-dots { display: flex; align-items: center; gap: 6px; padding-inline: 4px 10px; flex: none; }
.window-dots span { width: 10px; height: 10px; border-radius: 50%; opacity: .85; }
.window-dots span:nth-child(1) { background: #ED6A5E; }
.window-dots span:nth-child(2) { background: #F5BF4F; }
.window-dots span:nth-child(3) { background: #61C554; }
.tab { display: inline-flex; align-items: center; gap: 7px; flex: none; min-height: 38px; font: 500 14px/1.2 var(--sans); color: var(--ink-2); background: none; border: 1px solid transparent; border-radius: 7px; padding: 7px 12px; cursor: pointer; transition: all .15s ease; }
.tab svg { width: 17px; height: 17px; }
.tab:hover { color: var(--ink); background: color-mix(in srgb, var(--card) 60%, transparent); }
.tab[aria-selected="true"] { background: var(--card); color: var(--violet-text); border-color: var(--rule); box-shadow: 0 1px 3px rgb(0 0 0 / .07); font-weight: 600; }
.panel { min-height: 352px; padding: 26px 28px 20px; display: flex; flex-direction: column; }
@media (max-width: 520px) { .panel { padding: 20px 16px 16px; min-height: 0; } }
html:not(.js) .panel:not(#panel-writer) { display: none; }
.panel-body { flex: 1; }
.status { margin-block-start: 18px; padding-block-start: 12px; border-block-start: 1px dashed var(--rule-strong); font-family: var(--sans); font-size: 14px; color: var(--ink-3); }
@media (prefers-reduced-motion: no-preference) { .js .panel:not([hidden]) .panel-body { animation: rise .35s ease both; } }
@keyframes rise { from { opacity: .001; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.doc { font-family: var(--display); font-size: 17.5px; line-height: 1.7; color: var(--ink); }
.doc .chap { font-size: 24px; font-weight: 500; margin-block-end: 12px; letter-spacing: -.01em; }
.doc p + p { margin-block-start: .7em; }
.doc del { color: var(--proof); text-decoration-thickness: 1.5px; background: var(--proof-wash); border-radius: 2px; padding-inline: 2px; }
.doc ins { color: var(--ins); text-decoration: none; border-block-end: 1.5px solid var(--ins); background: var(--ins-wash); border-radius: 2px; padding-inline: 2px; }
.doc-row { display: grid; gap: 16px; }
@media (min-width: 560px) { .doc-row { grid-template-columns: minmax(0, 1fr) 190px; } }
.comment { font-size: 13.5px; line-height: 1.5; background: var(--panel); border: 1px solid var(--rule); border-inline-start: 3px solid var(--violet); border-radius: 8px; padding: 12px 14px; align-self: start; color: var(--ink-2); box-shadow: 0 2px 6px rgb(28 25 48 / .04); }
.comment b { display: block; color: var(--ink); font-size: 13px; font-weight: 600; margin-block-end: 4px; letter-spacing: -.01em; }
.bilingual { display: grid; gap: 18px; }
@media (min-width: 560px) { .bilingual { grid-template-columns: 1fr 1fr; } }
.bilingual .pane-label { display: inline-block; margin-block-end: 8px; font-size: 12.5px; font-weight: 600; color: var(--violet-text); background: var(--violet-wash); padding: 2px 8px; border-radius: 6px; }
.bilingual .doc { font-size: 16px; line-height: 1.65; }
.bilingual > div + div { border-inline-start: 1px solid var(--rule); padding-inline-start: 18px; }
@media (max-width: 559px) { .bilingual > div + div { border-inline-start: 0; padding-inline-start: 0; border-block-start: 1px solid var(--rule); padding-block-start: 16px; } }

.page { background: var(--page); color: var(--page-ink); border: 1px solid #E4E0D6; border-radius: 3px; box-shadow: 0 4px 6px rgb(20 16 30 / .05), 0 20px 40px -16px rgb(20 16 30 / .35); aspect-ratio: 6 / 9; max-width: 250px; margin-inline: auto; padding: 9% 11% 7%; display: flex; flex-direction: column; font-family: var(--display); font-size: 10.5px; line-height: 1.5; }
.page .rh { font-size: 7.5px; letter-spacing: .24em; text-align: center; color: var(--page-soft); text-transform: uppercase; }
.page .cn { margin-block: 18% 4%; text-align: center; font-size: 9px; letter-spacing: .3em; color: var(--page-soft); text-transform: uppercase; }
.page .ct { text-align: center; font-size: 15px; font-style: italic; margin-block-end: 12%; }
.page p.body { text-align: justify; hyphens: auto; }
.page p.body + p.body { text-indent: 1.4em; }
.page .dc { float: inline-start; font-size: 37px; line-height: .86; padding-inline-end: 4px; margin-block-start: 2px; color: #3E2F7A; }
.page .fo { margin-block-start: auto; text-align: center; font-size: 8px; color: var(--page-soft); }
.cover-stage { display: flex; justify-content: center; }
.cover-stage img { width: auto; max-height: 290px; border-radius: 2px 4px 4px 2px; box-shadow: -3px 0 0 rgb(0 0 0 / .18) inset, 0 18px 34px -18px rgb(10 14 26 / .7); }

/* ---------- release date + guide videos ---------- */
.kicker-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.kicker .release { display: inline-block; padding: 2px 11px; border-radius: 999px; background: var(--violet-wash); color: var(--violet-text); white-space: nowrap; }
.tour { padding-block: 72px; border-block-start: 1px solid var(--rule); background: var(--panel); }
@media (max-width: 640px) { .tour { padding-block: 52px; } }
.tour-grid { display: grid; gap: 32px 56px; align-items: center; }
@media (min-width: 1000px) { .tour-grid { grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); } }
.tour-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.1; letter-spacing: -.02em; font-weight: 350; margin-block-start: 14px; max-width: 16ch; }
.tour-copy > p:not(.kicker) { margin-block-start: 16px; color: var(--ink-2); font-size: 1.05rem; max-width: 44ch; }
.tour-copy .btn { margin-block-start: 26px; }
.tour-copy p.tour-help { font-size: 14.5px; color: var(--ink-3); margin-block-start: 22px; padding-block-start: 16px; border-block-start: 1px solid var(--rule); }
.guide-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px 28px; align-items: start; }
.guide-grid-assistant { margin-block-start: 40px; }
@media (min-width: 640px) { .guide-grid-assistant { grid-template-columns: repeat(2, minmax(0, 1fr)); } .guide-grid-assistant .guide-lead { grid-column: span 2; } }
@media (min-width: 1280px) { .guide-grid-assistant { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); } .guide-grid-assistant .guide-lead { grid-column: auto; grid-row: span 2; } }
.guide { margin: 0; min-width: 0; }
.guide video { display: block; width: 100%; height: auto; aspect-ratio: 720 / 450; border-radius: var(--radius); border: 1px solid var(--rule); box-shadow: var(--shadow); background: var(--card); }
.guide figcaption { margin-block-start: 12px; font-size: 14.5px; line-height: 1.45; color: var(--ink-3); }
.guide figcaption b { font-size: 16px; font-weight: 600; color: var(--ink); }
.guide-lead figcaption b { font-family: var(--display); font-size: 1.35rem; font-weight: 400; letter-spacing: -.01em; }
.guide-time { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--ink-3); white-space: nowrap; margin-inline-start: 6px; padding: 1px 8px; border: 1px solid var(--rule-strong); border-radius: 999px; }
.guide-sum { display: block; margin-block-start: 4px; max-width: 60ch; }

/* "Watch" links from a part of the tour to its guide pages. */
.watch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-block-start: 24px; }
.watch-label { font-size: 14px; font-weight: 600; color: var(--ink-3); }
.watch ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; min-width: 0; }
.watch a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 10px 6px 12px; border: 1px solid var(--rule-strong); border-radius: 10px; background: var(--card); color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 500; line-height: 1.3; transition: border-color .15s ease, color .15s ease; }
.watch a:hover { border-color: var(--violet); color: var(--violet-text); }
.watch a svg { width: 13px; height: 13px; flex: none; color: var(--violet); }
.watch .guide-time { margin-inline-start: 2px; }

/* The Assistant: example requests and the price note. */
.asks { margin-block-start: 28px; }
.asks .sub-title { margin-block-start: 0; font-size: 15px; }
.asks ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.asks li { padding: 7px 14px; border-radius: 999px; background: var(--violet-wash); color: var(--violet-text); font-size: 14.5px; font-weight: 500; quotes: auto; }
.asks li::before { content: open-quote; }
.asks li::after { content: close-quote; }
.module .note { margin-block-start: 28px; padding: 14px 18px; border-inline-start: 3px solid var(--violet); border-radius: 8px; background: var(--panel); color: var(--ink-2); font-size: 15px; max-width: 72ch; }

/* Community (held until it opens): an illustrated question beside the points. */
.community-grid { display: grid; gap: 8px 48px; margin-block-start: 36px; }
@media (min-width: 960px) { .community-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.post-figure { margin-block-start: 0; }
.post { display: grid; gap: 16px; padding: 22px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); font-size: 15px; }
.post-by b { font-weight: 600; }
.post-by span { color: var(--ink-3); font-size: 13.5px; }
.post-title { font-family: var(--display); font-size: 1.3rem; line-height: 1.3; margin-block-start: 6px; }
.post-translated { margin-block-start: 8px; font-size: 13px; color: var(--ink-3); }
.post-link { color: var(--violet-text); text-decoration: underline; text-underline-offset: .18em; }
.post-a { padding-block-start: 16px; border-block-start: 1px solid var(--rule); color: var(--ink-2); }
.post-a p + p { margin-block-start: 6px; }
.post-badge { display: inline-block; margin-block-end: 8px; padding: 2px 9px; border-radius: 999px; background: var(--ins-wash); color: var(--ins); font-size: 12.5px; font-weight: 600; }

/* ---------- module rail + sections ---------- */
.modules { display: grid; grid-template-columns: minmax(0, 1fr); border-block-start: 1px solid var(--rule); }
@media (min-width: 1100px) { .modules { grid-template-columns: 184px minmax(0, 1fr); gap: 56px; } }
nav.rail { position: sticky; top: var(--header-h); z-index: 40; background: var(--paper); border-block-end: 1px solid var(--rule); margin-inline: -24px; padding-inline: 24px; }
@media (max-width: 640px) { nav.rail { margin-inline: -16px; padding-inline: 16px; } }
.rail-list { display: flex; gap: 4px; margin: 0; padding: 8px 0; list-style: none; overflow-x: auto; scrollbar-width: none; scroll-padding-inline: 16px; -webkit-overflow-scrolling: touch; }
.rail-list::-webkit-scrollbar { display: none; }
.rail-list a { display: flex; align-items: center; gap: 8px; flex: none; min-height: 40px; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 500; line-height: 1.25; transition: all .15s ease; }
.rail-list a svg { width: 19px; height: 19px; flex: none; }
.rail-list a:hover { background: var(--panel); color: var(--ink); }
.rail-list a[aria-current="true"] { background: var(--violet-wash); color: var(--violet-text); font-weight: 600; }
.rail-title { display: none; }
@media (max-width: 1099px) { .rail-list a span { white-space: nowrap; } }
@media (min-width: 1100px) {
  nav.rail { top: calc(var(--header-h) + 32px); align-self: start; border: 0; margin: 0; padding: 40px 0 0; background: none; }
  .rail-title { display: block; margin-block-end: 12px; padding-inline-start: 12px; }
  .rail-list { flex-direction: column; overflow: visible; padding: 0; gap: 2px; }
}
section.module { padding-block: 72px; border-block-end: 1px solid var(--rule); scroll-margin-top: calc(var(--header-h) + 72px); }
section.module:last-child { border-block-end: 0; }
@media (min-width: 1100px) { section.module { scroll-margin-top: calc(var(--header-h) + 24px); } }
@media (max-width: 640px) { section.module { padding-block: 52px; } }
.mod-eyebrow { display: flex; align-items: center; gap: 10px; color: var(--violet-text); font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.mod-eyebrow svg { width: 22px; height: 22px; }
.mod-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.1; letter-spacing: -.02em; font-weight: 350; margin-block-start: 14px; max-width: 22ch; }
.mod-head h3 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.15; letter-spacing: -.015em; font-weight: 400; max-width: 26ch; }
.mod-head p { margin-block-start: 16px; font-size: 1.07rem; color: var(--ink-2); max-width: 56ch; }
.mod-figure { margin: 36px 0 0; }

/* A capture is a link to the full-size image; landing.js opens it in a dialog. */
a.capture { position: relative; display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--rule); box-shadow: var(--shadow); background: var(--card); cursor: zoom-in; transition: transform .22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .22s cubic-bezier(0.16, 1, 0.3, 1), border-color .22s ease; }
a.capture:hover { border-color: var(--rule-strong); box-shadow: 0 4px 14px -2px rgb(28 25 48 / .12), 0 26px 52px -20px rgb(28 25 48 / .36); transform: translateY(-2px); }
a.capture img { width: 100%; }
.zoom-hint { position: absolute; inset-block-end: 10px; inset-inline-end: 10px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: color-mix(in srgb, var(--card) 88%, transparent); border: 1px solid var(--rule); color: var(--ink-2); opacity: 0; transition: opacity .15s ease; }
.zoom-hint svg { width: 16px; height: 16px; }
a.capture:hover .zoom-hint, a.capture:focus-visible .zoom-hint { opacity: 1; }
@media (hover: none) { .zoom-hint { opacity: 1; } }
figcaption.cap { margin-block-start: 10px; font-size: 14px; color: var(--ink-3); max-width: 70ch; }

.caps { display: grid; gap: 0 40px; margin: 36px 0 0; }
@media (min-width: 760px) { .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.caps.caps-single { grid-template-columns: minmax(0, 1fr); margin-block-start: 0; }
.caps div { padding-block: 16px 18px; border-block-start: 1px solid var(--rule); }
.caps dt { font-weight: 600; font-size: 16.5px; }
.caps dd { margin: 4px 0 0; font-size: 15.5px; color: var(--ink-2); line-height: 1.55; }
.pills { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-block-start: 10px; }
.pill { font-size: 13px; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: var(--panel); border: 1px solid var(--rule); color: var(--ink-2); }
.pills .arr { color: var(--ink-3); font-size: 12px; }
[dir="rtl"] .pills .arr { transform: scaleX(-1); }

/* Projects: import ledger and Project Hub */
.sub-title { margin-block-start: 40px; }
.ledger { margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); border-block: 1px solid var(--ink); }
.ledger li { list-style: none; padding-block: 14px; padding-inline-end: 14px; border-block-end: 1px solid var(--rule); display: flex; flex-direction: column; gap: 2px; }
.ledger b { font-family: var(--display); font-size: 19px; font-weight: 400; }
.ledger small { font-family: var(--sans); font-size: 14px; color: var(--ink-3); }
.hub { display: grid; gap: 8px 48px; margin-block-start: 56px; padding-block-start: 40px; border-block-start: 1px dashed var(--rule-strong); }
@media (min-width: 960px) { .hub { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; } .hub-figure { margin-block-start: 0; } }
.hub-copy h3 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.15; letter-spacing: -.015em; }
.hub-copy > p { margin-block: 14px 24px; color: var(--ink-2); }

/* Format */
.format-detail { display: grid; gap: 24px 40px; margin-block-start: 28px; }
@media (min-width: 1100px) { .format-detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.format-detail .sub-title { margin-block-start: 0; }
.themes { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.themes li { font-family: var(--display); font-size: 15px; padding: 4px 11px; border: 1px solid var(--rule); border-radius: 6px; background: var(--card); }
.outputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.outputs li { border: 1px solid var(--rule); border-radius: 8px; padding: 12px 12px 10px; background: var(--card); }
.outputs b { display: block; font-family: var(--mono); font-size: 14px; font-weight: 500; color: var(--violet-text); }
.outputs span { display: block; font-size: 14px; color: var(--ink-2); line-height: 1.4; margin-block-start: 3px; }

/* Design */
.duo { display: grid; gap: 28px; margin-block-start: 8px; }
@media (min-width: 900px) { .duo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.marketing { margin-block-start: 64px; padding-block-start: 40px; border-block-start: 1px dashed var(--rule-strong); }
.ad-pair { display: grid; gap: 16px; }
@media (min-width: 700px) { .ad-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Spine demo: a working miniature of the print cover's spine maths. */
.calc { margin-block-start: 44px; background: var(--night); color: var(--night-ink); border-radius: 14px; padding: 28px; display: grid; gap: 24px; }
@media (max-width: 520px) { .calc { padding: 18px 14px; } }
.calc .fig-title { color: var(--night-ink-2); }
.calc .tag { border-color: var(--night-rule); color: var(--night-ink-2); }
.wrap-live { direction: ltr; display: flex; width: 100%; aspect-ratio: 13.11 / 9.25; position: relative; border-radius: 2px; overflow: hidden; box-shadow: 0 26px 50px -30px rgb(0 0 0 / .8); }
.wrap-live .panelw { flex: 6.125 1 0; min-width: 0; background-image: url("images/harbour-light-wrap.webp"); background-size: auto 100%; background-repeat: no-repeat; }
.wrap-live .back { background-position: left center; }
.wrap-live .front { background-position: right center; }
.wrap-live .spine { flex: .86 1 0; min-width: 1px; background: #1A2332; display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: inset 1px 0 0 rgb(255 255 255 / .1), inset -1px 0 0 rgb(255 255 255 / .1); }
.wrap-live .spine span { writing-mode: vertical-rl; font-family: var(--display); color: #F1EADB; white-space: nowrap; font-size: 11px; }
.wrap-live .guides { position: absolute; inset: calc(100% * .125 / 9.25); border: 1px dashed rgb(216 178 106 / .55); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .wrap-live .spine, .wrap-live .panelw { transition: flex-grow .25s ease; } }
.wrap-zones { direction: ltr; display: flex; font-family: var(--mono); font-size: 12px; color: var(--night-ink-2); margin-block-start: 8px; }
.wrap-zones span { flex: 6.125 1 0; text-align: center; }
.wrap-zones .z-spine { flex: 0 0 auto; color: var(--gold); padding-inline: 10px; }
.controls { display: grid; gap: 20px; align-items: end; }
@media (min-width: 760px) { .controls { grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1.5fr); } }
.controls label[for], .controls legend { display: block; font-size: 14px; font-weight: 500; color: var(--night-ink-2); margin-block-end: 8px; padding: 0; }
.controls fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.range-row { display: flex; align-items: center; gap: 12px; }
.range-row input {
  flex: 1;
  min-width: 0;
  min-height: 32px;
  accent-color: var(--gold);
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
.range-row input::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: var(--night-rule);
}
.range-row input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: -7px;
  box-shadow: 0 2px 6px rgb(0 0 0 / .4);
  transition: transform .12s ease;
}
.range-row input::-webkit-slider-thumb:hover { transform: scale(1.15); }
.range-row input::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: var(--night-rule);
}
.range-row input::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 2px 6px rgb(0 0 0 / .4);
  transition: transform .12s ease;
}
.range-row input::-moz-range-thumb:hover { transform: scale(1.15); }
.range-row output { font-family: var(--mono); font-size: 15px; min-width: 4ch; text-align: end; }
.range-row input:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }
.seg { display: inline-flex; border: 1px solid var(--night-rule); border-radius: 8px; padding: 3px; gap: 3px; }
.seg label { display: flex; cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { padding: 8px 14px; border-radius: 6px; font-size: 14px; color: var(--night-ink-2); }
.seg input:checked + span { background: var(--night-2); color: var(--night-ink); box-shadow: inset 0 0 0 1px var(--gold); }
.seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.readout { font-family: var(--mono); font-size: 14px; line-height: 1.55; }
.readout span { display: block; }
.readout .big { font-size: 20px; color: var(--gold); }
.readout .note { color: var(--night-ink-2); font-size: 13px; margin-block-start: 4px; }
.calc-foot { font-size: 13.5px; color: var(--night-ink-2); border-block-start: 1px solid var(--night-rule); padding-block-start: 14px; }

/* ---------- where things run ---------- */
.band { background: var(--night); color: var(--night-ink); padding-block: 84px; }
.band .kicker { color: var(--gold); }
.band h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.1; letter-spacing: -.02em; font-weight: 350; margin-block-start: 14px; max-width: 20ch; color: #fff; }
.band-grid { display: grid; gap: 44px; }
@media (min-width: 960px) { .band-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; } }
.band p { color: var(--night-ink-2); font-size: 1.05rem; margin-block-start: 16px; max-width: 46ch; }
.band p b { color: var(--night-ink); font-weight: 600; }
.band p.where-keys { font-size: 15px; }
.band :focus-visible { outline-color: var(--gold); }
.agents { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 0; padding: 0; list-style: none; }
.agents li { font-size: 14px; padding: 4px 11px; border: 1px solid var(--night-rule); border-radius: 999px; }
.table-scroll { overflow-x: auto; }
.runs { width: 100%; border-collapse: collapse; font-size: 15px; }
.runs caption { text-align: start; padding-block-end: 10px; font-size: 13.5px; font-weight: 600; color: var(--gold); }
.runs th, .runs td { text-align: start; padding-block: 13px; padding-inline-end: 12px; border-block-end: 1px solid var(--night-rule); vertical-align: top; }
.runs thead th { font-size: 13.5px; font-weight: 500; color: var(--night-ink-2); }
.runs tbody th { font-weight: 500; }
.runs td { color: var(--night-ink-2); }
.where { display: inline-flex; align-items: baseline; gap: 8px; }
.where::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; transform: translateY(-1px); }
.where.local::before { border: 2px solid var(--gold); }
.where.ai::before { background: var(--gold); }

/* ---------- pricing ---------- */
.pricing { padding-block: 88px; }
.price-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .price-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 72px; } }
.pricing h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.1; letter-spacing: -.02em; font-weight: 350; margin-block-start: 14px; max-width: 18ch; }
.pricing .copy > p { margin-block-start: 16px; color: var(--ink-2); max-width: 48ch; font-size: 1.05rem; }
.timeline { margin: 30px 0 0; padding: 0; list-style: none; border-inline-start: 1px solid var(--rule-strong); }
.timeline li { position: relative; padding-inline-start: 22px; padding-block-end: 18px; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: -5px; inset-block-start: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 2px solid var(--violet); }
.timeline li.now::before { background: var(--violet); }
.timeline b { display: block; font-weight: 600; }
.timeline span { color: var(--ink-2); font-size: 15px; }
.price-card { background: var(--card); border: 1px solid var(--rule); border-radius: 16px; padding: 36px 32px; box-shadow: var(--shadow); position: relative; }
@media (max-width: 520px) { .price-card { padding: 26px 20px; } }
.amount-row { display: flex; flex-direction: row; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-block-start: 16px; }
.was { font-family: var(--sans); font-size: 1.05rem; color: var(--ink-3); display: inline-flex; align-items: baseline; gap: 6px; }
.amount { font-family: var(--display); font-weight: 350; font-size: 3.8rem; line-height: 1; letter-spacing: -.03em; font-variant-numeric: lining-nums; color: var(--ink); }
.offer { display: inline-block; margin-block-start: 14px; padding: 4px 12px; border-radius: 999px; background: var(--violet-wash); color: var(--violet-text); font-weight: 600; font-size: 13.5px; border: 1px solid color-mix(in srgb, var(--violet) 20%, transparent); }
.amount-sub { font-size: 13.5px; color: var(--ink-3); margin-block-start: 8px; }
.terms { margin: 24px 0 26px; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 15px; color: var(--ink-2); }
.terms li { display: flex; gap: 10px; }
.terms li::before { content: ""; flex: none; width: 14px; height: 8px; margin-block-start: 6px; border-inline-start: 2px solid var(--violet); border-block-end: 2px solid var(--violet); transform: rotate(-45deg) translateY(-2px); }
[dir="rtl"] .terms li::before { transform: rotate(45deg) translateY(-2px); }
.price-card .btn { width: 100%; }
.card-note { margin-block-start: 12px; font-size: 13.5px; color: var(--ink-3); text-align: center; }

/* ---------- FAQ ---------- */
.faq { padding-block: 80px; border-block-start: 1px solid var(--rule); }
.faq-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 64px; } }
.faq h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.12; font-weight: 350; letter-spacing: -.02em; margin-block-start: 14px; }
.faq details { border-block-start: 1px solid var(--rule); }
.faq details:last-child { border-block-end: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; padding-block: 20px; font-weight: 600; font-size: 17px; transition: color .15s ease; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-weight: 400; color: var(--ink-3); font-size: 18px; line-height: 1.3; }
.faq summary:hover { color: var(--violet-text); }
.faq details[open] summary { color: var(--violet-text); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-block-end: 20px; color: var(--ink-2); max-width: 62ch; font-size: 15.5px; }

/* ---------- signup ---------- */
.signup { background: var(--panel); padding-block: 80px; border-block-start: 1px solid var(--rule); }
.signup-grid { display: grid; gap: 32px; align-items: end; }
@media (min-width: 900px) { .signup-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } }
.signup h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.1; font-weight: 350; letter-spacing: -.02em; margin-block-start: 14px; max-width: 16ch; }
.signup .copy p:not(.kicker) { margin-block-start: 16px; color: var(--ink-2); max-width: 44ch; }
form.join label { display: block; font-weight: 600; font-size: 15px; margin-block-end: 8px; }
.fields { display: flex; flex-wrap: wrap; gap: 10px; }
.fields input { flex: 1 1 240px; min-width: 0; font: inherit; font-size: 16px; padding: 11px 16px; min-height: 46px; border-radius: 999px; border: 1px solid var(--rule-strong); background: var(--card); color: var(--ink); }
.fields input[aria-invalid="true"] { border-color: var(--proof); }
.fields input:focus-visible { outline: 2px solid var(--violet); outline-offset: 1px; }
.fields .btn { flex: 0 1 auto; }
form.join .fields + label { margin-block-start: 16px; }
#signup-status { min-height: 1.6em; margin-block-start: 10px; font-size: 15px; font-weight: 500; }
#signup-status.err { color: var(--proof); }
#signup-status.ok { color: var(--ins); }
.fine { font-size: 13.5px; color: var(--ink-3); margin-block-start: 6px; }
.nojs { color: var(--ink-2); }

/* ---------- footer ---------- */
.site-foot { padding-block: 44px 56px; border-block-start: 1px solid var(--rule); font-size: 14px; color: var(--ink-3); }
.foot { display: flex; flex-wrap: wrap; gap: 18px 36px; align-items: center; justify-content: space-between; }
.foot .brand { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); }

/* ---------- image dialog ---------- */
dialog#zoom { width: min(1400px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--rule-strong); border-radius: 12px; background: var(--card); color: var(--ink); box-shadow: 0 30px 80px -20px rgb(0 0 0 / .6); overflow: auto; }
dialog#zoom::backdrop { background: rgb(12 10 24 / .72); }
.zoom-bar { position: sticky; top: 0; display: flex; justify-content: flex-end; padding: 8px; background: color-mix(in srgb, var(--card) 92%, transparent); }
.zoom-close { width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--rule); background: var(--panel); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
#zoom-body img { width: 100%; }

/* Translated labels can wrap; sticky offsets follow the actual header height. */
.head-cta { flex: 0 1 auto; max-inline-size: 18rem; }
.menu summary { max-inline-size: 42vw; overflow-wrap: anywhere; }
.theme-summary { color: var(--ink-2); margin-block: 10px 20px; }
[dir="rtl"] .doc, [dir="rtl"] .page { text-align: start; }
:root:lang(ar), :root:lang(fa), :root:lang(ur) {
  --display: "Noto Naskh Arabic", "Geeza Pro", serif;
  --sans: "Noto Sans Arabic", "Geeza Pro", system-ui, sans-serif;
}
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3,
:lang(fa) h1, :lang(fa) h2, :lang(fa) h3 { line-height: 1.4; letter-spacing: normal; }
/* Korean: Hangul gothic system faces, and line breaks only between words. */
:root:lang(ko) {
  --display: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  --sans: "IBM Plex Sans", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
}
:lang(ko) { word-break: keep-all; overflow-wrap: anywhere; }
:lang(ko) h1, :lang(ko) h2, :lang(ko) h3 { letter-spacing: normal; line-height: 1.3; font-weight: 600; }
:root:lang(ko) [lang="en"] { --display: "Literata", "Iowan Old Style", "Palatino Linotype", Georgia, serif; word-break: normal; }

/* Legal pages use the same type, colours and responsive spacing as the main site. */
.legal-page header { padding: 16px 24px; border-block-end: 1px solid var(--rule); background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 50; }
.legal-page header .container { max-inline-size: 760px; margin-inline: auto; }
.legal-page .back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; transition: color .15s ease; }
.legal-page .back-link:hover { color: var(--violet-text); }
.legal-page .back-link::before { content: "←"; display: inline-block; transition: transform .15s ease; }
[dir="rtl"] .legal-page .back-link::before { content: "→"; }
.legal-page .back-link:hover::before { transform: translateX(-3px); }
[dir="rtl"] .legal-page .back-link:hover::before { transform: translateX(3px); }
.legal-page .company-notice { margin-block-start: 40px; font-size: 12px; line-height: 1.5; color: var(--ink-3); }
.legal-page .site-footer { padding: 24px; border-block-end: 1px solid var(--rule); }
.legal-page .container, .legal-page main { max-inline-size: 760px; margin-inline: auto; }
.legal-page main { padding: 40px 24px 72px; }
.legal-page h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.2; }
.legal-page h2 { font-size: 1.5rem; margin-block: 32px 12px; line-height: 1.35; }
.legal-page h3 { font-size: 1.2rem; margin-block: 24px 8px; line-height: 1.35; }
.legal-page .site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
.legal-page p, .legal-page ul { margin-block: 16px; }
.legal-page p, .legal-page li { color: var(--ink-2); }
.legal-page ul { padding-inline-start: 24px; }
.legal-page .updated { font-size: 14px; color: var(--ink-3); }
.legal-page .footer-row, .legal-page .site-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.legal-page .footer-row { justify-content: space-between; }

.price-label { font: inherit; }
/* Let translated copy wrap inside grid and flex children instead of widening the page. */
.hero-grid > *, .doc-row > *, .bilingual > *, .calc > *, .controls > *,
.band-grid > *, .price-grid > *, .faq-grid > *, .signup-grid > *,
.fig-head > *, .wrap-zones > * { min-width: 0; }
.tag { white-space: normal; overflow-wrap: anywhere; }
.wrap-zones .z-spine { flex: 1 1 0; }
.wrap-zones span { overflow-wrap: anywhere; }
.amount-row > * { min-width: 0; overflow-wrap: anywhere; }
