/* Cloudy website. Plain CSS, system fonts only. */
:root {
  --sky-1: #eaf4ff;
  --sky-2: #cfe6ff;
  --ink: #0b1b33;
  --ink-2: #33465f;
  --muted: #62728a;
  --line: rgba(11, 27, 51, 0.09);
  --blue: #2a92fe;
  --blue-deep: #1677e8;
  --blue-soft: #9edbff;
  --blue-mist: #e4f2ff;
  --card: #ffffff;
  --page: #f6faff;
  --radius-xl: 34px;
  --radius-l: 22px;
  --shadow-card: 0 1px 1px rgba(11, 27, 51, 0.04), 0 18px 50px -24px rgba(20, 70, 140, 0.28);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "PingFang TC", "Heiti TC", "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  --hand: "Marker Felt", "Chalkboard SE", "Bradley Hand", "Comic Sans MS", cursive;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --mb-h: 30px;
  --pen: #1f6ff2;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--mb-h) + 16px); }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--page);
  font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
html[data-lang="zh"] body { line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: var(--blue-deep); }
button { font: inherit; color: inherit; }
kbd { font-family: var(--font); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; text-decoration: none; transition: top .2s; }
.skip:focus { top: 40px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.only-touch { display: none; }
html:not(.is-fine) .only-fine { display: none; }
html:not(.is-fine) .only-touch { display: inline; }

/* ---------- Menu bar (site nav) ---------- */
.menubar {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--mb-h);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 10px 0 14px; font-size: 13.5px; color: #10161f;
  background: rgba(246, 250, 255, 0.62);
  -webkit-backdrop-filter: saturate(1.8) blur(22px); backdrop-filter: saturate(1.8) blur(22px);
  box-shadow: 0 0.5px 0 rgba(11, 27, 51, 0.12);
}
.mb-left { display: flex; align-items: center; gap: 2px; min-width: 0; }
.mb-left a { color: inherit; text-decoration: none; padding: 3px 9px; border-radius: 6px; white-space: nowrap; }
.mb-left a:hover { background: rgba(11, 27, 51, 0.08); }
.mb-brand { display: flex; align-items: center; gap: 7px; font-weight: 700; }
.mb-logo { width: 19px; height: 19px; color: #10161f; }
.mb-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.mb-glyph { width: 18px; height: 15px; color: #10161f; flex-shrink: 0; }
.mb-batt { width: 26px; }
.mb-clock { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 500; }
.mb-pet { width: 34px; height: var(--mb-h); padding: 3px 5px; border: 0; background: none; border-radius: 6px; cursor: pointer; display: grid; place-items: center; }
.mb-pet:hover { background: rgba(11, 27, 51, 0.08); }
.mb-pet canvas { width: 24px; height: 24px; display: block; }
.lang { display: flex; background: rgba(11, 27, 51, 0.07); border-radius: 7px; padding: 2px; }
.lang button { border: 0; background: none; padding: 1px 8px; font-size: 12px; font-weight: 600; border-radius: 5px; cursor: pointer; color: var(--ink-2); }
.lang button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(11, 27, 51, 0.15); }
.mb-hint {
  position: absolute; top: calc(var(--mb-h) + 10px); right: 118px; margin: 0; pointer-events: none;
  background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; padding: 9px 14px; border-radius: 14px;
  box-shadow: 0 10px 30px -10px rgba(20, 70, 140, 0.45); opacity: 0; transform: translateY(-6px) scale(.96); transform-origin: 85% 0;
  transition: opacity .35s ease, transform .45s cubic-bezier(.3, 1.4, .5, 1);
}
.mb-hint::before { content: ""; position: absolute; top: -6px; right: 22px; width: 14px; height: 14px; background: #fff; transform: rotate(45deg); border-radius: 3px; }
.mb-hint.show { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: max(700px, 100vh); min-height: max(700px, 100svh); overflow: hidden;
  background: linear-gradient(180deg, var(--sky-1) 0%, #ddeeff 55%, var(--sky-2) 100%);
  display: grid; place-items: center; padding: calc(var(--mb-h) + 40px) 20px 90px;
}
.sky { position: absolute; inset: 0; pointer-events: none; }
.drift {
  position: absolute; left: 0; width: 280px; height: 90px; border-radius: 999px; background: #fff; opacity: .55;
  filter: blur(14px); animation: drift linear infinite; will-change: transform;
}
.drift::before, .drift::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.drift::before { width: 130px; height: 130px; left: 40px; top: -60px; }
.drift::after { width: 100px; height: 100px; left: 130px; top: -38px; }
.d1 { top: 14%; animation-duration: 120s; animation-delay: -30s; }
.d2 { top: 36%; transform: scale(.7); animation-duration: 160s; animation-delay: -95s; opacity: .45; }
.d3 { top: 62%; animation-duration: 140s; animation-delay: -60s; }
.d4 { top: 82%; animation-duration: 190s; animation-delay: -10s; opacity: .5; }
.d5 { top: 6%; animation-duration: 210s; animation-delay: -150s; opacity: .4; }
@keyframes drift { from { transform: translateX(-340px); } to { transform: translateX(calc(100vw + 60px)); } }
.hero.offscreen .drift { animation-play-state: paused; }

.hero-copy { position: relative; z-index: 3; text-align: center; max-width: 760px; pointer-events: none; }
.hero-copy a, .hero-copy button { pointer-events: auto; }
.wordmark {
  margin: 0; font-size: clamp(88px, 15vw, 212px); line-height: .9; font-weight: 800; letter-spacing: -0.058em;
  color: var(--ink); text-shadow: 0 2px 0 rgba(255, 255, 255, .6), 0 30px 80px rgba(42, 146, 254, .25);
}
.tagline { text-wrap: balance; margin: 22px auto 0; font-size: clamp(21px, 2.3vw, 28px); font-weight: 650; letter-spacing: -0.015em; color: var(--ink); max-width: 24em; line-height: 1.25; }
.hero-sub { margin: 14px auto 0; max-width: 34em; color: var(--ink-2); font-size: 17px; }
.cta-row { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.req { margin: 16px 0 0; font-size: 13.5px; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: 0 24px;
  border-radius: 16px; font-weight: 650; font-size: 17px; text-decoration: none; border: 0; cursor: pointer;
  transition: transform .2s cubic-bezier(.3, .7, .4, 1), box-shadow .2s, background-color .2s;
}
.btn:active:not(:disabled) { transform: scale(.97); }
.btn-ico { width: 20px; height: 20px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 12px 32px -10px rgba(42, 146, 254, .75); }
.btn-primary:hover:not(:disabled) { background: #1d86f5; box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 16px 40px -10px rgba(42, 146, 254, .9); }
.btn-primary:disabled { background: #b9d9fb; color: #fff; box-shadow: none; cursor: not-allowed; }
.btn-glass { background: rgba(255, 255, 255, .7); color: var(--ink); box-shadow: 0 0 0 1px rgba(11, 27, 51, .07) inset, 0 10px 30px -18px rgba(20, 70, 140, .5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-glass:hover { background: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #172b4a; }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 15.5px; border-radius: 13px; background: var(--ink); color: #fff; }
.btn-small svg { width: 18px; height: 18px; }

.drag-hint { position: absolute; left: 50%; bottom: 58px; transform: translateX(-50%); margin: 0; font-family: var(--hand); font-size: 16px; color: var(--ink-2); opacity: .75; z-index: 2; white-space: nowrap; transition: opacity .5s; }
.desk.touched ~ .drag-hint { opacity: 0; }
html:not(.is-fine) .drag-hint { display: none; }
.scroll-cue { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; font-size: 12.5px; color: var(--muted); text-decoration: none; z-index: 3; }
.scroll-cue svg { width: 20px; height: 20px; animation: nudge 2.2s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }

/* Desktop items */
.dt-item:nth-child(1) { --x: 5%; --y: 17%; }
.dt-item:nth-child(2) { --x: 3.5%; --y: 47%; }
.dt-item:nth-child(3) { --x: 12.5%; --y: 27%; }
.dt-item:nth-child(4) { --x: 6.5%; --y: 66%; }
.dt-item:nth-child(5) { --x: 21%; --y: 79%; }
.dt-item:nth-child(6) { --x: 79%; --y: 11%; }
.dt-item:nth-child(7) { --x: 76%; --y: 48%; }
.dt-item:nth-child(8) { --x: 88.5%; --y: 40%; }
.dt-item:nth-child(9) { --x: 81%; --y: 67%; }
.dt-item:nth-child(10) { --x: 69%; --y: 80%; }
.desk { position: absolute; inset: 0; z-index: 2; }
.dt-item {
  position: absolute; left: var(--x); top: var(--y); transform: rotate(var(--r, 0deg));
  touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; margin: 0;
  transition: transform .25s cubic-bezier(.3, 1.3, .5, 1), filter .2s;
}
.dt-item.dragging { cursor: grabbing; transform: rotate(calc(var(--r, 0deg) * .4)) scale(1.06); filter: drop-shadow(0 22px 26px rgba(20, 60, 120, .28)); transition: filter .2s, transform .2s; }
.dt-folder { width: 104px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 4px; border-radius: 10px; }
.folder-ico { width: 78px; height: 64px; filter: drop-shadow(0 6px 10px rgba(30, 90, 160, .22)); }
.dt-label { font-size: 13px; font-weight: 600; color: var(--ink); padding: 1px 7px; border-radius: 5px; text-align: center; line-height: 1.3; }
.dt-folder.selected { background: rgba(11, 27, 51, .07); }
.dt-folder.selected .dt-label { background: var(--blue); color: #fff; }
.dt-polaroid { width: 200px; background: #fff; padding: 10px 10px 0; border-radius: 4px; box-shadow: 0 16px 36px -16px rgba(20, 60, 120, .45), 0 1px 2px rgba(0, 0, 0, .08); }
.dt-polaroid img { width: 100%; height: auto; aspect-ratio: 1.15; object-fit: cover; object-position: 55% 30%; border-radius: 2px; background: #eef3f9; pointer-events: none; }
.dt-polaroid figcaption { font-family: var(--hand); font-size: 17px; text-align: center; padding: 8px 0 10px; color: #34405a; }
.dt-note {
  width: 168px; min-height: 150px; padding: 26px 16px 16px; background: #fff3a8; color: #4a3b12;
  font-family: var(--hand); font-size: 17px; line-height: 1.3; border-radius: 3px 3px 18px 3px;
  box-shadow: 0 14px 30px -14px rgba(120, 90, 0, .45);
}
.dt-note::before { content: ""; position: absolute; top: -10px; left: 50%; width: 70px; height: 22px; margin-left: -35px; background: rgba(158, 219, 255, .75); transform: rotate(-3deg); border-radius: 2px; }
.dt-sticker svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 8px 10px rgba(20, 60, 120, .22)); }
.dt-star { width: 78px; height: 78px; }
.dt-cloudsticker { width: 118px; height: 110px; }
.cs-outline { color: #fff; stroke: #fff; stroke-width: 14; stroke-linejoin: round; }
.cs-fill { color: #eaf6ff; }
.dt-hi { padding: 10px 18px; background: var(--blue); color: #fff; font-weight: 800; font-size: 22px; border-radius: 22px 22px 22px 6px; border: 4px solid #fff; box-shadow: 0 10px 22px -10px rgba(20, 60, 120, .5); }

/* ---------- Sections ---------- */
.section { padding: 128px 22px; position: relative; }
.wrap { max-width: 1160px; margin: 0 auto; }
.wrap.narrow { max-width: 780px; }
.center { text-align: center; }
.eyebrow { margin: 0 0 12px; font-size: 16px; font-weight: 700; color: var(--blue-deep); letter-spacing: -.005em; }
.h2 { margin: 0; font-size: clamp(38px, 5.4vw, 66px); line-height: 1.04; letter-spacing: -0.038em; font-weight: 800; max-width: 17em; }
html[data-lang="zh"] .h2 { letter-spacing: -0.01em; line-height: 1.15; }
.h2.center, .center .h2 { margin-inline: auto; }
.lede { margin: 18px 0 0; font-size: 20px; color: var(--ink-2); max-width: 36em; }
.center .lede { margin-inline: auto; }
.h3 { font-size: 26px; letter-spacing: -.02em; margin: 44px 0 12px; }
.badge { display: inline-block; background: linear-gradient(135deg, #5fb3ff, #2a7bfe); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .02em; padding: 3px 9px; border-radius: 8px; }
.badge.small { font-size: 11px; padding: 2px 7px; margin-left: 8px; }

/* ---------- Playground ---------- */
.play { background: linear-gradient(180deg, var(--sky-2) 0%, #e9f4ff 30%, var(--page) 100%); padding-top: 96px; }
.play-grid { margin-top: 40px; display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }
.pet-card {
  position: sticky; top: calc(var(--mb-h) + 24px); background: linear-gradient(180deg, #bfe0ff, #8fc6ff); border-radius: var(--radius-xl);
  padding: 22px 18px 20px; text-align: center; box-shadow: var(--shadow-card); overflow: hidden;
}
.pet-card::before { content: ""; position: absolute; inset: auto -30% -40% -30%; height: 60%; background: radial-gradient(closest-side, rgba(255, 255, 255, .7), transparent); }
.big-pet { position: relative; width: 100%; aspect-ratio: 1; border: 0; background: none; cursor: pointer; padding: 0; border-radius: 30px; }
.big-pet canvas { width: 100%; height: 100%; display: block; }
.pet-cap { position: relative; margin: 6px 0 0; font-size: 14.5px; color: #16335a; font-weight: 550; }

.demo { min-width: 0; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: rgba(11, 27, 51, .06); border-radius: 14px; margin-bottom: 16px; }
.tabs button { border: 0; background: none; padding: 8px 16px; border-radius: 10px; font-weight: 650; font-size: 15px; cursor: pointer; color: var(--ink-2); }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(11, 27, 51, .15); }

.stage { position: relative; }
.screen {
  position: relative; height: 510px; border-radius: 22px; overflow: hidden;
  background: radial-gradient(120% 90% at 20% 0%, #d6ecff 0%, #a9d2ff 45%, #7fb6f5 100%);
  box-shadow: 0 0 0 10px #1b2230, 0 0 0 11px #3a4456, 0 40px 80px -30px rgba(10, 40, 90, .55);
  margin: 11px;
}
.scr-bar { position: absolute; inset: 0 0 auto 0; height: 28px; z-index: 5; display: flex; align-items: center; gap: 14px; padding: 0 10px 0 14px; font-size: 12.5px; color: #111; background: rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.scr-dot { width: 13px; height: 13px; border-radius: 4px; background: #111; opacity: .8; }
.scr-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.scr-pet { width: 22px; height: 22px; display: block; }
.scr-clock { font-variant-numeric: tabular-nums; font-weight: 500; }

.win { position: absolute; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .18), 0 24px 50px -20px rgba(10, 40, 90, .5); display: flex; flex-direction: column; }
.win-title { height: 34px; flex-shrink: 0; display: flex; align-items: center; gap: 7px; padding: 0 12px; background: #f4f6f9; border-bottom: 1px solid #e6e9ee; position: relative; }
.win-title i { width: 11px; height: 11px; border-radius: 50%; background: #ff6159; }
.win-title i:nth-child(2) { background: #ffbd2e; }
.win-title i:nth-child(3) { background: #28c941; }
.addr { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 5px; font-size: 12px; color: #4a5566; background: #e8ebf0; padding: 3px 14px; border-radius: 7px; white-space: nowrap; }
.addr svg { width: 11px; height: 11px; color: #7a8595; }

.win-tube { left: 16px; top: 44px; bottom: 16px; right: 330px; }
.tube-head { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.tube-logo { display: flex; align-items: center; gap: 5px; font-weight: 800; font-size: 16px; letter-spacing: -.02em; }
.tube-logo svg { width: 24px; height: 24px; }
.tube-search { position: relative; flex: 1; height: 34px; border-radius: 17px; border: 1.5px solid #dfe3ea; display: flex; align-items: center; padding: 0 44px 0 14px; font-size: 14px; background: #fff; transition: border-color .2s, box-shadow .2s; min-width: 0; }
.tube-search.focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(42, 146, 254, .2); }
.tube-q { white-space: pre; overflow: hidden; }
.tube-ph { color: #9aa3b1; }
.tube-search .caret { display: none; width: 1.5px; height: 17px; background: var(--blue); margin-left: 1px; animation: blink 1s steps(1) infinite; }
.tube-search.focus .caret { display: block; }
@keyframes blink { 50% { opacity: 0; } }
.tube-go { position: absolute; right: 0; top: 0; bottom: 0; width: 42px; display: grid; place-items: center; background: #f3f5f8; border-left: 1.5px solid #dfe3ea; border-radius: 0 17px 17px 0; color: #4a5566; }
.tube-go svg { width: 16px; height: 16px; }
.enter-flash { position: absolute; right: 50px; top: 50%; transform: translateY(-50%) scale(.8); font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 6px; background: var(--ink); color: #fff; opacity: 0; pointer-events: none; }
.enter-flash.flash { animation: flash .7s ease; }
@keyframes flash { 0% { opacity: 0; transform: translateY(-50%) scale(.8); } 25% { opacity: 1; transform: translateY(-50%) scale(1.05); } 70% { opacity: 1; transform: translateY(-50%) scale(1); } 100% { opacity: 0; } }
.tube-body { flex: 1; overflow: hidden; padding: 0 14px 14px; transition: opacity .2s; }
.tube-body.loading { opacity: .35; }
.tube-h { margin: 2px 0 10px; font-size: 14px; font-weight: 750; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 12px; }
.card { min-width: 0; font-size: 12px; line-height: 1.3; animation: pop .35s cubic-bezier(.3, 1.3, .5, 1) both; }
.card:nth-child(2) { animation-delay: .04s; } .card:nth-child(3) { animation-delay: .08s; } .card:nth-child(4) { animation-delay: .12s; } .card:nth-child(5) { animation-delay: .16s; } .card:nth-child(6) { animation-delay: .2s; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.card b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 6px; font-size: 12.5px; font-weight: 650; }
.card > span:last-child { color: #6b7686; font-size: 11.5px; }
.card.pressed .thumb { transform: scale(.96); }
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; background: linear-gradient(135deg, var(--a), var(--b)); transition: transform .15s; }
.thumb svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dur { position: absolute; right: 5px; bottom: 5px; font-size: 10px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .55); padding: 1px 4px; border-radius: 4px; }
.player { display: grid; gap: 10px; animation: pop .35s ease both; }
.player-vid { position: relative; max-width: 440px; }
.player-vid .thumb { border-radius: 12px; }
.play-ico { position: absolute; left: 14px; bottom: 16px; width: 0; height: 0; border-left: 12px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.progress { position: absolute; left: 36px; right: 14px; bottom: 21px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .4); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: #fff; animation: progress 60s linear forwards; }
@keyframes progress { to { width: 100%; } }
.player-meta { display: grid; gap: 2px; font-size: 13px; color: #6b7686; }
.player-meta b { font-size: 16px; color: var(--ink); }
.now { font-size: 11px; font-weight: 800; color: #7c6cf2; text-transform: uppercase; letter-spacing: .06em; }

.win-quiz { left: 16px; right: 16px; top: 44px; bottom: 16px; display: none; }
.quiz-body { padding: 18px 22px; overflow: auto; flex: 1; background: #fbfcfe; }
.quiz-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; font-size: 13px; color: #6b7686; }
.quiz-head b { font-size: 19px; color: var(--ink); letter-spacing: -.01em; }
.quiz-qs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.q {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; text-align: left; cursor: pointer;
  background: #fff; border: 1.5px solid #e3e8ef; border-radius: 16px; padding: 16px 16px 40px; font-size: 15px; line-height: 1.4;
  transition: border-color .2s, box-shadow .2s;
}
.q[aria-pressed="true"] { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(42, 146, 254, .14); }
.q-tag { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #8b95a5; }
.q-text { font-weight: 650; font-size: 16px; }
.q-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.opt { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid #e6eaf0; border-radius: 10px; font-size: 14.5px; }
.opt i { font-style: normal; font-weight: 800; font-size: 12px; width: 21px; height: 21px; border-radius: 50%; display: grid; place-items: center; background: #eef2f7; color: #4a5566; }
.q-line { color: #a3acba; border-bottom: 1.5px dashed #cfd6e0; padding: 10px 0 6px; font-size: 14px; }
.q-point { position: absolute; left: 16px; bottom: 12px; font-size: 12px; font-weight: 700; color: var(--blue-deep); opacity: 0; transition: opacity .2s; }
.q[aria-pressed="true"] .q-point { opacity: 1; }
.scanline { position: absolute; left: 0; right: 0; top: 0; height: 40%; pointer-events: none; opacity: 0; background: linear-gradient(180deg, transparent, rgba(42, 146, 254, .16) 70%, rgba(42, 146, 254, .55) 100%); border-bottom: 2px solid rgba(42, 146, 254, .8); }
.q.scanning .scanline { animation: scan 1.4s ease-in-out; }
@keyframes scan { 0% { opacity: 0; transform: translateY(-100%); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(250%); } }

.stage[data-mode="scan"] .win-tube, .stage[data-mode="scan"] .chatbox { display: none; }
.stage[data-mode="scan"] .win-quiz { display: flex; }

/* Teach me: a worksheet Cloudy draws on */
.win-teach { left: 16px; right: 16px; top: 44px; bottom: 16px; display: none; }
.stage[data-mode="teach"] .win-tube, .stage[data-mode="teach"] .chatbox { display: none; }
.stage[data-mode="teach"] .win-teach { display: flex; }
.teach-body { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 16px 22px 84px; background: #fbfcfe; }
.teach-q { margin: 0 0 8px; font-size: 16px; font-weight: 600; color: var(--ink); max-width: 40em; }
.teach-q b { color: var(--muted); }
.teach-fig { flex: 1; min-height: 0; width: 100%; overflow: visible; }
.tri { fill: #eef5fe; stroke: #1b2433; stroke-width: 3; stroke-linejoin: round; }
.tri-sq { fill: none; stroke: #1b2433; stroke-width: 2.2; }
.tri-lab { font: 600 25px var(--font); fill: #1b2433; }
.ink-pen, .mk.pen { fill: none; stroke: var(--pen); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.ink-hl, .mk.hl { fill: none; stroke: rgba(255, 204, 38, .55); stroke-width: 18; stroke-linecap: round; mix-blend-mode: multiply; }
.ink-ok, .mk.ok { fill: none; stroke: #22b35e; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.ink-text, .mk-t { font: 30px var(--hand); fill: var(--pen); }
.listen-pill {
  position: absolute; top: 36px; right: 12px; z-index: 6; display: grid; gap: 1px; max-width: min(330px, calc(100% - 24px));
  padding: 9px 14px 10px; border-radius: 14px; background: rgba(255, 255, 255, .92); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12), 0 16px 34px -14px rgba(10, 40, 90, .5);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); pointer-events: none;
  opacity: 0; transform: translateY(-6px) scale(.97); transform-origin: 90% 0; transition: opacity .25s, transform .4s cubic-bezier(.3, 1.4, .5, 1);
}
.listen-pill.show { opacity: 1; transform: none; }
.lp-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--blue-deep); }
.listen-pill.heard .lp-label { color: #8b95a5; }
.lp-text { font-size: 15px; font-weight: 650; color: var(--ink); min-height: 1.4em; }
.lp-text:empty::after { content: "…"; color: #a3acba; }
.teach-sub {
  position: absolute; left: 50%; bottom: 26px; z-index: 6; width: max-content; max-width: calc(100% - 56px);
  display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 14px;
  background: rgba(16, 22, 32, .86); color: #fff; font-size: 15.5px; font-weight: 600; line-height: 1.35;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); pointer-events: none;
  opacity: 0; transform: translate(-50%, 8px); transition: opacity .25s, transform .35s cubic-bezier(.3, 1.3, .5, 1);
}
.teach-sub.show { opacity: 1; transform: translate(-50%, 0); }
.speaking { display: none; align-items: center; gap: 4px; flex-shrink: 0; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--blue-soft); }
.teach-sub.talking .speaking { display: inline-flex; }
.speaking svg { width: 18px; height: 18px; }
.speaking .w1, .speaking .w2 { animation: wave 1.1s ease-in-out infinite; }
.speaking .w2 { animation-delay: .2s; }
@keyframes wave { 50% { opacity: .2; } }

.toast {
  position: absolute; top: 40px; right: 14px; z-index: 6; display: flex; align-items: center; gap: 8px;
  padding: 10px 16px 10px 12px; border-radius: 14px; background: rgba(20, 24, 32, .86); color: #fff; font-size: 14px; font-weight: 650;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); opacity: 0; transform: translateY(-8px) scale(.96); pointer-events: none;
  transition: opacity .3s, transform .4s cubic-bezier(.3, 1.4, .5, 1);
}
.toast svg { width: 18px; height: 18px; color: #6fe38b; }
.toast.show { opacity: 1; transform: none; }

.chatbox {
  position: absolute; top: 55px; right: 25px; width: 300px; bottom: 27px; z-index: 4; display: flex; flex-direction: column;
  background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6);
  border-radius: 18px; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .15), 0 24px 50px -18px rgba(10, 40, 90, .5);
}
.chat-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 8px 14px; font-size: 14.5px; }
.chat-logo { width: 20px; height: 20px; color: #0b0b0c; }
.stop { margin-left: auto; display: flex; align-items: center; gap: 6px; border: 0; background: #fee7e5; color: #c0322b; font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 9px; cursor: pointer; }
.stop:disabled { background: #f0f2f5; color: #a3acba; cursor: default; }
.stop-sq { width: 8px; height: 8px; border-radius: 2px; background: currentColor; }
.chat-log { flex: 1; overflow-y: auto; padding: 4px 14px 8px; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth; }
.msg { margin: 0; font-size: 14px; line-height: 1.4; max-width: 90%; animation: pop .3s ease both; }
.msg.me { align-self: flex-end; background: #eef1f5; padding: 7px 12px; border-radius: 16px; }
.msg.cloudy { align-self: flex-start; color: #1a2433; }
.msg.status { display: flex; align-items: center; gap: 8px; color: #6b7686; }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: #aeb6c2; animation: dot 1s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 40% { transform: translateY(-3px); background: var(--blue); } }
.chat-esc { margin: 0; padding: 0 14px 6px; font-size: 11.5px; color: #8b95a5; }
.chat-form { display: flex; gap: 6px; padding: 8px; margin: 0 8px 8px; background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px #e3e8ef; }
.chat-form input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 16px; padding: 4px 6px; background: none; color: var(--ink); }
.chat-form:focus-within { box-shadow: 0 0 0 2px var(--blue); }
.send { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.send svg { width: 17px; height: 17px; }

.cursor-layer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 20; }

.controls { margin-top: 20px; min-height: 48px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 0; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 6px 16px -10px rgba(20, 70, 140, .4); padding: 10px 16px; border-radius: 14px; font-size: 15px; font-weight: 600; cursor: pointer; transition: transform .15s, box-shadow .2s; }
.chip:hover { box-shadow: 0 0 0 1.5px var(--blue), 0 8px 20px -10px rgba(42, 146, 254, .6); }
.chip:active { transform: scale(.97); }
.chip::before { content: "↗ "; color: var(--blue); font-weight: 800; }
.scanbar { display: none; align-items: center; gap: 12px; flex-wrap: wrap; }
.controls[data-mode="scan"] .chips { display: none; }
.controls[data-mode="scan"] .scanbar { display: flex; }
.teachbar { display: none; align-items: center; gap: 10px 12px; flex-wrap: wrap; }
.controls[data-mode="teach"] .chips { display: none; }
.controls[data-mode="teach"] .teachbar { display: flex; }
.talk-btn { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: none; transition: transform .2s cubic-bezier(.3, .7, .4, 1), box-shadow .2s, background-color .2s; }
.talk-btn[aria-pressed="true"] { background: var(--blue); box-shadow: 0 0 0 6px rgba(42, 146, 254, .22); transform: scale(.97); }
.teach-hint { margin: 0; flex: 1 1 240px; color: var(--ink-2); font-size: 15px; }
.teachbar .stop { margin-left: 0; padding: 9px 12px; font-size: 13.5px; }
.clear-btn { border: 0; background: #fff; box-shadow: 0 0 0 1px var(--line); padding: 8px 14px; border-radius: 9px; font-weight: 700; font-size: 13.5px; cursor: pointer; }
.clear-btn:disabled { color: #a3acba; cursor: default; }
.teach-note { flex-basis: 100%; margin: 0; font-size: 13.5px; color: var(--muted); }
.scan-hint { margin: 0; color: var(--ink-2); font-size: 15.5px; flex: 1 1 280px; }
.keys { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
kbd, .keys kbd { display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px #d9e0ea, 0 2px 0 #d9e0ea; font-size: 15px; font-weight: 600; color: var(--ink); }

/* ---------- How it works ---------- */
.how { background: var(--page); }
.how-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 26px; }
.steps li { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start; }
.step-n { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; font-weight: 800; font-size: 19px; color: #fff; background: linear-gradient(160deg, #6cc0ff, var(--blue)); box-shadow: 0 10px 22px -10px rgba(42, 146, 254, .8); }
.steps h3 { margin: 2px 0 4px; font-size: 20px; letter-spacing: -.015em; line-height: 1.3; }
.steps p { margin: 0; color: var(--ink-2); font-size: 16px; }
img[height] { height: auto; }
.shot-frame { border-radius: 26px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px rgba(20, 70, 140, .55); }
.tilt { transform: rotate(1.5deg); }
.tilt-r { transform: rotate(-1.5deg); }

/* ---------- Bento ---------- */
.features { background: #fff; }
.bento { margin-top: 52px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tile { position: relative; overflow: hidden; background: var(--page); border-radius: var(--radius-xl); padding: 36px 36px 34px; box-shadow: 0 0 0 1px rgba(11, 27, 51, .05); display: flex; flex-direction: column; min-width: 0; }
.tile h3 { margin: 0; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.03em; line-height: 1.12; font-weight: 780; }
.tile p { margin: 12px 0 0; color: var(--ink-2); font-size: 16.5px; max-width: 34em; }
.tile .badge { align-self: flex-start; margin-bottom: 14px; }
.tile.dark { background: #0c1627; color: #fff; }
.tile.dark p { color: #aebbd0; }
.t-chat { grid-column: span 4; grid-row: span 2; background: linear-gradient(180deg, #eaf5ff, #d7ebff); }
.t-cursor { grid-column: span 2; grid-row: span 2; }
.t-scan { grid-column: span 3; }
.t-keys { grid-column: span 3; }
.t-pet { grid-column: span 4; }
.t-instr { grid-column: span 2; }
.t-talk { grid-column: span 2; }
.t-teach { grid-column: span 4; }
.t-voice { grid-column: span 2; }
.t-local { grid-column: span 2; }
.t-update { grid-column: span 2; }
.tile-shot { margin: 28px -36px -34px 36px; border-radius: 16px 0 0 0; overflow: hidden; box-shadow: 0 0 0 1px rgba(11, 27, 51, .08), 0 20px 40px -20px rgba(20, 70, 140, .45); flex: 1; min-height: 200px; }
.tile-shot img { width: 100%; height: 100%; min-height: 100%; object-fit: cover; object-position: 0 0; }
.t-scan .tile-shot { max-height: 260px; }
.t-scan .tile-shot img { object-position: 30% 0; }
.cursor-art { position: relative; flex: 1; min-height: 240px; display: grid; place-items: center; }
.cursor-art > svg { width: 200px; height: 200px; animation: hover-float 4s ease-in-out infinite; }
.ghost-mouse { position: absolute; right: 12%; bottom: 14%; width: 28px; opacity: .6; }
@keyframes hover-float { 50% { transform: translate(6px, -8px) rotate(-2deg); } }
.keyrows { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.keyrows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border-radius: 16px; padding: 12px 16px; font-size: 14px; font-weight: 600; color: var(--muted); box-shadow: 0 0 0 1px var(--line); }
.kc { display: flex; align-items: center; gap: 6px; }
.kc kbd { min-width: 38px; height: 38px; font-size: 17px; }
.kc kbd.wide { min-width: 76px; font-size: 14px; }
.plus { color: var(--muted); font-weight: 700; }
.moods { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.moods li { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 650; color: var(--muted); cursor: pointer; }
.moods canvas { width: 100%; max-width: 76px; aspect-ratio: 1; }
.instr-card { margin-top: 22px; background: #fff; border-radius: 16px; padding: 16px 18px; font-size: 15px; line-height: 1.5; box-shadow: 0 0 0 1px var(--line); color: var(--ink); }
.instr-card .caret { display: inline-block; width: 2px; height: 1.1em; vertical-align: -3px; background: var(--blue); margin-left: 2px; animation: blink 1s steps(1) infinite; }
.term { margin: 22px 0 0; background: #0c1627; color: #d6e2f3; border-radius: 16px; padding: 16px 18px; font-family: var(--mono); font-size: 13.5px; line-height: 1.6; overflow-x: auto; white-space: pre; }
.term .p { color: #6fb6ff; } .term .o { color: #8a9ab3; } .term .ok { color: #6fe38b; }
.uptodate { margin-top: 22px; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 14px; padding: 10px 14px; font-size: 15px; font-weight: 650; box-shadow: 0 0 0 1px var(--line); }
.uptodate svg { width: 18px; height: 18px; color: #22b35e; }
.uptodate b { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; }
.talk-art { margin-top: 26px; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 14px; }
.talk-bubble { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 8px 16px 8px 8px; border-radius: 18px; background: rgba(255, 255, 255, .08); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset; font-weight: 650; font-size: 15px; color: #fff; }
.talk-bubble canvas { width: 46px; height: 46px; flex-shrink: 0; }
.talk-keys { display: inline-flex; align-items: center; gap: 6px; color: #aebbd0; font-size: 14px; font-weight: 600; }
.talk-keys kbd.wide { min-width: 70px; font-size: 14px; }
.teach-art { margin-top: 22px; flex: 1; display: flex; align-items: flex-end; background: #fff; border-radius: 18px; box-shadow: 0 0 0 1px var(--line); padding: 16px 18px 12px; }
.teach-art svg { width: 100%; height: auto; display: block; overflow: visible; }
.teach-art .tri { stroke-width: 2.5; }
.teach-art .mk-t { font-size: 26px; }
.voice-art { margin-top: 22px; display: grid; gap: 12px; justify-items: start; }
.voice-chip { display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px; padding: 8px 12px; font-size: 14px; font-weight: 650; box-shadow: 0 0 0 1px var(--line); }
.voice-chip svg { width: 18px; height: 18px; color: var(--blue-deep); }
.voice-set { display: grid; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: rgba(11, 27, 51, .07); }
.seg > * { padding: 5px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.seg b { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(11, 27, 51, .15); }

/* ---------- Brains ---------- */
.brains { background: linear-gradient(180deg, #fff, var(--blue-mist)); }
.brains-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.providers { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.providers li { display: inline-flex; align-items: center; background: #fff; padding: 10px 16px; border-radius: 14px; font-weight: 650; font-size: 15.5px; box-shadow: 0 0 0 1px var(--line), 0 8px 18px -12px rgba(20, 70, 140, .4); }
.privacy { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.privacy li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; font-size: 17px; color: var(--ink-2); }
.privacy svg { width: 24px; height: 24px; color: var(--blue-deep); margin-top: 1px; }

/* ---------- Pricing ---------- */
.pricing { background: var(--page); }
.plans { margin: 52px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 900px; }
.plan { background: #fff; border-radius: var(--radius-xl); padding: 36px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.plan h3 { margin: 0; font-size: 22px; letter-spacing: -.01em; }
.price { margin: 10px 0 0; display: flex; align-items: baseline; gap: 10px; }
.price b { font-size: 50px; letter-spacing: -.04em; line-height: 1; }
.price span { color: var(--muted); font-weight: 600; }
.ticks { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 12px; flex: 1; align-content: start; }
.ticks li { position: relative; padding-left: 30px; font-size: 16px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--blue-mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.3l2.6 2.6L14 7.4' fill='none' stroke='%231677e8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.plan-pro { position: relative; background: linear-gradient(180deg, #0f1d33, #0b1526); color: #fff; box-shadow: 0 0 0 1px rgba(42, 146, 254, .5), 0 30px 80px -30px rgba(42, 146, 254, .7); }
.plan-pro .price span, .plan-pro .ticks li { color: #b7c5da; }
.plan-pro .ticks li::before { background-color: rgba(42, 146, 254, .22); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.3l2.6 2.6L14 7.4' fill='none' stroke='%239edbff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plan-pro .btn-primary:disabled { background: rgba(42, 146, 254, .25); color: #cfe6ff; }
.plans-foot { text-align: center; color: var(--muted); margin: 26px auto 0; max-width: 34em; font-size: 15.5px; }

/* ---------- FAQ ---------- */
.faq { background: #fff; }
.faq-list { margin-top: 44px; display: grid; gap: 12px; }
.faq details { background: var(--page); border-radius: 20px; box-shadow: 0 0 0 1px rgba(11, 27, 51, .05); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 60px 20px 24px; font-weight: 700; font-size: 18px; position: relative; letter-spacing: -.01em; border-radius: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 5v10M5 10h10' stroke='%230b1b33' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat; box-shadow: 0 0 0 1px var(--line); transition: transform .3s cubic-bezier(.3, 1.3, .5, 1); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--ink-2); font-size: 16.5px; }
.faq details[open] p { animation: pop .3s ease both; }

.final-pet { width: 150px; height: 150px; display: block; margin: 0 auto 8px; border: 0; background: none; padding: 0; cursor: pointer; border-radius: 30px; }
.final-pet canvas { width: 100%; height: 100%; display: block; }
.final { background: linear-gradient(180deg, #fff 0%, var(--sky-1) 40%, var(--sky-2) 100%); padding-bottom: 140px; }

/* ---------- Footer ---------- */
.footer { background: var(--sky-2); padding: 28px 22px 40px; border-top: 1px solid rgba(11, 27, 51, .06); }
.footer-in { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: space-between; }
.ft-brand { display: flex; align-items: center; gap: 12px; }
.ft-brand div { display: grid; font-size: 14px; color: var(--ink-2); }
.ft-brand b { font-size: 17px; color: var(--ink); }
.ft-pet { width: 44px; height: 44px; }
.ft-links { display: flex; gap: 20px; }
.ft-links a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.ft-links a:hover { color: var(--blue-deep); }
.ft-copy { margin: 0; color: var(--muted); font-size: 14px; }

.trail { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 90; }

/* ---------- Changelog ---------- */
.cl-hero { background: linear-gradient(180deg, var(--sky-1), var(--sky-2)); padding: calc(var(--mb-h) + 90px) 22px 80px; position: relative; overflow: hidden; }
.cl-hero .h2 { position: relative; }
.cl-hero .lede { position: relative; }
.cl-list { padding: 70px 22px 120px; }
.release { display: grid; grid-template-columns: 200px 1fr; gap: 36px; max-width: 980px; margin: 0 auto; }
.release-meta { position: sticky; top: calc(var(--mb-h) + 24px); align-self: start; }
.release-meta b { display: block; font-size: 22px; letter-spacing: -.02em; }
.release-meta span { color: var(--muted); font-size: 15px; }
.release-body { background: #fff; border-radius: var(--radius-xl); padding: 36px 40px; box-shadow: var(--shadow-card); }
.release-body h2 { margin: 0 0 18px; font-size: 30px; letter-spacing: -.03em; line-height: 1.15; }
.release-body ul { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 12px; }
.release-body li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 16.5px; }
.release-body li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-mist); }
.back-link { display: inline-flex; margin-top: 26px; font-weight: 650; text-decoration: none; position: relative; }

/* ---------- Story (scroll-scrubbed studio shots) ---------- */
.story { position: relative; background: #e6e9ee; overflow-x: clip; }
.story.st-scrub { height: 600vh; }
.st-scrub .st-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.st-bg { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(120% 95% at 50% 42%, #f5f6f9 0%, #eceef2 45%, #dfe3ea 100%); }
.st-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(30, 40, 60, .09)); }
.st-bg > div { position: absolute; inset: 0; opacity: 0; }
.st-sky { background: linear-gradient(180deg, #7fc1ff 0%, #b9dcff 70%, #d6eaff 100%); }
.st-night { background: radial-gradient(120% 95% at 50% 35%, #1c2e66 0%, #0d172e 60%, #060b19 100%); }
.st-stars svg { width: 100%; height: 100%; display: block; }
.st-body { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 96px 16px; }
.st-scrub .st-body { height: 100%; padding: calc(var(--mb-h) + 16px) 16px 20px; }
.st-beats { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 1000px; text-align: center; }
.st-scrub .st-beats { position: relative; height: 176px; flex-shrink: 0; }
.st-scrub .st-beat { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; opacity: 0; will-change: transform, opacity; }
.st-line { margin: 0; font-size: clamp(40px, 5.4vw, 78px); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; text-wrap: balance; }
.st-beat { color: #1d1d1f; }
.st-foot { margin: 14px 0 0; font-size: 14px; color: #6e6e73; }
.st-scene { position: relative; flex-shrink: 0; aspect-ratio: 600 / 560; width: min(calc(100vw - 32px), calc((100vh - 280px) * 1.0714), 600px); width: min(calc(100vw - 32px), calc((100svh - 280px) * 1.0714), 600px); }
.st-scene > *, .st-actor > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.st-scene svg { overflow: visible; }
.st-actor { transform-origin: 50% 71.8%; will-change: transform; }
/* Pet canvas: 136 pet units (112 + 2 x 12 pad for the glow) at 3 scene units each, centred on (300, 290). */
.st-actor > .st-pet { left: 16%; top: 15.357%; width: 68%; height: 72.857%; }
.st-tags { pointer-events: none; }
.st-pill, .st-mark { position: absolute; left: 50%; bottom: 5%; transform: translateX(-50%); white-space: nowrap; opacity: 0; }
.st-pill { padding: 8px 18px; border-radius: 999px; font-size: 15px; font-weight: 650; color: #fff; background: rgba(255, 255, 255, .14); box-shadow: 0 0 0 1px rgba(255, 255, 255, .35) inset; }
.st-mark { font-size: 20px; font-weight: 800; letter-spacing: -.04em; color: #fff; }
/* Reduced motion: a still, stacked list. */
.story:not(.st-scrub) .st-stage > .st-bg, .story:not(.st-scrub) .st-body > .st-scene { display: none; }
.story:not(.st-scrub) .st-beats { display: grid; gap: 64px; }
.story:not(.st-scrub) .st-line { font-size: clamp(30px, 4vw, 48px); }
.st-mini { position: relative; width: min(100%, 520px); margin: 0 auto 20px; border-radius: 28px; overflow: hidden; }
.st-mini .st-scene { width: 100%; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .mb-day { display: none; }
}
@media (max-width: 1080px) {
  .play-grid { grid-template-columns: 1fr; }
  .pet-card { position: relative; top: 0; display: grid; grid-template-columns: 160px 1fr; align-items: center; gap: 16px; text-align: left; padding: 14px 22px; }
  .pet-cap { margin: 0; font-size: 16px; }
  .win-tube { right: 300px; }
  .chatbox { width: 270px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .card:nth-child(n+5) { display: none; }
}
@media (max-width: 900px) {
  .mb-link { display: none; }
  .how-grid, .brains-grid { grid-template-columns: 1fr; gap: 44px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .t-chat, .t-cursor, .t-scan, .t-keys, .t-pet, .t-instr, .t-local, .t-update, .t-talk, .t-teach, .t-voice { grid-column: span 2; grid-row: auto; }
  .t-keys, .t-instr, .t-local, .t-update, .t-voice { grid-column: span 1; }
  .moods { grid-template-columns: repeat(4, 1fr); }
  .dt-polaroid { width: 160px; }
  .d2, .d4 { display: none; }
  /* The chat box moves under the pretend screen. */
  .screen { height: 440px; }
  .win-tube { right: 16px; }
  .chatbox { position: relative; top: auto; right: auto; bottom: auto; width: auto; height: 250px; margin: 22px 0 0; background: #fff; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .card:nth-child(n+4) { display: none; }
  .release { grid-template-columns: 1fr; gap: 14px; }
  .release-meta { position: static; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .section { padding: 88px 18px; }
  .hero { padding: calc(var(--mb-h) + 150px) 16px 170px; min-height: max(640px, 100svh); }
  .wordmark { font-size: clamp(76px, 25vw, 120px); }
  .hero-sub { font-size: 16px; }
  .cta-row .btn { width: 100%; max-width: 360px; }
  .dt-item { transform: rotate(var(--r, 0deg)) scale(.78); }
  .dt-item.dragging { transform: scale(.84); }
  .dt-folder { width: 92px; }
  .m-hide { display: none; }
  .dt-item:nth-child(2), .dt-item:nth-child(3), .dt-item:nth-child(5), .dt-item:nth-child(7), .dt-item:nth-child(10) { display: none; }
  .dt-item:nth-child(1) { --x: 1%; --y: 5.5%; }
  .dt-item:nth-child(4) { --x: 2%; --y: 76%; }
  .dt-item:nth-child(6) { --x: 57%; --y: 5%; }
  .dt-item:nth-child(8) { --x: 73%; --y: 79%; }
  .dt-item:nth-child(9) { --x: 41%; --y: 83%; }
  .dt-note { width: 136px; min-height: 120px; font-size: 15px; padding: 22px 12px 12px; }
  .scroll-cue { display: none; }
  .mb-hint { right: 70px; font-size: 13px; }
  .lang button { padding: 1px 6px; }
  .play-grid { margin-top: 32px; }
  .pet-card { grid-template-columns: 110px 1fr; padding: 10px 16px; }
  .screen { height: 400px; margin: 6px; box-shadow: 0 0 0 6px #1b2230, 0 0 0 7px #3a4456, 0 30px 60px -30px rgba(10, 40, 90, .55); border-radius: 16px; }
  .scr-bar { gap: 10px; }
  .hide-sm { display: none; }
  .win-tube, .win-quiz, .win-teach { left: 8px; right: 8px; top: 36px; bottom: 8px; }
  .teach-body { padding: 10px 12px 92px; }
  .teach-q { font-size: 14px; }
  .teach-sub { bottom: 16px; max-width: calc(100% - 28px); font-size: 13.5px; padding: 8px 12px; gap: 8px; }
  .speaking > span { display: none; }
  .listen-pill { top: 32px; right: 8px; }
  .teach-hint { font-size: 14.5px; order: 1; flex-basis: 100%; }
  .teach-note { order: 2; }
  .tabs { display: flex; }
  .tabs button { flex: 1 1 auto; padding: 8px 10px; font-size: 14px; white-space: nowrap; }
  .addr { font-size: 11px; padding: 2px 10px; }
  .tube-head { padding: 8px 10px; gap: 8px; }
  .tube-logo { font-size: 14px; }
  .tube-body { padding: 0 10px 10px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card:nth-child(n+3) { display: flex; }
  .card { display: flex; flex-direction: column; }
  .card:nth-child(n+5) { display: none; }
  .quiz-body { padding: 12px; }
  .quiz-qs { grid-template-columns: 1fr; gap: 10px; }
  .q { padding: 12px 12px 32px; gap: 7px; }
  .q-text { font-size: 14.5px; }
  .opt { padding: 5px 8px; font-size: 13.5px; }
  .q-point { bottom: 9px; left: 12px; }
  .bento { grid-template-columns: 1fr; gap: 16px; }
  .t-chat, .t-cursor, .t-scan, .t-keys, .t-pet, .t-instr, .t-local, .t-update, .t-talk, .t-teach, .t-voice { grid-column: span 1; }
  .tile { padding: 28px 24px 26px; border-radius: 28px; }
  .tile-shot { margin: 24px -24px -26px 24px; min-height: 180px; }
  .cursor-art { min-height: 200px; }
  .moods { grid-template-columns: repeat(4, 1fr); }
  .plans { grid-template-columns: 1fr; }
  .plan { padding: 28px 24px; }
  .faq summary { font-size: 16.5px; padding: 18px 56px 18px 20px; }
  .faq details p { padding: 0 20px 20px; }
  .tilt, .tilt-r { transform: none; }
  .release-body { padding: 28px 22px; }
}
@media (max-width: 600px) {
  .st-scrub .st-body { flex-direction: column-reverse; gap: 14px; }
  .st-scrub .st-beats { height: 150px; }
  .st-scrub .st-beat { justify-content: flex-start; }
  .st-line { font-size: clamp(32px, 9.5vw, 42px); }
  .st-foot { font-size: 13px; margin-top: 10px; }
  .st-scene { width: min(calc(100vw - 32px), calc((100vh - 250px) * 1.0714)); width: min(calc(100vw - 32px), calc((100svh - 250px) * 1.0714)); }
  .st-pill { font-size: 13px; padding: 6px 14px; }
  .st-mark { font-size: 17px; }
}
@media (max-width: 420px) {
  .mb-glyph:not(.mb-batt) { display: none; }
  .mb-right { gap: 6px; }
  .menubar { padding: 0 6px 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .drift { animation: none; }
  .d1 { transform: translateX(8vw); } .d2 { transform: translateX(62vw) scale(.7); } .d3 { transform: translateX(80vw); } .d4 { transform: translateX(30vw); } .d5 { transform: translateX(45vw); }
}

/* ---------- Legal pages ---------- */
.legal-wrap { padding: 60px 22px 120px; }
.legal { max-width: 720px; margin: 0 auto; color: #1d2433; font-size: 16.5px; line-height: 1.65; }
.legal h2 { font-size: 21px; letter-spacing: -.01em; margin: 38px 0 10px; }
.legal p, .legal ul { margin: 0 0 14px; }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal a { color: #1a73e8; }
.legal code { font-size: .9em; background: #eef2f8; padding: 1px 6px; border-radius: 6px; }
.legal-date { color: #6b7688; font-size: 14px; }
.legal-summary { background: #eef6ff; border: 1px solid #d6e7fb; border-radius: 18px; padding: 6px 22px 10px; margin: 18px 0 8px; }
.legal-summary h2 { margin-top: 16px; }
mark.fill { background: #fff3b0; color: inherit; padding: 0 4px; border-radius: 4px; }
.ft-legal { flex-basis: 100%; margin: 6px 0 0; font-size: 12px; color: #8a94a6; }
