/* The whole landing page around the story (story.css, loaded first): a Liquid Glass menu bar that steps back
   while the story runs, the features up close, the Apple devices, pricing and questions. The menu bar reads
   --progress (set on it by site.js) for its ring. */

:root {
  --glass-tint: color-mix(in srgb, var(--surface) 66%, transparent);
  --glass-edge: #ffffffc4;
  --glass-rim: #14141414;
  --glass-drop: 0 18px 50px -22px #14141440, 0 2px 8px -4px #14141418;
  --chip-free: var(--p-mint);
  --chip-pro: var(--p-lilac);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    --glass-tint: color-mix(in srgb, var(--surface) 50%, transparent);
    --glass-edge: #ffffff2a;
    --glass-rim: #00000066;
    --glass-drop: 0 18px 50px -20px #000000b0, 0 2px 8px -4px #0008;
  }
}

:root[data-theme=dark] {
  --glass-tint: color-mix(in srgb, var(--surface) 50%, transparent);
  --glass-edge: #ffffff2a;
  --glass-rim: #00000066;
  --glass-drop: 0 18px 50px -20px #000000b0, 0 2px 8px -4px #0008;
}

/* Anchors land below the menu bar. Not scroll-padding: the story's view() timeline would count it as an inset. */
section[id] { scroll-margin-top: 96px; }
body { overflow-x: clip; }

.skip {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 40;
  padding: 10px 16px;
  border-radius: 99px;
  background: var(--ink);
  color: var(--surface);
  font-size: 14px;
  font-weight: 600;
}

.skip:focus { top: 16px; }

/* ------------------------------------------------------------------ Liquid Glass */

/* System glass, as close as the web gets: a light tint, a strong blur that keeps colour, a bright rim on
   top and a soft shadow, lifting it off whatever scrolls beneath. */
.liquid {
  position: relative;
  background: var(--glass-tint);
  -webkit-backdrop-filter: blur(24px) saturate(1.9) brightness(1.04);
  backdrop-filter: blur(24px) saturate(1.9) brightness(1.04);
  box-shadow: var(--glass-drop), inset 0 0 0 1px var(--glass-rim), inset 0 1px 0 var(--glass-edge), inset 0 -1px 0 color-mix(in srgb, var(--glass-edge) 40%, transparent);
}

/* The specular edge: brightest at the top left, fading round the shape. */
.liquid::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, var(--glass-edge), transparent 38%, transparent 70%, color-mix(in srgb, var(--glass-edge) 55%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

/* ------------------------------------------------------------------ the menu bar */

.site-nav {
  --ring: clamp(0, var(--progress) * 740 / 696, 1);
  --pulse: clamp(0, (var(--progress) * 740 - 696) / 14, 1);
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 20;
  width: min(1184px, calc(100% - 32px));
  translate: -50% 0;
  font-size: 14px;
}

.nav-shell {
  border-radius: 28px;
  transition: border-radius .4s cubic-bezier(.2, .8, .2, 1);
}

.nav-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 56px;
  padding: 0 8px 0 20px;
}

.site-nav .mark { font-size: 23px; flex: none; }
.site-nav .ring { width: 20px; height: 20px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 auto;
}

.nav-links a, .nav-links button, .nav-menu {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 0;
  border-radius: 99px;
  background: none;
  color: var(--ink);
  font: 500 14px/1.2 inherit;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s;
}

.nav-links a:hover, .nav-links button:hover, .nav-links button[aria-expanded=true], .nav-menu:hover {
  background: color-mix(in srgb, var(--ink) 7%, transparent);
}

.nav-links a[aria-current=true] { background: color-mix(in srgb, var(--ink) 7%, transparent); }

.chev { width: 9px; height: 9px; transition: rotate .25s; }
[aria-expanded=true] > .chev { rotate: 180deg; }

.button, .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 99px;
  background: var(--ink);
  color: var(--surface);
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}

.button:hover, .nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -14px #141414aa; }
.nav-cta { flex: none; padding: 10px 18px; font-size: 14px; }

.button.quiet {
  background: color-mix(in srgb, var(--card) 70%, transparent);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--border);
}

.button.quiet:hover { box-shadow: inset 0 0 0 1px var(--ink); }

/* Before Vesper is on the App Store: says so, and isn't a link. */
.button.soon, .button.soon:hover { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); transform: none; cursor: default; }

.device-glyphs { display: inline-flex; gap: 3px; align-items: flex-end; }
.device-glyphs svg { display: block; height: 15px; width: auto; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.nav-cta .device-glyphs svg { height: 13px; }

.nav-menu { display: none; padding: 10px; }
.nav-menu svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* While the story runs, the menu steps back so the illustrations have the stage. Only the logo's ring keeps
   its voice: it is the story's progress. Pointing at the bar, or tabbing into it, brings everything back. */
.nav-shell { transition: border-radius .4s cubic-bezier(.2, .8, .2, 1), background-color .45s, box-shadow .45s; }
.nav-links, .nav-cta, .nav-menu { transition: opacity .45s ease, background-color .3s, color .3s, box-shadow .3s, transform .2s; }

.in-journey .site-nav:not(:hover, :focus-within) .nav-shell {
  --glass-tint: color-mix(in srgb, var(--surface) 34%, transparent);
  --glass-drop: 0 10px 30px -26px #14141430;
}

.in-journey .site-nav:not(:hover, :focus-within) .nav-links,
.in-journey .site-nav:not(:hover, :focus-within) .nav-menu { opacity: .3; }

.in-journey .site-nav:not(:hover, :focus-within) .nav-cta {
  opacity: .45;
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--border);
}

/* The Features menu: every feature, one click from anywhere on the page. */
.features-menu {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  width: min(780px, 100%);
  translate: -50% 0;
  padding: 10px;
  border-radius: 24px;
  opacity: 0;
  scale: .98;
  transform-origin: 50% 0;
  pointer-events: none;
  transition: opacity .2s, scale .2s;
}

.features-menu.open { opacity: 1; scale: 1; pointer-events: auto; }

.features-menu ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.features-menu a {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  column-gap: 12px;
  padding: 8px 12px 8px 8px;
  border-radius: 16px;
  text-decoration: none;
}

.features-menu a:hover, .features-menu a:focus-visible { background: color-mix(in srgb, var(--ink) 6%, transparent); outline: 0; }
.features-menu img { grid-row: span 2; width: 54px; height: auto; }
.features-menu b { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.features-menu small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }

.features-menu .menu-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 6px 4px 0;
  padding: 10px 10px 4px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

.features-menu .menu-foot a { display: inline; padding: 0; font-weight: 600; color: var(--ink); }
.features-menu .menu-foot a:hover { background: none; text-decoration: underline; }

/* Menus sit over busy pages: a more frosted glass, so their words always read. */
.features-menu, .mobile-sheet { --glass-tint: color-mix(in srgb, var(--surface) 86%, transparent); }

/* The phone's menu: a glass sheet under the bar. */
.mobile-sheet {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  max-height: calc(100svh - 96px);
  overflow: auto;
  padding: 10px;
  border-radius: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}

.mobile-sheet.open { opacity: 1; pointer-events: auto; }
.mobile-sheet > a { display: block; padding: 12px 14px; border-radius: 14px; font-size: 17px; font-weight: 600; text-decoration: none; }
.mobile-sheet .sheet-label { margin: 10px 14px 4px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.mobile-sheet ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; }
.mobile-sheet li a { display: block; padding: 9px 14px; font-size: 15px; text-decoration: none; }
.mobile-sheet .button { display: flex; margin: 10px 4px 4px; padding: 14px; font-size: 16px; }

/* ------------------------------------------------------------------ the hero, rewritten */

.spark-copy { max-width: 560px; }
.spark-copy h1 { font-size: clamp(36px, min(4.3vw, 7.2svh), 62px); margin-bottom: 16px; }
.spark-copy .lead { margin-bottom: 20px; color: var(--ink); opacity: .78; }
.spark-copy .lead strong { color: var(--ink); font-weight: 600; }
.spark { padding-top: 76px; }

.hero-eyebrow { display: flex; align-items: center; gap: 8px; }
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.writing-card { margin-bottom: 14px; }
.card-kicker label { cursor: text; }
.try-hint { margin: 0 0 18px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.try-hint b { color: var(--ink); font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }
.hero-actions .button { padding: 12px 20px; font-size: 15px; }
.hero-actions .scroll-hint { margin: 0 0 0 6px; }

.spark-copy { pointer-events: auto; }

/* ------------------------------------------------------------------ captions: a way out of the story */

/* Captions only take clicks while they're the one on stage (site.js marks it); a faded one never does. */
.cap, .cap.cap-final { pointer-events: none; }
.cap.is-active { pointer-events: auto; }
.cap p:last-child { margin-bottom: 0; }
.cap h2 { text-wrap: balance; }

.cap .cap-body { font-size: 17px; line-height: 1.6; color: var(--muted); margin: 0 0 16px; }

.cap-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px 7px 12px;
  border-radius: 99px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--border);
  background: color-mix(in srgb, var(--card) 60%, transparent);
  transition: box-shadow .2s, background .2s;
}

.cap-link:hover { box-shadow: inset 0 0 0 1px var(--ink); background: var(--card); }
.cap-link .arrow { transition: translate .2s; }
.cap-link:hover .arrow { translate: 3px 0; }
.cap-link .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  vertical-align: 1px;
}

.tag.free { background: var(--chip-free); }
.tag.pro { background: var(--chip-pro); }
.tag.soon { background: var(--p-yellow); }
.tag.apple { background: var(--p-sky); }

.cap-final .cta-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.cap-final .button { padding: 11px 20px; font-size: 15px; }

/* The visitor's idea comes back at the end: on the finished book's cover, and under the last headline. */
.cover-art { width: 44cqw; }

.cover-idea {
  margin: 0 12%;
  font: italic 6.2cqw/1.28 'Vesper Prose', Georgia, serif;
  text-align: center;
  text-wrap: balance;
  overflow-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.final-idea { max-width: 500px; margin: 0 auto 14px; font: italic 18px/1.4 'Vesper Prose', Georgia, serif; text-wrap: balance; }
.final-idea .by { font-style: normal; color: var(--muted); }

/* ------------------------------------------------------------------ sections after the story */

/* Blobs and device bases may reach past the column, never past the screen: a phone would zoom the page out. */
.page-section, .feature { overflow-x: clip; }
.page-section { position: relative; padding: clamp(84px, 11vw, 150px) 0; }
.page-section + .page-section { padding-top: 0; }

.section-head { max-width: 780px; margin: 0 auto clamp(40px, 6vw, 72px); text-align: center; }
.section-head h2 { font-size: clamp(34px, 4.6vw, 62px); line-height: 1.04; margin-bottom: 20px; }
.section-lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--muted); margin: 0 auto; max-width: 640px; }
.section-lead strong { color: var(--ink); font-weight: 600; }

.eyebrow .n { color: var(--accent); margin-right: 4px; }

/* The feature index: every feature as a tile that leads to its section. */
.feature-index {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-index a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 14px 16px 18px;
  border-radius: 22px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--border);
  text-decoration: none;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s;
}

.feature-index a:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--ink), var(--shadow); }
.feature-index img { width: 100%; height: auto; margin-bottom: 6px; }
.feature-index b { font-size: 15.5px; font-weight: 650; letter-spacing: -.01em; }
.feature-index small { margin-top: 4px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.feature-index .tag { align-self: flex-start; margin: 10px 0 0; }

/* One feature, up close. */
.feature { padding: clamp(56px, 8vw, 110px) 0; }

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}

.feature.flip .feature-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature.flip .feature-copy { order: 2; }
.feature.flip .shot-blob { left: -9%; }
.feature-copy { max-width: 470px; }
.feature-copy h2 { font-size: clamp(30px, 3.4vw, 46px); }
.feature-copy > p { font-size: 18px; line-height: 1.62; color: var(--muted); }
.feature-copy > p strong { color: var(--ink); font-weight: 600; }

.points { margin: 26px 0 28px; padding: 0; list-style: none; display: grid; gap: 14px; }
.points li { display: grid; grid-template-columns: 22px 1fr; font-size: 15.5px; line-height: 1.5; color: var(--muted); }
.points li::before { content: ''; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--accent); }
.points b { color: var(--ink); font-weight: 600; }

.feature-links { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 14px; font-weight: 600; }
.feature-links a { text-decoration: none; color: var(--muted); }
.feature-links a:hover { color: var(--ink); }

.shot { position: relative; margin: 0; isolation: isolate; }
.shot figcaption { margin-top: 18px; font-size: 13px; color: var(--muted); text-align: center; }
.shot figcaption b { color: var(--ink); font-weight: 600; }

.shot-blob {
  position: absolute;
  left: 22%;
  top: -15%;
  z-index: -1;
  width: 87%;
  height: 119%;
  fill: var(--p-peach);
  overflow: visible;
}

.shot-blob.mint { fill: var(--p-mint); }
.shot-blob.lilac { fill: var(--p-lilac); }
.shot-blob.yellow { fill: var(--p-yellow); }
.shot-blob.sky { fill: var(--p-sky); }

.phone-wrap { width: min(300px, 48%); margin: 0 auto; }

/* ------------------------------------------------------------------ Apple devices, drawn like the illustrations */

/* The devices are drawn the way the characters are: one ink line, paper inside, a pastel blob behind.
   Nothing photographic; the screenshot is the only real thing in the picture. They lean a little toward
   the pointer, like the glass cards in the story. */
.macbook, .iphone, .ipad-frame {
  --line: 2px;
  position: relative;
  width: 100%;
  transform: perspective(1800px) rotateX(calc(var(--lean-y) * -3deg)) rotateY(calc(var(--lean-x) * 4deg));
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}

.screen { position: relative; overflow: hidden; background: var(--surface); }
.screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 0 0; }

/* MacBook: the lid an ink outline round a paper bezel with its camera dot; the base a slab with the
   thumb notch, as in the story's first beat. */
.macbook { --bz: clamp(6px, 1.1vw, 13px); --r: clamp(12px, 1.6vw, 20px); }

.macbook .lid {
  position: relative;
  padding: var(--bz);
  border: var(--line) solid var(--ink);
  border-radius: var(--r) var(--r) 6px 6px;
  background: var(--sheet);
}

.macbook .lid::after {
  content: '';
  position: absolute;
  left: 50%;
  top: calc(var(--bz) / 2 - 2px);
  width: 4px;
  height: 4px;
  translate: -50% 0;
  border-radius: 50%;
  background: var(--ink);
}

.macbook .screen {
  aspect-ratio: 16 / 10;
  border-radius: calc(var(--r) - var(--bz) - var(--line)) calc(var(--r) - var(--bz) - var(--line)) 2px 2px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 14%, transparent);
}

.macbook .base {
  position: relative;
  height: clamp(10px, 1.4vw, 17px);
  margin: calc(var(--line) * -1) -6.5% 0;
  border: var(--line) solid var(--ink);
  border-radius: 3px 3px 50% 50% / 3px 3px 100% 100%;
  background: var(--sheet);
}

.macbook .base::before {
  content: '';
  position: absolute;
  left: 50%;
  top: calc(var(--line) * -1);
  width: 13%;
  height: 50%;
  translate: -50% 0;
  border: var(--line) solid var(--ink);
  border-top: 0;
  border-radius: 0 0 9px 9px;
  background: var(--sheet);
}

/* A soft contact shadow, just enough to set it down on the page. */
.macbook::after {
  content: '';
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: -18px;
  height: 18px;
  background: radial-gradient(50% 50% at 50% 0, #14141422, transparent);
  pointer-events: none;
}

/* A Mac's screen can hold several screens of one feature; the switcher below it crossfades them. */
.macbook .screen img { position: absolute; inset: 0; transition: opacity .35s ease; }
.macbook .screen img[data-view] { opacity: 0; }
.macbook .screen img.on { opacity: 1; }
.macbook .screen img[data-view=spread] { object-fit: contain; }

.views {
  display: flex;
  width: max-content;
  margin: 30px auto 0;
  padding: 4px;
  gap: 2px;
  border-radius: 99px;
}

.views button {
  padding: 7px 15px;
  border: 0;
  border-radius: 99px;
  background: none;
  color: var(--muted);
  font: 600 13px/1 inherit;
  font-family: inherit;
  cursor: pointer;
  transition: color .2s, background .2s;
}

.views button:hover { color: var(--ink); }
.views button[aria-pressed=true] { background: var(--ink); color: var(--surface); }
.views + figcaption { margin-top: 12px; }

/* iPhone: the outline, the Dynamic Island, two volume buttons on its side. */
.iphone {
  padding: 4%;
  border: var(--line) solid var(--ink);
  border-radius: 17% / 7.8%;
  background: var(--sheet);
}

.iphone .screen { aspect-ratio: 1206 / 2622; border-radius: 13% / 6%; box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 14%, transparent); }

.iphone::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 3.6%;
  width: 28%;
  height: 2.9%;
  translate: -50% 0;
  border-radius: 99px;
  background: var(--ink);
}

.iphone .buttons {
  position: absolute;
  left: calc(var(--line) * -1 - 4px);
  top: 21%;
  display: grid;
  gap: 9px;
}

.iphone .buttons i { display: block; width: 3px; height: clamp(18px, 2.4vw, 30px); border-radius: 2px 0 0 2px; background: var(--ink); }

/* iPad: the same line, even bezels, the camera on the long edge. */
.ipad-frame {
  padding: 3%;
  border: var(--line) solid var(--ink);
  border-radius: 5.5% / 7.3%;
  background: var(--sheet);
}

.ipad-frame .screen { aspect-ratio: 4 / 3; border-radius: 2.6% / 3.5%; box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 14%, transparent); }

.ipad-frame::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 1.4%;
  width: 4px;
  height: 4px;
  translate: -50% 0;
  border-radius: 50%;
  background: var(--ink);
}

/* ------------------------------------------------------------------ Only on Apple */

.apple-stage {
  isolation: isolate;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 2.2fr 0.7fr;
  align-items: end;
  gap: 0;
  max-width: 1080px;
  margin: 0 auto;
}

.apple-stage .ipad-frame { translate: 18% -6%; z-index: 0; }
.apple-stage .macbook { z-index: 1; }
.apple-stage .iphone { translate: -34% 8%; z-index: 2; }

.apple-blob { position: absolute; inset: 0 8% 0 4%; z-index: -1; fill: var(--p-sky); width: 90%; height: 100%; overflow: visible; }

.apple-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1080px;
  margin: clamp(56px, 7vw, 90px) auto 0;
  padding: 0;
  list-style: none;
}

.apple-facts li { padding: 22px 24px; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--border); }
.apple-facts h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 19px; letter-spacing: -.02em; }
.apple-facts h3 svg { height: 20px; width: auto; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.apple-facts p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.apple-facts .req { display: block; margin-top: 12px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--ink); }

.apple-note { margin: 36px auto 0; max-width: 620px; text-align: center; font-size: 15px; color: var(--muted); }

/* ------------------------------------------------------------------ pricing */

.billing {
  display: inline-flex;
  margin: 0 auto 40px;
  padding: 4px;
  border-radius: 99px;
}

.billing-wrap { text-align: center; }

.billing button {
  position: relative;
  z-index: 1;
  padding: 9px 20px;
  border: 0;
  border-radius: 99px;
  background: none;
  color: var(--muted);
  font: 600 14px/1 inherit;
  font-family: inherit;
  cursor: pointer;
  transition: color .2s, background .25s;
}

.billing button[aria-pressed=true] { color: var(--surface); background: var(--ink); }
.billing .save { margin-left: 6px; font-size: 11.5px; font-weight: 600; opacity: .85; }

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
  max-width: 1120px;
  margin: 0 auto;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px 28px;
  border-radius: 26px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--border);
}

.plan.lead-plan { box-shadow: inset 0 0 0 1.5px var(--ink), var(--shadow); }
.plan-art { position: absolute; right: 14px; top: -34px; width: 118px; height: auto; }
.plan h3 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.02em; }
.plan .for { margin: 0 0 22px; font-size: 14.5px; color: var(--muted); min-height: 3em; }

.price { display: flex; align-items: baseline; gap: 6px; margin: 0; }
.price .amount { font-size: 46px; font-weight: 650; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.price .per { font-size: 14px; color: var(--muted); }
.price-note { margin: 8px 0 22px; min-height: 1.5em; font-size: 13px; color: var(--muted); }
.price-note strong { color: var(--ink); font-weight: 600; }

.plan .button { width: 100%; padding: 13px 16px; font-size: 15px; }
.plan ul { margin: 24px 0 0; padding: 22px 0 0; border-top: 1px solid var(--border); list-style: none; display: grid; gap: 11px; }
.plan li { display: grid; grid-template-columns: 22px 1fr; font-size: 14.5px; line-height: 1.45; }
.plan li::before { content: ''; width: 9px; height: 5px; margin-top: 6px; border-left: 1.8px solid var(--ink); border-bottom: 1.8px solid var(--ink); rotate: -45deg; }
.plan li.plus { display: block; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.plan li.plus::before { display: none; }
.plan .more { margin: 18px 0 0; padding-top: 16px; border-top: 1px dashed var(--border); font-size: 13px; color: var(--muted); }
.plan .more b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

.plans-foot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1120px;
  margin: 36px auto 0;
  padding: 0;
  list-style: none;
}

.plans-foot li { font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.plans-foot b { display: block; margin-bottom: 4px; color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------------ questions */

.faq { max-width: 780px; margin: 0 auto; }

.faq details {
  border-top: 1px solid var(--border);
}

.faq details:last-child { border-bottom: 1px solid var(--border); }

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 4px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.01em;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font-size: 22px; font-weight: 400; color: var(--muted); transition: rotate .25s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: -6px 4px 22px; max-width: 660px; font-size: 16px; line-height: 1.65; color: var(--muted); }

/* ------------------------------------------------------------------ download and footer */

.download { text-align: center; padding-bottom: clamp(70px, 9vw, 120px); }
.download img { width: min(280px, 60vw); height: auto; margin-bottom: 12px; }
.download h2 { font-size: clamp(38px, 5vw, 66px); line-height: 1.04; }
.download .section-lead { margin-bottom: 32px; }
.download .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.download .button { padding: 15px 26px; font-size: 16px; }
.download .fine { margin-top: 20px; font-size: 13px; color: var(--muted); }

.site-foot { padding: 40px 0 48px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-grid h4 { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.foot-grid ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--ink); }
.foot-brand .mark { font-size: 22px; color: var(--ink); margin-bottom: 12px; }
.foot-brand p { margin: 0; max-width: 300px; }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 40px; font-size: 12.5px; }

/* ------------------------------------------------------------------ smaller screens */

@media (max-width: 1100px) {
  .nav-links a.wide { display: none; }
  .feature-index { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-menu { display: inline-flex; }
  .nav-cta { margin-left: auto; }
  .mobile-sheet { display: block; }
  .nav-cta { padding: 9px 14px; }

  .feature-grid, .feature.flip .feature-grid { grid-template-columns: 1fr; }
  .feature.flip .feature-copy { order: 0; }
  .feature-copy { max-width: none; }
  .plans, .plans-foot, .apple-facts { grid-template-columns: 1fr; }
  .plan-art { width: 96px; top: -26px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .apple-stage { grid-template-columns: 1fr 2.2fr .7fr; }
}

@media (max-width: 760px) {
  .site-nav { top: 8px; width: calc(100% - 16px); }
  .nav-bar { height: 52px; padding-left: 16px; }
  .site-nav .mark { font-size: 21px; }
  .nav-cta .label-long { display: none; }

  .spark { padding-top: 70px; }
  .spark-copy h1 { font-size: 36px; }
  .spark-copy .lead { font-size: 15.5px; margin-bottom: 0; }
  .try-hint { display: none; }
  .hero-actions { margin-top: 12px; }
  .hero-actions .button { padding: 10px 16px; font-size: 14px; }
  .hero-actions .button.quiet { display: none; }

  .cap .cap-body { font-size: 15px; margin-bottom: 12px; }
  .cap-link { font-size: 13px; padding: 6px 12px; }

  .feature-index { grid-template-columns: 1fr 1fr; gap: 10px; }
  .feature-index a { padding: 10px 12px 14px; border-radius: 18px; }
  .feature-index small { display: none; }
  .apple-stage { grid-template-columns: 1fr 2.4fr .8fr; }
  .foot-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .features-menu, .mobile-sheet { transition: none; }
  .macbook, .iphone, .ipad-frame { transform: none; }
}
