/* Hemwrite homepage: the base layer (tokens, type, layout, controls, navigation, the pinned story).
   Written for Hemwrite (W6, Mondy 2026-11-10); home.css adds the page's own sections on top.
   Values follow the approved design (docs/design/homepage-b); no third-party kit files are used. */

@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/manrope-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/manrope-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/manrope-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/manrope-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/newsreader-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/newsreader-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/newsreader-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/newsreader-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Courier Prime"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/courier-prime-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Courier Prime"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/courier-prime-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Courier Prime"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/courier-prime-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Courier Prime"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/courier-prime-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---- tokens --------------------------------------------------------------------------------- */
:root {
  /* the light page and the dark (inverse) bands: parchment and wine, gold on dark */
  --p-bg: #fbf5ea; --p-surface: #f5efe4; --p-ink: #2a0f1c; --p-muted: #6e5862;
  --p-accent: #4a1328; --p-accent-ink: #fbf5ea; --p-action: #4a1328; --p-action-ink: #fbf5ea;
  --p-inv-bg: #2a0f1c; --p-inv-surface: #371c28; --p-inv-ink: #fbf5ea; --p-inv-muted: #c4adb2;
  --p-inv-accent: #dfb664; --p-inv-accent-ink: #1b0c15; --p-inv-action: #dfb664; --p-inv-action-ink: #1b0c15;
  --ground-bg: #d9ccb7; --ground-surface: #e9e0d2; --ground-accent: #a8794a;

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-text: "Manrope", system-ui, sans-serif;
  --font-mono: "Courier Prime", "Courier New", monospace;
  --display-weight: 400;
  --display-tracking: -0.02em;
  --display-tracking-xl: -0.028em;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px;
  --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --t-label: 13px; --t-small: 14px; --t-body: 16px; --t-lead: 18px; --t-card: 18px; --t-h3: 24px;
  --t-h2: clamp(30px, 1.72vw + 23.3px, 48px);
  --t-h1: clamp(38px, 3.24vw + 25.4px, 72px);
  --hero-h1: calc(0.97 * clamp(40px, 3.048vw + 28.11px, 72px));
  --r-sm: 8px; --r-md: 12px; --r-lg: 20px; --r-btn: 999px;
  --btn-h: 44px; --btn-h-sm: 36px;

  --nav: 72px;           /* the fixed bar */
  --padt: 120px;         /* a section's top room (clears the bar) */
  --padb: 72px;
  --hgap: 48px;          /* the hero's room under the bar */
  --hpadb: 64px;
  --container: 1280px;
  --gut: 80px;           /* the side margin */
  --gutter: 24px;        /* between grid columns */
  --card-pad: 16px; --card-gap: 16px; --head-gap: 48px; --section: 40px; --section-band: 56px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --m-ease: cubic-bezier(.2, .8, .2, 1);
  --m-in: 140ms; --m-out: 200ms; --m-press: 90ms;
}
@media (max-width: 639px) {
  :root { --nav: 56px; --padt: 64px; --padb: 32px; --hgap: 40px; --hpadb: 24px; --gut: 24px;
    --gutter: 12px; --card-gap: 12px; --head-gap: 32px; }
}
@media (min-width: 640px) { :root { --gut: 48px; --section: 48px; --section-band: 72px; --card-pad: 24px; } }
@media (min-width: 1024px) {
  :root { --gut: 80px; --section: 56px; --section-band: 96px; --card-gap: 24px; --t-lead: 20px;
    --t-card: 20px; --t-h3: 28px; }
}

/* the light page, and the dark bands (story, closing); every colour below reads these */
:root, .ground-base {
  --bg: var(--p-bg); --surface: var(--p-surface); --ink: var(--p-ink); --muted: var(--p-muted);
  --accent: var(--p-accent); --accent-ink: var(--p-accent-ink); --card: var(--p-surface);
  --action: var(--p-action); --action-ink: var(--p-action-ink);
}
.ground-inverse {
  --bg: var(--p-inv-bg); --surface: var(--p-inv-surface); --ink: var(--p-inv-ink); --muted: var(--p-inv-muted);
  --accent: var(--p-inv-accent); --accent-ink: var(--p-inv-accent-ink); --card: var(--p-inv-surface);
  --action: var(--p-inv-action); --action-ink: var(--p-inv-action-ink);
}
:root, .ground-base, .ground-inverse {
  --line: color-mix(in oklab, var(--ink) 11%, transparent);
  --line-strong: color-mix(in oklab, var(--ink) 20%, transparent);
}
.ground-base, .ground-inverse { background: var(--bg); color: var(--ink); }

/* ---- base ------------------------------------------------------------------------------------ */
*, ::before, ::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; margin: 0; color-scheme: light; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--t-body)/1.55 var(--font-text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg, video, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking); text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: var(--t-h1); line-height: 1.04; }
h2 { font-size: var(--t-h2); line-height: 1.1; }
h3 { font-size: var(--t-h3); line-height: 1.2; }
h4 { font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: -0.01em; }
p { text-wrap: pretty; }
.t-lead { font-size: var(--t-lead); line-height: 1.5; }
.muted { color: var(--muted); }
::selection { background: color-mix(in oklab, var(--accent) 30%, transparent); }
.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; }
.skip { position: absolute; left: var(--s-4); top: -60px; z-index: 60; padding: var(--s-2) var(--s-4);
  border-radius: var(--r-sm); background: var(--action); color: var(--action-ink); font-weight: 600; }
.skip:focus { top: var(--s-2); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---- layout: the content column, the 12-column grid, one section per screen ------------------- */
.wrap { width: min(100% - 2 * var(--gut), var(--container)); margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--card-gap); }
.grid > * { min-width: 0; grid-column: 1 / -1; }
@media (min-width: 1024px) {
  .span-2 { grid-column: auto / span 2; } .span-3 { grid-column: auto / span 3; }
  .span-4 { grid-column: auto / span 4; } .span-5 { grid-column: auto / span 5; }
  .span-7 { grid-column: auto / span 7; }
  .start-6 { grid-column-start: 6; } .start-7 { grid-column-start: 7; }
  .grid--top { align-items: start; }
}
@media (max-width: 639px) { .grid:has(> .card--open) { row-gap: var(--s-6); } }

/* each section fills one screen (--h screens; --hm on phones), its content column stretching inside */
main > section, footer.closing { position: relative; height: calc(var(--h, 1) * 100svh);
  padding: var(--padt) 0 var(--padb); }
main > section > .wrap, footer.closing > .wrap { position: relative; z-index: 1; height: 100%; }
main > section > .wrap:not(.grid) { display: flex; flex-direction: column; }
main > section > .wrap > .fill { flex: 1 1 0; min-height: 0; }
@media (min-width: 640px) and (max-width: 1279px) {
  main > section:not(.hero), footer.closing { height: auto; min-height: calc(var(--h, 1) * 100svh);
    display: flex; flex-direction: column; }
  main > section:not(.hero) > .wrap, footer.closing > .wrap { flex: 1 0 auto; height: auto; min-height: 0; }
}
@media (max-width: 639px) {
  /* phones: as tall as the content (whole-screen heights left big empty gaps, Mondy 2026-11-15) */
  main > section:not(.hero), footer.closing { height: auto; min-height: 0; }
  main > section > .wrap, footer.closing > .wrap { height: auto; }
  main > section > .wrap > .fill { flex: none; }
}

/* the hero: the words on five columns, the book on seven */
main > .hero { position: relative; isolation: isolate; height: 100svh; min-height: 0;
  padding: calc(var(--nav) + var(--hgap)) 0 var(--hpadb); }
.hero > .wrap { height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; row-gap: var(--s-7); }
.hero > .wrap > .hero-text { min-height: 0; height: 100%; }
.hero h1 { font-size: var(--hero-h1); line-height: 1.02; letter-spacing: var(--display-tracking-xl); text-wrap: balance; }
.hero-text.hero-split { align-items: stretch; }
.hero-split > .hero-copy { align-self: start; }
.hero-split > .hero-visual { position: relative; min-height: 0; height: 100%; }
.hero-copy > * + * { margin-top: var(--s-5); }
.hero-copy > h1:first-child { text-box: trim-start cap alphabetic; }
.hero-copy > .btn-row { margin-top: var(--s-6); }
@media (min-width: 1024px) { .hero-split > .hero-copy { height: 100%; display: flex; flex-direction: column; } }
@media (max-width: 1023px) {
  .hero-text.hero-split { display: flex; flex-direction: column; gap: var(--s-6); }
  .hero-split > .hero-visual { flex: 1 1 0; min-height: 200px; height: auto; }
}

.section-head { max-width: 760px; margin-bottom: var(--head-gap); display: grid; gap: var(--s-4); }
.section-head--split { max-width: none; display: flex; align-items: end; justify-content: space-between;
  gap: var(--s-5); flex-wrap: wrap; }
.section-head--split > div { display: grid; gap: var(--s-4); max-width: 760px; }

/* ---- controls ---------------------------------------------------------------------------------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  height: var(--btn-h); padding: 0 var(--s-5); border-radius: var(--r-btn); border: 1px solid transparent;
  font: 500 var(--t-body)/1 var(--font-text); white-space: nowrap; cursor: pointer;
  transition: background-color var(--m-out) var(--m-ease), color var(--m-out) var(--m-ease),
    border-color var(--m-out) var(--m-ease), box-shadow var(--m-out) var(--m-ease), transform var(--m-press) var(--m-ease); }
.btn--primary { background: var(--action); color: var(--action-ink); }
.btn--primary:hover { background: color-mix(in oklab, var(--action) 84%, var(--bg)); }
.btn--secondary { background: color-mix(in oklab, var(--ink) 8%, var(--bg)); color: var(--ink); }
.btn--secondary:hover { background: color-mix(in oklab, var(--ink) 14%, var(--bg)); }
.btn:active { transform: translateY(1px) scale(0.985); }
@media (hover: hover) and (pointer: fine) { .btn:hover { transform: translateY(-1px); } .btn:active { transform: translateY(1px) scale(0.985); } }
.btn:disabled { cursor: default; opacity: .55; transform: none; }
/* the arrow in a button: its stem draws in and its head steps right on hover */
/* a primary button without its own arrow gets a small chevron that steps right on hover */
.btn--primary:not(:has(> .m-arrow))::after { content: ""; flex: 0 0 auto; width: 12px; height: 12px; margin-right: -2px;
  background: currentColor; transition: transform var(--m-out) var(--m-ease);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4.5 2.5 8 6l-3.5 3.5' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4.5 2.5 8 6l-3.5 3.5' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.btn--primary:hover::after { transform: translateX(3px); }
.m-arrow { flex: 0 0 auto; width: 12px; height: 12px; margin-right: -2px; overflow: visible; fill: none;
  stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.m-arrow__stem { opacity: 0; transform: scaleX(.2); transform-origin: 1px 50%; transform-box: fill-box;
  transition: opacity var(--m-out) var(--m-ease), transform var(--m-out) var(--m-ease); }
.m-arrow__head { transition: transform var(--m-out) var(--m-ease); }
:is(a, button):is(:hover, :focus-visible) > .m-arrow .m-arrow__stem { opacity: 1; transform: none; transition-duration: var(--m-in); }
:is(a, button):is(:hover, :focus-visible) > .m-arrow .m-arrow__head { transform: translateX(3px); transition-duration: var(--m-in); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
@media (max-width: 639px) {
  .btn-row { flex-direction: column; align-items: stretch; width: 100%; }
  .btn-row > .btn--secondary { background: none; text-decoration: underline; text-underline-offset: 4px;
    text-decoration-color: var(--line-strong); }
  .section-head--split > .btn { width: 100%; }
}
/* a text link: an arrow after it, and an underline that draws across on hover */
.link { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 500; color: var(--ink);
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(var(--line-strong), var(--line-strong));
  background-repeat: no-repeat; background-size: 0% 1px, calc(100% - 1em - var(--s-2)) 1px;
  background-position: 0 100%, 0 100%; padding-bottom: 2px;
  transition: background-size var(--m-out) var(--m-ease), color var(--m-out) var(--m-ease); }
.link:is(:hover, :focus-visible) { background-size: calc(100% - 1em - var(--s-2)) 1px, calc(100% - 1em - var(--s-2)) 1px; transition-duration: var(--m-in); }
.link::after { content: "→"; display: inline-block; transition: transform var(--m-out) var(--m-ease); }
.link:hover::after { transform: translateX(3px); }
button.link { border: 0; background-color: transparent; padding-inline: 0; cursor: pointer; }
.tab { height: var(--btn-h-sm); padding: 0 var(--s-4); border-radius: var(--r-btn); border: 1px solid var(--line);
  background: transparent; color: var(--muted); font-size: var(--t-small); font-weight: 500; cursor: pointer;
  transition: color 240ms var(--m-ease), border-color var(--m-out) var(--m-ease), background-color var(--m-out) var(--m-ease); }
.tab:hover { color: var(--ink); border-color: var(--line-strong); }

/* ---- cards ------------------------------------------------------------------------------------- */
.card { --c-pad: 28px; --c-border: color-mix(in oklab, var(--ink) 8%, transparent);
  position: relative; display: flex; flex-direction: column; min-width: 0; padding: var(--c-pad);
  border-radius: var(--r-lg); background: var(--card); color: var(--ink); border: 1px solid var(--c-border);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .05), 0 1px 2px rgb(0 0 0 / .05); overflow: clip;
  transition: transform var(--m-out) var(--m-ease), border-color var(--m-out) var(--m-ease), box-shadow var(--m-out) var(--m-ease); }
@media (min-width: 1024px) { .card { --c-pad: 32px; } }
@media (max-width: 639px) { .card { --c-pad: 20px; border-radius: 18px; } }
.card > h3 { margin: 0; font: 560 18px/26px var(--font-text); letter-spacing: -0.012em; color: var(--ink); text-wrap: balance; }
.card > p { margin: 8px 0 0; font-size: 16px; line-height: 24px; color: color-mix(in oklab, var(--ink) 84%, var(--card)); max-width: 46ch; }
@media (hover: hover) and (pointer: fine) {
  .card:not(.card--open, .card--plan, .m-nolift):hover { transform: translateY(-2px);
    border-color: color-mix(in oklab, var(--ink) 16%, transparent);
    box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 14px 32px -18px rgb(0 0 0 / .35); }
}
.card.card--open { background: none; border: 0; box-shadow: none; padding: 0; overflow: visible; }
.panel { position: relative; isolation: isolate; overflow: clip; display: block; padding: 0;
  min-height: clamp(264px, 22vw + 8px, 340px); flex: 1 0 auto; border-radius: var(--r-lg);
  background-color: var(--ground-bg);
  background-image: radial-gradient(70% 90% at 12% 0%, color-mix(in oklab, var(--ground-surface) 92%, white), transparent 70%),
    radial-gradient(60% 80% at 100% 100%, color-mix(in oklab, var(--ground-accent) 34%, var(--ground-bg)), transparent 72%),
    radial-gradient(50% 60% at 85% 10%, color-mix(in oklab, var(--ground-surface) 60%, transparent), transparent 70%); }
.panel::after { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ink) 7%, transparent); }
.card.card--open > .panel { margin: var(--s-5) 0 0; }
.card.card--plan { gap: var(--s-4); }
.card--plan h3 { font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: -0.01em; }
.card--plan .btn { width: 100%; }
.card--plan.is-featured { border-color: var(--action); box-shadow: inset 0 0 0 1px var(--action); }
.plan__price { display: flex; align-items: baseline; gap: 6px; margin-top: 20px;
  font: 600 44px/1 var(--font-display); letter-spacing: -0.04em; }
.frame { position: relative; isolation: isolate; overflow: clip; display: flex; align-items: center; justify-content: center;
  background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--line); padding: clamp(var(--s-4), 4vw, var(--s-7)); }

/* ---- questions and the footer ------------------------------------------------------------------ */
.faq > .faq__item { display: grid; gap: var(--s-2); padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.faq > .faq__item:first-child { padding-top: 0; }
.faq__item > h3 { display: block; font: 500 var(--t-lead)/1.4 var(--font-text); letter-spacing: 0; }
.faq__item p { color: var(--ink); max-width: 64ch; }
@media (max-width: 639px) { .faq > .faq__item { padding: var(--s-4) 0; } }

.footer { padding-block: var(--section-band) var(--s-6); }
.footer .grid { row-gap: var(--s-7); }
.footer h2 { font: 500 var(--t-small)/1.4 var(--font-text); letter-spacing: 0; color: var(--muted); margin-bottom: var(--s-4); }
.footer ul { display: grid; gap: var(--s-3); font-size: var(--t-small); }
.footer ul a { background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat;
  background-size: 0% 1px; background-position: 0 100%; padding-bottom: 2px; transition: background-size var(--m-out) var(--m-ease); }
.footer ul a:is(:hover, :focus-visible) { background-size: 100% 1px; }
/* "Open in Gmail" and "Copy" beside the support address (_macros.html mail_ways; Copy: site.js) */
.mail-ways { display: inline-flex; flex-wrap: wrap; gap: var(--s-2); margin-left: var(--s-2); vertical-align: middle; }
.mail-way { appearance: none; display: inline-flex; align-items: center; min-height: 24px; padding: 2px 10px;
  border: 1px solid currentColor; border-radius: 999px; background: none; color: inherit; font: inherit;
  font-size: var(--t-small); line-height: 1.3; text-decoration: none; opacity: .75; cursor: pointer; }
.footer ul a.mail-way { background-image: none; }
.mail-way:is(:hover, :focus-visible) { opacity: 1; }
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6); justify-content: space-between;
  padding-top: var(--s-5); border-top: 1px solid var(--line); font-size: var(--t-label); color: var(--muted); }
.footer__legal a { color: var(--ink); }
@media (max-width: 1023px) { .footer .footer__col { grid-column: auto / span 6; } .footer .grid > .span-4 { grid-column: 1 / -1; } }
@media (min-width: 640px) and (max-width: 1023px) { .footer .footer__col { grid-column: auto / span 3; } }
footer.closing > .wrap { display: grid; grid-template-rows: minmax(0, 1fr) auto; row-gap: var(--s-8); }
.closing__cta { min-height: 0; display: flex; flex-direction: column; gap: var(--s-6); }
.closing__cta > .section-head--split { margin-bottom: 0; }
.closing__cta h2 { max-width: 20ch; }
.close__word { margin-top: auto; font: var(--display-weight) clamp(64px, 14.5vw, 216px)/.86 var(--font-display);
  letter-spacing: -0.045em; white-space: nowrap; overflow: clip; color: var(--ink); }
.closing__links { display: grid; gap: var(--s-7); }
@media (max-width: 639px) {
  footer.closing > .wrap { row-gap: var(--s-7); }
  .closing__links { gap: var(--s-5); } .closing__links > .grid { row-gap: var(--s-5); }
  .closing__links .footer__col { grid-column: auto / span 6; }
  .close__word { font-size: clamp(56px, 19vw, 96px); }
}

/* ---- navigation: a fixed bar; the links centred on computers, a full-height sheet on phones ---- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav); background: var(--bg); color: var(--ink);
  border-bottom: 1px solid var(--line); }
.nav__bar { height: 100%; display: flex; align-items: center; gap: var(--s-8); }
.nav__logo { display: inline-flex; align-items: center; gap: var(--s-2); font: 500 22px/1 var(--font-display);
  letter-spacing: -0.02em; flex: 0 0 auto; }
.nav__logo svg { height: 24px; width: auto; }
.nav__links { display: flex; align-self: stretch; gap: var(--s-1); flex: 1 1 0; min-width: 0; }
.nav__item { display: flex; align-items: center; height: 100%; }
.nav__link { position: relative; display: inline-flex; align-items: center; gap: var(--s-1); height: 36px; padding: 0 var(--s-3);
  border-radius: var(--r-sm); font-size: 15px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.nav__link::before { content: ""; position: absolute; left: var(--s-3); right: var(--s-3); bottom: -2px; height: 2px;
  border-radius: 2px; background: currentColor; transform: scaleX(0); transform-origin: right center;
  transition: transform 180ms var(--ease); pointer-events: none; }
.nav__link:is(:hover, :focus-visible)::before { transform: scaleX(1); transform-origin: left center; }
.nav__actions { display: flex; align-items: center; gap: var(--s-4); flex: 0 0 auto; }
.nav__actions .btn { font-size: 15px; }
.nav__actions > .nav__link { padding-inline: var(--s-2); }
.nav__actions > .nav__link::before { left: var(--s-2); right: var(--s-2); }
.nav__toggle { display: none; }
/* the full menu from 1200px: below it a signed-in reader's "Your drafts" ran into the centred
   links (Mondy, 2026-11-28), so 1024-1199px uses the compact menu too */
@media (min-width: 1200px) {
  .nav--centre .nav__bar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .nav--centre .nav__logo { grid-area: 1 / 1; justify-self: start; }
  .nav--centre .nav__links { grid-area: 1 / 2; justify-content: center; flex: 0 0 auto; }
  .nav--centre .nav__actions { grid-area: 1 / 3; justify-self: end; }
}
@media (min-width: 1200px) and (max-width: 1279px) {
  .nav__bar { gap: var(--s-6); } .nav__links { gap: 0; }
  .nav__link { padding: 0 var(--s-2); } .nav__link::before { left: var(--s-2); right: var(--s-2); }
}
@media (max-width: 1199px) {
  .nav__bar { gap: var(--s-3); }
  .nav__links { display: none; }
  .nav__actions { margin-left: auto; }
  .nav__actions > :not(.btn--primary) { display: none; }
  .nav__toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-btn);
    border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; flex: 0 0 auto; }
  .nav__toggle svg path { transition: transform var(--m-out) var(--m-ease), opacity var(--m-out) var(--m-ease); transform-origin: 9px 9px; }
  .nav.is-open .nav__toggle .bar-a { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .nav__toggle .bar-b { transform: translateY(-4px) rotate(-45deg); }
  /* the open sheet: the whole screen under the bar, the links large, arriving one after another */
  .nav.is-open { height: 100dvh; background: color-mix(in oklab, var(--bg) 96%, transparent);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
  .nav.is-open .nav__bar { height: var(--nav); }
  .nav.is-open .nav__toggle { margin-left: auto; }
  .nav.is-open .nav__links { position: absolute; inset: var(--nav) 0 auto; display: grid; gap: 0; padding: var(--s-5) var(--gut) 0;
    flex: none; }
  .nav.is-open .nav__item { height: auto; opacity: 0; transform: translateY(24px);
    animation: nav-in 500ms var(--m-ease) forwards; animation-delay: calc(var(--n, 0) * 60ms); }
  .nav.is-open .nav__item:nth-child(1) { --n: 0; } .nav.is-open .nav__item:nth-child(2) { --n: 1; }
  .nav.is-open .nav__item:nth-child(3) { --n: 2; } .nav.is-open .nav__item:nth-child(4) { --n: 3; }
  .nav.is-open .nav__item:nth-child(5) { --n: 4; } .nav.is-open .nav__item:nth-child(6) { --n: 5; }
  .nav.is-open .nav__links .nav__link { height: 56px; padding: 0; font: 400 28px/1 var(--font-display); }
  .nav.is-open .nav__links .nav__link::before { left: 0; right: 0; }
  .nav.is-open .nav__actions { position: absolute; left: var(--gut); right: var(--gut); bottom: calc(var(--s-6) + env(safe-area-inset-bottom));
    display: grid; gap: var(--s-3); margin: 0; }
  .nav.is-open .nav__actions > * { display: inline-flex; justify-content: center; }
  .nav.is-open .nav__actions .btn { width: 100%; }
  body.nav-locked { overflow: hidden; }
}
@keyframes nav-in { to { opacity: 1; transform: none; } }
@media (max-width: 639px) {
  .nav__bar { gap: var(--s-2); }
  .nav__logo { font-size: clamp(16px, 4.6vw, 20px); gap: 6px; white-space: nowrap; }
  .nav:not(.is-open) .nav__actions .btn { height: 44px; padding-inline: var(--s-3); font-size: var(--t-small); }
}
/* without scripts the links scroll sideways in the bar instead of opening a sheet */
@media (scripting: none) and (max-width: 1199px) {
  .nav__links { display: flex; overflow-x: auto; scrollbar-width: none; margin-right: var(--s-3); }
  .nav__toggle { display: none; }
}

/* ---- the pinned story: computers with a tall enough window hold the section for one extra screen
   while its three steps open in turn (home.js adds .is-live); otherwise the steps are plain rows ---- */
main > section.story > .wrap.mo-pc__grid { display: grid; gap: var(--s-7); align-items: center; align-content: start; height: auto; }
.mo-pc__text { display: grid; gap: var(--s-6); align-content: start; }
.mo-pc__steps { display: grid; gap: var(--s-5); }
.mo-pc__step { display: grid; gap: var(--s-2); padding-left: var(--s-5); border-left: 2px solid var(--line); }
.mo-pc__step h3 { font: 500 var(--t-lead)/1.3 var(--font-text); letter-spacing: -0.01em; color: var(--ink); }
.mo-pc__step p { color: var(--ink); max-width: 46ch; }
.mo-pc__step p > .mo-pc__p-in { display: block; }
.mo-pc__visual { margin: var(--s-4) 0 0; border-radius: var(--r-md); overflow: hidden; }
.story.is-live { height: 200svh; padding: 0; }
main > section.story.is-live > .wrap.mo-pc__grid { position: sticky; top: 0; height: 100svh; padding-top: var(--nav);
  grid-template-columns: 5fr 6fr; gap: var(--s-8); align-items: center; align-content: center; overflow: clip; }
.story.is-live .mo-pc__step { transition: border-color 300ms; }
.story.is-live .mo-pc__step h3 { color: var(--muted); transition: color 300ms; }
.story.is-live .mo-pc__step p { display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows 420ms cubic-bezier(.2, .7, .2, 1), opacity 300ms; }
.story.is-live .mo-pc__step p > .mo-pc__p-in { min-height: 0; overflow: hidden; }
.story.is-live .mo-pc__step.is-on { border-left-color: var(--accent); }
.story.is-live .mo-pc__step.is-on h3 { color: var(--ink); }
.story.is-live .mo-pc__step.is-on p { grid-template-rows: 1fr; opacity: 1; }
.story.is-live .mo-pc__visuals { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3;
  max-height: calc(100svh - 128px); padding: 0; }
.story.is-live .mo-pc__visual { position: absolute; inset: 0; margin: 0; border-radius: 0; opacity: 0; transform: scale(1.03);
  transition: opacity 480ms, transform 900ms cubic-bezier(.16, 1, .3, 1); }
.story.is-live .mo-pc__visual.is-on { opacity: 1; transform: none; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .btn:is(:hover, :active), .card:hover, .link:hover::after, :is(a, button):hover > .m-arrow :is(.m-arrow__head, .m-arrow__stem) { transform: none !important; }
  .m-arrow__stem { opacity: 1; transform: none; }
  .nav.is-open .nav__item { opacity: 1; transform: none; }
}
@media print { .story.is-live { height: auto; } .story.is-live > .mo-pc__grid { position: static; height: auto; display: block; } }

/* ---- the privacy page: one readable column under the bar ---------------------------------------- */
.doc { padding: calc(var(--nav) + var(--s-8)) 0 var(--s-9); }
.doc__wrap { max-width: 760px; display: grid; gap: var(--s-7); }
.doc__wrap > h1 { font-size: var(--t-h2); line-height: 1.1; margin-top: calc(-1 * var(--s-6)); }
.doc__kicker { font: 600 var(--t-label)/1.2 var(--font-text); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.doc__updated { color: var(--muted); margin-top: calc(-1 * var(--s-6)); }
.doc section { display: grid; gap: var(--s-4); }
.doc h2 { font-size: var(--t-h3); line-height: 1.2; }
.doc p, .doc dd, .doc li { max-width: 68ch; }
.doc .link { display: inline; margin-right: var(--s-4); }
/* a link inside a sentence (terms, refunds): underlined, no arrow */
.doc :is(p, li) a:not(.link) { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.doc :is(p, li) a:not(.link):hover { text-decoration-color: currentColor; }
.doc__list { display: grid; gap: var(--s-3); padding-left: var(--s-5); list-style: disc; }
.doc__facts { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: var(--s-3) var(--s-5); margin: 0; }
.doc__facts dt { font-weight: 600; }
.doc__facts dd { margin: 0; }
@media (max-width: 639px) { .doc__facts { grid-template-columns: 1fr; gap: var(--s-1); } .doc__facts dd { margin-bottom: var(--s-3); } }
.doc__actions { margin-left: auto; }
@media (max-width: 1023px) { .doc__actions > * { display: inline-flex !important; } }
.doc__footer { padding-block: var(--s-6); }
