:root {
  --bg: #ffffff;
  --ink: #0b0b0b;
  --ink-2: #4b4b48;
  --ink-3: #8a8a85;
  --line: #e7e6e1;
  --soft: #f4f4f0;
  --lime: #d9f99d;
  --lime-ink: #2f4a06;
  --violet: #6d5cf5;
  --display: "Space Grotesk", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Literata", Georgia, serif;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 18px/1.6 var(--sans);
  overflow-x: hidden;
}
a { color: inherit; }
::selection { background: var(--lime); }

/* Three.js books sit behind everything. */
#books {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; display: block;
}
.page-shell { position: relative; z-index: 1; overflow-x: clip; } /* clip, not hidden: keeps the sticky header working */

.wrap { max-width: 1260px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Header */
header.top {
  position: sticky; top: 0; z-index: 5;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
}
header.top.scrolled { border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 9px; font: 700 22px var(--display); text-decoration: none; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; }
nav { display: flex; align-items: center; gap: 26px; }
nav a { text-decoration: none; color: var(--ink-2); font-size: 16px; }
nav a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px solid var(--ink); background: var(--ink); color: #fff;
  font: 600 16px/1 var(--sans); padding: 17px 26px; border-radius: 999px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); background: #2b2b2b; }
/* The header button sits inside <nav>, and "nav a:hover" (one class-like
   part + two tags) beats ".btn" (one class), so it painted the text black
   on a black button. Name it more exactly so white text wins. */
nav a.btn, nav a.btn:hover { color: #fff; }
.btn:active { transform: translateY(0); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.sm { padding: 13px 20px; font-size: 15px; }

/* Type */
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.03em; line-height: 1.02; margin: 0; }
h1 { font-size: clamp(46px, 7.4vw, 92px); font-weight: 700; }
h2 { font-size: clamp(36px, 4.4vw, 62px); font-weight: 700; }
h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.hl { background: linear-gradient(transparent 12%, var(--lime) 12%, var(--lime) 92%, transparent 92%); padding: 0 .08em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.lede { font-size: clamp(19px, 1.6vw, 23px); color: var(--ink-2); max-width: 560px; margin: 22px 0 0; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--ink-2); border: 1px solid var(--line); background: rgba(255,255,255,.85); border-radius: 999px; padding: 7px 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #84cc16; box-shadow: 0 0 0 4px rgba(132, 204, 22, .18); }

/* Hero */
.hero h1 { margin-top: 20px; }
/* Soft white glow behind the hero copy so flying books never hurt reading. */
.hero-copy { position: relative; }
.hero-copy::before {
  content: ""; position: absolute; inset: -60px -80px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,255,255,.92), rgba(255,255,255,.75) 60%, rgba(255,255,255,0));
}
.signup { display: flex; gap: 8px; margin-top: 32px; max-width: 560px; padding: 7px; border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; }
.signup input[type=email] { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 17px var(--sans); padding: 0 16px; color: var(--ink); }
.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { font-size: 14px; margin: 10px 4px 0; min-height: 1.4em; }
.msg.ok { color: #3f6212; }
.msg.err { color: #b42318; }
.consent { font-size: 13px; color: var(--ink-3); margin: 2px 4px 0; }
.cta .consent { text-align: center; }
.start-link { font-size: 15px; color: var(--ink-3); margin: 14px 4px 0; }
.start-link a { color: var(--ink); font-weight: 600; }
.hero-links { display: flex; gap: 18px; align-items: center; margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.hero-links a { text-underline-offset: 3px; }

/* Hero: copy on the left, one foldable iPhone Duo on the right, all on the first screen. */
.hero { display: grid; grid-template-columns: 0.82fr 1.18fr; grid-template-areas: "copy phones" "vs phones"; column-gap: 56px; row-gap: 0; align-items: center; min-height: calc(100vh - 72px); padding: 28px 0 36px; }
.hero-copy { grid-area: copy; align-self: end; }
.vs-mini { grid-area: vs; align-self: start; }
.phones { grid-area: phones; }
.hero h1 { font-size: clamp(48px, 5.4vw, 82px); }
.lede .pill { display: inline-block; font-size: .8em; line-height: 1.3; padding: 1px 10px 2px; border-radius: 999px; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); margin: 2px 0; white-space: nowrap; }
.lede .pill:nth-child(1) { background: var(--lime); }
.vs-mini { margin-top: 28px; display: grid; gap: 8px; font-size: 16px; line-height: 1.45; max-width: 580px; background: rgba(255,255,255,.94); border-radius: 14px; padding: 10px 12px; }
.vs-mini p { margin: 0; display: grid; grid-template-columns: 126px 1fr; gap: 12px; }
.vs-mini b { font: 700 12px/1.9 var(--sans); letter-spacing: .07em; text-transform: uppercase; }
.vs-mini .them { color: var(--ink-3); }
.vs-mini .them span, .vs-mini .them { text-decoration: line-through; text-decoration-color: rgba(0,0,0,.25); }
.vs-mini .them b { text-decoration: none; }
.vs-mini .us { color: var(--ink); }
.vs-mini .us b { color: #4d7c0f; }

.phones { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px 0 6px; }
/* A soft lime glow right behind the device (a big flat slab looked empty next to one phone). */
.phones::before { content: ""; position: absolute; inset: 4% 8% 14%; background: radial-gradient(closest-side, rgba(217,249,157,.95), rgba(217,249,157,0)); border-radius: 50%; }

/* Foldable phone. Two halves side by side; the right half is hinged on its
   left edge. Folded = right half turned 180deg over the left one, so you see
   its back: a normal phone screen. The whole device slides 25% right while
   folded so the closed phone sits in the middle.
   Looks real thanks to: thin black bezel (--b), a metal frame drawn as
   stacked box-shadow rings (--ring), big rounded corners, side buttons,
   a Dynamic Island and real status-bar icons. */
.duo { --w: 660px; --h: 600px; --r: 50px; --b: 8px;
  --ring: 0 0 0 1px #4a4a4f, 0 0 0 3px #d2d2d7, 0 0 0 4.5px #8e8e93;
  --drop: 0 40px 70px -30px rgba(0,0,0,.5);
  position: relative; width: var(--w); height: var(--h); perspective: 2200px; transition: transform 1.1s cubic-bezier(.2,.8,.2,1); }
.duo[data-state="closed"] { transform: translateX(25%); }
.half { position: absolute; top: 0; width: 50%; height: 100%; }
.half.left { left: 0; background: #000; border-radius: var(--r) 4px 4px var(--r); padding: var(--b) 1px var(--b) var(--b); transition: border-radius .5s; }
/* Folded, the inner half rounds its hinge-side corners too, so nothing square peeks out behind the phone. */
.duo[data-state="closed"] .half.left { border-radius: var(--r); }
.half.right { left: 50%; transform-origin: left center; transform-style: preserve-3d; transform: translateZ(1px) rotateY(0deg); transition: transform 1.1s cubic-bezier(.2,.8,.2,1); }
.duo[data-state="closed"] .half.right { transform: translateZ(1px) rotateY(-180deg); }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #000; }
.face.front { border-radius: 4px var(--r) var(--r) 4px; padding: var(--b) var(--b) var(--b) 1px; }
.face.back { transform: rotateY(180deg); border-radius: var(--r); padding: var(--b); box-shadow: var(--ring), var(--drop); }
/* Metal frame + shadow around the whole unfolded device. One ring around
   both halves, so no silver line runs down the middle of the open screen. */
.duo::before { content: ""; position: absolute; inset: 0; border-radius: var(--r); box-shadow: var(--ring), var(--drop); transition: opacity .35s; }
.duo[data-state="closed"]::before { opacity: 0; }
/* Side buttons: action + volume on the left, power on the right. One small
   bar, copied down with box-shadow (a shadow can be a solid offset copy). */
.half.left::before, .face.back::before { content: ""; position: absolute; left: -7.5px; top: 92px; width: 3.5px; height: 30px; border-radius: 2px 0 0 2px; background: #9a9aa0; box-shadow: 0 46px #9a9aa0, 0 86px #9a9aa0; }
.face.front::after, .face.back::after { content: ""; position: absolute; right: -7.5px; top: 132px; width: 3.5px; height: 58px; border-radius: 0 2px 2px 0; background: #9a9aa0; }
/* The crease: a soft shadow on both inner edges, fading out while folding. */
.duo::after { content: ""; position: absolute; top: 9px; bottom: 9px; left: 50%; width: 14px; transform: translateX(-50%); background: linear-gradient(90deg, rgba(0,0,0,0), rgba(0,0,0,.12) 42%, rgba(255,255,255,.5) 50%, rgba(0,0,0,.12) 58%, rgba(0,0,0,0)); pointer-events: none; transition: opacity .4s; }
.duo[data-state="closed"]::after { opacity: 0; }

.scr { position: relative; height: 100%; overflow: hidden; background: #fff; display: flex; flex-direction: column; font-size: 14px; }
.half.left .scr { border-radius: calc(var(--r) - var(--b)) 2px 2px calc(var(--r) - var(--b)); }
.face.front .scr { border-radius: 2px calc(var(--r) - var(--b)) calc(var(--r) - var(--b)) 2px; }
.book-scr { background: #fbf8ef; color: #3a3833; }
.status { display: flex; justify-content: space-between; align-items: center; padding: 15px 22px 6px; font: 600 12.5px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", var(--sans); color: #000; min-height: 34px; }
.status .cam { width: 11px; height: 11px; border-radius: 50%; background: #000; }
.island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 31%; height: 24px; border-radius: 999px; background: #000; }
.sb { display: flex; align-items: center; gap: 4px; }
.sb svg { display: block; fill: currentColor; }
.scr-top { display: flex; align-items: center; gap: 8px; padding: 6px 14px 9px; border-bottom: 1px solid var(--line); }
.scr-top b { display: block; font: 700 16.5px/1.2 var(--display); color: var(--ink); }
.scr-top b.lime { color: #4d7c0f; }
.scr-top small { color: var(--ink-3); font-size: 12px; }
.scr-top .chev { font-size: 20px; line-height: 1; color: var(--ink-2); }
.scr-top .lang { margin-left: auto; font: 700 10px/1 var(--sans); border: 1.5px solid var(--ink); border-radius: 999px; padding: 3px 6px; }
.book-scr .mini-label { margin: 12px 14px 6px; }
.book-text { margin: 0; padding: 0 16px 16px; font: 14.5px/1.6 var(--serif); }
.easy-scr .key, .phone-scr .key { margin: 0 0 9px; background: var(--ink); color: #fff; border-radius: 12px; padding: 10px 12px; font: 700 15.5px/1.3 var(--display); }
/* Folded: the normal one-screen phone app. */
.scr.phone-scr { border-radius: calc(var(--r) - var(--b)); }
.stack-book { flex: 0 0 36%; overflow: hidden; background: #fbf8ef; padding: 10px 14px 0; -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }
.stack-book .book-text { padding: 0; font-size: 14.5px; line-height: 1.55; color: #3a3833; }
.stack-easy { flex: 1; overflow: hidden; padding: 10px 14px 6px; border-top: 1.5px solid var(--ink); -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
.stack-easy .eline p { font-size: 14.5px; }
.stack-easy .key { font-size: 14.5px; padding: 9px 12px; }
.tabbar.static span { flex: 1; text-align: center; font: 600 13px/1 var(--sans); color: var(--ink-3); padding: 8px 2px; border-radius: 10px; }
.tabbar.static span.on { color: var(--ink); background: var(--soft); }
/* Under the device: show it as a phone or unfolded. */
.view-switch { position: relative; display: flex; gap: 4px; margin-top: 16px; padding: 4px; background: #fff; border: 1.5px solid var(--ink); border-radius: 999px; }
.view-switch button { border: 0; background: none; border-radius: 999px; padding: 10px 18px; font: 600 14.5px/1 var(--sans); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.view-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.view-switch button:not([aria-pressed="true"]):hover { background: var(--lime); }
.phones .tap-hint { position: relative; margin-top: 8px; }
/* Invite the first tap: the first dotted word glows twice after unfolding. */
.term.hint { animation: term-hint 1.4s ease 2; }
@keyframes term-hint { 40% { background: var(--lime); box-shadow: 0 0 0 4px var(--lime); } }
.tab-view { flex: 1; overflow: auto; padding: 12px 12px 8px; scrollbar-width: none; }
.tab-view[hidden] { display: none; }
.mini-label { font: 700 10.5px/1 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 7px; }
.mini-label.lime { color: #4d7c0f; }
.eline { display: flex; gap: 6px; align-items: flex-start; padding: 5px 0; border-top: 1px solid var(--line); }
.eline p { margin: 0; flex: 1; font-size: 15px; line-height: 1.45; }
.save { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--ink); background: #fff; font: 700 13px/1 var(--sans); cursor: pointer; color: var(--ink); padding: 0; }
.save:disabled { background: var(--lime); border-color: var(--lime); cursor: default; }
.tap-hint { text-align: center; font-size: 14px; color: var(--ink-3); margin: 10px 0 0; }
.dotted { border-bottom: 2px dotted currentColor; }
.term { all: unset; cursor: pointer; border-bottom: 2px dotted var(--ink); border-radius: 3px; }
.term:hover, .term.on { background: var(--lime); }
.term:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.idea-card { margin: 0; border: 1.5px solid var(--ink); border-radius: 16px; padding: 14px; background: #fff; }
.tab-view .idea-card { margin: 0 0 10px; }
.idea-card span { font: 700 9.5px/1 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.idea-card p { margin: 8px 0 0; font: 700 17px/1.25 var(--display); letter-spacing: -0.01em; }
.idea-card.dark { background: var(--ink); color: #fff; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; }
.idea-card.dark span { color: var(--lime); }
.idea-card.dark p { font-size: 21px; }
.tabbar { display: flex; border-top: 1px solid var(--line); padding: 8px 8px 16px; background: #fff; }
.tabbar button { flex: 1; border: 0; background: none; font: 600 13px/1 var(--sans); color: var(--ink-3); padding: 8px 2px; border-radius: 10px; cursor: pointer; }
.tabbar button[aria-current="true"] { color: var(--ink); background: var(--soft); }
.count { display: inline-grid; place-items: center; min-width: 17px; height: 17px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 10px; margin-left: 2px; }
.tabbar button.bump { animation: bump .6s ease; }
@keyframes bump { 30% { transform: scale(1.12); background: var(--lime); } }
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.r-note { border: 1.5px solid var(--ink); border-radius: 12px; padding: 9px 11px; line-height: 1.45; background: #fff; font-size: 13px; }
.r-note.new { animation: pop-in .6s ease; }
@keyframes pop-in { 0% { transform: scale(.9); background: var(--lime); opacity: 0; } 60% { transform: scale(1.02); background: var(--lime); opacity: 1; } 100% { transform: none; background: #fff; } }
.r-note-tag { display: block; font: 700 9.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 5px; }
.r-note-mine { display: block; margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line); color: var(--violet); font-style: italic; }
.export { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
.export span { width: 100%; font: 700 9.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.chip-btn { font: 600 12px/1 var(--sans); border: 1.5px solid var(--ink); background: #fff; border-radius: 999px; padding: 7px 10px; cursor: pointer; }
.chip-btn:hover { background: var(--lime); }
.export-msg { font-size: 12px; color: var(--ink-2); margin: 8px 0 0; }
/* Word meaning: a bottom sheet inside the phone, like the real app will do. */
.sheet { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 4; background: #fff; border: 1.5px solid var(--ink); border-radius: 24px; padding: 16px 16px 14px; box-shadow: 0 -12px 30px rgba(0,0,0,.18); animation: sheet-up .25s ease; }
.sheet[hidden] { display: none; }
@keyframes sheet-up { from { transform: translateY(30px); opacity: 0; } }
.sheet-word { font: 700 22px/1.1 var(--display); padding-right: 24px; }
.sheet-word::after { content: "in easy words"; display: block; font: 700 9.5px/1 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: #4d7c0f; margin-top: 7px; }
.sheet-mean { margin: 9px 0 0; font-size: 15.5px; line-height: 1.45; }
.sheet-eg { margin: 9px 0 12px; font-size: 14px; line-height: 1.45; color: var(--ink-2); background: var(--soft); border-radius: 10px; padding: 8px 10px; }
.sheet-eg::before { content: "Example: "; font-weight: 700; color: var(--ink); }
.sheet-x { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--ink-2); }
.sheet .btn { width: 100%; }

@media (max-width: 1100px) {
  .duo { --w: 470px; --h: 470px; --r: 42px; --b: 7px; }
  .scr { font-size: 12px; }
  .book-text, .stack-book .book-text { font-size: 12px; line-height: 1.58; }
  .eline p, .stack-easy .eline p { font-size: 12.5px; }
  .scr-top b { font-size: 14px; }
  .scr-top small { font-size: 10.5px; }
  .easy-scr .key, .phone-scr .key, .stack-easy .key { font-size: 13px; padding: 8px 10px; }
  .tabbar button, .tabbar.static span { font-size: 11.5px; }
  .stack-easy .eline:last-child { display: none; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; grid-template-areas: "copy" "phones" "vs"; min-height: 0; row-gap: 22px; padding: 28px 0 40px; }
  .vs-mini { margin: 0 auto; }
}
@media (max-width: 700px) {
  /* Phone: the Duo shrinks to the screen width; text gets smaller to fit. */
  .duo { --w: min(100%, 380px); --h: 440px; --r: 30px; --b: 5px; width: min(100%, 380px); margin: 26px 0; }
  /* Folded it would be a very thin phone, so it grows a little (transforms do not move the layout, hence the margin above). */
  .duo[data-state="closed"] { transform: translateX(25%) scale(1.14); }
  .phones { width: 100%; }
  .phones::before { inset: 4% -10% 12%; }
  .status { padding: 10px 13px 4px; font-size: 10px; min-height: 24px; }
  .island { top: 7px; height: 16px; }
  .sb { gap: 2px; }
  .sb svg { width: auto; height: 9px; }
  .sb svg:first-child { display: none; }
  .half.left::before, .face.back::before { top: 70px; height: 22px; box-shadow: 0 34px #9a9aa0, 0 64px #9a9aa0; }
  .face.front::after, .face.back::after { top: 100px; height: 44px; }
  .scr-top { padding: 4px 9px 7px; gap: 5px; }
  .scr-top b { font-size: 12px; }
  .scr-top small { font-size: 9px; }
  .scr-top .lang { display: none; }
  .book-scr .mini-label { margin: 8px 9px 4px; }
  .book-text { padding: 0 9px 10px; font-size: 10.5px; line-height: 1.5; }
  .tab-view { padding: 8px 8px 6px; }
  .easy-scr .key, .phone-scr .key { font-size: 11.5px; padding: 7px 8px; }
  .eline { gap: 4px; padding: 4px 0; }
  .eline p { font-size: 11px; line-height: 1.4; }
  .save { width: 20px; height: 20px; font-size: 11px; }
  .tabbar { padding: 5px 4px 8px; }
  .tabbar button { font-size: 10px; padding: 7px 1px; white-space: nowrap; }
  .idea-card.dark p { font-size: 16px; }
  .idea-card p { font-size: 14px; }
  .r-note { font-size: 11.5px; }
  .sheet { left: 5px; right: 5px; bottom: 5px; padding: 12px 12px 10px; border-radius: 18px; }
  .sheet-word { font-size: 17px; }
  .sheet-mean { font-size: 12px; }
  .sheet-eg { font-size: 11px; }
  .stack-book { padding: 7px 9px 0; }
  .stack-book .book-text { font-size: 10.5px; line-height: 1.5; }
  .stack-easy { padding: 7px 9px 4px; }
  .stack-easy .key { font-size: 10.5px; padding: 6px 7px; margin-bottom: 4px; }
  .stack-easy .eline p { font-size: 10.5px; line-height: 1.35; }
  .stack-easy .eline:last-child { display: none; }
  /* Unfolded on a small phone there is room for three easy lines, not four. */
  .tab-view[data-view="easy"] .eline:last-child { display: none; }
  .tabbar.static span { font-size: 9.5px; padding: 7px 1px; white-space: nowrap; }
  .view-switch button { padding: 7px 10px; font-size: 11.5px; }
  .vs-mini p { grid-template-columns: 1fr; gap: 2px; }
}

/* Sections */
section { padding: 96px 0; }
/* Research paper example: the real paper left, easy words right. */
.paper-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 32px; }
.paper-orig { background: #fbf8ef; border: 1px solid var(--line); border-radius: 22px; padding: 30px; color: #3a3833; }
.paper-meta b { display: block; font: 700 19px/1.3 var(--serif); color: var(--ink); }
.paper-meta span { display: block; font-size: 14px; color: var(--ink-3); margin: 6px 0 16px; }
.paper-orig p { margin: 0; font: 17px/1.7 var(--serif); }
.pw { border-bottom: 2px dotted currentColor; }
.paper-easy { background: #fff; border: 1.5px solid var(--ink); border-radius: 22px; padding: 30px; }
.paper-easy .key { margin: 0 0 14px; background: var(--ink); color: #fff; border-radius: 12px; padding: 14px 16px; font: 700 19px/1.3 var(--display); }
.paper-lines { margin: 0; padding-left: 22px; display: grid; gap: 10px; font-size: 17px; line-height: 1.5; }
.paper-words { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.paper-words div { border: 1.5px solid var(--ink); border-radius: 999px; padding: 7px 14px; font-size: 14.5px; }
.paper-words dt { display: inline; font-weight: 700; }
.paper-words dt::after { content: " = "; font-weight: 400; }
.paper-words dd { display: inline; margin: 0; }
.paper-note { margin: 16px 0 0; font-size: 15px; color: var(--ink-2); }
@media (max-width: 900px) { .paper-demo { grid-template-columns: 1fr; } .paper-orig, .paper-easy { padding: 18px; } }
.sec-head { max-width: 760px; }
.sec-head p { color: var(--ink-2); font-size: 20px; margin: 18px 0 0; }
.panel { background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: 28px; border: 1px solid var(--line); padding: 56px; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.card { background: #fff; border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 26px; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
.card p { color: var(--ink-2); margin: 10px 0 0; font-size: 17.5px; }
.num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--lime); font: 700 15px var(--display); margin-bottom: 16px; }

.books-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.book { border: 1.5px solid var(--ink); border-radius: 10px; padding: 10px 14px; background: #fff; font-family: var(--serif); font-size: 16px; }
.book small { display: block; font: 12px var(--sans); color: var(--ink-3); }
.note { font-size: 15px; color: var(--ink-3); margin-top: 14px; }

/* Pricing */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; align-items: stretch; }
.prices.two { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
.price { background: #fff; border: 1.5px solid var(--ink); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; }
.price.best { background: var(--ink); color: #fff; box-shadow: 8px 8px 0 var(--lime); }
.price.best .per, .price.best li { color: #cfcfca; }
.amt { font: 700 48px/1 var(--display); letter-spacing: -0.04em; margin: 16px 0 4px; }
.per { font-size: 15px; color: var(--ink-3); }
.price ul { list-style: none; padding: 0; margin: 22px 0 0; }
.price li { padding-left: 24px; position: relative; margin-bottom: 10px; color: var(--ink-2); font-size: 16.5px; }
.price li::before { content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.price.best li::before { color: var(--lime); }
.pill { align-self: flex-start; background: var(--lime); color: var(--lime-ink); font: 700 12px/1 var(--sans); border-radius: 999px; padding: 6px 10px; }
.price .btn { margin-top: auto; }
.price .spacer { flex: 1; min-height: 22px; }
.price.best .btn { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.price.best .btn:hover { background: #c6f07a; border-color: #c6f07a; }

/* FAQ */
details { border-bottom: 1.5px solid var(--ink); padding: 20px 0; }
details:first-of-type { border-top: 1.5px solid var(--ink); }
summary { cursor: pointer; font: 700 20px var(--display); letter-spacing: -0.01em; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 400; transition: transform .2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--ink-2); margin: 12px 0 0; }

.cta { text-align: center; }
.cta .signup { margin: 30px auto 0; }

footer { padding: 44px 0 60px; font-size: 15px; color: var(--ink-3); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; border-top: 1.5px solid var(--ink); padding-top: 24px; }
.foot nav a { font-size: 15px; }

/* Routing: one HTML file, several views. */
.view { display: none; }
html:not([data-route]) .view[data-route="/"],
html[data-route="/"] .view[data-route="/"],
html[data-route="/terms"] .view[data-route="/terms"],
html[data-route="/privacy"] .view[data-route="/privacy"],
html[data-route="/refunds"] .view[data-route="/refunds"],
html[data-route="404"] .view[data-route="404"] { display: block; }

.legal { padding: 56px 0 80px; }
.legal .panel { padding: 48px; }
.legal h1 { font-size: clamp(38px, 5vw, 56px); margin-bottom: 18px; }
.legal h2 { font-size: 24px; margin: 34px 0 8px; }
.legal p, .legal li { color: var(--ink-2); }

/* Entrance animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
  .duo, .half.right, .duo::after { transition: none; }
  .term.hint { animation: none; }
}

@media (max-width: 900px) {
  .grid3, .prices, .prices.two { grid-template-columns: 1fr; }
  .panel, .legal .panel { padding: 30px 22px; border-radius: 22px; }
  section { padding: 64px 0; }
  nav a.hide-sm { display: none; }
}
@media (max-width: 520px) {
  .signup { flex-direction: column; border-radius: 22px; padding: 8px; }
  .kicker { font-size: 12.5px; padding: 6px 11px; }
  .signup input[type=email] { padding: 10px 12px; }
}
