/* Eva's Log · site base, shared by every page
   ------------------------------------------------------------------
   The design system (../design-system/styles.css) supplies the tokens,
   verbatim from the Claude Design export. This file carries what the
   canvases put in their <helmet> block, the ground, the component
   classes ported from the design system's React bundle
   (_design-export/_ds/…/_ds_bundle.js: Card, Button, ProgressBar,
   WeekStrip, GrainBackground), and the page chrome shared by every
   canvas (the floating header and the dashed footer). Every value is
   the canvas's; only the class names are ours. */

/* ---------- Theme axis ----------
   :root is Moonlit (night). [data-theme="daybreak"] is the paper. The
   canvases default to Daybreak and remember the choice in localStorage
   under el_site_theme; js/site.js applies it on <html>. */
:root { color-scheme: dark; --ink-quiet: var(--text-tertiary); }
/* Small quiet text on paper: tertiary alone is about 4.1 to 1, this mix about 5 to 1. */
:root[data-theme="daybreak"] { color-scheme: light; --ink-quiet: color-mix(in srgb, var(--text-tertiary) 55%, var(--text-secondary)); }

/* ---------- Helmet base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  min-height: 100vh;
  font: var(--type-body);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background .5s ease;
  overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
::selection { background: color-mix(in srgb, var(--primary) 30%, transparent); }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: var(--radius-sm); }

/* ---------- Ground (GrainBackground) ----------
   Solid base, lamplight orb top-left, moonlight orb bottom-right, a
   radial vignette, and fractal noise at 2 percent. Fixed behind the page. */
.ground {
  position: fixed;
  inset: 0;
  z-index: 0;
  min-height: 100vh;
  overflow: hidden;
  pointer-events: none;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9'/></filter><rect width='120' height='120' filter='url(%23n)' opacity='.02'/></svg>") repeat,
    radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, var(--vignette-opacity))),
    radial-gradient(circle 560px at 100% 100%, color-mix(in srgb, var(--sleep-accent) 8%, transparent), transparent 70%),
    radial-gradient(circle 500px at 0% 0%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 70%),
    /* each page's color family (css/families.css) washes the top of the page */
    linear-gradient(180deg, color-mix(in srgb, var(--primary) var(--family-wash, 0%), transparent), transparent 78vh),
    var(--bg);
}
/* The rotated paper sheets poke a few pixels past the viewport edge.
   `clip` hides that without making .page a scroll container, which is
   what would break the sticky header (`overflow: hidden` would). */
.page { position: relative; z-index: 1; overflow-x: clip; }

/* ---------- Reveal ----------
   The canvas reveals on a scroll-driven timeline. Browsers without
   animation-timeline get the same motion from an observer in site.js. */
@keyframes elReveal { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
[data-reveal] {
  animation: elReveal .9s cubic-bezier(.22, 1, .36, 1) both;
  animation-timeline: view();
  animation-range: entry 0% entry 38%;
}
@supports not (animation-timeline: view()) {
  [data-reveal] {
    animation: none;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .9s cubic-bezier(.22, 1, .36, 1), transform .9s cubic-bezier(.22, 1, .36, 1);
  }
  [data-reveal].is-visible, .no-js [data-reveal] { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Deckle: torn paper edges and a whisper of tooth ----------
   The points next to each corner sit a fixed number of pixels in, so a
   very wide or very tall sheet keeps its corners instead of a slanted cut. */
[data-deckle] {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='120'%20height='120'%3E%3Cfilter%20id='n'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='.9'/%3E%3C/filter%3E%3Crect%20width='120'%20height='120'%20filter='url(%23n)'%20opacity='.05'/%3E%3C/svg%3E");
  clip-path: polygon(0% 5px, 14px 2px, 8% 6px, 14% 1px, 20% 5px, 27% 2px, 34% 7px, 42% 3px, 50% 6px, 57% 1px, 64% 5px, 71% 2px, 78% 6px, 85% 2px, 91% 6px, calc(100% - 16px) 1px, 100% 5px, calc(100% - 3px) 18%, calc(100% - 1px) 34%, calc(100% - 4px) 52%, calc(100% - 1px) 70%, calc(100% - 3px) calc(100% - 64px), calc(100% - 2px) calc(100% - 6px), calc(100% - 22px) calc(100% - 1px), 90% calc(100% - 1px), 83% calc(100% - 5px), 76% calc(100% - 2px), 68% calc(100% - 7px), 60% calc(100% - 2px), 52% calc(100% - 5px), 44% calc(100% - 1px), 36% calc(100% - 6px), 28% calc(100% - 2px), 20% calc(100% - 6px), 13% calc(100% - 1px), 7% calc(100% - 5px), 12px calc(100% - 3px), 0% calc(100% - 7px), 2px calc(100% - 64px), 0px 68%, 3px 50%, 1px 33%, 4px 16%);
}

/* ---------- Card ---------- */
.ds-card {
  --card-shadow: var(--shadow-subtle);
  position: relative;
  border-radius: 14px;
  padding: 12px;
  background: var(--surface);
  box-shadow: var(--card-shadow), inset 0 .5px 0 rgba(255, 255, 255, .14), inset 0 -.5px 0 rgba(0, 0, 0, .16);
}
.ds-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--card-sheen);
  pointer-events: none;
}
.ds-card > * { position: relative; }
.ds-card[data-elevation="card"] { --card-shadow: var(--shadow-card); }
.ds-card[data-elevation="floating"] { --card-shadow: var(--shadow-floating); }
.ds-card--floating {
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

/* ---------- Button ---------- */
.ds-button {
  font: var(--type-body-emphasized);
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 24px;
  cursor: pointer;
  transition: transform var(--dur-quick) var(--ease-press), opacity var(--dur-quick);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
}
.ds-button:active { transform: scale(var(--press-scale)); opacity: var(--press-opacity); }
.ds-button--primary {
  color: #fff;
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 92%, transparent), var(--primary));
  box-shadow: 0 0 10px color-mix(in srgb, var(--primary) 30%, transparent), inset 0 .5px 0 rgba(255, 255, 255, .16), inset 0 -.5px 0 rgba(0, 0, 0, .18);
}
.ds-button--primary:hover { color: #fff; }
/* At night white on the lavender primary is about 3 to 1; the darker
   primary reads at about 4.6 to 1. */
:root:not([data-theme="daybreak"]) .ds-button--primary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary-dark) 92%, transparent), var(--primary-dark));
}
.ds-button--secondary { color: var(--text-primary); background: var(--surface-elevated); border: 1px solid var(--outline); }
.ds-button--secondary:hover { color: var(--text-primary); }
.ds-button--ghost { color: var(--primary); background: transparent; }

/* ---------- ProgressBar ---------- */
.ds-progress {
  --accent: var(--primary);
  --value: 0%;
  height: 8px;
  border-radius: 4px;
  background: var(--surface-overlay);
  overflow: hidden;
}
.ds-progress > i {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width var(--dur-gauge) var(--ease-smooth);
}

/* ---------- WeekStrip ---------- */
.ds-weekstrip {
  --accent: var(--primary);
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 16px;
  list-style: none;
  margin: 0;
}
.ds-weekstrip button {
  min-width: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 6px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  color: var(--text-primary);
  font: var(--type-caption);
  transition: all var(--dur-quick) var(--ease-spring);
}
.ds-weekstrip button span { color: var(--text-tertiary); }
.ds-weekstrip button[aria-pressed="true"] {
  background: var(--accent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 35%, transparent);
}
.ds-weekstrip button[aria-pressed="true"] span { color: var(--bg); font-weight: 600; }

/* ---------- Header: the floating glass card ---------- */
.site-header {
  position: sticky;
  top: 12px;
  z-index: 50;
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 16px 0;
}
.site-header .ds-card { border-radius: 18px; padding: 0; }
.site-header .bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  padding: 9px 10px 9px 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 32px; height: 32px; border-radius: 9px; box-shadow: var(--shadow-subtle); }
.brand span { font: 600 19px/1 var(--font-serif); color: var(--text-primary); }
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-left: auto;
  font: var(--type-subheadline);
}
.site-nav a { color: var(--text-secondary); padding: 11px 2px; }
.site-nav a:hover { color: var(--text-primary); }
.site-nav a[aria-current="page"] { color: var(--primary); font-weight: 600; }
.site-nav .ds-button { padding: 10px 18px; }
/* ".site-nav a" outranks ".ds-button--primary", which drew the button's
   label in the nav link color on the green until hovered. */
.site-nav .ds-button--primary,
.site-nav .ds-button--primary:hover { color: #fff; }
/* "Coming soon" until the App Store listing is live: a label, not a control. */
.ds-button[data-coming-soon] { cursor: default; }
.ds-button[data-coming-soon]:active { transform: none; opacity: 1; }
.theme-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: .5px solid var(--outline);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  color: var(--text-secondary);
  cursor: pointer;
  transition: transform var(--dur-quick) var(--ease-spring);
}
.theme-toggle:hover { transform: scale(1.08); color: var(--text-primary); }
.theme-toggle svg { width: 22px; height: 22px; fill: currentColor; }
:root[data-theme="daybreak"] .theme-toggle .icon-sun { display: none; }
:root:not([data-theme="daybreak"]) .theme-toggle .icon-moon { display: none; }
.no-js .theme-toggle { display: none; }

/* On a phone (most visitors: owner, 2026-10-03, "90% ... through an
   iPhone") the header is two short rows: the brand with the day and night
   switch beside it, then the four pages spread across the width. The
   "Coming soon" label stays off the phone header; every page says it
   again at its foot. It stays pinned and solid while the page scrolls
   (owner, 2026-10-03: "the floating header box lags and jitters", on an
   iPhone 14 and 16): a header slid in and out by a scroll listener trails
   the finger on iOS and flips during the bounce at either end, and a blur
   over moving video and the hero's animated light is redrawn every frame.
   Wider screens keep the glass.
   On the phone the header is FIXED, not sticky (owner, 2026-10-04, on an
   iPhone 16 in DuckDuckGo, which runs on Safari's engine: "the floating
   header rapidly bounces as you scroll", on the home page, after the tuck
   and the blur were already gone). A sticky element inside this clipped
   wrapper is repositioned by WebKit on the main thread, a frame behind the
   scroll, and reads as a bounce; a fixed element is composited and does
   not move with the page at all. The page then starts below it:
   site.js measures the header and writes --header-h, with a fallback for
   no JavaScript. Wider screens keep the sticky card. */
@media (max-width: 600px) {
  .site-header { position: fixed; top: 0; left: 0; right: 0; padding: 8px 10px 0; }
  .page { padding-top: var(--header-h, 118px); }
  .site-header .ds-card--floating {
    background: var(--surface);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .site-header .bar { position: relative; justify-content: flex-start; padding: 4px 12px 2px; gap: 0; }
  .brand { min-height: 48px; }
  .site-nav { margin-left: 0; width: 100%; justify-content: space-between; gap: 0; }
  .site-nav a { padding: 10px 4px; }
  .site-nav .theme-toggle { position: absolute; top: 6px; right: 8px; }
  .site-nav [data-coming-soon] { display: none; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px dashed var(--outline); }
.site-footer .inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 16px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 28px; height: 28px; border-radius: 8px; }
.footer-brand .name { font: 600 17px/1 var(--font-serif); }
.footer-brand .legal { font: var(--type-caption); color: var(--ink-quiet); margin-left: 6px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 18px; font: var(--type-footnote); }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-links a { color: var(--text-secondary); }
.footer-links a:hover { color: var(--text-primary); }

/* ---------- Shared editorial pieces ---------- */
.section-label {
  --accent: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.section-label .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); flex: none; }
.section-label .text { font: var(--type-caption); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-quiet); }
.kicker { font: var(--type-caption); letter-spacing: .12em; text-transform: uppercase; color: var(--kicker, var(--primary)); margin-bottom: 6px; }
.h2-serif { font: 400 32px/1.15 var(--font-serif-display); margin: 0 0 14px; }
.lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font: var(--type-subheadline);
  color: var(--text-secondary);
  list-style: none;
  margin: 0;
  padding: 0;
}
.footnote { font: var(--type-caption); color: var(--ink-quiet); margin-top: 12px; }

/* A sheet of paper: deckle edges, rotation, the double drop shadow. */
.paper {
  --rot: 0deg;
  position: relative;
  transform: rotate(var(--rot));
  filter: drop-shadow(0 2px 3px rgba(31, 24, 54, .10)) drop-shadow(0 16px 26px rgba(31, 24, 54, .12));
}
.paper .sheet { background-color: var(--surface); }

/* A smaller note, for grids. */
.note {
  --rot: 0deg;
  transform: rotate(var(--rot));
  filter: drop-shadow(0 2px 3px rgba(31, 24, 54, .09)) drop-shadow(0 8px 14px rgba(31, 24, 54, .07));
  height: 100%;
}
.note .sheet { background-color: var(--surface); padding: 18px; height: 100%; }
.note .title { font: var(--type-subheadline-emphasized); margin-bottom: 4px; }
.note .body { font: var(--type-footnote); color: var(--ink-quiet); }
.note--lift { transition: transform var(--dur-tap) var(--ease-spring); }
.note--lift:hover { transform: translateY(-3px) rotate(0deg); }

/* An app screen: a real screenshot of the app (assets/screens/, made by
   tools/build_screens.py from the App Store captures) in a drawn phone, a
   dark rounded frame and a soft shadow with no Apple product art.
   --screen-w sets the width and the corners follow it. */
.screen {
  --screen-w: 248px;
  --screen-pad: calc(var(--screen-w) * .032);
  --screen-r: calc(var(--screen-w) * .118);
  width: min(var(--screen-w), 72vw);
  margin: 0 auto;
  transform: rotate(var(--rot, 0deg));
}
.screen .device {
  padding: var(--screen-pad);
  border-radius: calc(var(--screen-r) + var(--screen-pad));
  background: linear-gradient(160deg, #36333d, #151419 55%, #1d1b22);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .10),
    0 1px 2px rgba(0, 0, 0, .16),
    0 18px 36px -16px rgba(0, 0, 0, .42),
    0 44px 70px -44px rgba(0, 0, 0, .38);
}
.screen img { display: block; width: 100%; height: auto; border-radius: var(--screen-r); }
.screen figcaption { font: var(--type-editorial-caption); color: var(--text-secondary); text-align: center; margin-top: 14px; text-wrap: balance; }
.screen--small { --screen-w: 168px; }
.screen--wide { --screen-w: 300px; }
/* The top of a screen (the widgets): the frame stays open at the bottom
   and fades out there, so it reads as the top of a phone. */
.screen--crop .device {
  padding-bottom: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent);
  mask-image: linear-gradient(to bottom, #000 78%, transparent);
}
.screen--crop img { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

/* ---------- Rails: a row that scrolls sideways ----------
   The App Store frames. Arrow buttons appear only
   where there is a mouse and room for them; touch scrolls the row. */
.rail-wrap { position: relative; }
.rail {
  display: flex;
  gap: var(--rail-gap, 18px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(16px, calc(50vw - 560px));
  padding: 10px max(16px, calc(50vw - 560px)) 24px;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
.rail > * { scroll-snap-align: start; flex: none; }
/* Where the arrow buttons show, keep them clear of the first and last card. */
@media (min-width: 721px) and (hover: hover) {
  .rail { padding-inline: max(60px, calc(50vw - 560px)); scroll-padding-inline: max(60px, calc(50vw - 560px)); }
}
.rail:focus-visible { outline: 2px solid var(--primary); outline-offset: -4px; border-radius: 12px; }
.rail-btn {
  position: absolute; top: calc(50% - 7px); transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--outline);
  background: color-mix(in srgb, var(--surface-elevated) 90%, transparent);
  color: var(--text-primary); font-size: 24px; line-height: 1; cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 8px 20px -10px rgba(0,0,0,.35);
}
.rail-btn:hover { background: var(--surface-elevated); }
.rail-btn[hidden], .no-js .rail-btn { display: none; }
.rail-btn--prev { left: max(8px, calc(50vw - 610px)); }
.rail-btn--next { right: max(8px, calc(50vw - 610px)); }
@media (max-width: 720px), (hover: none) { .rail-btn { display: none; } }

/* ---------- The avatar lineup ----------
   Figures the app drew, cropped to one box per line so a standing child
   stays taller than a sitting one. */
.cast { max-width: 1120px; margin: 0 auto; padding: 56px 16px 20px; text-align: center; }
.cast-head { max-width: 760px; margin: 0 auto; }
.cast-head .section-label { justify-content: center; }
.cast-title { font: 400 clamp(34px, 6.4vw, 54px)/1.08 var(--font-serif-display); margin: 8px 0 14px; text-wrap: balance; }
.cast-sub { font: var(--type-title3); font-weight: 400; color: var(--text-secondary); margin: 0 auto; max-width: 640px; text-wrap: pretty; }
.cast-line { position: relative; display: flex; justify-content: center; align-items: flex-end; margin: 22px auto 4px; padding: 0 2%; isolation: isolate; }
.cast-line::after {
  content: ""; position: absolute; z-index: -1; left: 4%; right: 4%; bottom: 0; height: 18%;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--text-primary) 13%, transparent), transparent);
}
.cast-fig { display: block; flex: 1 1 0; min-width: 0; width: 100%; height: auto; max-width: 190px; margin: 0 -1.2%; transition: transform .35s cubic-bezier(.3,1.4,.5,1); }
.cast-line--home .cast-fig { max-width: 170px; }
.cast-fig:hover { transform: translateY(-6px); }
@media (prefers-reduced-motion: reduce) { .cast-fig, .cast-fig:hover { transition: none; transform: none; } }
@media (max-width: 600px) {
  /* On a phone, the middle three figures at a size you can see. */
  .cast-line .cast-fig { display: none; max-width: 36%; }
  .cast-line--home .cast-fig:nth-child(n+3):nth-child(-n+5),
  .cast-line--tour .cast-fig:nth-child(n+4):nth-child(-n+6) { display: block; }
}
.cast-lines { max-width: 560px; margin: 18px auto 0; text-align: center; }
.cast-more { font: var(--type-body); color: var(--text-secondary); max-width: 620px; margin: 18px auto 12px; text-wrap: pretty; }

.cast { scroll-margin-top: 96px; }

/* Growing up: one child through the six stages */
.grows { max-width: 940px; margin: 0 auto; padding: 36px 16px 20px; }
.grows-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
@media (min-width: 760px) { .grows-grid { grid-template-columns: minmax(0, 1fr) 250px; gap: 44px; } }
.grows-sub { font: var(--type-body); color: var(--text-secondary); margin: 0 0 18px; text-wrap: pretty; }
.grows-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; align-items: end; }
.grows-row li { text-align: center; }
.grows-row img { display: block; width: 100%; height: auto; }
.grows-row span { display: block; margin-top: 4px; font: var(--type-caption); line-height: 1.2; color: var(--ink-quiet); }
.grows-phone .screen { --screen-w: 236px; }

/* The ten App Store frames */
.showcase { padding: 48px 0 36px; }
.showcase-head { max-width: 720px; margin: 0 auto 18px; padding: 0 16px; text-align: center; }
.showcase-title { font: 400 clamp(31px, 6vw, 42px)/1.12 var(--font-serif-display); margin: 0 0 10px; text-wrap: balance; }
.showcase-sub { font: var(--type-subheadline); color: var(--text-secondary); margin: 0; text-wrap: balance; }
.rail-card {
  width: clamp(190px, 21vw, 250px); margin: 0;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 16px 32px -18px rgba(0,0,0,.45);
}
.rail-card img { display: block; width: 100%; height: auto; }
.rail-note { text-align: center; font: var(--type-caption); color: var(--ink-quiet); margin: 2px 16px 0; text-wrap: balance; }


/* A polaroid: elevated surface, hairline, a caption in the keepsake voice. */
.polaroid {
  --rot: 0deg;
  position: relative;
  transform: rotate(var(--rot));
  justify-self: center;
}
.polaroid .frame {
  background: var(--surface-elevated);
  border: 1px solid color-mix(in srgb, var(--outline) 35%, transparent);
  padding: 10px 10px 12px;
  box-shadow: 0 3px 8px rgba(31, 24, 54, .14);
}
.polaroid--shadowed {
  filter: drop-shadow(0 2px 3px rgba(31, 24, 54, .12)) drop-shadow(0 14px 22px rgba(31, 24, 54, .12));
}
.polaroid--shadowed .frame { box-shadow: none; }
.polaroid .caption { font: var(--type-editorial-caption); color: var(--text-secondary); text-align: center; margin-top: 10px; }
.polaroid video, .polaroid img { object-fit: cover; }

/* Washi tape across the top of a sheet. */
.washi {
  --washi: var(--growth-accent);
  --washi-rot: 3deg;
  position: absolute;
  top: -10px;
  left: 50%;
  width: 88px;
  height: 20px;
  transform: translateX(-50%) rotate(var(--washi-rot));
  background: color-mix(in srgb, var(--washi) 34%, transparent);
  opacity: .8;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .10);
  border-left: 1px dashed rgba(255, 255, 255, .5);
  border-right: 1px dashed rgba(255, 255, 255, .5);
  pointer-events: none;
}
.washi--small { width: 70px; height: 19px; }
.washi--tiny { width: 64px; height: 18px; top: -9px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: #fff;
  font: var(--type-body-emphasized);
}
.skip-link:focus { top: 16px; color: #fff; }

/* ---------- Folding rows ----------
   Pricing's questions and Privacy's points and policy. Each row is a real
   button (js/site.js folds them); before the script runs every row is
   open, so the page reads in full without it. */
.faq-sheet { padding: 22px 18px; display: flex; flex-direction: column; gap: 8px; }
/* Each question is its own softly filled block; no rule lines between them. */
.faq-item { border-radius: 12px; background: color-mix(in srgb, var(--surface-overlay) 32%, transparent); transition: background var(--dur-quick) ease; }
.faq-item:has(> .faq-q button[aria-expanded="true"]) { background: color-mix(in srgb, var(--surface-overlay) 58%, transparent); }
.faq-q { margin: 0; font: inherit; }
.faq-q button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 15px 16px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--text-primary);
  font: var(--type-headline);
  text-align: left;
  cursor: pointer;
}
.faq-q button:hover .faq-q-text { color: var(--primary); }
.faq-q-text { transition: color var(--dur-quick) ease; }
/* A plus that turns into a cross when open, drawn in CSS so it has no text. */
.faq-icon { position: relative; flex: none; width: 14px; height: 14px; color: var(--quiet-ink, var(--ink-quiet)); transition: transform var(--dur-quick) var(--ease-spring); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; border-radius: 1px; background: currentColor; }
.faq-icon::after { transform: rotate(90deg); }
.faq-q button[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
/* Before the script runs, every answer is open and the toggles are inert. */
.no-js .faq-icon { display: none; }
.no-js .faq-q button { cursor: default; }
.faq-a { padding: 0 16px 16px; }
/* hidden="until-found" folds with content-visibility, which keeps the
   box's padding, so a folded answer would leave a blank strip. */
.faq-a[hidden] { padding: 0; }
.faq-a p { font: var(--type-subheadline); color: var(--text-secondary); margin: 0; text-wrap: pretty; }
.faq-a p + p { margin-top: 10px; }
.faq-a a { text-decoration: underline; text-underline-offset: 2px; }
/* Printing opens every row (js/site.js); this covers a print with no script. */
@media print { .faq-a[hidden] { display: block !important; content-visibility: visible !important; padding: 0 16px 16px; } }
/* A page printed before it was scrolled still prints every section: the
   scroll reveals would otherwise hold unseen sections at zero opacity. */
@media print { [data-reveal] { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; } }

/* ---------- Folded documents (the privacy policy, the terms) ----------
   A plain document: a hairline on all four sides and a fill, no tilt,
   with one folding row per section and an Open all sections button. */
.fold-doc {
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--outline) 40%, transparent);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  padding: clamp(20px, 4vw, 40px);
  color: var(--text-secondary);
}
.fold-doc-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.fold-doc-name { font: var(--type-caption); letter-spacing: .12em; text-transform: uppercase; color: var(--text-tertiary); margin: 0 0 4px; }
.fold-doc-title { font: 400 clamp(28px, 5vw, 34px)/1.15 var(--font-serif-display); color: var(--text-primary); margin: 0 0 6px; }
.fold-doc-date { font: var(--type-footnote); color: var(--text-secondary); margin: 0; }
/* A quiet text button, 44 points tall to tap. */
.fold-open-all {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--outline) 55%, transparent);
  border-radius: 999px;
  background: transparent;
  color: var(--text-primary);
  font: var(--type-subheadline-emphasized);
  cursor: pointer;
}
.fold-open-all:hover { background: color-mix(in srgb, var(--surface-overlay) 45%, transparent); }
.no-js .fold-open-all { display: none; }

/* The policy's rows: the section titles in the document's serif, the
   text at reading size and held to about 75 characters a line. */
.fold-rows { display: flex; flex-direction: column; gap: 6px; }
.fold-rows .faq-q button { font: 400 19px/1.3 var(--font-serif-display); padding: 13px 16px; }
.fold-rows .faq-a { padding: 2px 16px 18px; }
.fold-rows .faq-a[hidden] { padding: 0; }
.fold-rows .faq-a > * { max-width: 38em; }
.fold-rows .faq-a p, .fold-rows .faq-a li { font: var(--type-body); line-height: 1.6; color: var(--text-secondary); text-wrap: pretty; }
.fold-rows .faq-a p { margin: 0 0 12px; }
.fold-rows .faq-a p + p { margin-top: 0; }
.fold-rows .faq-a > :last-child, .fold-rows .faq-a > :last-child li:last-child { margin-bottom: 0; }
.fold-rows .faq-a ul { margin: 0 0 12px; padding-left: 1.25em; }
.fold-rows .faq-a ul li { margin-bottom: 8px; }
.fold-rows .faq-a strong { color: var(--text-primary); font-weight: 600; }
.fold-rows .faq-a a { text-decoration-thickness: 1px; }

/* A link to a section lands on its row, title showing, under the header. */
.faq-q button { scroll-margin-top: 104px; }
.faq-a[id] { scroll-margin-top: 164px; }
@media (max-width: 480px) { .fold-rows .faq-q button { font-size: 18px; } }

/* ---------- Stage switches (Home's arc, Features' stages) ----------
   A pill of stages over one panel at a time (js/site.js). */
.arc-pill-wrap { display: flex; justify-content: center; margin-bottom: 28px; }
.arc-pill {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  border: .5px solid color-mix(in srgb, var(--outline) 30%, transparent);
  max-width: 100%;
}
.arc-pill button {
  flex: 1;
  font: var(--type-subheadline);
  color: var(--text-tertiary);
  background: transparent;
  border: .5px solid transparent;
  border-radius: 999px;
  padding: 6px 18px;
  min-height: 44px;
  cursor: pointer;
  transition: all var(--dur-quick) var(--ease-spring);
}
.arc-pill button[aria-pressed="true"] {
  font: var(--type-subheadline-emphasized);
  color: var(--text-primary);
  background: color-mix(in srgb, var(--primary) 22%, transparent);
  border-color: color-mix(in srgb, var(--primary) 30%, transparent);
}
.arc-panels { display: grid; gap: 28px; }
/* With JavaScript the pill shows one stage at a time; without it, all three stack. */
.no-js .arc-pill-wrap { display: none; }
.arc-panel[hidden] { display: none; }
/* Transform only, so a page that cannot run animations still shows the panel. */
@keyframes homeRisePaper { from { transform: translateY(12px) rotate(var(--rot)); } to { transform: rotate(var(--rot)); } }
.arc-panel.is-shown { animation: homeRisePaper .5s cubic-bezier(.22, 1, .36, 1) both; }
.arc-sheet { padding: 34px 32px; display: flex; gap: 32px; align-items: center; flex-wrap: wrap; justify-content: center; }
.arc-text { flex: 1; min-width: min(100%, 240px); }
/* The app's own screen for each stage, beside its lines. */
.arc-screen { --screen-w: 196px; flex: none; margin: 0; }
.arc-title { font: 600 23px/1.25 var(--font-serif); margin: 0 0 10px; }
@media (max-width: 480px) {
  .arc-sheet { padding: 28px 22px; }
}

/* ---------- Phone folds (js/site.js) ----------
   On a wide screen the title's button reads as the title itself. */
.fold-toggle { all: unset; display: block; }
.fold-toggle .fold-icon { display: none; }
@media (max-width: 600px) {
  .stack[data-phone-fold], [data-phone-fold] { gap: 10px; }
  [data-phone-fold] > section {
    padding: 14px 16px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--surface-overlay) 40%, transparent);
  }
  [data-phone-fold] > section .section-label { margin-bottom: 6px; }
  [data-phone-fold] > section h2,
  [data-phone-fold] > section h3 { font-size: 22px; line-height: 1.25; margin: 0; }
  .fold-toggle { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 44px; cursor: pointer; }
  .fold-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: 6px; }
  .fold-toggle .fold-icon { display: block; }
  .fold-toggle[aria-expanded="true"] .fold-icon { transform: rotate(45deg); }
  [data-phone-fold] > section.is-folded [data-fold-body] { display: none !important; }
  [data-phone-fold] > section:not(.is-folded) h2,
  [data-phone-fold] > section:not(.is-folded) h3 { margin-bottom: 12px; }
}
@media print { [data-phone-fold] > section.is-folded [data-fold-body] { display: revert !important; } }

