/* home.css — homepage only. Self-contained (no Tailwind), built from the BLAZE design system:
   pure neutral greys, Geist, near-white accent. Layout is designed at 1440 and scales down;
   side-by-side rows from 1100px, stacked below, phone hero below 760px. */

@font-face {
  font-family: 'Geist';
  src: url('assets/fonts/Geist-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0a0a;
  --canvas: #121212;
  --text: #ececec;
  --text-2: #ababab;
  --text-3: #8b8b8b;
  --line: rgba(236, 236, 236, 0.10);
  --line-soft: rgba(255, 255, 255, 0.07);
  --accent: #ececee;
  --accent-fg: #0f0f10;
  --accent-edge: #717172;
  --sans: 'Geist', 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Cascadia Code', 'Consolas', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --gutter: clamp(20px, 4.444vw, 64px);
  --wrap: 1440px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, svg { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.page { overflow-x: clip; }
.wrap { position: relative; max-width: var(--wrap); margin: 0 auto; }
.mono-label {
  font-family: var(--mono); font-size: 11px; line-height: 14px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3);
}
.ic { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }

/* ---------- buttons ---------- */
.btn-primary {
  height: 40px; padding: 0 18px 0 14px; border: 0; border-radius: 10px;
  background: var(--accent); color: var(--accent-fg);
  font-size: 14px; font-weight: 560; text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; cursor: pointer;
  transition: background-color .15s ease;
}
.btn-primary:hover { background: #ffffff; color: var(--accent-fg); }
.soon { font-size: 13px; line-height: 20px; color: var(--text-2); white-space: nowrap; }

/* ---------- header ---------- */
.site-header {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0;
  background-color: rgba(10, 10, 10, 0); box-shadow: inset 0 -1px 0 rgba(236, 236, 236, 0);
  transition: background-color .3s ease, box-shadow .3s ease;
}
/* once the page moves, the bar follows with a frosted backing so it reads over anything */
.site-header.is-scrolled {
  background-color: rgba(10, 10, 10, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 -1px 0 var(--line);
}
.header-inner {
  max-width: var(--wrap); margin: 0 auto; height: 80px; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 32px; transition: height .3s ease;
}
.site-header.is-scrolled .header-inner { height: 64px; }
.brand { display: flex; align-items: center; gap: 24px; margin-right: auto; }
.brand-home { color: var(--text); display: flex; text-decoration: none; }
.brand-home svg { width: 66.69px; height: 20px; fill: currentColor; }
.nav { display: contents; }
.nav-links { display: flex; align-items: center; gap: 32px; order: 1; }
.nav-link {
  font-size: 13px; line-height: 20px; color: var(--text-2); text-decoration: none;
  background: none; border: 0; padding: 0; cursor: pointer; transition: color .15s ease;
}
.nav-link:hover { color: #ffffff; }
.lang { order: 2; }
#auth-slot { order: 3; display: flex; align-items: center; }
#auth-out { display: flex; align-items: center; gap: 20px; }
.btn-signup {
  height: 32px; padding: 0 16px; border: 0; border-radius: 10px;
  background: rgba(236, 236, 236, 0.14); color: var(--text);
  font-size: 13px; font-weight: 560; cursor: pointer; transition: background-color .15s ease;
}
.btn-signup:hover { background: rgba(236, 236, 236, 0.22); }
#auth-in { position: relative; }
.btn-avatar {
  width: 32px; height: 32px; border-radius: 999px; border: 0;
  background: rgba(236, 236, 236, 0.14); color: var(--text);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; cursor: pointer;
}
.user-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 200px; padding: 6px;
  border-radius: 12px; background: #1c1c1c;
  box-shadow: 0 0 0 1px var(--line), 0 12px 32px rgba(0, 0, 0, 0.4);
  display: flex; flex-direction: column;
}
.user-menu a, .user-menu button {
  height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: none;
  display: flex; align-items: center; font-size: 13px; color: var(--text-2);
  text-decoration: none; text-align: left; cursor: pointer;
}
.user-menu a:hover, .user-menu button:hover { background: rgba(236, 236, 236, 0.08); color: #ffffff; }
.menu-btn {
  order: 4; display: none; width: 44px; height: 44px; margin-right: -12px; border: 0; padding: 0;
  background: transparent; color: var(--text); align-items: center; justify-content: center; cursor: pointer;
}
.menu-btn svg { width: 20px; height: 20px; }
.menu-btn .i-close { display: none; }
.site-header.is-open .menu-btn .i-open { display: none; }
.site-header.is-open .menu-btn .i-close { display: block; }

.lang {
  display: flex; align-items: center; gap: 2px; height: 28px; padding: 2px;
  border-radius: 8px; background: rgba(236, 236, 236, 0.10);
}
.lang button {
  height: 24px; padding: 0 8px; border: 0; border-radius: 6px; background: transparent;
  color: var(--text-2); font-size: 12px; font-weight: 500; line-height: 1; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.lang button:hover { color: #ffffff; }
.lang button[aria-pressed="true"] { background: rgba(236, 236, 236, 0.18); color: #ffffff; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; max-height: 1200px; overflow: hidden; background: var(--bg); }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hero-scrim { position: absolute; inset: 0; pointer-events: none;
  /* eased (sine) ramps: no visible band where the stops meet, and the bottom lands on the page colour
     so the hero melts into the next section instead of ending on an edge */
  background:
    linear-gradient(180deg, rgba(10,10,10,0.660) 0px, rgba(10,10,10,0.616) 40px, rgba(10,10,10,0.495) 80px, rgba(10,10,10,0.330) 120px, rgba(10,10,10,0.165) 160px, rgba(10,10,10,0.044) 200px, rgba(10,10,10,0.000) 240px),
    linear-gradient(0deg, rgba(10,10,10,1.000) 0%, rgba(10,10,10,0.976) 8.2%, rgba(10,10,10,0.905) 16.4%, rgba(10,10,10,0.794) 24.6%, rgba(10,10,10,0.655) 32.8%, rgba(10,10,10,0.500) 41%, rgba(10,10,10,0.345) 49.2%, rgba(10,10,10,0.206) 57.4%, rgba(10,10,10,0.095) 65.6%, rgba(10,10,10,0.024) 73.8%, rgba(10,10,10,0.000) 82%);
}
.hero-inner { position: relative; height: 100%; max-width: var(--wrap); margin: 0 auto; }
.hero-title {
  position: absolute; left: var(--gutter); bottom: calc(74 / 1440 * min(100vw, 1440px));
  font-weight: 200; color: var(--text);
  font-size: min(8.889vw, 128px); line-height: 0.922; letter-spacing: -0.04em;
}
.hero-title .line { display: block; white-space: nowrap; }
.hero-title .dot {
  display: inline-block; width: 0.125em; height: 0.125em; margin-left: 0.078em;
  border-radius: 999px; background: var(--accent); vertical-align: 0.02em;
}
.hero-side {
  position: absolute; left: calc(954.67 / 1440 * 100%); bottom: calc(87.56 / 1440 * min(100vw, 1440px));
  width: min(380px, 26.4vw); display: flex; flex-direction: column; gap: 24px;
}
.hero-side p { font-size: 16px; line-height: 1.55; color: var(--text); text-wrap: pretty; }
.hero-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }

.scroll-cue {
  /* sits on the right edge, in line with the header's last button, clear of the headline and the CTA */
  position: absolute; right: calc(var(--gutter) - 8px); bottom: 24px; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 4px 8px;
  text-decoration: none; color: var(--text-3); transition: opacity .4s ease, color .15s ease;
}
.scroll-cue:hover { color: var(--text); }
.scroll-cue-label { writing-mode: vertical-rl; font-family: var(--mono); font-size: 10px; line-height: 12px; letter-spacing: 0.2em; text-transform: uppercase; }
.scroll-cue-track { position: relative; width: 1px; height: 44px; overflow: hidden; background: rgba(236, 236, 236, 0.16); }
.scroll-cue-track::after {
  content: ''; position: absolute; left: 0; top: 0; width: 1px; height: 14px; background: var(--text);
  animation: cue 2.4s cubic-bezier(.65, 0, .35, 1) infinite;
}
@keyframes cue { 0% { transform: translateY(-14px); } 70%, 100% { transform: translateY(44px); } }
.scroll-cue.is-gone { opacity: 0; pointer-events: none; }

/* ---------- feature rows ---------- */
.features { display: flex; flex-direction: column; gap: 160px; padding: 160px 0 200px; }
.row { display: grid; align-items: start; }
.row-left { grid-template-columns: 62.5% minmax(0, 1fr); column-gap: 3.796%; padding-right: 7.315%; }
.row-right { grid-template-columns: 23.61% minmax(0, 1fr); column-gap: 7.315%; padding-left: 4.444%; }
.row-right .copy { order: 1; }
.row-right .media { order: 2; }
.media { position: relative; }
.row-left .media { margin-left: calc(-40 / 1440 * min(100vw, 1440px)); width: calc(100% + 40 / 1440 * min(100vw, 1440px)); }
.row-right .media { width: calc(100% + 69.33 / 1440 * min(100vw, 1440px)); }
.shot { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 16px 48px rgba(0,0,0,0.32), 0 4px 10px rgba(0,0,0,0.19); }
.shot-pg { aspect-ratio: 1000 / 545; object-fit: cover; }
.shot-wf { aspect-ratio: 940 / 442; object-fit: cover; }
.copy { display: flex; flex-direction: column; max-width: 380px; }
.copy h3 { margin-top: 32px; font-size: clamp(44px, 4.444vw, 64px); line-height: 1; font-weight: 200; letter-spacing: -0.03em; color: var(--text); }
.copy > p { margin-top: 24px; font-size: 16px; line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
.ticks { list-style: none; margin: 32px 0 0; padding: 0; }
.ticks li {
  height: 36px; border-top: 1px solid var(--line); display: flex; align-items: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3);
}

/* ---------- canvas card (an illustration at 940 x 650 design units, scaled by home.js) ---------- */
.cv-card {
  --vx: 0; --vy: 0; --vw: 940; --vh: 650;
  position: relative; overflow: hidden; border-radius: 12px; aspect-ratio: 940 / 650;
  background-color: var(--canvas);
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: calc(20px * var(--k, 1)) calc(20px * var(--k, 1));
  box-shadow: 0 16px 48px rgba(0,0,0,0.32), 0 4px 10px rgba(0,0,0,0.19);
}
.cv-stage {
  position: absolute; left: 0; top: 0; width: 940px; height: 650px; transform-origin: 0 0;
  transform: scale(var(--k, 1)) translate(calc(var(--vx) * -1px), calc(var(--vy) * -1px));
  font-size: 14px;
}
.cv-stage > * { position: absolute; }
.cv-link { left: 0; top: 0; pointer-events: none; overflow: visible; }

.board {
  left: 88px; top: 64px; width: 416px; height: 240px; padding: 16px; border-radius: 16px; background: #202020;
  box-shadow: 0 0 0 1px var(--line), 0 10px 32px rgba(0,0,0,0.27), 0 2px 6px rgba(0,0,0,0.17);
  display: flex; flex-direction: column; gap: 12px;
}
.board-prompt { font-size: 14px; line-height: 24px; color: var(--text); }
.chip {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 7px 0 3px; margin: 0 2px;
  border-radius: 6px; background: rgba(236, 236, 238, 0.16); color: var(--text); vertical-align: middle; font-size: 12px;
}
.chip img { width: 16px; height: 16px; object-fit: cover; border-radius: 3px; }
.board-refs { display: flex; gap: 8px; }
.ref-add {
  width: 44px; height: 44px; border-radius: 8px; border: 1px dashed rgba(236,236,236,0.22); color: var(--text-3);
  display: flex; align-items: center; justify-content: center;
}
.ref-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; box-shadow: 0 0 0 1px rgba(236,236,236,0.08); }
.board-grow { flex-grow: 1; }
.board-foot { border-top: 1px solid var(--line-soft); padding-top: 12px; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.tag {
  height: 18px; padding: 0 6px; border-radius: 4px; background: rgba(236,236,236,0.08);
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; color: var(--text-2); display: flex; align-items: center;
}
.board-foot .model { font-size: 12px; color: var(--text-2); }
.board-foot .meta { font-size: 12px; color: var(--text-3); }
.board-foot .cost { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.btn-gen {
  height: 28px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--accent); color: var(--accent-fg);
  font-size: 12px; font-weight: 560; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 2px 0 var(--accent-edge);
}
.btn-gen:disabled { cursor: default; }
[data-out="idle"] .btn-gen { animation: genpulse 2s ease-out infinite; }
@keyframes genpulse {
  0% { box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 2px 0 var(--accent-edge), 0 0 0 0 rgba(236,236,238,.55); }
  70%, 100% { box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 2px 0 var(--accent-edge), 0 0 0 10px rgba(236,236,238,0); }
}

.gen-out { left: 88px; top: 352px; width: 416px; height: 234px; }
.gen-ph {
  position: absolute; inset: 0; border-radius: 3px; background: #161616; border: 1px dashed rgba(236,236,236,0.18);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
}
.gen-wave { color: var(--accent); opacity: .28; }
.gen-wave svg { width: 36px; height: 36px; fill: currentColor; }
.gen-label { font-family: var(--mono); font-size: 10px; line-height: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.gen-label .l-gen { display: none; }
.gen-img {
  position: relative; z-index: 1; width: 416px; height: 234px; object-fit: cover; border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(236,236,236,0.08), 0 10px 32px rgba(0,0,0,0.27), 0 2px 6px rgba(0,0,0,0.17);
  opacity: 0; clip-path: inset(50% 50% 50% 50% round 3px);
}
[data-out="generating"] .gen-wave { animation: genwave 1.1s ease-in-out infinite; }
[data-out="generating"] .gen-label .l-idle { display: none; }
[data-out="generating"] .gen-label .l-gen { display: inline; }
[data-out="done"] .gen-img { opacity: 1; clip-path: inset(0 0 0 0 round 3px); transition: clip-path .9s cubic-bezier(.2,.8,.2,1), opacity .25s ease; }
@keyframes genwave { 0%, 100% { opacity: .35; transform: scale(.94); } 50% { opacity: 1; transform: scale(1); } }

.clip { left: 605px; top: 116px; width: 234px; height: 416px; box-shadow: 0 0 0 1.2px var(--accent); }
.clip video { width: 234px; height: 416px; object-fit: cover; border-radius: 3px; }
.clip-badge {
  position: absolute; left: 8px; bottom: 8px; height: 22px; padding: 0 8px 0 6px; border-radius: 6px;
  background: rgba(6,6,6,0.72); display: flex; align-items: center; gap: 5px; color: #ffffff;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em;
}
.clip-badge svg { width: 10px; height: 10px; fill: #ffffff; }
.handle { width: 6.4px; height: 6.4px; border-radius: 1px; background: #ececec; box-shadow: 0 0 0 1.2px var(--accent); }
.toolbar-wrap { left: 605px; top: 64px; width: 234px; display: flex; justify-content: center; }
.toolbar {
  height: 40px; padding: 4px; border-radius: 12px; background: rgba(31,31,31,0.9);
  box-shadow: 0 0 0 1px var(--line), 0 6px 20px rgba(0,0,0,0.24), 0 1px 3px rgba(0,0,0,0.16);
  display: flex; align-items: center; gap: 2px;
}
.toolbar span { height: 32px; padding: 0 10px; border-radius: 8px; color: var(--text-2); display: flex; align-items: center; gap: 6px; font-size: 12px; white-space: nowrap; }
.toolbar .sq { width: 32px; padding: 0; justify-content: center; }
.toolbar .sep { width: 1px; height: 16px; padding: 0; margin: 0 4px; background: var(--line); }

/* ---------- facts ---------- */
.facts { padding: 0 var(--gutter) 200px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.fact { border-top: 1px solid var(--line); padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.fact h3 { margin-top: 4px; font-size: 20px; line-height: 26px; font-weight: 500; letter-spacing: -0.01em; color: var(--text); }
.fact p { max-width: 360px; font-size: 14px; line-height: 1.6; color: var(--text-2); text-wrap: pretty; }

/* ---------- pricing ---------- */
.pricing { padding: 0 var(--gutter) 200px; scroll-margin-top: 40px; }
.pricing-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; row-gap: 24px; }
.pricing-head h2 { grid-column: 1 / span 6; font-size: clamp(64px, 6.667vw, 96px); line-height: 1; font-weight: 200; letter-spacing: -0.04em; color: var(--text); }
.pricing-head p { grid-column: 8 / span 4; font-size: 16px; line-height: 1.55; color: var(--text-2); text-wrap: pretty; }
.plans { margin-top: 80px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.plan { min-height: 300px; border-top: 1px solid var(--line); padding-top: 24px; display: flex; flex-direction: column; }
.plan-num { margin-top: 40px; font-size: clamp(72px, 7.778vw, 112px); line-height: 1; font-weight: 200; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--text); }
.plan-unit { margin-top: 12px; margin-bottom: 48px; font-size: 13px; line-height: 18px; color: var(--text-3); }
.plan-rate { margin-top: auto; border-top: 1px solid var(--line-soft); padding-top: 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.plan-rate span:first-child { font-size: 13px; color: var(--text-2); }
.plan-rate span:last-child { font-family: var(--mono); font-size: 13px; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pricing-foot { margin-top: 56px; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px 48px; }
.pricing-foot p { max-width: 760px; font-size: 12px; line-height: 1.6; color: var(--text-3); }
.pricing-foot p a { color: var(--text-2); }
.pricing-foot p a:hover { color: #ffffff; }
.more-link { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 20px; color: var(--text); text-decoration: none; white-space: nowrap; }
.more-link:hover { color: #ffffff; }
.more-link .ic { transition: transform .15s ease; }
.more-link:hover .ic { transform: translateX(3px); }

/* ---------- footer ---------- */
.site-footer { padding: 0 var(--gutter); }
.foot-rule { border-top: 1px solid var(--line); }
.foot-top { margin-top: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-brand { display: flex; flex-direction: column; gap: 12px; color: var(--text); }
.foot-brand svg { width: 86.7px; height: 26px; fill: currentColor; }
.foot-brand p { font-size: 16px; line-height: 24px; color: var(--text-2); }
.foot-cta { display: flex; align-items: center; gap: 20px; }
.foot-cta .soon { color: var(--text-3); }
.foot-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 16px; }
.foot-nav-row { margin-top: 96px; align-items: center; }
.foot-grid .c1 { grid-column: 1 / span 3; }
.foot-nav { grid-column: 4 / span 9; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 32px; }
.foot-nav a { font-size: 13px; line-height: 20px; color: var(--text-2); text-decoration: none; }
.foot-nav a:hover { color: #ffffff; }
.foot-legal { margin-top: 48px; }
.foot-legal .c1 { font-size: 12px; line-height: 1.6; color: var(--text-3); }
.foot-legal p { grid-column: 4 / span 7; font-size: 12px; line-height: 1.6; color: var(--text-3); }
.ghost { margin: 56px calc(var(--gutter) * -1) 0; padding: 24px var(--gutter) 0; height: calc(300 / 1440 * min(100vw, 1440px)); overflow: hidden; color: #171717; }
.ghost svg { width: 100%; height: auto; fill: currentColor; }

/* ---------- Chinese ---------- */
html[lang="zh-CN"] .hero-title, html[lang="zh-CN"] h2, html[lang="zh-CN"] .copy h3 { letter-spacing: 0.02em; }
html[lang="zh-CN"] .hero-title, html[lang="zh-CN"] .copy h3, html[lang="zh-CN"] .pricing-head h2 {
  font-family: 'Geist', 'Microsoft YaHei Light', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif; font-weight: 300;
}

/* ---------- ≤1099: stacked rows ---------- */
@media (max-width: 1099px) {
  .hero-title { bottom: auto; top: auto; position: relative; left: auto; font-size: min(11vw, 104px); }
  .hero-side { position: relative; left: auto; bottom: auto; width: auto; max-width: 480px; }
  .hero-inner { display: flex; flex-direction: column; justify-content: flex-end; gap: 28px; padding: 0 var(--gutter) 56px; }
  .features { gap: 112px; padding: 120px 0 144px; }
  .row, .row-left, .row-right { grid-template-columns: minmax(0, 1fr); padding: 0 var(--gutter); row-gap: 40px; column-gap: 0; }
  .row .copy { order: 1; max-width: 560px; }
  .row .media { order: 2; margin-left: 0; width: 100%; }
  .facts { grid-template-columns: minmax(0, 1fr); padding-bottom: 144px; }
  .pricing { padding-bottom: 144px; }
  .pricing-head h2, .pricing-head p { grid-column: 1 / -1; }
  .plans { margin-top: 56px; grid-template-columns: minmax(0, 1fr); }
  .plan { min-height: 0; }
  .pricing-foot { flex-direction: column; }
  .foot-grid .c1, .foot-nav, .foot-legal p { grid-column: 1 / -1; }
  .foot-nav-row { margin-top: 64px; }
  .ghost { height: calc(300 / 1440 * 100vw + 12px); }
}
@media (min-width: 760px) and (max-width: 1099px) {
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- ≤759: phone ---------- */
@media (max-width: 759px) {
  .header-inner, .site-header.is-scrolled .header-inner { height: 64px; padding: 0 12px 0 20px; gap: 8px; }
  .scroll-cue { display: none; }
  .brand-home svg { width: 60.02px; height: 18px; }
  .brand .mono-label { display: none; }
  .menu-btn { display: flex; margin-right: 0; }
  .nav {
    display: none; position: absolute; top: 60px; left: 12px; right: 12px; padding: 8px;
    border-radius: 14px; background: #161616; box-shadow: 0 0 0 1px var(--line), 0 16px 40px rgba(0,0,0,0.5);
    flex-direction: column; align-items: stretch;
  }
  .site-header.is-open .nav { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links .nav-link { height: 48px; padding: 0 12px; display: flex; align-items: center; font-size: 15px; color: var(--text); border-radius: 8px; }
  #auth-slot { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
  #auth-out { width: 100%; gap: 8px; }
  #auth-out .nav-link { flex: 1; height: 44px; border-radius: 10px; background: rgba(236,236,236,0.08); color: var(--text); font-size: 14px; }
  #auth-out .btn-signup { flex: 1; height: 44px; font-size: 14px; }
  #auth-in { width: 100%; }
  .user-menu { position: static; margin-top: 8px; box-shadow: none; background: transparent; padding: 0; }
  .hero { min-height: 600px; max-height: none; }
  .hero-media { object-position: 80% 50%; }
  .hero-scrim { background:
    linear-gradient(180deg, rgba(10,10,10,0.620) 0px, rgba(10,10,10,0.578) 30px, rgba(10,10,10,0.465) 60px, rgba(10,10,10,0.310) 90px, rgba(10,10,10,0.155) 120px, rgba(10,10,10,0.042) 150px, rgba(10,10,10,0.000) 180px),
    linear-gradient(0deg, rgba(10,10,10,1.000) 0%, rgba(10,10,10,0.976) 8.8%, rgba(10,10,10,0.905) 17.6%, rgba(10,10,10,0.794) 26.4%, rgba(10,10,10,0.655) 35.2%, rgba(10,10,10,0.500) 44%, rgba(10,10,10,0.345) 52.8%, rgba(10,10,10,0.206) 61.6%, rgba(10,10,10,0.095) 70.4%, rgba(10,10,10,0.024) 79.2%, rgba(10,10,10,0.000) 88%); }
  .hero-inner { padding: 0 20px 36px; gap: 20px; }
  .hero-title { font-size: min(58px, 14.2vw); line-height: 0.966; }
  .hero-side { gap: 20px; }
  .hero-side p { font-size: 15px; max-width: 320px; }
  .hero-cta { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero-cta .btn-primary { height: 48px; font-size: 15px; }
  .features { gap: 96px; padding: 96px 0 120px; }
  .cv-card { --vx: 64; --vy: 24; --vw: 464; --vh: 602; aspect-ratio: 464 / 602; }
  .cv-card .clip, .cv-card .handle, .cv-card .toolbar-wrap { display: none; }
  .foot-top { flex-direction: column; align-items: flex-start; }
  .foot-cta { flex-direction: column-reverse; align-items: flex-start; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-out="idle"] .btn-gen, [data-out="generating"] .gen-wave, .scroll-cue-track::after { animation: none; }
  .scroll-cue-track::after { transform: translateY(15px); }
  .site-header, .header-inner { transition: none; }
  [data-out="generating"] .gen-wave { opacity: 1; }
  [data-out="done"] .gen-img { transition: none; }
}
