/* ------------------------------------------------------------------
   Lock&Learn marketing site.
   One design system, three app worlds. The canvas is each app's dark
   "lockwall" (mirrors teaser/config.py and the store shots.html files;
   note: never write a glob with star-slash in these comments, it
   terminates the comment block and corrupts the next rule). Three
   voices: content speaks serif, the interface whispers sans, meta is
   mono. Sections are distinct rooms: numbered heads, tinted bands, and
   product cards that show the widget rather than describe it. Worlds
   are themed with [data-app] so a page, a section or a card can each
   carry its own app identity.
   ------------------------------------------------------------------ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --sans: 'Inter', -apple-system, 'Helvetica Neue', sans-serif;
  --serif: 'Source Serif 4', 'Iowan Old Style', Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --hanzi: var(--serif);

  --ink: rgba(255,255,255,.96);
  --ink-2: rgba(255,255,255,.68);
  --ink-3: rgba(255,255,255,.42);
  --hair: rgba(255,255,255,.14);
  --hair-2: rgba(255,255,255,.08);
  --panel: rgba(255,255,255,.045);

  /* neutral (family) world — indigo night, mint accent */
  --w0: #2E3280; --w1: #1B1E4E; --w2: #0B0C22;
  --glow: 150,162,255;
  --tint: #45D6A0;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

[data-app="trivia"] {
  --w0: #3A3F9E; --w1: #23265F; --w2: #0E0F2C;
  --glow: 150,162,255;
  --tint: #45D6A0;
  --hanzi: var(--serif);
}
[data-app="chinese"] {
  --w0: #6E2418; --w1: #38110A; --w2: #140705;
  --glow: 255,138,100;
  --tint: #F5926B;
  --hanzi: 'Noto Serif SC', var(--serif);
}
[data-app="japanese"] {
  --w0: #1F5474; --w1: #0F2C42; --w2: #060D16;
  --glow: 120,190,235;
  --tint: #78BEEB;
  --hanzi: 'Noto Serif JP', var(--serif);
}
[data-app="korean"] {
  --w0: #2450A8; --w1: #12295E; --w2: #060E21;
  --glow: 124,165,240;
  --tint: #7CA5F0;
  --hanzi: 'Noto Serif KR', var(--serif);
}
[data-app="arabic"] {
  --w0: #166355; --w1: #0B332C; --w2: #041511;
  --glow: 95,215,196;
  --tint: #4FD1BE;
  --hanzi: 'Noto Naskh Arabic', var(--serif);
}
/* Arabic vowel marks (harakat) stack above and below the letters; the
   headword slots need a taller line box so the marks never clip. */
[data-app="arabic"] .lockword .whanzi,
[data-app="arabic"] .float-card .fh,
[data-app="arabic"] .wcard .hanzi,
[data-app="arabic"] .app-card .showpiece .hz { line-height: 1.5; }

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  background: var(--w2);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: color-mix(in srgb, var(--tint) 30%, transparent); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.shell { max-width: 1200px; margin: 0 auto; padding: 0 min(5vw, 56px); }

/* film grain — the quiet thing that makes flat color feel like material */
.grain {
  position: fixed; inset: -50%; z-index: 200; pointer-events: none;
  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='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  opacity: .05;
  animation: grain 9s steps(6) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0) }
  20% { transform: translate(-6%,4%) }
  40% { transform: translate(4%,-7%) }
  60% { transform: translate(-3%,-4%) }
  80% { transform: translate(6%,6%) }
}

/* mono meta text */
.m {
  font-family: var(--mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-3);
}
.m.tint { color: var(--tint); }

/* ------------------------------------------------------------------ header */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.top.scrolled {
  background: color-mix(in srgb, var(--w2) 72%, transparent);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom-color: var(--hair-2);
}
.top-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 min(5vw, 56px);
  height: 72px; display: flex; align-items: center;
}
.wordmark {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: .22em; color: var(--ink);
}
.top-nav { margin-left: auto; display: flex; align-items: center; gap: 30px; }
.top-nav a {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3);
  transition: color .25s;
}
.top-nav a:hover { color: var(--ink); }
.top-nav a.here { color: var(--tint); }
.top-nav .e { letter-spacing: 0; margin-right: 7px; font-size: 12px; }

/* ------------------------------------------------------------------ prose
   Long-form pages (support) in the same voice as the rest of the site. */
.prose { max-width: 680px; margin-top: 8px; }
.prose h3 {
  font-family: var(--serif);
  font-size: 22px; font-weight: 600; letter-spacing: -.2px;
  margin-top: 44px;
  padding-top: 26px; border-top: 1px solid var(--hair-2);
}
.prose p { font-size: 15px; line-height: 1.75; color: var(--ink-2); margin-top: 12px; }
.prose a { color: var(--tint); }
.prose a:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh;
  display: flex; align-items: center;
  /* symmetric padding keeps the flex-centered content on the true middle;
     92px also clears the 72px fixed header */
  padding: 92px 0;
}
.hero-bg, .hero-bg .wall-layer { position: absolute; inset: 0; }
.hero-bg .wall-layer {
  opacity: 0; transition: opacity 1.1s ease;
  background:
    radial-gradient(85% 60% at 74% 4%, rgba(var(--glow),.30), rgba(var(--glow),0) 70%),
    linear-gradient(180deg, var(--w0) 0%, var(--w1) 52%, var(--w2) 100%);
}
.hero-bg .wall-layer.on { opacity: 1; }
.hero-vignette {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 55%, var(--w2) 100%);
}
.hero-grid {
  position: relative; width: 100%;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px); align-items: center;
}

/* masked line reveal — headlines rise out of their own baseline.
   The mask window extends below the baseline so descenders (g, y, j)
   are not cropped by the tight line-height; the negative margin gives
   the extra window back so line spacing stays optically identical. */
.lines .l { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.lines .l > span {
  display: block;
  transform: translateY(114%);
  transition: transform 1s var(--ease);
}
.lines.in .l:nth-child(1) > span { transition-delay: .05s; }
.lines.in .l:nth-child(2) > span { transition-delay: .13s; }
.lines.in .l:nth-child(3) > span { transition-delay: .21s; }
.lines.in .l > span { transform: none; }

h1.display {
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 86px);
  line-height: 1.02; font-weight: 550; letter-spacing: -.025em;
  margin-top: 22px;
}
h1.display em { font-style: italic; font-weight: 500; color: var(--tint); }
.hero-sub {
  margin-top: 28px; max-width: 440px;
  font-size: 16.5px; line-height: 1.7; color: var(--ink-2);
}

/* world switcher — index hero */
.worlds { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 18px 32px; }
.w-tab {
  position: relative; padding: 4px 0 10px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3);
  transition: color .3s;
}
.w-tab i { font-style: normal; margin-right: 9px; opacity: .55; }
.w-tab::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  height: 1px; width: 100%; background: var(--hair-2);
}
.w-tab::before {
  content: ''; position: absolute; left: 0; bottom: 0; z-index: 1;
  height: 1px; width: 0; background: var(--tint);
  transition: width .5s var(--ease);
}
.w-tab:hover { color: var(--ink); }
.w-tab.on { color: var(--ink); }
.w-tab.on::before { width: 100%; }
.world-line {
  margin-top: 24px; min-height: 64px; max-width: 460px;
  font-family: var(--serif); font-style: italic;
  font-size: 19px; line-height: 1.55; font-weight: 450;
  color: var(--ink-2);
  transition: opacity .35s ease;
}
.world-line.fade { opacity: 0; }
.world-line a {
  font-family: var(--mono); font-style: normal; font-size: 11px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--tint); white-space: nowrap; margin-left: 10px;
}
.world-line a:hover { border-bottom: 1px solid var(--tint); }

/* store action */
.store-row { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.btn-store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 28px; border-radius: 999px;
  background: var(--ink); color: #0C0D16;
  font-size: 14.5px; font-weight: 600; letter-spacing: -.1px;
  box-shadow: 0 16px 44px rgba(0,0,0,.4);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.btn-store:hover { transform: translateY(-2px); box-shadow: 0 22px 54px rgba(0,0,0,.5); }
.store-note { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }

/* ------------------------------------------------------------------ phone */
.phone-stage { position: relative; display: flex; justify-content: center; will-change: transform; }
.phone {
  position: relative; width: 306px; height: 626px;
  border-radius: 50px; background: #000; overflow: hidden;
  box-shadow:
    0 0 0 5px #17151F, 0 0 0 6px rgba(255,255,255,.06),
    0 60px 130px rgba(0,0,0,.6);
  text-align: center; color: #fff;
}
.phone .screen {
  position: absolute; inset: 0;
  background:
    radial-gradient(85% 50% at 50% 8%, rgba(var(--glow),.34), rgba(var(--glow),0) 70%),
    radial-gradient(70% 26% at 50% 30%, rgba(var(--glow),.22), rgba(var(--glow),0) 75%),
    linear-gradient(180deg, var(--w0) 0%, var(--w1) 50%, var(--w2) 100%);
}
.island {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 82px; height: 25px; border-radius: 14px; background: #000;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}
.lock-icon { padding-top: 54px; opacity: .85; }
.lock-date { margin-top: 6px; font-size: 13.5px; font-weight: 600; opacity: .92; }
.lock-clock {
  font-size: 88px; font-weight: 600; line-height: 1.02; margin-top: -2px;
  letter-spacing: -1px;
  color: rgba(255,255,255,.60);
  text-shadow:
    0 1px 1px rgba(255,255,255,.30),
    0 -1px 2px rgba(0,0,20,.38),
    0 0 18px rgba(var(--glow),.42),
    0 8px 22px rgba(0,0,15,.35);
}
.lockword {
  margin: 22px auto 0; width: 240px; text-align: left;
  color: rgba(255,255,255,.97);
  text-shadow: 0 1px 5px rgba(0,0,10,.42);
  transition: opacity .3s ease, transform .3s ease;
}
.lockword.fade { opacity: 0; transform: translateY(6px); }
.lockword .wchip {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--mono);
  font-size: 8.5px; font-weight: 500; letter-spacing: .2em; opacity: .9;
}
.lockword .wchip .dot { width: 5px; height: 5px; border-radius: 50%; background: #fff; }
.lockword .wq {
  font-family: var(--serif);
  font-size: 15.5px; font-weight: 600; line-height: 1.3; margin-top: 6px;
  max-width: 210px;
}
.lockword .whanzi {
  font-family: var(--hanzi);
  font-size: 27px; font-weight: 600; line-height: 1.15; margin-top: 5px;
}
.lockword .wreading { font-size: 12px; font-weight: 500; opacity: .78; margin-top: 3px; }
.lockword .whint { font-size: 10px; font-weight: 500; opacity: .55; margin-top: 7px; }
.lock-bottom {
  position: absolute; bottom: 34px; left: 0; right: 0;
  display: flex; justify-content: space-between; padding: 0 34px;
}
.lock-circle {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.13);
  display: flex; align-items: center; justify-content: center;
}
.home-bar {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.45);
}

/* floating widget cards */
.float-card {
  position: absolute; z-index: 2;
  padding: 14px 18px; border-radius: 14px;
  background: color-mix(in srgb, var(--w2) 55%, rgba(5,5,12,.6));
  border: 1px solid var(--hair);
  box-shadow: 0 30px 70px rgba(0,0,0,.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: left;
  transition: opacity .35s ease;
  animation: drift 9s ease-in-out infinite;
}
@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
.float-card.fade { opacity: 0; }
.float-card .fh {
  font-family: var(--hanzi);
  font-size: 23px; font-weight: 600; line-height: 1.2; color: var(--ink);
}
.float-card .fq {
  font-family: var(--serif);
  font-size: 14.5px; font-weight: 600; line-height: 1.35; color: var(--ink);
  max-width: 170px;
}
.float-card .fr { font-size: 11.5px; font-weight: 500; color: var(--ink-2); margin-top: 2px; }
.float-card .fm {
  font-family: var(--mono); font-size: 9px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3); margin-top: 5px;
}
.f1 { top: 9%; left: -2%; animation-delay: -2.2s; }
.f2 { top: 45%; right: -4%; animation-delay: -4.6s; }
.f3 { bottom: 8%; left: 2%; animation-delay: -1.2s; }

/* ------------------------------------------------------------------ sections */
.sec { position: relative; padding: clamp(84px, 11vh, 130px) 0; }
/* a "band" section is its own room: tinted floor, hairline walls */
.sec.band {
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(var(--glow),.07), rgba(var(--glow),0) 70%),
    color-mix(in srgb, var(--w1) 30%, transparent);
  border-top: 1px solid var(--hair-2);
  border-bottom: 1px solid var(--hair-2);
}
.sec-head { max-width: 720px; }
.sec-head .m { display: block; }
.sec-head h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 3.8vw, 50px);
  line-height: 1.06; font-weight: 550; letter-spacing: -.02em;
  margin-top: 16px; text-wrap: balance;
}
.sec-head h2 em { font-style: italic; font-weight: 500; color: var(--tint); }
.sec-head .lede {
  margin-top: 16px; max-width: 540px;
  font-size: 15.5px; line-height: 1.7; color: var(--ink-2);
}

/* ------------------------------------------------------------------ widget cards
   The product, shown: same anatomy as the real widget and reveal. */
.cards3 {
  margin-top: 52px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.wcard {
  position: relative;
  border-radius: 24px; padding: 26px 28px 28px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(var(--glow),.14), rgba(var(--glow),0) 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--w1) 80%, var(--w0) 8%), var(--w2));
  border: 1px solid rgba(255,255,255,.11);
  box-shadow: 0 30px 70px rgba(0,0,0,.38);
}
.wcard .step {
  position: absolute; top: 26px; right: 26px;
}
.wcard .chip {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--mono);
  font-size: 10px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--tint);
}
.wcard .chip .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--tint);
  box-shadow: 0 0 10px 1px color-mix(in srgb, var(--tint) 60%, transparent);
}
.wcard .q {
  font-family: var(--serif);
  font-size: 22px; font-weight: 600; line-height: 1.3; margin-top: 16px;
  text-wrap: balance;
}
.wcard .hanzi {
  font-family: var(--hanzi);
  font-size: 52px; font-weight: 600; line-height: 1.08; margin-top: 16px;
  text-shadow: 0 8px 50px rgba(var(--glow),.3);
}
.wcard .reading { font-size: 14.5px; font-weight: 500; color: var(--ink-2); margin-top: 8px; }
.wcard .guess {
  font-family: var(--serif); font-style: italic;
  font-size: 24px; font-weight: 500; line-height: 1.35; margin-top: 16px;
  color: var(--ink);
}
.wcard .meaning {
  font-family: var(--serif);
  font-size: 26px; font-weight: 600; letter-spacing: -.3px; margin-top: 14px;
}
.wcard .body { font-size: 14px; line-height: 1.65; color: var(--ink-2); margin-top: 12px; }
.wcard .hint { font-size: 12.5px; color: var(--ink-3); margin-top: 16px; }
.wcard .src { display: block; margin-top: 16px; }
.wcard .example {
  margin-top: 18px; border-radius: 14px; padding: 15px 17px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.09);
}
.wcard .example .zh { font-family: var(--hanzi); font-size: 19px; font-weight: 500; line-height: 1.5; }
.wcard .example .py { font-size: 12.5px; color: var(--ink-2); margin-top: 5px; }
.wcard .example .tr { font-family: var(--serif); font-style: italic; font-size: 13.5px; color: var(--ink-3); margin-top: 3px; }
.wcard .blur-wrap {
  position: relative; margin-top: 16px; border-radius: 14px; overflow: hidden;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
  padding: 16px 18px;
}
.wcard .blurred { font-family: var(--serif); font-size: 18px; font-weight: 600; line-height: 1.35; filter: blur(9px); opacity: .8; }
.wcard .veil {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .22em;
}

/* ------------------------------------------------------------------ family cards (index) */
.family {
  margin-top: 52px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
}
.app-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  border-radius: 26px; padding: 24px 20px 22px; min-height: 380px;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(var(--glow),.30), rgba(var(--glow),0) 70%),
    linear-gradient(180deg, var(--w0) 0%, var(--w1) 55%, var(--w2) 100%);
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: 0 30px 70px rgba(0,0,0,.35);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.app-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--tint) 45%, transparent);
  box-shadow: 0 44px 90px rgba(0,0,0,.5);
}
.app-card .tag { align-self: flex-start; }
.app-card .showpiece {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  text-align: center; padding: 28px 0 22px;
}
.app-card .showpiece .hz {
  font-family: var(--hanzi);
  font-size: 54px; font-weight: 600; line-height: 1.05;
  text-shadow: 0 6px 50px rgba(var(--glow),.35);
}
.app-card .showpiece .rd { font-size: 13.5px; color: var(--ink-2); margin-top: 10px; }
.app-card .showpiece .qz {
  font-family: var(--serif);
  font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -.3px;
  text-wrap: balance; padding: 0 4px;
  text-shadow: 0 6px 50px rgba(var(--glow),.35);
}
.app-card h3 { font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: -.3px; }
.app-card .about { font-size: 12.5px; line-height: 1.6; color: var(--ink-2); margin-top: 7px; min-height: 44px; }
.app-card .go {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--tint);
}
.app-card .go svg { transition: transform .3s var(--ease); }
.app-card:hover .go svg { transform: translateX(5px); }
.family-note { margin-top: 26px; text-align: center; }

/* tag chip — mono label in a tinted pill */
.tag {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--tint);
  padding: 8px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--tint) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--tint) 30%, transparent);
}
.tag .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--tint);
  box-shadow: 0 0 12px 2px color-mix(in srgb, var(--tint) 60%, transparent);
}

/* ------------------------------------------------------------------ feature tiles */
.tiles {
  margin-top: 52px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.tile {
  border-radius: 20px; padding: 26px 24px;
  background: var(--panel);
  border: 1px solid var(--hair-2);
  transition: border-color .3s, background .3s;
}
.tile:hover { border-color: var(--hair); background: rgba(255,255,255,.06); }
.tile .m { display: block; }
.tile h4 { font-size: 16px; font-weight: 600; letter-spacing: -.15px; margin-top: 14px; }
.tile p { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); margin-top: 8px; }

/* ------------------------------------------------------------------ packs / levels */
.packs {
  margin-top: 48px;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.packs.center { justify-content: center; }
.pack {
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  padding: 12px 22px; border-radius: 999px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.13);
  transition: all .3s ease;
}
.pack:hover {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--tint) 50%, transparent);
  background: color-mix(in srgb, var(--tint) 10%, transparent);
  transform: translateY(-2px);
}
.pack.free {
  color: var(--tint);
  border-color: color-mix(in srgb, var(--tint) 45%, transparent);
  background: color-mix(in srgb, var(--tint) 10%, transparent);
}
.pack.free small {
  font-family: var(--mono); font-size: 9px; font-weight: 500;
  letter-spacing: .16em; margin-left: 8px; vertical-align: 1px;
}
.packs-note { margin-top: 22px; }

/* ------------------------------------------------------------------ faq */
.faq { margin-top: 52px; max-width: 780px; border-top: 1px solid var(--hair-2); }
.faq details { border-bottom: 1px solid var(--hair-2); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: baseline; justify-content: space-between; gap: 28px;
  padding: 24px 0;
  font-family: var(--serif);
  font-size: 19px; font-weight: 600; letter-spacing: -.2px; line-height: 1.35;
  transition: color .25s;
}
.faq summary:hover { color: var(--tint); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--mono); font-size: 16px; font-weight: 400;
  color: var(--tint); flex: none;
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 44px 26px 0; font-size: 14.5px; line-height: 1.75; color: var(--ink-2); max-width: 660px; }
.faq .a a { color: var(--tint); }
.faq .a a:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ plus panel */
.plus-panel {
  margin-top: 52px;
  border-radius: 30px; padding: clamp(30px, 4vw, 48px);
  background:
    radial-gradient(110% 130% at 88% 0%, rgba(var(--glow),.20), rgba(var(--glow),0) 60%),
    linear-gradient(180deg, color-mix(in srgb, var(--w1) 85%, var(--w0) 6%), var(--w2));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 30px 70px rgba(0,0,0,.35);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.plus-panel h3 {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; letter-spacing: -.4px;
  line-height: 1.15; margin-top: 14px; text-wrap: balance;
}
.plus-panel .lead { margin-top: 14px; font-size: 15px; line-height: 1.7; color: var(--ink-2); max-width: 460px; }
.price-cards { display: flex; flex-direction: column; gap: 12px; }
.price {
  border-radius: 18px; padding: 20px 24px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.13);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.price.hot {
  border-color: color-mix(in srgb, var(--tint) 50%, transparent);
  background: color-mix(in srgb, var(--tint) 8%, transparent);
}
.price .pl { font-size: 15.5px; font-weight: 600; }
.price .ps { display: block; font-size: 12.5px; font-weight: 400; color: var(--ink-3); margin-top: 3px; }
.price .badge {
  flex: none;
  font-family: var(--mono); font-size: 9px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--tint); padding: 6px 11px; border-radius: 999px;
  background: color-mix(in srgb, var(--tint) 14%, transparent);
}

/* ------------------------------------------------------------------ CTA */
.cta {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(110px, 16vh, 190px) 0;
}
.cta .glowup {
  position: absolute; inset: auto 0 0 0; height: 70%; pointer-events: none;
  background: radial-gradient(55% 100% at 50% 100%, rgba(var(--glow),.22), rgba(var(--glow),0) 75%);
}
.cta h2 {
  position: relative;
  font-family: var(--serif);
  font-size: clamp(38px, 5.6vw, 78px);
  font-weight: 550; line-height: 1.04; letter-spacing: -.025em; text-wrap: balance;
}
.cta h2 em { font-style: italic; font-weight: 500; color: var(--tint); }
.cta .store-row { justify-content: center; position: relative; }

/* ------------------------------------------------------------------ footer */
footer { border-top: 1px solid var(--hair-2); }
.foot-inner {
  max-width: 1200px; margin: 0 auto; padding: 56px min(5vw, 56px) 64px;
  display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between;
}
.foot-brand p { max-width: 240px; margin-top: 14px; font-size: 13px; line-height: 1.7; color: var(--ink-3); }
.foot-cols { display: flex; gap: clamp(40px, 6vw, 96px); }
.foot-col .m { display: block; margin-bottom: 16px; }
.foot-col a { display: block; font-size: 13.5px; color: var(--ink-2); padding: 5px 0; transition: color .25s; }
.foot-col a:hover { color: var(--ink); }

/* ------------------------------------------------------------------ reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .lines .l > span { opacity: 1; transform: none; transition: none; }
  .float-card, .grain { animation: none; }
}

/* ------------------------------------------------------------------ responsive */
/* Laptop displays (a 14" MacBook reads the site a touch large) render the
   whole page at 90%; desktop-class widths keep 100%. Viewport units ignore
   zoom, so the full-height hero compensates. */
@media (min-width: 981px) and (max-width: 1760px) {
  body { zoom: 0.9; }
  .hero { min-height: calc(100svh / 0.9); }
}
@media (max-width: 980px) {
  .hero { min-height: 0; padding: 140px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 72px; }
  .cards3 { grid-template-columns: 1fr; }
  .family { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .plus-panel { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .top-nav { gap: 18px; }
  .top-nav a:not(.keep) { display: none; }
  .f2 { display: none; } /* would cover the phone's widget on narrow screens */
  .f1 { top: 1%; left: 0; } /* above the clock, not on it */
  .worlds { gap: 22px; }
  h1.display { font-size: 42px; }
  .tiles { grid-template-columns: 1fr; }
  .family { grid-template-columns: 1fr; }
}
