/* Femata: the public site. A printed poster on cream paper, in the same inks as the app.
   Type: Yeseva One for display, Jost for structure and reading, Courier Prime for the small print.
   Motion: transform and opacity only. Everything is readable with motion off and with scripts off. */

@font-face { font-family: 'Yeseva One'; font-weight: 400; font-display: swap; src: url(/assets/fonts/yeseva-one.woff2) format('woff2'); }
@font-face { font-family: 'Jost'; font-weight: 300; font-display: swap; src: url(/assets/fonts/jost-300.woff2) format('woff2'); }
@font-face { font-family: 'Jost'; font-weight: 400; font-display: swap; src: url(/assets/fonts/jost-400.woff2) format('woff2'); }
@font-face { font-family: 'Jost'; font-weight: 500; font-display: swap; src: url(/assets/fonts/jost-500.woff2) format('woff2'); }
@font-face { font-family: 'Courier Prime'; font-weight: 400; font-display: swap; src: url(/assets/fonts/courier-prime.woff2) format('woff2'); }
@font-face { font-family: 'Courier Prime'; font-weight: 400; font-style: italic; font-display: swap; src: url(/assets/fonts/courier-prime-italic.woff2) format('woff2'); }

:root {
  --paper: #F8F1E6; --paper-hi: #FCF8F0; --ink: #27201C; --muted: #6A5E52; --faint: #AEA192; --hair: #DFD4C3;
  --pink: #DB5F7C; --pink-text: #B03A58; --rose: #F3CDBF; --apricot: #F6CE9C; --lens: #EB9971; --teal: #2E6F73; --on-teal: #F8F1E6;
  --island: #1B1613; --grain-a: 0.5; --tone-a: 0.5;
  --t-none: #E3B45A; --t-period: #D44A6C; --t-follicular: #E39089; --t-fertile: #E0875C; --t-luteal: #E3B45A;
  --w-none: rgba(240, 170, 110, 0.20); --w-period: rgba(219, 95, 124, 0.22); --w-follicular: rgba(244, 189, 184, 0.38); --w-fertile: rgba(235, 153, 113, 0.24); --w-luteal: rgba(240, 175, 100, 0.22);
  --fast: 150ms; --base: 250ms; --slow: 400ms; --moment: 600ms;
  --out: cubic-bezier(0.33, 1, 0.68, 1); --pop: cubic-bezier(0.3, 1.35, 0.5, 1);
  --gut: 16px; --max: 1240px;
  --serif: 'Yeseva One', Georgia, 'Times New Roman', serif; --sans: 'Jost', 'Futura', 'Century Gothic', system-ui, sans-serif; --mono: 'Courier Prime', ui-monospace, 'Courier New', monospace;
  color-scheme: light;
}
/* the same poster by lamplight: a deep teal room, the inks a little brighter */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #142426; --paper-hi: #1B2E30; --ink: #F1E7D6; --muted: #A7ACA2; --faint: #5E7173; --hair: #2C4244;
    --pink: #EE7C96; --pink-text: #EE7C96; --rose: #6E4646; --apricot: #7A5F3A; --lens: #C9895A; --teal: #7FC4BE; --on-teal: #142426;
    --island: #0B1516; --grain-a: 0.4; --tone-a: 0.3;
    --t-none: #D8935A; --t-period: #EE7C96; --t-follicular: #D99490; --t-fertile: #D9925E; --t-luteal: #D8A55A;
    --w-none: rgba(236, 160, 90, 0.12); --w-period: rgba(238, 124, 150, 0.16); --w-follicular: rgba(217, 148, 144, 0.15); --w-fertile: rgba(217, 146, 94, 0.16); --w-luteal: rgba(216, 165, 90, 0.16);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #142426; --paper-hi: #1B2E30; --ink: #F1E7D6; --muted: #A7ACA2; --faint: #5E7173; --hair: #2C4244;
  --pink: #EE7C96; --pink-text: #EE7C96; --rose: #6E4646; --apricot: #7A5F3A; --lens: #C9895A; --teal: #7FC4BE; --on-teal: #142426;
  --island: #0B1516; --grain-a: 0.4; --tone-a: 0.3;
  --t-none: #D8935A; --t-period: #EE7C96; --t-follicular: #D99490; --t-fertile: #D9925E; --t-luteal: #D8A55A;
  --w-none: rgba(236, 160, 90, 0.12); --w-period: rgba(238, 124, 150, 0.16); --w-follicular: rgba(217, 148, 144, 0.15); --w-fertile: rgba(217, 146, 94, 0.16); --w-luteal: rgba(216, 165, 90, 0.16);
  color-scheme: dark;
}
@media (min-width: 700px) { :root { --gut: 40px; } }
@media (min-width: 1100px) { :root { --gut: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-weight: 400; font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; font-variant-numeric: lining-nums; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, iframe { display: block; }
iframe { border: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--apricot); color: var(--ink); }
.skip { position: absolute; left: var(--gut); top: -80px; z-index: 90; padding: 12px 16px; background: var(--ink); color: var(--paper); font-size: 16px; }
.skip:focus { top: 12px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---- material: paper tooth over everything, and a halftone corner that takes the ink of a phase ---- */
.grain { position: fixed; inset: 0; z-index: 80; pointer-events: none; opacity: var(--grain-a);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='7'/><feColorMatrix values='0 0 0 0 0.45  0 0 0 0 0.36  0 0 0 0 0.26  0 0 0 0.16 0'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>"); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .grain { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='7'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 0.92  0 0 0 0 0.8  0 0 0 0.07 0'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>"); } }
:root[data-theme="dark"] .grain { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='7'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 0.92  0 0 0 0 0.8  0 0 0 0.07 0'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>"); }

.corner { position: fixed; top: 0; right: 0; width: min(62vw, 560px); height: min(56vw, 500px); z-index: 0; pointer-events: none; }
.corner i { position: absolute; inset: 0; opacity: 0; transition: opacity var(--moment) var(--out); }
.corner i::before { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 100% at 92% -10%, var(--w), transparent 64%); }
.corner i::after { content: ''; position: absolute; inset: 0; opacity: var(--tone-a);
  background-image: radial-gradient(circle at 50% 50%, var(--t) 0 1.15px, transparent 1.5px); background-size: 6px 6px;
  -webkit-mask-image: radial-gradient(100% 100% at 100% 0%, #000 0%, rgba(0,0,0,.4) 40%, transparent 72%); mask-image: radial-gradient(100% 100% at 100% 0%, #000 0%, rgba(0,0,0,.4) 40%, transparent 72%); }
.corner .c-none { --t: var(--t-none); --w: var(--w-none); }
.corner .c-period { --t: var(--t-period); --w: var(--w-period); }
.corner .c-follicular { --t: var(--t-follicular); --w: var(--w-follicular); }
.corner .c-fertile { --t: var(--t-fertile); --w: var(--w-fertile); }
.corner .c-luteal { --t: var(--t-luteal); --w: var(--w-luteal); }
.corner[data-phase="none"] .c-none, .corner[data-phase="period"] .c-period, .corner[data-phase="follicular"] .c-follicular, .corner[data-phase="fertile"] .c-fertile, .corner[data-phase="luteal"] .c-luteal { opacity: 1; }

.site { position: relative; z-index: 1; overflow-x: clip; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }

/* ---- type roles ---- */
.mono { font-family: var(--mono); font-size: 12px; line-height: 18px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.mono.ink, .mono b { color: var(--ink); font-weight: 400; }
.small { font-family: var(--mono); font-size: 13.5px; line-height: 21px; letter-spacing: 0.01em; color: var(--muted); }
.small a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 0.5px; }
.serif { font-family: var(--serif); font-weight: 400; }
.say { font-family: var(--serif); font-weight: 400; font-size: clamp(29px, 3.5vw, 50px); line-height: 1.14; letter-spacing: -0.012em; text-wrap: balance; }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.58; color: var(--muted); text-wrap: pretty; }
.lede strong { font-weight: 400; color: var(--ink); }
sup { font-size: 0.62em; line-height: 0; }

/* the poster header: a thin wide title, a figure opposite, one rule, a line of small print */
.ph-row { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.ph-t { font-weight: 300; font-size: clamp(23px, 3.6vw, 48px); line-height: 1.12; letter-spacing: 0.045em; text-transform: uppercase; }
.ph-n { font-weight: 300; font-size: clamp(23px, 3.6vw, 48px); line-height: 1.12; letter-spacing: 0.045em; overflow: hidden; }
.ph-n span { display: block; }
.rule { height: 0; border-top: 1px solid var(--ink); margin-top: 8px; transform-origin: 0 50%; }
.under { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 34px; }
@media (max-width: 559px) { .ph .under span + span { display: none; } .ph-t { letter-spacing: 0.035em; } }
.hairline { height: 0; border-top: 1px solid var(--hair); }

/* links that lead somewhere: a line of text and a drawn arrow */
.go { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 17px; font-weight: 500; text-decoration: none; }
.go span { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 3px; }
.go svg { transition: transform var(--base) var(--out); }
.go:hover svg { transform: translateX(4px); }

/* buttons: one filled at most in any view */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 58px; padding: 0 30px; border-radius: 29px; border: 1px solid var(--ink); font-size: 17px; font-weight: 500; letter-spacing: 0.01em; text-decoration: none; white-space: nowrap; transition: opacity var(--fast) var(--out); }
.btn-fill { background: var(--ink); color: var(--paper); }
.btn-fill u { width: 10px; height: 10px; border-radius: 5px; background: var(--pink); }
a.btn:hover { opacity: 0.86; }
a.btn:active { opacity: 0.6; }
.btn-soon { border-style: dashed; border-color: var(--faint); color: var(--muted); font-weight: 400; cursor: default; }
.btn-soon small { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---- the top line ---- */
.top { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-family: var(--serif); font-size: 25px; letter-spacing: -0.01em; text-decoration: none; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { display: none; align-items: center; height: 44px; padding: 0 14px; font-weight: 400; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.nav a.keep { display: inline-flex; }
.theme { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; margin-right: -11px; }
.theme svg { transition: transform var(--slow) var(--out); }
:root[data-theme="dark"] .theme svg { transform: rotate(180deg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme svg { transform: rotate(180deg); } }
@media (min-width: 700px) { .nav a { display: inline-flex; } }

/* ---- hero ---- */
.hero { position: relative; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); padding: 26px 0 0; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(84px, min(15.5vw, 25vh), 212px); line-height: 0.92; letter-spacing: -0.035em; margin: 14px 0 0 -0.04em; }
.hero .promise { font-family: var(--serif); font-size: clamp(27px, 2.9vw, 42px); line-height: 1.16; letter-spacing: -0.012em; margin-top: clamp(14px, 3vh, 26px); max-width: 15em; text-wrap: balance; }
.hero .lede { margin-top: 16px; max-width: 30em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: clamp(20px, 3.4vh, 30px); }
.hero .vow { margin-top: 22px; color: var(--ink); }
.hero-art { position: relative; order: 2; pointer-events: none; height: 300px; margin: 30px calc(var(--gut) * -1) 0; overflow: hidden; }
.hero-art svg { position: absolute; right: -90px; top: -22px; width: 470px; height: 470px; overflow: visible; }
.hero-stage { display: none; }
.days { position: relative; height: 34px; border-top: 1px solid var(--ink); background: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px calc(100% / 33)) 0 0 / 100% 5px no-repeat; }
.days .d-period { position: absolute; left: 0; bottom: 100%; width: 15.15%; aspect-ratio: 2 / 1; border-radius: 999px 999px 0 0; background: var(--pink); transform-origin: 50% 100%; }
.days .d-ov { position: absolute; z-index: 1; left: 43.94%; top: -7px; width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%; background: var(--teal); }
.days span { position: absolute; top: 9px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--muted); }
.days::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px calc(700% / 33)) 0 0 / 100% 10px no-repeat; }

@media (min-width: 700px) and (max-width: 959px) {
  .hero-art { height: 380px; }
  .hero-art svg { width: 620px; height: 620px; top: -30px; right: -60px; }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 412px; column-gap: clamp(32px, 6vw, 110px); align-items: end; padding-top: 12px; min-height: min(calc(100svh - 76px - 34px), 860px); }
  .hero h1 { font-size: clamp(84px, min(22vh, (100vw - 2 * var(--gut) - 412px - 6vw) / 3.55), 212px); }
  .hero-copy { padding: 8px 0 calc(min(var(--max), 100vw - 2 * var(--gut)) * 0.0758 + 32px); align-self: center; }
  .hero-art { position: absolute; z-index: 0; right: -150px; bottom: 0; width: 860px; height: 100%; margin: 0; overflow: visible; }
  .hero-art svg { right: 0; top: auto; bottom: -4px; width: auto; height: min(108%, 860px); aspect-ratio: 1; }
  .hero-stage { display: block; position: relative; z-index: 2; padding-bottom: 0; }
  .hero-stage .phone { margin-bottom: -1px; }
  .hero-stage .tryline { position: absolute; right: calc(100% + 22px); bottom: 26px; width: max-content; text-align: right; }
}

/* the drawn phone: an outline in ink, a line screen behind it where a shadow would be */
.phone { position: relative; width: 412px; max-width: 100%; }
.phone::before { content: ''; position: absolute; inset: 14px -14px 0 14px; border-radius: 58px 58px 0 0; background: repeating-linear-gradient(180deg, var(--shade, var(--pink)) 0 1.2px, transparent 1.2px 4.5px); opacity: 0.75; }
.phone-body { position: relative; height: clamp(520px, calc(100svh - 190px), 760px); padding: 10px 10px 0; border: 1.5px solid var(--ink); border-bottom: 0; border-radius: 56px 56px 0 0; background: var(--paper-hi); }
.phone-screen { position: relative; height: 100%; border-radius: 46px 46px 0 0; overflow: hidden; background: var(--paper); box-shadow: 0 0 0 1px var(--ink); }
.phone-screen iframe { width: 100%; height: 100%; opacity: 0; transition: opacity var(--moment) var(--out); }
.phone-screen iframe.on { opacity: 1; }
.phone .island { position: absolute; left: 50%; top: 21px; width: 98px; height: 28px; margin-left: -49px; border-radius: 14px; background: var(--island); pointer-events: none; z-index: 2; }
.phone.whole::before { border-radius: 58px; bottom: -14px; }
.phone.whole .phone-body { padding-bottom: 10px; border-bottom: 1.5px solid var(--ink); border-radius: 56px; height: min(720px, calc(100svh - 120px)); }
.phone.whole .phone-screen { border-radius: 46px; }
.tryline { display: flex; flex-direction: column; gap: 2px; }

/* ---- sections ---- */
.sec { position: relative; padding: clamp(84px, 11vw, 168px) 0 0; }
.sec-body { margin-top: clamp(28px, 4vw, 56px); }
.split { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
.split .say + .lede { margin-top: 20px; }
.copy .go { margin-top: 18px; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr) 432px; column-gap: clamp(48px, 8vw, 150px); align-items: start; }
  .split.flip { grid-template-columns: 432px minmax(0, 1fr); }
  .split.flip .copy { order: 2; }
  .split .copy { position: sticky; top: 15vh; padding-top: 8px; max-width: 560px; }
}

/* a part of the app, set into the page as a printed card */
.demo { position: relative; width: 100%; max-width: 432px; margin: 0 auto; }
.demo-cap { padding-bottom: 10px; }
.demo-foot { padding-top: 18px; text-align: right; }
.demo-frame { position: relative; height: var(--h); border: 1px solid var(--ink); background: var(--paper); }
.demo-frame::before { content: ''; position: absolute; inset: 10px -10px -10px 10px; z-index: -1; background: repeating-linear-gradient(180deg, var(--shade, var(--pink)) 0 1.2px, transparent 1.2px 4.5px); opacity: 0.8; }
.demo-frame::after { content: ''; position: absolute; inset: 3px; border: 1px solid var(--hair); pointer-events: none; z-index: 2; }
.demo-frame iframe { position: relative; width: 100%; height: 100%; opacity: 0; transition: opacity var(--moment) var(--out); }
.demo-frame iframe.on { opacity: 1; }
.demo.wide { max-width: 900px; }
.share-frame { --h: 672px; }
@media (min-width: 724px) { .share-frame { --h: 540px; } }

/* ---- 02: the cycle, drawn. With motion on, the stage holds still while the scroll draws the picture. ---- */
.cycle-stage { padding-top: clamp(84px, 11vw, 168px); }
.cycle-top { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 14px; margin-top: clamp(22px, 3vw, 40px); }
.cycle-top .lede { max-width: 34em; }
@media (min-width: 960px) { .cycle-top { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); column-gap: clamp(48px, 7vw, 120px); align-items: end; } }
.keyrow { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 14px; }
.keyrow span { display: inline-flex; align-items: center; gap: 10px; }
.keyrow i { width: 34px; height: 17px; border-radius: 17px 17px 0 0; background: var(--pink); }
.keyrow i.scr { background: repeating-linear-gradient(180deg, var(--pink) 0 1.3px, transparent 1.3px 4px); }
.cycle-view { margin-top: clamp(26px, 4vw, 52px); }
.cycle-view { container-type: inline-size; }
.cycle-track { position: relative; width: 100%; max-width: var(--fit, none); transform-origin: 0 0; }
.cycle-pic { width: 100%; height: auto; overflow: visible; }
.cycle-pic .shape { transform-box: fill-box; transform-origin: 50% 100%; }
.cycle-pic .axis { transform-box: fill-box; transform-origin: 0 50%; }
.cycle-notes { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-top: 44px; }
.cycle-notes li { border-top: 1px solid var(--hair); padding-top: 10px; }
.cycle-notes h3 { font-size: 17px; font-weight: 500; line-height: 1.3; margin-top: 2px; }
.cycle-notes p { margin-top: 4px; }
.cycle-notes .sw { display: inline-block; width: 9px; height: 9px; border-radius: 5px; margin-right: 8px; }
.cycle-ticks { position: relative; height: 22px; }
.cycle-ticks span { position: absolute; top: 4px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--muted); white-space: nowrap; }
.cycle-ticks span.ink { color: var(--ink); }
@media (min-width: 960px) {
  .cycle-notes { display: block; height: 112px; margin-top: 12px; }
  .cycle-notes li { position: absolute; top: 0; left: var(--x); width: var(--w); border-top: 0; padding: 0 14px 0 0; }
  .cycle-notes li::before { content: ''; display: block; width: 1px; height: 14px; background: var(--ink); margin-bottom: 8px; }
}

/* ---- 05: phases ---- */
.phases { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: clamp(28px, 4vw, 56px); }
.phases-phone { display: none; }
.entry { position: relative; padding: 34px 0 38px; border-top: 1px solid var(--hair); }
.entry:first-child { border-top: 0; padding-top: 6px; }
.entry .no { display: flex; align-items: center; justify-content: space-between; }
.entry h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(50px, 6.4vw, 88px); line-height: 1.04; letter-spacing: -0.03em; margin-top: 10px; }
.entry .pos { font-family: var(--mono); font-style: italic; font-size: 14px; line-height: 20px; color: var(--muted); margin-top: 8px; }
.entry .def { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.45; margin-top: 18px; max-width: 26em; }
.entry .more { color: var(--muted); margin-top: 12px; max-width: 34em; font-size: 17px; line-height: 1.6; }
.entry .glyph { transition: opacity var(--slow) var(--out); }
.notes2 { margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--ink); max-width: 46em; }
.notes2 p + p { margin-top: 12px; }
@media (min-width: 960px) {
  .phases { grid-template-columns: 412px minmax(0, 1fr); column-gap: clamp(56px, 9vw, 160px); align-items: start; }
  .phases-phone { display: block; position: sticky; top: max(24px, calc(50vh - 395px)); padding-bottom: 14px; }
  .entry { padding: 9vh 0 10vh; }
  .entry:first-child { padding-top: 2vh; }
}

/* ---- 06: together ---- */
.together-top { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 18px; }
@media (min-width: 960px) { .together-top { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: clamp(48px, 7vw, 120px); align-items: end; } }
.together .demo { margin-top: clamp(36px, 5vw, 64px); }
.specs { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: clamp(44px, 6vw, 80px); border-top: 1px solid var(--ink); }
.spec { display: flex; gap: 16px; padding: 18px 0 20px; border-bottom: 1px solid var(--hair); }
.spec .mono { flex: none; width: 26px; padding-top: 5px; }
.spec h3 { font-size: 17px; font-weight: 500; line-height: 1.4; }
.spec p { font-size: 17px; line-height: 1.55; color: var(--muted); margin-top: 4px; }
@media (min-width: 700px) { .specs { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
@media (min-width: 1100px) { .specs { grid-template-columns: repeat(4, 1fr); } .spec { border-bottom: 0; flex-direction: column; gap: 6px; padding-right: 8px; } }

/* ---- 07: private ---- */
.figs { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); margin-top: clamp(32px, 4vw, 56px); }
.fig { padding: 18px 12px 20px 0; border-bottom: 1px solid var(--hair); }
.fig:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--hair); }
.fig b { display: block; font-weight: 300; font-size: clamp(64px, 8vw, 116px); line-height: 1; letter-spacing: 0.01em; }
.fig span { display: block; margin-top: 6px; max-width: 16em; }
@media (min-width: 960px) { .figs { grid-template-columns: repeat(4, 1fr); } .fig { padding-left: 20px; border-left: 1px solid var(--hair); } .fig:first-child { padding-left: 0; border-left: 0; } }
.private-text { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 16px; margin-top: 32px; }
.private-text p { color: var(--muted); max-width: 34em; }
@media (min-width: 960px) { .private-text { grid-template-columns: 1fr 1fr; column-gap: clamp(48px, 7vw, 120px); } }

/* ---- 08: pricing, as 3 printed slips ---- */
.plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: clamp(32px, 4vw, 56px); }
.plan { position: relative; display: flex; flex-direction: column; border: 1px solid var(--ink); padding: 22px 22px 24px; background: var(--paper); }
.plan::before { content: ''; position: absolute; inset: 3px; border: 1px solid var(--hair); pointer-events: none; }
.plan > * { position: relative; }
.plan .ph-t { font-size: 24px; }
.plan .price { font-family: var(--serif); font-size: clamp(54px, 5.4vw, 76px); line-height: 1; letter-spacing: -0.03em; margin-top: 26px; }
.plan .per { margin-top: 8px; min-height: 36px; }
.plan ul { margin-top: 18px; border-top: 1px solid var(--ink); }
.plan li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--hair); font-size: 16.5px; line-height: 1.45; }
.plan li::before { content: ''; flex: none; width: 7px; height: 7px; margin-top: 9px; border-radius: 4px; background: var(--c, var(--ink)); }
.plan .deco { position: absolute; right: 18px; top: 20px; }
@media (min-width: 960px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: stretch; } }
.fine { margin-top: 26px; max-width: 60em; }

/* ---- the last word, and the foot ---- */
.close { padding: clamp(96px, 13vw, 200px) 0 0; }
.close-in { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 28px; align-items: end; }
.close h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(64px, 11vw, 150px); line-height: 0.95; letter-spacing: -0.035em; margin-left: -0.04em; }
.close .promise { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.2; margin-top: 18px; max-width: 16em; }
@media (min-width: 960px) { .close-in { grid-template-columns: minmax(0, 1fr) auto; column-gap: 48px; } .close .cta { margin: 0 0 14px; justify-content: flex-end; } }
.close-art { position: relative; height: clamp(120px, 17vw, 240px); margin-top: clamp(40px, 6vw, 72px); overflow: hidden; }
.close-art svg { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; }
.foot { padding: 0 0 44px; }
.foot .wrap::before { content: ''; display: block; border-top: 1px solid var(--ink); margin-bottom: 20px; }
.foot.bare .wrap::before { border-top: 0; margin-bottom: 14px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 32px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 26px; margin-left: -2px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; }
.foot nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.foot .small { margin-top: 8px; }

/* ---- the reading pages: privacy, terms, support ---- */
.doc { max-width: 720px; padding-top: clamp(28px, 5vw, 64px); padding-bottom: clamp(72px, 10vw, 140px); }
.doc h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 7vw, 76px); line-height: 1.02; letter-spacing: -0.025em; margin-top: 26px; }
.doc .meta { margin-top: 16px; }
.doc h2 { font-size: 20px; font-weight: 500; line-height: 1.3; margin: 44px 0 8px; padding-top: 18px; border-top: 1px solid var(--hair); }
.doc p, .doc li { font-size: 18px; line-height: 1.65; }
.doc p + p { margin-top: 14px; }
.doc ul { margin: 14px 0; }
.doc li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.doc li::before { content: ''; position: absolute; left: 2px; top: 0.72em; width: 7px; height: 7px; border-radius: 4px; background: var(--ink); }
.doc a { color: var(--pink-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.doc .lede { color: var(--ink); font-size: 22px; margin-top: 18px; }
.doc .sub { margin-top: 56px; }
.doc .sub + h2 { border-top: 0; margin-top: 18px; padding-top: 0; }

/* ---- motion. Off by default; on only when scripts run and the reader has not asked for less. ---- */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 700ms var(--out) both; animation-delay: calc(var(--i, 0) * 80ms + 60ms); }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
  .days .d-period { animation: grow 900ms var(--out) 700ms both; }
  .days .d-ov { animation: fadein 600ms var(--out) 1300ms both; }
  @keyframes grow { from { opacity: 0; transform: scale(0.2); } }
  .print { transform-box: fill-box; transform-origin: 50% 50%; animation: print 1100ms var(--out) both; animation-delay: calc(var(--i, 0) * 140ms + 200ms); }
  @keyframes print { from { opacity: 0; transform: scale(0.86); } }
  .fadein { animation: fadein 900ms var(--out) both; animation-delay: calc(var(--i, 0) * 140ms + 200ms); }
  @keyframes fadein { from { opacity: 0; } }

  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--moment) var(--out), transform var(--moment) var(--out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .ph .rule { transform: scaleX(0); transition: transform 900ms var(--out) 80ms; }
  .js .ph.in .rule { transform: none; }
  .js .ph .ph-n span { transform: translateY(105%); transition: transform var(--moment) var(--out) 260ms; }
  .js .ph.in .ph-n span { transform: none; }
  .js .ph .ph-t, .js .ph .under { opacity: 0; transition: opacity var(--moment) var(--out); }
  .js .ph .under { transition-delay: 420ms; }
  .js .ph.in .ph-t, .js .ph.in .under { opacity: 1; }
  .js .close-art .shape { transform-box: fill-box; transform-origin: 50% 100%; transform: scale(0.2); opacity: 0; transition: transform 900ms var(--out), opacity var(--moment) var(--out); transition-delay: calc(var(--i, 0) * 110ms); }
  .js .close-art.in .shape { transform: none; opacity: 1; }

  /* 02: the stage is held, and --p (0 to 1) runs with the scroll */
  .js .cycle { height: 250vh; }
  .js .cycle-stage { position: sticky; top: 0; height: 100vh; height: 100svh; padding-top: 0; display: flex; flex-direction: column; justify-content: safe center; overflow: hidden; }
  .js .cycle-stage .say { font-size: clamp(27px, 2.9vw, 40px); }
  .js .cycle-stage .cycle-top { margin-top: clamp(14px, 2vw, 26px); }
  .js .cycle-stage .cycle-view { margin-top: clamp(16px, 3vh, 40px); }
  .js .cycle-track { --fit: max(560px, calc((100svh - 450px) * 3.125)); }
  @media (min-width: 960px) and (max-height: 800px) { .js .cycle-notes li:not(.long) p { display: none; } .js .cycle-notes { height: 76px; } }
  .js .cycle-pic .axis { transform: scaleX(clamp(0, calc(var(--p) / 0.1), 1)); }
  .js .cycle-pic .ticks { opacity: clamp(0, calc((var(--p) - 0.04) / 0.08), 1); }
  .js .cycle-pic .s-period { --t: clamp(0, calc((var(--p) - 0.08) / 0.14), 1); }
  .js .cycle-pic .s-rose { --t: clamp(0, calc((var(--p) - 0.22) / 0.2), 1); }
  .js .cycle-pic .s-apricot { --t: clamp(0, calc((var(--p) - 0.42) / 0.22), 1); }
  .js .cycle-pic .s-lens { opacity: clamp(0, calc((var(--p) - 0.6) / 0.08), 1); }
  .js .cycle-pic .s-ov { --t: clamp(0, calc((var(--p) - 0.68) / 0.08), 1); transform-origin: 50% 50%; }
  .js .cycle-pic .s-next { opacity: clamp(0, calc((var(--p) - 0.78) / 0.12), 1); }
  .js .cycle-pic .s-period, .js .cycle-pic .s-rose, .js .cycle-pic .s-apricot, .js .cycle-pic .s-ov { transform: scale(calc(0.2 + 0.8 * var(--t))); opacity: clamp(0, calc(var(--t) * 3), 1); }
  .js .cycle-notes li, .js .cycle-ticks span { opacity: clamp(0.001, calc((var(--p) - var(--at)) / 0.07), 1); }
  .js .cycle-ticks span { --at: 0.04; }
  .js .cycle-ticks span.ink { --at: 0.8; }
  @media (max-width: 959px) {
    /* on a phone the picture is twice the width of the page, and the scroll travels along the line of days */
    .js .cycle-track { --fit: none; width: 215%; transform: translate3d(calc(clamp(0, calc((var(--p) - 0.16) / 0.66), 1) * -53.5%), 0, 0); }
    .js .cycle-notes { display: block; height: 96px; margin-top: 10px; }
    .js .cycle-notes li { position: absolute; top: 0; left: var(--x); width: var(--w); border-top: 0; padding: 0 10px 0 0; }
    .js .cycle-notes li::before { content: ''; display: block; width: 1px; height: 10px; background: var(--ink); margin-bottom: 6px; }
    .js .cycle-notes p { display: none; }
    .js .cycle-notes li.long p { display: block; }
    .js .cycle-notes li.long { left: 58%; width: 26%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .motion-only { display: none; }
  * { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-delay: 0ms !important; }
}
.no-js .needs-js { display: none !important; }

@media print { .grain, .corner, .needs-js { display: none !important; } }
