:root {
  --paper: #F7F3EC;
  --paper-2: #EFE7DA;
  --ink: #1D1744;
  --ink-soft: #4E4870;
  --muted: #7A7493;
  --indigo: #3B2E8C;
  --indigo-deep: #241A5E;
  --indigo-night: #170F42;
  --lilac: #C9BFFF;
  --gold: #FFD8A3;
  --gold-ink: #A5682A;
  --rule: rgba(29, 23, 68, .14);
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; letter-spacing: -.015em; }
h1 em, h2 em { font-style: italic; font-weight: 400; }
::selection { background: var(--gold); color: var(--indigo-night); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  color: #fff;
  transition: background .3s, color .3s, box-shadow .3s;
}
.nav.solid {
  background: rgba(247, 243, 236, .86);
  color: var(--ink);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--rule);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 500 22px/1 var(--serif); letter-spacing: -.01em; }
.brand img { border-radius: 8px; }
/* Center the wordmark's capitals on the icon. Centering the line box (which includes the "y" descender) leaves them sitting high. */
.brand span, .foot-brand span { transform: translateY(.12em); }
.nav nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav nav a { text-decoration: none; opacity: .82; transition: opacity .2s; }
.nav nav a:hover { opacity: 1; }
.nav-cta { opacity: 1 !important; padding: 8px 16px; border-radius: 999px; border: 1px solid currentColor; }
@media (max-width: 760px) { .nav nav a:not(.nav-cta) { display: none; } }

/* ---------- Hero ---------- */
.hero {
  --overhang: clamp(110px, 19vw, 300px); /* how far the devices hang below the indigo */
  position: relative; isolation: isolate;
  color: #fff;
  padding: clamp(120px, 16vh, 170px) var(--gutter) 0;
}
.hero-backdrop {
  position: absolute; left: 0; right: 0; top: 0; bottom: var(--overhang); z-index: -1;
  overflow: hidden; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 45% at 72% 70%, rgba(132, 116, 238, .55), transparent 70%),
    radial-gradient(ellipse 35% 50% at 8% 30%, rgba(255, 190, 130, .16), transparent 70%),
    radial-gradient(ellipse 40% 50% at 95% 10%, rgba(96, 150, 255, .18), transparent 70%),
    radial-gradient(ellipse 50% 40% at 30% 110%, rgba(232, 104, 170, .18), transparent 70%),
    linear-gradient(180deg, #45369F 0%, #3B2E8C 45%, #2C2170 100%);
}
.hero-backdrop::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  opacity: .09; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.sheet {
  position: absolute; width: var(--w); aspect-ratio: 29 / 42; border-radius: calc(var(--w) * .07);
  background: #fff; opacity: var(--o); transform: rotate(var(--r)); filter: blur(var(--b, 0));
}
.sheet::before {
  content: ""; position: absolute; left: 16%; right: 16%; top: 19%; height: 46%; opacity: .9;
  background:
    linear-gradient(#3B2E8C, #3B2E8C) 0 0 / 45% 9% no-repeat,
    repeating-linear-gradient(180deg, #3B2E8C 0 9%, transparent 9% 24%) 0 26% / 100% 76% no-repeat;
}
.s1 { --w: 210px; --o: .07; --r: -14deg; left: -40px; top: 120px; }
.s2 { --w: 140px; --o: .06; --r: 11deg; left: 46%; top: 70px; --b: 2px; }
.s3 { --w: 260px; --o: .05; --r: 18deg; right: -70px; top: 40px; --b: 1px; }
.s4 { --w: 170px; --o: .05; --r: -8deg; left: 6%; bottom: 22%; --b: 3px; }

.hero-copy { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 18px; margin: 0 0 26px;
  font: 600 13px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--lilac);
}
.eyebrow::before, .eyebrow::after { content: ""; width: 48px; height: 1px; background: linear-gradient(90deg, transparent, currentColor); }
.eyebrow::after { transform: scaleX(-1); }
@media (max-width: 520px) {
  .eyebrow { letter-spacing: .16em; font-size: 11px; }
  .eyebrow::before, .eyebrow::after { display: none; }
}
.hero h1 {
  font-size: clamp(48px, 8.4vw, 112px); line-height: .98; font-weight: 500;
  text-shadow: 0 6px 40px rgba(20, 10, 70, .35);
}
.hero h1 em { color: var(--gold); }
.lede { max-width: 640px; margin: 28px auto 0; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: rgba(255, 255, 255, .84); }

.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 22px 11px 18px; min-width: 196px; border-radius: 14px;
  text-decoration: none; color: #fff; background: rgba(12, 6, 40, .55);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 10px 30px rgba(10, 5, 45, .25), inset 0 1px 0 rgba(255, 255, 255, .12);
  transition: transform .2s, background .2s;
}
.store:hover { transform: translateY(-2px); background: rgba(12, 6, 40, .75); }
.store svg { width: 22px; height: 22px; flex: none; }
.store span { display: flex; flex-direction: column; font: 600 19px/1.1 var(--sans); letter-spacing: -.01em; text-align: left; }
.store small { font: 500 11px/1.3 var(--sans); letter-spacing: .02em; opacity: .75; }
.fineprint { margin: 18px 0 0; font-size: 14px; color: rgba(255, 255, 255, .6); }

.hero-stage {
  position: relative; z-index: 1;
  width: min(1080px, 100%); margin: clamp(56px, 8vw, 90px) auto 0;
  padding-bottom: 9%; /* room for the phone to hang below the window */
}
.win {
  border-radius: 12px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 50px 100px -20px rgba(12, 6, 50, .55), 0 20px 40px -20px rgba(12, 6, 50, .4);
}
.hero .win { width: 88%; }
.phone {
  position: relative; border-radius: 11% / 5.06%; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px rgba(29, 23, 68, .10), 0 40px 80px -24px rgba(12, 6, 50, .45), 0 14px 28px -12px rgba(12, 6, 50, .25);
}
.phone img { width: 100%; }
.hero-phone { position: absolute; right: 0; bottom: 0; width: 27%; }

/* ---------- Platforms strip ---------- */
.platforms-strip {
  display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center;
  padding: clamp(72px, 9vw, 120px) var(--gutter) 0; color: var(--ink-soft);
}
.platforms-strip p { margin: 0; font: italic 400 clamp(26px, 2.6vw, 34px)/1.2 var(--serif); color: var(--ink); }
.platforms-strip ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin: 0; padding: 0; list-style: none; font-size: 13px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }
.platforms-strip li + li::before { content: "·"; margin-right: 26px; color: var(--muted); }
.platforms-strip + .chapter { padding-top: clamp(72px, 9vw, 120px); }
@media (max-width: 520px) {
  .platforms-strip ul { gap: 6px 12px; font-size: 12px; letter-spacing: .14em; }
  .platforms-strip li + li::before { margin-right: 12px; }
}

/* ---------- Chapters ---------- */
.chapter { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 11vw, 150px) var(--gutter) 0; }
.chapter-head { max-width: 760px; }
.numeral { margin: 0 0 14px; font: italic 400 22px/1 var(--serif); color: var(--gold-ink); }
.chapter h2 { font-size: clamp(38px, 5.4vw, 68px); line-height: 1.02; }
.chapter h2 em { color: var(--indigo); }
.chapter-lede { margin: 24px 0 0; font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-soft); max-width: 640px; }
.mono { font-family: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace; font-size: .9em; padding: 1px 6px; border-radius: 5px; background: var(--paper-2); color: var(--ink); }

.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 90px); align-items: start; margin-top: clamp(48px, 6vw, 80px); }
.split.reverse { grid-template-columns: minmax(0, .62fr) minmax(0, 1fr); }
.split.reverse .phone { max-width: 360px; justify-self: center; }
.tablet {
  border-radius: 3% / 2.25%; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px rgba(29, 23, 68, .10), 0 50px 90px -30px rgba(29, 23, 68, .45);
}
.notes { display: grid; gap: 34px; align-content: start; padding-top: 6px; }
.note { padding-top: 22px; border-top: 1px solid var(--rule); }
.note h3 { font-size: 26px; line-height: 1.15; margin-bottom: 10px; }
.note p { margin: 0; color: var(--ink-soft); }
.small-phone { width: 52%; max-width: 250px; margin-top: 10px; transform: rotate(2.5deg); }

@media (max-width: 860px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .small-phone { display: none; }
  .split.reverse .phone { max-width: 300px; }
}


/* ---------- Search showcase ---------- */
.showcase { position: relative; margin-top: clamp(48px, 6vw, 80px); padding-right: 12%; }
.showcase .win { box-shadow: 0 0 0 1px var(--rule), 0 50px 90px -30px rgba(29, 23, 68, .45); }
.showcase .overlap { position: absolute; right: 0; bottom: -9%; width: 24%; }
.index { list-style: none; counter-reset: idx; margin: clamp(90px, 10vw, 130px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.index li { counter-increment: idx; color: var(--ink-soft); font-size: 16px; padding-top: 20px; border-top: 1px solid var(--rule); }
.index li::before { content: counter(idx, lower-roman) "."; display: block; font: italic 400 18px/1 var(--serif); color: var(--gold-ink); margin-bottom: 14px; }
.index span { display: block; font: 500 24px/1.15 var(--serif); color: var(--ink); margin-bottom: 10px; letter-spacing: -.01em; }
@media (max-width: 860px) {
  .index { grid-template-columns: 1fr; gap: 28px; margin-top: 80px; }
  .showcase { padding-right: 0; }
  .showcase .overlap { width: 30%; right: -4%; }
}

/* ---------- Library / Mac ---------- */
.chapter.alt { padding-bottom: clamp(80px, 10vw, 130px); }
.mac {
  margin: clamp(70px, 9vw, 120px) auto 0; max-width: 1080px; border-radius: 12px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px var(--rule), 0 60px 110px -30px rgba(29, 23, 68, .45);
}
.mac-bar { display: flex; gap: 8px; padding: 12px 14px; background: #ECEAF0; border-bottom: 1px solid rgba(0, 0, 0, .06); }
.mac-bar i { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; }
.mac-bar i:nth-child(2) { background: #FEBC2E; }
.mac-bar i:nth-child(3) { background: #28C840; }

/* ---------- Privacy ---------- */
.privacy {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  padding: clamp(100px, 13vw, 170px) var(--gutter);
  background:
    radial-gradient(ellipse 45% 60% at 50% 0%, rgba(132, 116, 238, .35), transparent 70%),
    linear-gradient(180deg, var(--indigo-deep), var(--indigo-night));
}
.privacy h2 { font-size: clamp(40px, 6.2vw, 84px); line-height: 1.02; max-width: 1000px; margin: 0 auto; }
.privacy h2 em { color: var(--gold); }
.privacy-cols { max-width: 900px; margin: 46px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; text-align: left; color: rgba(255, 255, 255, .78); }
.privacy-cols p { margin: 0; }
.privacy-links { margin: 46px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 32px; }
.privacy-links a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(255, 216, 163, .4); padding-bottom: 2px; font-weight: 500; }
.privacy-links a:hover { border-color: var(--gold); }
@media (max-width: 760px) { .privacy-cols { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Download ---------- */
.download { max-width: var(--max); margin: 0 auto; padding: clamp(90px, 12vw, 150px) var(--gutter); text-align: center; }
.download h2 { font-size: clamp(38px, 5.4vw, 68px); line-height: 1.04; }
.download h2 em { color: var(--indigo); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; text-align: left; }
.card {
  display: flex; flex-direction: column; gap: 14px; padding: 32px 30px 28px; border-radius: 20px;
  background: #fff; text-decoration: none; color: var(--ink);
  box-shadow: 0 0 0 1px var(--rule), 0 24px 50px -30px rgba(29, 23, 68, .35);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(59, 46, 140, .35), 0 34px 60px -30px rgba(29, 23, 68, .45); }
.card-k { font: 500 30px/1.1 var(--serif); letter-spacing: -.01em; }
.card-t { color: var(--ink-soft); font-size: 16px; flex: 1; }
.card-cta { margin-top: 8px; font-weight: 600; font-size: 15px; color: var(--indigo); }
.card-cta::after { content: " →"; transition: margin .2s; }
.card:hover .card-cta::after { margin-left: 4px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--rule); padding: 44px var(--gutter) 56px; max-width: var(--max); margin: 0 auto; display: grid; gap: 18px; color: var(--muted); font-size: 14px; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font: 500 20px/1 var(--serif); }
.foot-brand img { border-radius: 7px; }
.disclaimer { margin: 0; max-width: 720px; }
.foot-links { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 26px; }
.foot-links a { text-decoration: none; color: var(--ink-soft); }
.foot-links a:hover { color: var(--indigo); }

/* ---------- Motion ---------- */
.rise { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.rise.in { opacity: 1; transform: none; }

/* ---------- FAQ ---------- */
.faq { max-width: 880px; margin: 0 auto; padding: clamp(90px, 12vw, 150px) var(--gutter) 0; }
.faq h2 { font-size: clamp(38px, 5.4vw, 68px); line-height: 1.04; text-align: center; margin-bottom: clamp(36px, 5vw, 56px); }
.faq h2 em { color: var(--indigo); }
.faq-list { border-bottom: 1px solid var(--rule); }
.faq details { border-top: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 24px 48px 24px 0; font: 500 clamp(20px, 2.1vw, 24px)/1.25 var(--serif); letter-spacing: -.01em; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border-right: 1.5px solid var(--gold-ink); border-bottom: 1.5px solid var(--gold-ink);
  transform: rotate(45deg); transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
.faq summary:hover { color: var(--indigo); }
.faq summary:focus-visible { outline: 2px solid var(--indigo); outline-offset: 4px; border-radius: 4px; }
.faq details p { margin: -6px 0 26px; max-width: 700px; color: var(--ink-soft); }
