/* Shared by the landing page and the PANDA guide. Colours and type match the studio (src/web/styles.css). */
:root {
  color-scheme: dark;
  --bg: #121214; --panel: #17171a; --card: #1d1d21; --raised: #25252a;
  --line: rgb(255 255 255 / .08); --line-strong: rgb(255 255 255 / .14);
  --ink: #ececef; --ink-2: #a3a3ad; --ink-3: #9b9ba7;
  --accent: #6846e0; --accent-hover: #7655ee; --accent-2: #a991ff; --accent-soft: rgb(124 92 255 / .14);
  --money: #f5a524; --ok: #4ade80;
  /* The video's own caption colours, used sparingly on the guide. */
  --cap-yellow: #ffd628; --cap-red: #e2493a;
  --display: "Bricolage Grotesque", "Figtree", ui-sans-serif, system-ui, "PingFang SC", sans-serif;
  --sans: Figtree, ui-sans-serif, system-ui, -apple-system, "PingFang SC", "Noto Sans SC", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1080px;
}
* { box-sizing: border-box }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100% }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased }
::selection { background: rgb(124 92 255 / .35) }
img, video { display: block; max-width: 100% }
h1, h2, h3, p, figure, ol, ul { margin: 0 }
a { color: var(--accent-2); text-underline-offset: 3px }
a:hover { color: #c3b3ff }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto }
.muted { color: var(--ink-2) }

/* Top bar */
.top { border-bottom: 1px solid var(--line) }
.top .wrap { height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 750; font-size: 19px; letter-spacing: -.03em; text-decoration: none }
.brand:hover { color: var(--ink) }
.brand svg { width: 26px; height: 26px }
.top nav { display: flex; align-items: center; gap: 22px; font-size: 14.5px }
.top nav a { color: var(--ink-2); text-decoration: none }
.top nav a:hover { color: var(--ink) }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border: 0; border-radius: 11px; background: var(--accent); color: #fff; font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap }
.btn:hover { background: var(--accent-hover); color: #fff }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 9px }
.top nav a.btn { color: #fff }

/* Type */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2) }
h1, h2, .brand, .card-title { font-family: var(--display) }
h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); line-height: 1; letter-spacing: -.04em; font-weight: 800; text-wrap: balance }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.25rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 750; text-wrap: balance }
h3 { font-size: 1.12rem; line-height: 1.3; letter-spacing: -.015em; font-weight: 640 }
.lede { font-size: clamp(1.06rem, 2vw, 1.22rem); line-height: 1.55; color: var(--ink-2); max-width: 34em; text-wrap: pretty }

/* Sign-up form */
.notify { display: flex; flex-wrap: wrap; gap: 10px; max-width: 460px }
.notify input[type=email] { flex: 1 1 220px; min-width: 0; min-height: 48px; padding: 0 15px; border: 1px solid var(--line-strong); border-radius: 11px; background: var(--card); color: var(--ink); font: 16px var(--sans) }
.notify input[type=email]::placeholder { color: var(--ink-3) }
.notify input[type=email]:focus { outline: 2px solid var(--accent-2); outline-offset: 1px; border-color: transparent }
.notify .btn { min-height: 48px }
.notify .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0 }
.notify-note { margin-top: 10px; font-size: 13.5px; color: var(--ink-3) }
.notify-msg { font-size: 15px }
.notify-msg:empty { display: none }
.notify-msg.ok { color: var(--ok) }
.notify-msg.bad { color: #f87171 }
.notify-done { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border: 1px solid rgb(74 222 128 / .35); border-radius: 11px; background: rgb(74 222 128 / .08); color: var(--ink); font-size: 15px; max-width: 460px }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap }

/* A 9:16 video in a quiet frame */
.phone { position: relative; width: 100%; aspect-ratio: 9 / 16; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 22px; background: #0b0b0d; box-shadow: 0 30px 80px -30px rgb(0 0 0 / .8) }
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover }

/* Landing */
.hero { padding: clamp(44px, 8vw, 92px) 0 0; overflow: hidden; text-align: center }
.hero-copy { display: grid; gap: 22px; justify-items: center }
.hero h1 { font-size: clamp(2.7rem, 8.4vw, 5.6rem); max-width: 12em }
.hero h1 em { font-style: normal; color: var(--cap-yellow) }
.hero .lede { max-width: 30em }
.hero .notify { justify-content: center; width: 100% }
.hero #notify { width: 100%; display: grid; justify-items: center }

/* Five clips fanned out under the headline; the middle one is the whole video. */
.fan { display: flex; justify-content: center; align-items: flex-end; margin-top: clamp(40px, 6vw, 72px); padding-bottom: 8px }
.fan .phone { flex: none; width: clamp(118px, 16vw, 200px); margin: 0 clamp(-22px, -1.4vw, -8px); border-radius: clamp(14px, 2vw, 22px) }
.fan .phone:nth-child(1) { transform: rotate(-9deg) translateY(34px) }
.fan .phone:nth-child(2) { transform: rotate(-4.5deg) translateY(10px); z-index: 1 }
.fan .phone:nth-child(3) { width: clamp(180px, 23vw, 290px); z-index: 2 }
.fan .phone:nth-child(4) { transform: rotate(4.5deg) translateY(10px); z-index: 1 }
.fan .phone:nth-child(5) { transform: rotate(9deg) translateY(34px) }
.fan-note { margin-top: 52px; padding-bottom: clamp(40px, 6vw, 72px); font-size: 13.5px; color: var(--ink-3) }

section.band { padding: clamp(56px, 9vw, 112px) 0; border-top: 1px solid var(--line) }
.section-head { display: grid; gap: 12px; margin: 0 auto clamp(30px, 5vw, 52px); max-width: 40em; text-align: center; justify-items: center }
.section-head h2 { font-size: clamp(2rem, 5vw, 3.2rem) }

/* The four checkpoints, each shown with the real thing made at that step. */
.line { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 22px) }
.line li { display: grid; gap: 14px; align-content: start }
.tile { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 20px; border: 1px solid var(--line-strong); background: var(--panel) }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover }
.tile .ok { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 8px; border-radius: 999px; background: rgb(18 18 20 / .82); color: #fff; font-size: 13px; font-weight: 600; backdrop-filter: blur(6px) }
.tile .ok svg { width: 16px; height: 16px; color: var(--ok) }
.tile.paper { background: #f1eadb; color: #1c1a17; display: grid; align-content: center; gap: 12px; padding: clamp(14px, 2vw, 24px) clamp(14px, 2vw, 24px) 54px }
.tile.paper .zh { color: #1c1a17; font-size: clamp(1.05rem, 2.1vw, 1.6rem); font-weight: 700; line-height: 1.35; letter-spacing: .02em }
.tile.paper small { font-size: clamp(.78rem, 1.2vw, .9rem); line-height: 1.4; color: #5d564a }
.tile.paper .tag { font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #8a8171 }
.line h3 { font: 700 1.3rem/1.2 var(--display); letter-spacing: -.02em; display: flex; align-items: baseline; gap: 10px }
.line h3 span { font: 600 12.5px var(--mono); color: var(--accent-2) }
.line p { font-size: 15px; color: var(--ink-2); line-height: 1.5 }

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px) }
.trio article { display: grid; gap: 10px; align-content: start }
.trio svg { width: 34px; height: 34px; color: var(--cap-yellow); margin-bottom: 6px }
.trio h3 { font: 700 1.4rem/1.2 var(--display); letter-spacing: -.02em }
.trio p { color: var(--ink-2); font-size: 15.5px }

.proof { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: stretch; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 24px; background: var(--panel); color: var(--ink); text-decoration: none }
.proof:hover { color: var(--ink); border-color: rgb(255 255 255 / .26) }
.proof-art { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); min-height: 280px }
.proof-art img { width: 100%; height: 100%; object-fit: cover }
.proof-copy { display: grid; gap: 14px; align-content: center; justify-items: start; padding: clamp(24px, 4vw, 48px) }
.proof-copy h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem) }
.proof-copy p { color: var(--ink-2) }
.arrow-link { color: var(--accent-2); font-weight: 650 }

.closing { text-align: center }
.closing .wrap { display: grid; gap: 20px; justify-items: center }
.closing h2 { font-size: clamp(2.2rem, 6vw, 4rem) }
.closing .notify { justify-content: center; width: 100% }
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--ink-3); font-size: 14px }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between }
footer a { color: var(--ink-2) }
@media (max-width: 860px) {
  .line { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px }
  .trio { grid-template-columns: minmax(0, 1fr) }
  .proof { grid-template-columns: minmax(0, 1fr) }
  .proof-art { min-height: 0; aspect-ratio: 27 / 16 }
}
@media (max-width: 640px) {
  .fan .phone:nth-child(1), .fan .phone:nth-child(5) { display: none }
  .fan .phone { width: 27vw; margin: 0 -10px }
  .fan .phone:nth-child(3) { width: 46vw }
}

/* PANDA guide */
.guide-hero { padding: clamp(36px, 7vw, 80px) 0 clamp(40px, 6vw, 72px) }
.guide-hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: clamp(32px, 6vw, 80px); align-items: center }
.guide-hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.4rem) }
.facts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px }
.facts li { display: grid }
.facts b { font: 600 1.35rem/1.2 var(--sans); letter-spacing: -.02em }
.facts span { font-size: 13.5px; color: var(--ink-3) }
.signup-card { display: grid; gap: 12px; padding: 20px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--panel) }
.signup-card p { font-size: 15px; color: var(--ink-2) }
.signup-card strong { color: var(--ink); font-weight: 620 }

.signup-card { gap: 14px }
.signup-card .card-title { font-size: 1.45rem; letter-spacing: -.03em }
.mini-gates { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 4px; align-items: center; counter-reset: mini }
.mini-gates li { counter-increment: mini; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px 0 6px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13.5px; font-weight: 550; color: var(--ink) }
.mini-gates li::before { content: counter(mini); width: 20px; height: 20px; display: grid; place-content: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent-2); font: 600 11.5px var(--mono) }
.mini-gates li + li { margin-left: 14px; position: relative }
.mini-gates li + li::after { content: ""; position: absolute; left: -15px; top: 50%; width: 10px; height: 1px; background: var(--line-strong) }
.signup-card.big { grid-template-columns: 150px minmax(0, 1fr); gap: clamp(20px, 4vw, 36px); align-items: center; padding: clamp(20px, 3vw, 28px) }
.signup-card.big .phone { border-radius: 14px; box-shadow: none }
.signup-card.big .signup-copy { display: grid; gap: 14px }
.signup-card.big .card-title { font-size: clamp(1.7rem, 4vw, 2.2rem) }
@media (max-width: 560px) { .signup-card.big { grid-template-columns: minmax(0, 1fr) } .signup-card.big .phone { display: none } .mini-gates li + li { margin-left: 0 } .mini-gates li + li::after { display: none } }

.guide { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding-bottom: clamp(48px, 8vw, 96px) }
.toc { position: sticky; top: 24px; align-self: start; font-size: 14px }
.toc p { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px }
.toc ol { list-style: none; padding: 0; display: grid; gap: 2px; counter-reset: toc }
.toc a { display: flex; gap: 10px; padding: 6px 0; color: var(--ink-2); text-decoration: none; line-height: 1.35 }
.toc a::before { counter-increment: toc; content: counter(toc); font: 500 12.5px/1.5 var(--mono); color: var(--ink-3); min-width: 1.2em }
.toc a:hover { color: var(--ink) }
.article { min-width: 0; max-width: 720px }
.step { padding-top: clamp(40px, 6vw, 64px); display: grid; gap: 18px }
.step:first-child { padding-top: 0 }
.step > .num { font: 600 13px var(--mono); color: var(--cap-yellow); letter-spacing: .04em }
.step p, .step li { color: #d2d2d8; text-wrap: pretty }
.step p strong, .step li strong { color: var(--ink); font-weight: 620 }
.step ul, .step ol.plain { padding-left: 1.2em; display: grid; gap: 8px }
.step li::marker { color: var(--ink-3) }
.zh { font-family: "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", var(--sans) }
.tool { display: inline-block; padding: 1px 8px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13px; color: var(--ink-2); white-space: nowrap }
.tools { display: flex; flex-wrap: wrap; gap: 8px }

.prompt { border: 1px solid var(--line); border-radius: 14px; background: #0e0e10; overflow: hidden }
.prompt header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 8px 6px 14px; border-bottom: 1px solid var(--line); background: var(--panel) }
.prompt header span { font-size: 13px; color: var(--ink-2) }
.prompt header span b { color: var(--ink); font-weight: 600 }
.copy { min-height: 32px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: transparent; color: var(--ink); font: 500 13px var(--sans); cursor: pointer }
.copy:hover { background: var(--raised) }
.prompt pre { margin: 0; padding: 14px; font: 13px/1.6 var(--mono); color: #d7d7de; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 340px; overflow-y: auto }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px }
.shots figure { display: grid; gap: 8px }
.shots .phone { border-radius: 12px; box-shadow: none }
.shots figcaption, .wide-fig figcaption { font-size: 13px; color: var(--ink-3); line-height: 1.4 }
.wide-fig { display: grid; gap: 8px }
.wide-fig img, .wide-fig svg { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--panel) }

.words { width: 100%; border-collapse: collapse; font-size: 15px }
.words th, .words td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line) }
.words th { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3) }
.words td:first-child { font-size: 1.3rem; color: var(--cap-red); font-weight: 600 }
.words td:nth-child(2) { font-family: var(--mono); font-size: 13.5px; color: var(--ink-2) }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--panel) }
.hook { padding: 18px 20px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); display: grid; gap: 12px }
.hook div { display: grid; gap: 2px }
.hook .zh { font-size: 1.25rem; font-weight: 600; letter-spacing: .02em }
.hook small { font-size: 13.5px; color: var(--ink-2) }
.note { padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); color: #dcd4ff; font-size: 15px }
.note strong { color: #fff }
.cost { width: 100%; border-collapse: collapse; font-size: 15px }
.cost td { padding: 10px 12px; border-bottom: 1px solid var(--line) }
.cost td:last-child { text-align: right; font-family: var(--mono); font-size: 14px }
.cost tr:last-child td { border-bottom: 0; font-weight: 620; color: var(--ink) }
.agent-box { display: grid; gap: 12px; padding: 20px; border: 1px dashed var(--line-strong); border-radius: 16px }
.agent-box code, .step code { font: 13.5px var(--mono); background: rgb(255 255 255 / .06); padding: 2px 6px; border-radius: 5px; overflow-wrap: anywhere }
.agent-box .rowline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center }

@media (max-width: 860px) {
  .guide-hero .wrap { grid-template-columns: minmax(0, 1fr) }
  .guide-hero .side { width: min(100%, 300px); margin-inline: auto }
  .guide { grid-template-columns: minmax(0, 1fr) }
  .toc { position: static; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel) }
  .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 16px }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px) }
  .top nav a:not(.btn) { display: none }
  .toc ol { grid-template-columns: minmax(0, 1fr) }
  .notify .btn { flex: 1 1 100% }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } }
