:root {
  --bg: #FFFFFF;
  --bg-2: #F6F7FB;
  --ink: #0B0D1A;
  --ink-2: #33384D;
  --muted: #5D6278;
  --line: rgba(11, 13, 26, 0.09);
  --blue: #2A5BDB;
  --blue-deep: #1F48B8;
  --hl: #FFE27A;
  --sky: #EAF1FF;
  --blush: #FFEEF3;
  --lilac: #F1EDFF;
  --mint: #E8F7EF;
  --butter: #FFF6D9;
  --peach: #FFEFE4;
  --shadow-s: 0 1px 2px rgba(11, 13, 26, 0.05), 0 6px 16px -8px rgba(11, 13, 26, 0.14);
  --shadow-m: 0 2px 4px rgba(11, 13, 26, 0.04), 0 24px 48px -20px rgba(20, 26, 70, 0.28);
  --shadow-l: 0 4px 10px rgba(11, 13, 26, 0.05), 0 60px 120px -40px rgba(20, 26, 70, 0.45);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", "New York", Georgia, serif;
  --hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --spring: cubic-bezier(0.3, 0.7, 0.4, 1.4);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 650; }
h1 em, h2 em, .numbers dd { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.numbers dd { font-style: normal; letter-spacing: -0.02em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: #FFFFFF; text-decoration: none; transform: translateY(-160%); }
.skip:focus { transform: none; }
:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 3px; border-radius: 10px; }

/* Liquid glass: only on the floating controls */
.glass {
  position: relative;
  background: rgba(255, 255, 255, 0.56);
  -webkit-backdrop-filter: blur(22px) saturate(1.8);
  backdrop-filter: blur(22px) saturate(1.8);
  box-shadow:
    0 0 0 0.5px rgba(11, 13, 26, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 1px rgba(255, 255, 255, 0.4),
    0 12px 32px -14px rgba(20, 26, 70, 0.3);
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.15) 32%, rgba(255, 255, 255, 0) 58%, rgba(255, 255, 255, 0.7));
  -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;
}

/* Navigation */
.nav {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1100px, calc(100% - 24px));
  height: 58px;
  padding: 0 9px 0 16px;
  border-radius: 999px;
  transform: translateX(-50%);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 650; letter-spacing: -0.02em; text-decoration: none; }
.brand img { border-radius: 8px; box-shadow: 0 2px 8px -2px rgba(42, 91, 219, 0.5); }
.nav nav { display: flex; gap: 2px; }
.nav nav a { padding: 8px 14px; border-radius: 999px; color: var(--ink-2); font-size: 14px; font-weight: 500; text-decoration: none; transition: background-color 0.2s, color 0.2s; }
.nav nav a:hover { background: rgba(11, 13, 26, 0.05); color: var(--ink); }
.nav-end { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.icon-link { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink-2); transition: background-color 0.2s; }
.icon-link:hover { background: rgba(11, 13, 26, 0.06); color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  font: 600 16px/1 var(--sans);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--spring), background-color 0.2s, box-shadow 0.25s;
}
.btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--blue); color: #FFFFFF; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 24px -10px rgba(42, 91, 219, 0.75); }
.btn.primary:hover { background: var(--blue-deep); }
.btn.secondary { background: #FFFFFF; color: var(--ink); box-shadow: 0 0 0 1px var(--line), var(--shadow-s); }
.btn.secondary:hover { box-shadow: 0 0 0 1px rgba(11, 13, 26, 0.16), var(--shadow-m); }
.btn.small { min-height: 40px; padding: 0 18px; font-size: 14px; }

/* Hero */
.hero { position: relative; padding: 150px 24px 0; text-align: center; isolation: isolate; }
.aurora { position: absolute; inset: 0 0 auto; z-index: -1; height: 980px; overflow: hidden; pointer-events: none; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.aurora i { position: absolute; width: 46vw; max-width: 720px; aspect-ratio: 1; border-radius: 50%; filter: blur(70px); opacity: 0.75; animation: drift 22s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { top: -12%; left: 4%; background: #FFC7D8; }
.aurora i:nth-child(2) { top: -18%; right: 2%; background: #BCD2FF; animation-delay: -6s; }
.aurora i:nth-child(3) { top: 22%; left: 30%; background: #DCCBFF; animation-delay: -11s; }
.aurora i:nth-child(4) { top: 30%; right: 12%; width: 30vw; background: #FFE9A8; opacity: 0.55; animation-delay: -16s; }
@keyframes drift { to { transform: translate3d(5%, 7%, 0) scale(1.1); } }

.chip { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 30px; padding: 8px 14px 8px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; text-decoration: none; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #34C27F; box-shadow: 0 0 0 4px rgba(52, 194, 127, 0.18); }
.chip .chev { margin-left: 2px; color: var(--muted); font-size: 17px; line-height: 1; transition: transform 0.2s; }
.chip:hover .chev { transform: translateX(3px); }

h1 { font-size: clamp(50px, 8.8vw, 116px); line-height: 0.98; letter-spacing: -0.05em; }
h1 em { font-size: 1.1em; color: var(--blue); }
.mark { position: relative; z-index: 0; white-space: nowrap; }
.mark svg { position: absolute; left: -4%; bottom: 0.06em; z-index: -1; width: 108%; height: 0.5em; overflow: visible; }
.mark path { fill: none; stroke: var(--hl); stroke-width: 30; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 0; }
.js .mark path { stroke-dashoffset: 320; animation: draw 1s 0.5s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.lead { max-width: 600px; margin: 26px auto 34px; color: var(--muted); font-size: clamp(18px, 2.1vw, 21px); line-height: 1.5; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.fine { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 22px 0 0; color: var(--muted); font-size: 14px; }
.fine a { color: var(--blue); text-decoration: none; }
.fine a:hover { text-decoration: underline; text-underline-offset: 3px; }

.scene { position: relative; max-width: 1060px; margin: 76px auto 0; perspective: 1800px; }
.tablet { padding: 14px; border-radius: 42px; background: linear-gradient(160deg, #2A2E45, #0E1020 40%); box-shadow: var(--shadow-l), inset 0 0 0 1px rgba(255, 255, 255, 0.08); transform-origin: 50% 100%; }
.screen { position: relative; overflow: hidden; border-radius: 28px; background: #FFFFFF; }
.screen video { width: 100%; }
.sound {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 15px 0 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink);
  font: 600 13px var(--sans);
  cursor: pointer;
}
.sound svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sound[aria-pressed="false"] .wave { opacity: 0.3; }
.phone { position: absolute; right: -64px; bottom: -44px; width: 21%; padding: 7px; border-radius: 38px; background: linear-gradient(160deg, #2A2E45, #0E1020 40%); box-shadow: var(--shadow-l), inset 0 0 0 1px rgba(255, 255, 255, 0.08); transform: rotate(4deg); }
.phone img { border-radius: 31px; }
.hand { position: absolute; top: -66px; left: -18px; z-index: 2; margin: 0; color: var(--blue); font-family: var(--hand); font-size: 26px; font-weight: 600; line-height: 1; text-align: left; transform: rotate(-8deg); }
@supports (animation-timeline: view()) {
  .tablet { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
  @keyframes settle { from { transform: rotateX(16deg) scale(0.94); } to { transform: none; } }
}

/* By the numbers */
.numbers { max-width: 1100px; margin: 150px auto 0; padding: 0 24px; }
.label { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px; color: var(--ink-2); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.numbers dl { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 1.5px solid var(--ink); }
.numbers dl div { padding: 20px 24px 0 0; }
.numbers dl div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.numbers dt { color: var(--muted); font-size: 14px; }
.numbers dd { margin: 8px 0 0; font-size: clamp(54px, 6.4vw, 84px); line-height: 1; }
.numbers dd small { display: block; margin-top: 8px; color: var(--muted); font-family: var(--sans); font-size: 14px; font-style: normal; letter-spacing: -0.01em; }

/* Chapters */
.chapter {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  align-items: center;
  gap: 56px;
  max-width: 1180px;
  min-height: 620px;
  margin: 140px auto 0;
  padding: 72px 0 72px 72px;
  overflow: hidden;
  border-radius: 44px;
}
.chapter + .chapter { margin-top: 24px; }
.chapter.flip-side { grid-template-columns: 1.1fr 1fr; padding: 72px 72px 72px 0; }
.chapter.flip-side .chapter-copy { order: 2; }
.tint-sky { background: radial-gradient(80% 90% at 85% 20%, #D9E6FF, transparent 70%), var(--sky); }
.tint-blush { background: radial-gradient(80% 90% at 15% 80%, #FFDCE6, transparent 70%), var(--blush); }
.tint-lilac { background: radial-gradient(90% 80% at 90% 100%, #E2DAFF, transparent 70%), var(--lilac); }
.tint-mint { background: radial-gradient(90% 80% at 10% 100%, #D3F1E2, transparent 70%), var(--mint); }
.tint-butter { background: radial-gradient(90% 80% at 90% 100%, #FFEDB3, transparent 70%), var(--butter); }
.tint-peach { background: radial-gradient(90% 80% at 10% 100%, #FFDFCB, transparent 70%), var(--peach); }
.chapter h2, .section-head h2 { font-size: clamp(38px, 5.4vw, 66px); line-height: 1.02; letter-spacing: -0.045em; }
.chapter h2 em, .section-head h2 em, .finale h2 em { font-size: 1.08em; }
.chapter-copy > p:not(.label) { max-width: 440px; margin: 22px 0 0; color: var(--muted); font-size: 18px; }
.chapter-media { margin: 0; }
.chapter-media img { border-radius: 22px 0 0 22px; box-shadow: var(--shadow-l); transform: translateX(6%); transition: transform 1s var(--ease); }
.chapter.in .chapter-media img { transform: none; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; max-width: 440px; margin: 28px 0 0; padding: 0; list-style: none; }
.tools li { padding: 8px 15px; border-radius: 999px; background: rgba(255, 255, 255, 0.85); box-shadow: 0 0 0 1px var(--line); font-size: 14.5px; font-weight: 500; }

.cards { display: grid; justify-items: center; gap: 18px; }
.card-stack { position: relative; width: min(400px, 100%); aspect-ratio: 16 / 10; perspective: 1000px; }
.flash { position: absolute; inset: 0; border-radius: 24px; }
.ghost-2 { background: #FFF3C4; box-shadow: var(--shadow-s); transform: rotate(7deg) translate(18px, 10px); }
.ghost-1 { background: #DCE7FF; box-shadow: var(--shadow-s); transform: rotate(-5deg) translate(-14px, 6px); }
.flip-in { position: relative; height: 100%; transform-style: preserve-3d; animation: flip 7s var(--ease) infinite; }
.face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px 30px;
  border-radius: 24px;
  background: #FFFFFF repeating-linear-gradient(transparent 0 31px, rgba(42, 91, 219, 0.1) 31px 32px) 0 14px;
  box-shadow: var(--shadow-m);
  font-family: var(--hand);
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.05;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.face small { margin-bottom: 8px; color: #D2456E; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.face.back { color: var(--blue); transform: rotateY(180deg); }
.face.back small { color: #23935F; }
@keyframes flip { 0%, 40% { transform: rotateY(0); } 50%, 90% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }
.caption { margin: 0; color: var(--muted); font-size: 13px; }

/* Tiles */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1180px; margin: 24px auto 0; }
.tile { display: flex; flex-direction: column; min-height: 480px; padding: 48px; overflow: hidden; border-radius: 40px; }
.tile h3 { font-size: clamp(28px, 3vw, 36px); line-height: 1.08; letter-spacing: -0.035em; }
.tile > p:not(.label) { max-width: 420px; margin: 14px 0 0; color: var(--muted); }
.tile > :last-child { margin-top: auto; padding-top: 32px; }

.pdf { position: relative; margin-top: auto; padding: 34px 24px 22px; border-radius: 18px; background: #FFFFFF; box-shadow: var(--shadow-m); transform: rotate(-1.5deg) translateY(12px); transition: transform 0.5s var(--spring); }
.tile:hover .pdf { transform: rotate(0) translateY(0); }
.tiles .pdf { margin-top: auto; }
.pdf .tag { position: absolute; top: 12px; right: 14px; padding: 2px 8px; border-radius: 6px; background: #FFE3EB; color: #C93B63; font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; }
.pdf .l { display: block; height: 7px; margin: 0 0 11px; border-radius: 4px; background: #E8EAF2; }
.pdf .l.t { width: 44%; height: 10px; background: #CDD2E1; }
.pdf .l.hl { width: 88%; background: linear-gradient(var(--hl), var(--hl)) 0 50% / 62% 100% no-repeat, #E8EAF2; }
.pdf .l.s { width: 70%; }
.pdf .l.u { width: 80%; box-shadow: 0 6px 0 -4px var(--blue); }
.pdf svg { position: absolute; right: 18px; bottom: 8px; width: 100px; fill: none; stroke: #E0567A; stroke-width: 2.4; stroke-linecap: round; }

.papers { display: flex; gap: 14px; }
.papers span { flex: 1; aspect-ratio: 3 / 4; border-radius: 12px; background-color: #FFFFFF; box-shadow: var(--shadow-m); transition: transform 0.4s var(--spring); }
.papers span:nth-child(odd) { transform: rotate(-4deg); }
.papers span:nth-child(even) { transform: rotate(3deg) translateY(6px); }
.tile:hover .papers span { transform: translateY(-4px); }
.ruled { background-image: repeating-linear-gradient(transparent 0 11px, rgba(42, 91, 219, 0.24) 11px 12px); }
.grid { background-image: linear-gradient(rgba(42, 91, 219, 0.18) 1px, transparent 1px), linear-gradient(90deg, rgba(42, 91, 219, 0.18) 1px, transparent 1px); background-size: 12px 12px; }
.dots { background-image: radial-gradient(rgba(42, 91, 219, 0.38) 1.2px, transparent 1.5px); background-size: 12px 12px; }
.cornell { background-image: linear-gradient(90deg, transparent 30%, rgba(224, 86, 122, 0.45) 30%, rgba(224, 86, 122, 0.45) calc(30% + 1.5px), transparent calc(30% + 1.5px)), repeating-linear-gradient(transparent 0 11px, rgba(42, 91, 219, 0.2) 11px 12px); }

.modes { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.modes li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 15px 18px; border-radius: 18px; background: #FFFFFF; box-shadow: var(--shadow-s); font-size: 15px; }
.modes b { font-weight: 600; }
.modes span { color: var(--muted); font-size: 14px; }
.modes i { position: relative; width: 44px; height: 26px; border-radius: 999px; background: #34C27F; }
.modes i::after { content: ""; position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }

.badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.badges li { padding: 9px 16px; border-radius: 999px; background: #FFFFFF; box-shadow: var(--shadow-s); font-size: 14.5px; font-weight: 500; }
.badges li:nth-child(odd) { transform: rotate(-2deg); }
.badges li:nth-child(even) { transform: rotate(2deg); }

/* Sections */
.section { max-width: 1100px; margin: 150px auto 0; padding: 0 24px; }
.section-head { max-width: 880px; margin: 0 auto 48px; text-align: center; }
.section-head > p:not(.label) { margin: 18px 0 0; color: var(--muted); font-size: 18px; }
.section-head a { color: var(--blue); text-decoration: none; }
.section-head a:hover { text-decoration: underline; text-underline-offset: 3px; }

.table { overflow-x: auto; padding: 8px 32px; border-radius: 30px; background: #FFFFFF; box-shadow: 0 0 0 1px var(--line), var(--shadow-m); }
table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 16px; }
th, td { padding: 18px 8px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
tbody tr:last-child > * { border-bottom: 0; }
thead th { font-size: 15px; font-weight: 650; }
th:first-child { padding-left: 0; }
.y, .s, .n { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px 4px 8px; border-radius: 999px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.y { background: #E5F6ED; color: #155C3B; }
.y::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: #23935F url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.6 8.2l2.2 2.2 4.6-4.8' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.s { background: #FFF3CF; color: #6B4E00; }
.s::before { content: ""; width: 8px; height: 8px; margin: 0 3px 0 4px; border-radius: 50%; background: #E0A21B; }
.n { padding-left: 12px; background: var(--bg-2); color: var(--muted); }

.faq { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
.faq .section-head { position: sticky; top: 110px; margin: 0; text-align: left; }
.qs { border-top: 1.5px solid var(--ink); }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 11v10M11 16h10' stroke='%230B0D1A' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 32px; transition: transform 0.35s var(--spring), background-color 0.2s; }
summary:hover::after { background-color: #ECEEF5; }
details[open] summary::after { transform: rotate(45deg); }
details p { max-width: 560px; margin: -6px 0 26px; color: var(--muted); }

/* Finale */
.finale { position: relative; max-width: 1180px; margin: 150px auto 0; padding: 130px 24px; overflow: hidden; border-radius: 48px; background: var(--bg-2); text-align: center; isolation: isolate; }
.finale .aurora { inset: 0; height: auto; -webkit-mask-image: none; mask-image: none; }
.finale .aurora i { width: 60%; max-width: none; opacity: 0.6; }
.finale .aurora i:nth-child(1) { top: -30%; left: -10%; }
.finale .aurora i:nth-child(2) { top: 20%; right: -15%; }
.finale .aurora i:nth-child(3) { top: 50%; left: 25%; }
.finale h2 { font-size: clamp(46px, 7.4vw, 100px); line-height: 0.98; letter-spacing: -0.05em; }
.finale > p { margin: 22px 0 34px; color: var(--ink-2); font-size: 20px; }

/* Footer */
.footer { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; max-width: 1100px; margin: 100px auto 0; padding: 40px 24px 120px; border-top: 1px solid var(--line); font-size: 14px; }
.foot-brand p { margin: 12px 0 0; color: var(--muted); }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col h4 { margin: 4px 0 2px; font-size: 13px; font-weight: 600; }
.foot-col a { color: var(--muted); text-decoration: none; }
.foot-col a:hover { color: var(--ink); }
.made { grid-column: 1 / -1; margin: 20px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.made a { color: var(--ink); text-decoration: none; }
.made a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Download dock */
.dock {
  position: fixed;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 9px;
  border-radius: 999px;
  visibility: hidden;
  opacity: 0;
  transform: translate(-50%, 130%);
  transition: transform 0.5s var(--spring), opacity 0.3s, visibility 0s 0.5s;
}
.dock.show { visibility: visible; opacity: 1; transform: translate(-50%, 0); transition: transform 0.5s var(--spring), opacity 0.3s, visibility 0s; }
.dock img { border-radius: 10px; }
.dock p { display: flex; flex-direction: column; margin: 0 6px 0 0; line-height: 1.2; }
.dock strong { font-size: 14px; font-weight: 650; }
.dock span { color: var(--muted); font-size: 12.5px; }

/* Guide */
.guide-hero { position: relative; padding: 150px 24px 0; text-align: center; isolation: isolate; }
.guide-hero .aurora { height: 640px; }
.guide-hero h1 { font-size: clamp(48px, 8vw, 96px); }
.guide-hero .lead { margin-bottom: 30px; }
.jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.jump a { display: inline-flex; padding: 9px 16px; border-radius: 999px; background: #FFFFFF; box-shadow: 0 0 0 1px var(--line), var(--shadow-s); font-size: 14px; font-weight: 500; text-decoration: none; transition: transform 0.25s var(--spring); }
.jump a:hover { transform: translateY(-2px); }
.guide { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; max-width: 820px; margin: 72px auto 0; padding: 0 24px; }
.guide section { padding: 40px 44px; border-radius: 36px; }
.guide section:nth-child(6n+1) { background: var(--sky); }
.guide section:nth-child(6n+2) { background: var(--lilac); }
.guide section:nth-child(6n+3) { background: var(--mint); }
.guide section:nth-child(6n+4) { background: var(--butter); }
.guide section:nth-child(6n+5) { background: var(--blush); }
.guide section:nth-child(6n+6) { background: var(--peach); }
.guide h2 { margin: 0 0 12px; font-size: clamp(26px, 3.4vw, 34px); line-height: 1.1; letter-spacing: -0.035em; }
.guide h3 { margin: 26px 0 4px; font-size: 19px; letter-spacing: -0.02em; }
.guide p, .guide li { color: var(--ink-2); }
.guide p { margin: 10px 0; }
.guide strong { color: var(--ink); font-weight: 600; }
.guide a { color: var(--blue); text-decoration: none; }
.guide a:hover { text-decoration: underline; text-underline-offset: 3px; }
.guide ol { margin: 16px 0; padding: 0; list-style: none; counter-reset: step; }
.guide ol li { position: relative; margin: 12px 0; padding-left: 46px; counter-increment: step; }
.guide ol li::before { content: counter(step); position: absolute; top: -2px; left: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #FFFFFF; box-shadow: var(--shadow-s); color: var(--blue); font-size: 14px; font-weight: 650; }
pre { overflow-x: auto; margin: 16px 0; padding: 18px 20px; border-radius: 18px; background: #0E1020; color: #EEF0F8; font-size: 14px; }
code { font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace; }
p code { padding: 2px 7px; border-radius: 7px; background: rgba(255, 255, 255, 0.8); font-size: 0.88em; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .tiles .reveal:nth-child(even) { transition-delay: 0.1s; }

/* Layout */
@media (max-width: 1180px) {
  .chapter, .tiles, .finale { margin-left: 20px; margin-right: 20px; }
  .phone { right: -12px; }
}
@media (max-width: 900px) {
  .nav nav { display: none; }
  .nav { grid-template-columns: 1fr auto; }
  .chapter, .chapter.flip-side { grid-template-columns: 1fr; gap: 40px; min-height: 0; padding: 56px 0 0 40px; }
  .chapter-copy { padding-right: 40px; }
  .chapter.flip-side { padding: 56px 40px 48px; }
  .chapter.flip-side .chapter-copy { order: 0; padding-right: 0; }
  .numbers dl { grid-template-columns: 1fr 1fr; }
  .numbers dl div:nth-child(3) { padding-left: 0; border-left: 0; }
  .numbers dl div:nth-child(n+3) { margin-top: 24px; border-top: 1px solid var(--line); }
  .faq { grid-template-columns: 1fr; gap: 0; }
  .faq .section-head { position: static; margin: 0 auto 36px; text-align: center; }
  .footer { grid-template-columns: repeat(3, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav { top: 8px; width: calc(100% - 16px); height: 54px; padding-left: 12px; }
  .hero { padding: 116px 18px 0; }
  .chip { margin-bottom: 24px; font-size: 13px; }
  .lead { margin: 20px auto 28px; }
  .actions .btn { flex: 1 1 100%; }
  .scene { margin-top: 48px; padding-bottom: 40px; }
  .hand { display: none; }
  .mark svg { height: 0.62em; bottom: 0.02em; }
  .tablet { padding: 7px; border-radius: 22px; }
  .screen { border-radius: 16px; }
  .sound { right: 8px; bottom: 8px; min-height: 32px; padding: 0 11px 0 9px; font-size: 12px; }
  .phone { right: 2px; bottom: 0; width: 25%; padding: 4px; border-radius: 18px; }
  .phone img { border-radius: 14px; }
  .numbers, .section { margin-top: 100px; padding: 0 18px; }
  .numbers dl div, .numbers dl div + div { padding: 16px 12px 0 0; }
  .numbers dl div:nth-child(even) { padding-left: 16px; }
  .chapter, .tiles, .finale { margin-left: 12px; margin-right: 12px; }
  .chapter { margin-top: 100px; border-radius: 30px; padding: 40px 0 0 26px; }
  .chapter-copy { padding-right: 26px; }
  .chapter.flip-side { padding: 40px 26px 36px; }
  .tiles { grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }
  .chapter + .chapter { margin-top: 12px; }
  .tile { min-height: 0; padding: 32px 26px; border-radius: 30px; }
  .table { padding: 4px 20px; border-radius: 24px; }
  table { min-width: 0; font-size: 14px; }
  th, td { padding: 14px 3px; }
  thead th { font-size: 13px; }
  .y, .s, .n { gap: 4px; padding: 3px 8px; font-size: 12px; white-space: normal; }
  .y::before { flex: none; width: 12px; height: 12px; background-size: 12px; }
  .s::before { display: none; }
  summary { padding: 20px 0; font-size: 17px; }
  .finale { margin-top: 100px; padding: 90px 22px; border-radius: 32px; }
  .finale > p { font-size: 18px; }
  .footer { grid-template-columns: 1fr 1fr; padding: 36px 18px 110px; }
  .dock { width: calc(100% - 24px); max-width: 420px; }
  .dock .btn { margin-left: auto; }
  .guide-hero { padding: 116px 18px 0; }
  .guide { margin-top: 48px; padding: 0 12px; }
  .guide section { padding: 30px 24px; border-radius: 28px; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .glass { background: #FFFFFF; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 0 0 1px rgba(11, 13, 26, 0.22), var(--shadow-s); }
  .glass::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora i, .flip-in { animation: none; }
  .tablet { animation: none; }
  .js .mark path { animation: none; stroke-dashoffset: 0; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .chapter-media img, .btn, .pdf, .papers span, .dock { transition: none; }
}
