/* styles.css — LUMENHILLS landing page.
   Light, Linear-style precision on a warm off-white canvas; Amber #F2A33A is the only accent.
   Tokens copied from brand/tokens.css (copied, not imported, so the page opens by double-click).
   Glyphs that the i18n checker would flag in source (yen sign, check mark) are CSS escapes. */

:root {
  /* surfaces */
  --canvas: #F7F7F6;
  --surface: #FFFFFF;
  --fill: #F2F2F3;
  --fill-2: #ECECEE;
  --illus: #EFEFED;
  --illus-2: #F2F2F0;
  --line: #E6E6E9;
  --line-2: #D9DADD;
  --lane: #C9CAD0;
  --grid: #E4E4E7;
  /* text */
  --ink: #08090A;
  --text: #3C3F45;
  --muted: #62666D;
  --faint: #8A8F98;
  /* accent: Amber, fill only */
  --amber: #F2A33A;
  --amber-hover: #E8962A;
  --amber-ink: #140C00;
  --amber-deep: #8F5200;
  --amber-soft: #FCEBD0;
  --amber-glow: rgba(242, 163, 58, .38);
  --amber-ring: rgba(242, 163, 58, .32);
  /* status */
  --ok: #1F8A3A;
  --danger: #C93C3C;
  --danger-soft: rgba(235, 87, 87, .08);
  /* shape */
  --r-card: 12px;
  --r-ctl: 6px;
  --r-badge: 4px;
  --r-pill: 9999px;
  --shadow-float: rgba(8, 9, 10, .08) 0 24px 64px;
  /* type */
  --font: "Inter", "Noto Sans JP", "Noto Sans SC", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "YuGothic", Meiryo,
    "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  /* layout */
  --max: 1200px;
  --gutter: 32px;
  --section: 112px;
  color-scheme: light;
}
@media (max-width: 767px) { :root { --gutter: 16px; --section: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; background: var(--canvas); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
  overflow-wrap: anywhere;
  font-feature-settings: "cv01" on, "ss03" on;
  -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { line-height: 1.6; }
html[lang="zh-CN"] body { font-family: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Noto Sans JP", system-ui, sans-serif; }
::selection { background: var(--amber-soft); }

h1, h2, h3, h4, h5 { margin: 0; font-weight: 590; color: var(--ink); line-height: 1.35; text-wrap: balance; }
html[lang="ja"] :is(h1, h2, h3, h4, h5) { word-break: auto-phrase; }
p { margin: 0 0 0.75em; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--ink); text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { color: var(--text); text-decoration-color: var(--ink); }
b, strong { font-weight: 590; color: var(--ink); }
mark { background: var(--amber-soft); color: inherit; padding: 0 2px; border-radius: 2px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: var(--section); padding-bottom: var(--section); }
.band-white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-canvas { background: var(--canvas); border-bottom: 1px solid var(--line); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.mono { font-family: var(--mono); }
.faint { color: var(--faint); }
.muted { color: var(--faint); }
.small { font-size: 0.8125rem; }
.ink { color: var(--ink); }
.mono-num { display: block; font-family: var(--mono); font-size: 12px; color: var(--faint); line-height: 1.6; }

/* Demo amounts: the currency glyph is drawn by CSS so the source carries no price-like text. */
.yen::before { content: "\A5"; }
.jpy::before { content: "\A5"; }
html[lang="ja"] .jpy::before { content: none; }
html[lang="ja"] .jpy::after { content: "\5186"; }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--surface); padding: 8px 14px; border-radius: var(--r-ctl);
}
.skip-link:focus { top: 8px; color: var(--surface); }

/* Small square marker: 12px squares with 2px radius, not circles. */
.sq-mark { flex: none; display: inline-block; width: 6px; height: 6px; border-radius: 2px; background: var(--amber); }
.sq { flex: none; display: inline-block; width: 8px; height: 8px; border-radius: 2px; }
.sq-ink { background: var(--ink); }
.sq-amber { background: var(--amber); }

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4em;
  min-height: 40px; padding: 8px 16px;
  border: 1px solid var(--line-2); border-radius: var(--r-ctl);
  font: inherit; font-size: 0.875rem; font-weight: 510; line-height: 1.4; letter-spacing: -0.011em;
  text-align: center; text-decoration: none; color: var(--ink); background: var(--surface);
  cursor: pointer; transition: background-color .12s, border-color .12s, color .12s;
}
.btn:hover { background: var(--fill); color: var(--ink); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-lg { min-height: 46px; padding: 12px 20px; font-size: 0.9375rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--amber); color: var(--amber-ink); border-color: transparent; }
.btn-primary:hover { background: var(--amber-hover); color: var(--amber-ink); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover:not(:disabled) { background: var(--fill); }
.btn-ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-ink:hover { background: #26282D; color: #fff; }
.btn-white { background: var(--surface); color: var(--ink); border-color: var(--surface); }
.btn-white:hover { background: var(--fill); color: var(--ink); }
.pill-dark {
  display: inline-flex; align-items: center; min-height: 34px; padding: 6px 16px; white-space: nowrap;
  background: var(--ink); color: #fff; text-decoration: none; font-size: 13px; font-weight: 510;
  border-radius: var(--r-pill); transition: background-color .12s;
}
.pill-dark:hover { background: #26282D; color: #fff; }

/* ---------------------------------------------------------------- Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 247, 246, .86);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 22px; height: 22px; flex: none; border-radius: 6px; background: var(--ink); position: relative; }
.brand-mark::after { content: ""; position: absolute; right: 4px; bottom: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.brand-name { font-weight: 590; font-size: 15px; letter-spacing: -0.011em; color: var(--ink); white-space: nowrap; }
.site-nav { display: none; gap: 4px; }
.site-nav a { color: var(--text); text-decoration: none; font-size: 13px; padding: 6px 10px; border-radius: var(--r-ctl); transition: background-color .12s, color .12s; }
.site-nav a:hover { color: var(--ink); background: var(--fill-2); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
@media (min-width: 1000px) { .site-nav { display: flex; } }
@media (max-width: 767px) { .header-inner { gap: 12px; height: 60px; } }

.lang-switch { display: inline-flex; padding: 2px; gap: 2px; background: var(--fill-2); border-radius: var(--r-ctl); }
.lang-btn {
  font: inherit; font-size: 12px; font-weight: 400; min-height: 28px; padding: 0 9px;
  border: 0; border-radius: 4px; background: transparent; color: var(--muted); cursor: pointer; white-space: nowrap;
  transition: color .12s, background-color .12s;
}
.lang-btn:hover { color: var(--ink); }
.lang-btn[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 510; box-shadow: 0 0 0 1px var(--line-2); }
@media (max-width: 400px) {
  .lang-btn { padding: 0 6px; }
  .pill-dark.header-cta { padding: 6px 11px; font-size: 12px; }
  .brand { gap: 8px; }
  .brand-name { font-size: 14px; }
}
@media (max-width: 370px) { .header-cta { display: none; } }

/* ---------------------------------------------------------------- Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.gridlines {
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
}
.hero-grid { position: absolute; inset: 0; opacity: .55; pointer-events: none; }
.hero-inner { padding-top: 120px; padding-bottom: 152px; min-height: 720px; }
.hero-copy { position: relative; z-index: 1; max-width: 560px; }
.hero h1 {
  margin: 0 0 24px; font-size: 68px; line-height: 1.08; font-weight: 590; letter-spacing: -0.03em; white-space: pre-line;
}
.hero-lead { margin: 0 0 36px; font-size: 18px; line-height: 1.75; color: var(--muted); max-width: 520px; }
html[lang="en"] .hero-lead { line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------------- Hero "Flow" composition (brand.md section 5) ----------------
   Field: 760 x 470 px. Scale --s shrinks it as a whole (labels counter-scale to stay 11px).
   Tokens are <i class="tok"> with per-token custom properties set in index.html:
     --i  index 0..11 (stagger 0.75s)   --x0/--y0/--r  scattered start   --y1  lane y   --sx  rest x (static frame)
   Base styles = the reduced-motion static frame; the running animation overrides them. */
.flow-wrap {
  --s: 1;
  position: absolute; right: 0; top: 120px; z-index: 0;
  width: calc(760px * var(--s)); height: calc(470px * var(--s));
  pointer-events: none;
}
.flow { position: absolute; left: 0; top: 0; width: 760px; height: 470px; transform: scale(var(--s)); transform-origin: 0 0; }
.flow-stage {
  position: absolute; top: 16px; font-family: var(--mono); font-size: calc(11px / var(--s)); line-height: 1.4;
  color: var(--faint); white-space: nowrap;
}
.flow-stage-ai { color: var(--amber-deep); }
.flow-lane {
  position: absolute; left: 340px; width: 400px; height: 1px;
  background-image: linear-gradient(90deg, var(--lane) 0 8px, transparent 8px 12px);
  background-size: 12px 1px;
}
.flow-gate-band { position: absolute; left: 300px; top: 56px; width: 48px; height: 300px; border-radius: 24px; background: var(--amber); opacity: .18; }
.flow-gate-bar { position: absolute; left: 321px; top: 56px; width: 6px; height: 300px; border-radius: 3px; background: var(--amber); }
.flow-scan { position: absolute; left: 296px; top: 64px; width: 56px; height: 2px; background: var(--ink); transform: translateY(140px); }
.flow-review {
  position: absolute; left: 290px; top: 388px; width: 68px; height: 64px;
  border: 1.5px solid var(--ink); border-radius: 8px;
}
.flow-review-label {
  position: absolute; left: 372px; top: 404px; font-family: var(--mono); font-size: calc(11px / var(--s)); line-height: 1.4;
  color: var(--muted); white-space: nowrap;
}
.flow-tick {
  position: absolute; left: 370px; top: calc(404px + 18px / var(--s)); width: 16px; height: 16px; border-radius: 50%;
  background: var(--ink); color: #fff; display: grid; place-items: center;
}
.flow-tick::before { content: "\2713"; font-size: 10px; line-height: 1; }
.tok, .tok-catch {
  position: absolute; left: 0; top: 0; width: 22px; height: 15px;
  border: 1.5px solid var(--ink); border-radius: 2px; font-style: normal;
}
.tok { background: var(--surface); transform: translate(var(--x0), var(--y0)) rotate(var(--r)); }
.tok.rest-lane { background: var(--ink); transform: translate(var(--sx), var(--y1)); }
.tok-catch { background: var(--amber); transform: translate(313px, 412px); }

/* running state */
.tok { animation: flow 9s linear infinite; animation-delay: calc(var(--i) * -0.75s); }
.tok-catch { animation: catch 9s linear infinite; animation-delay: -1s; }
.flow-gate-band { animation: breathe 3s ease-in-out infinite; }
.flow-scan { animation: scan 2.6s ease-in-out infinite alternate; }
.flow-lane { animation: dash 12s linear infinite; }
.flow-review { animation: review 9s linear infinite; animation-delay: -1s; }
.flow-tick { animation: tick 9s linear infinite; animation-delay: -1s; }

@keyframes flow {
  /* 1. Intake: fade in scattered, drift to the gate, rotation easing to 0 */
  0%   { transform: translate(var(--x0), var(--y0)) rotate(var(--r)); background: var(--surface); opacity: 0;
         animation-timing-function: cubic-bezier(.45, .05, .35, 1); }
  6%   { opacity: 1; }
  /* 2. Gate: snapped to its lane, fill turns ink (56-62% = 0.54s) */
  56%  { transform: translate(313px, var(--y1)) rotate(0deg); background: var(--surface); animation-timing-function: linear; }
  62%  { transform: translate(313px, var(--y1)) rotate(0deg); background: var(--ink);
         animation-timing-function: cubic-bezier(.55, 0, .9, .35); }
  /* 3. Lanes: accelerate to the right edge, fade out in the last 6% */
  94%  { opacity: 1; }
  100% { transform: translate(740px, var(--y1)) rotate(0deg); background: var(--ink); opacity: 0; }
}
@keyframes catch {
  /* reaches the gate */
  0%   { transform: translate(60px, 196px) rotate(26deg); background: var(--surface); opacity: 0; box-shadow: 0 0 0 0 rgba(242, 163, 58, 0);
         animation-timing-function: cubic-bezier(.45, .05, .35, 1); }
  6%   { opacity: 1; }
  46%  { transform: translate(313px, 216px) rotate(0deg); background: var(--surface); box-shadow: 0 0 0 0 rgba(242, 163, 58, 0);
         animation-timing-function: ease-out; }
  /* holds ~1.1s with an amber glow ring */
  52%  { box-shadow: 0 0 0 7px var(--amber-glow); }
  64%  { transform: translate(313px, 216px) rotate(0deg); box-shadow: 0 0 0 7px var(--amber-glow); animation-timing-function: ease-in-out; }
  /* drops into the review box, turns amber */
  76%  { transform: translate(313px, 412px) rotate(0deg); background: var(--surface); box-shadow: 0 0 0 0 rgba(242, 163, 58, 0); }
  84%  { background: var(--amber); }
  92%  { opacity: 1; }
  100% { transform: translate(313px, 412px) rotate(0deg); background: var(--amber); opacity: 0; box-shadow: 0 0 0 0 rgba(242, 163, 58, 0); }
}
@keyframes review {
  0%, 76%   { border-color: var(--muted); border-style: dashed; }
  78%, 95%  { border-color: var(--ink); border-style: solid; }
  100%      { border-color: var(--muted); border-style: dashed; }
}
@keyframes tick {
  0%, 78%  { opacity: 0; transform: scale(.6); }
  84%, 93% { opacity: 1; transform: scale(1); }
  100%     { opacity: 0; transform: scale(1); }
}
@keyframes breathe { 0%, 100% { opacity: .12; } 50% { opacity: .24; } }
@keyframes scan { from { transform: translateY(0); } to { transform: translateY(280px); } }
@keyframes dash { to { background-position: 96px 0; } }

/* Secondary motion: tokens leaving along lanes (case card, CTA band). */
.run {
  position: absolute; top: 0; width: 22px; height: 15px; border-radius: 2px; font-style: normal;
  transform: translate(calc(var(--ex) * .5), var(--y));
  animation: run var(--dur, 6s) linear infinite; animation-delay: var(--d, 0s);
}
@keyframes run {
  0%   { transform: translate(0, var(--y)); opacity: 0; animation-timing-function: cubic-bezier(.45, .05, .35, 1); }
  10%  { opacity: 1; }
  45%  { transform: translate(20px, var(--y)); animation-timing-function: cubic-bezier(.55, 0, .9, .35); }
  92%  { opacity: 1; }
  100% { transform: translate(var(--ex), var(--y)); opacity: 0; }
}

/* Off-screen: paused by motion.js. Reduced motion: the base styles above are the static frame. */
[data-motion].is-paused *, [data-motion].is-paused { animation-play-state: paused !important; }
.is-static .tok, .is-static .tok-catch, .is-static .flow-gate-band, .is-static .flow-scan, .is-static .flow-lane,
.is-static .flow-review, .is-static .flow-tick, .is-static .run { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .tok, .tok-catch, .flow-gate-band, .flow-scan, .flow-lane, .flow-review, .flow-tick, .run { animation: none !important; }
}

/* responsive composition */
@media (max-width: 1279px) {
  .flow-wrap { --s: .8; }
  .hero-copy { max-width: 460px; }
  .hero h1 { font-size: 56px; }
}
@media (max-width: 1099px) {
  .flow-wrap { --s: .64; top: 150px; }
  .hero-copy { max-width: 380px; }
  .hero h1 { font-size: 46px; }
  .hero-lead { font-size: 16px; }
}
@media (max-width: 899px) {
  /* composition moves under the headline */
  .hero-inner { min-height: 0; padding-top: 72px; padding-bottom: 72px; }
  .hero-copy { max-width: 600px; }
  .hero h1 { font-size: clamp(40px, 9vw, 56px); }
  .flow-wrap { --s: .6; position: relative; right: auto; top: auto; margin-top: 48px; }
}
@media (max-width: 520px) {
  .flow-wrap { --s: .5; margin-top: 40px; }
  .tok:nth-of-type(n+7) { display: none; }           /* keep 6 tokens on small screens */
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-lead { margin-bottom: 28px; }
}
@media (max-width: 430px) {
  .flow-wrap { --s: .42; }
  .hero h1 { font-size: 38px; }
}

/* ---------------- Hero "Demo" composition (default hero) ----------------
   A quote request email -> the fields the AI read -> a quote draft waiting for staff approval.
   Fictional demo data E1. Field: 600 px wide, scaled as a whole by --s on desktop; below 640px the
   cards stack at full size. Base styles are the final (reduced-motion) frame; a one-shot entrance
   plays on load, then only the status dot pulses. index.html?hero=flow shows the Flow hero instead. */
html:not(.hero-flow) .flow-wrap { display: none; }
html.hero-flow .demo-wrap { display: none; }
html:not(.hero-flow) .hero-inner { position: relative; }

.demo-wrap {
  --s: .92;
  position: absolute; right: var(--gutter); top: 112px; z-index: 0;
  width: calc(600px * var(--s));
}
.demo { display: flex; align-items: flex-start; width: 600px; transform: scale(var(--s)); transform-origin: 0 0; font-size: 13px; line-height: 1.55; }
.demo-col { display: flex; flex-direction: column; }
.demo-col-mail { width: 318px; flex: none; }
.demo-col-out { width: 238px; flex: none; }
.demo-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--shadow-float); padding: 16px 18px; color: var(--text);
}
/* email */
.demo-mail-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 12px; }
.demo-avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--fill-2); flex: none; }
.demo-from { color: var(--ink); font-weight: 510; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-time { margin-left: auto; color: var(--faint); font-size: 11px; }
.demo-subject { display: block; color: var(--ink); font-weight: 590; margin-bottom: 8px; }
.demo-greet { margin: 0 0 10px; color: var(--muted); font-size: 12px; }
.demo-spec { list-style: none; margin: 0; padding: 10px 0 0; border-top: 1px dashed var(--line-2); display: grid; gap: 3px; }
.demo-spec mark { background: var(--amber-soft); color: var(--ink); font-weight: 510; }
/* connectors: dashed lanes ending in an amber token */
.demo-link { position: relative; flex: none; background-repeat: repeat; }
.demo-link::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 2px; background: var(--amber); }
.demo-link-h {
  width: 44px; height: 1px; margin-top: 130px;
  background-image: linear-gradient(90deg, var(--lane) 0 6px, transparent 6px 10px); background-size: 10px 1px;
  transform-origin: 0 50%;
}
.demo-link-h::after { right: 2px; top: -4px; }
.demo-link-v {
  width: 1px; height: 26px; margin: 4px 0 6px 28px;
  background-image: linear-gradient(180deg, var(--lane) 0 6px, transparent 6px 10px); background-size: 1px 10px;
  transform-origin: 50% 0;
}
.demo-link-v::after { left: -4px; bottom: -2px; }
/* fields the AI read */
.demo-fields { padding: 12px 16px; }
.demo-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px solid #F0F0F2; font-size: 12px; }
.demo-row span { color: var(--faint); }
.demo-row b { font-weight: 510; }
.demo-row b::after { content: "\2713"; margin-left: 6px; color: var(--ok); font-weight: 400; }
/* quote draft */
.demo-quote { padding: 14px 16px; display: grid; gap: 6px; }
.demo-quote-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--faint); }
.demo-status { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: var(--r-pill); background: var(--amber-soft); color: var(--amber-deep); font-weight: 510; white-space: nowrap; }
.demo-status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.demo-quote .kv-total { align-items: baseline; font-size: 12px; }
.demo-total { font-size: 20px; letter-spacing: -0.01em; }
.demo-basis { font-size: 11px; color: var(--muted); }
.demo-actions { display: flex; gap: 6px; margin-top: 4px; }
.demo-btn { flex: 1; text-align: center; font-size: 11px; font-weight: 510; padding: 5px 6px; border: 1px solid var(--line-2); border-radius: var(--r-ctl); color: var(--ink); white-space: nowrap; }
.demo-btn-ok { background: var(--ink); border-color: var(--ink); color: #fff; }

/* one-shot entrance (base styles above are the final frame) */
.demo-mail, .demo-fields, .demo-quote { animation: demo-in .5s cubic-bezier(.2, .7, .2, 1) both; }
.demo-mail { animation-delay: .1s; }
.demo-fields { animation-delay: 1.5s; }
.demo-quote { animation-delay: 2.9s; }
.demo-spec mark { animation: demo-mark .5s ease-out both; animation-delay: calc(.6s + var(--i) * .14s); }
.demo-row { animation: demo-row .35s ease-out both; animation-delay: calc(1.8s + var(--i) * .12s); }
.demo-link-h { animation: demo-draw-h .45s ease-out both; animation-delay: 1.2s; }
.demo-link-v { animation: demo-draw-v .35s ease-out both; animation-delay: 2.6s; }
.demo-status-dot { animation: demo-pulse 2.4s ease-in-out 3.6s infinite; }
@keyframes demo-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes demo-mark { from { background: transparent; } }
@keyframes demo-row { from { opacity: 0; transform: translateX(-6px); } }
@keyframes demo-draw-h { from { transform: scaleX(0); } }
@keyframes demo-draw-v { from { transform: scaleY(0); } }
@keyframes demo-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(242, 163, 58, 0); } 50% { box-shadow: 0 0 0 4px var(--amber-ring); } }
.is-static .demo-mail, .is-static .demo-fields, .is-static .demo-quote, .is-static .demo-spec mark,
.is-static .demo-row, .is-static .demo-link, .is-static .demo-status-dot { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .demo-mail, .demo-fields, .demo-quote, .demo-spec mark, .demo-row, .demo-link, .demo-status-dot { animation: none !important; }
}

/* responsive (demo hero) */
@media (max-width: 1279px) { .demo-wrap { --s: .86; } }
@media (max-width: 1099px) { .demo-wrap { --s: .7; top: 140px; } }
@media (max-width: 899px) {
  .demo-wrap { --s: 1; position: relative; right: auto; top: auto; margin-top: 48px; max-width: 600px; }
}
@media (max-width: 639px) {
  .demo-wrap { width: auto; margin-top: 40px; }
  .demo { width: auto; transform: none; flex-direction: column; align-items: stretch; }
  .demo-col-mail, .demo-col-out { width: auto; }
  .demo-greet { display: none; }
  .demo-link-h {
    width: 1px; height: 26px; margin: 4px 0 6px 28px;
    background-image: linear-gradient(180deg, var(--lane) 0 6px, transparent 6px 10px); background-size: 1px 10px;
    transform-origin: 50% 0; animation-name: demo-draw-v;
  }
  .demo-link-h::after { right: auto; top: auto; left: -4px; bottom: -2px; }
}

/* ---------------------------------------------------------------- Product shot */
.shot-section { position: relative; z-index: 2; margin-top: -88px; }
.shot {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-float); overflow: hidden; font-size: 13px; line-height: 1.5;
}
.shot-bar { height: 36px; border-bottom: 1px solid #EEEEF0; display: flex; align-items: center; gap: 6px; padding: 0 14px; }
.shot-dot { width: 9px; height: 9px; border-radius: 50%; background: #E3E3E6; }
.shot-bar-title { margin-left: 14px; font-size: 12px; color: var(--faint); }
.shot-body { display: grid; grid-template-columns: 200px minmax(0, 1fr) 320px; min-height: 360px; }
.shot-side { border-right: 1px solid #EEEEF0; padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; background: #FAFAFA; }
.shot-side span { padding: 6px 8px; color: var(--muted); border-radius: var(--r-ctl); }
.shot-side .is-current { background: var(--surface); box-shadow: 0 0 0 1px var(--line); color: var(--ink); font-weight: 510; }
.shot-group { padding: 10px 16px; background: #FAFAFA; border-bottom: 1px solid #EEEEF0; color: var(--muted); font-weight: 510; }
.shot-group .num { font-family: var(--mono); font-weight: 400; color: var(--faint); margin-left: 4px; }
.shot-row { display: flex; gap: 12px; align-items: center; padding: 11px 16px; border-bottom: 1px solid #F1F1F3; }
.shot-row:last-child { border-bottom: 0; }
.shot-row.is-selected { background: #FCFCFC; }
.shot-row.is-muted, .shot-row.is-muted .shot-name { color: var(--faint); }
.shot-id { flex: none; width: 56px; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.shot-name { flex: 1; min-width: 0; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot-note { flex: none; font-size: 12px; color: var(--faint); }
.shot-amt { flex: none; font-family: var(--mono); font-size: 12px; color: var(--ink); }
.is-muted .shot-amt { color: var(--faint); }
/* status by shape: open ring = needs check, filled ink = done, filled grey = sent */
.st { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.st-check { border: 1.5px solid var(--amber); }
.st-done { background: var(--ink); }
.st-sent { background: var(--lane); }
.shot-detail { border-left: 1px solid #EEEEF0; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.shot-detail-title { font-weight: 590; color: var(--ink); }
.kv { display: flex; justify-content: space-between; gap: 12px; }
.kv .mono { color: var(--ink); }
.kv-rule { height: 1px; background: var(--ink); }
.kv-total { color: var(--ink); font-weight: 590; }
.shot-rule { margin-top: auto; display: inline-flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); }
.shot-caption { margin: 12px 0 0; font-size: 12px; color: var(--faint); text-align: right; }
@media (max-width: 1099px) { .shot-body { grid-template-columns: minmax(0, 1fr) 280px; } .shot-side { display: none; } }
@media (max-width: 899px) { .shot-section { margin-top: -40px; } }
@media (max-width: 767px) {
  .shot-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .shot-detail { border-left: 0; border-top: 1px solid #EEEEF0; }
  .shot-note { display: none; }
  .shot-caption { text-align: left; }
}
@media (max-width: 420px) { .shot-row { gap: 8px; padding: 10px 12px; } .shot-id { width: 50px; font-size: 11px; } }

/* ---------------------------------------------------------------- Section headings */
.h-section { font-size: 44px; line-height: 1.15; font-weight: 590; letter-spacing: -0.025em; white-space: pre-line; }
.section-title { margin-bottom: 56px; }
@media (max-width: 899px) { .h-section { font-size: 34px; } .section-title { margin-bottom: 40px; } }
@media (max-width: 480px) { .h-section { font-size: 27px; } }
@media (max-width: 400px) { .h-section { font-size: 25px; } }

/* ---------------------------------------------------------------- Difference */
.diff { padding-top: 128px; padding-bottom: 96px; }
.split-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end; margin-bottom: 56px; }
.split-head .h-section { grid-column: span 7; }
.diff-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.diff-item { display: flex; flex-direction: column; gap: 20px; }
.diff-text h3 { margin: 6px 0; font-size: 19px; }
.diff-text p { margin: 0; font-size: 14px; line-height: 1.75; color: var(--muted); }
.illus { height: 280px; border-radius: var(--r-card); background: var(--illus); position: relative; overflow: hidden; font-size: 11px; line-height: 1.5; color: var(--text); }
.illus-center { display: flex; align-items: center; justify-content: center; }
.illus > .gridlines { position: absolute; inset: 0; opacity: .8; }
.tk { position: absolute; width: 22px; height: 15px; border-radius: 2px; }
.tk-out { border: 1.5px solid var(--ink); background: var(--surface); }
.observe-rule { position: absolute; left: calc(100% - 222px); top: 64px; width: 1.5px; height: 160px; background: var(--ink); opacity: .25; }
.observe-card {
  position: absolute; right: 24px; top: 76px; width: 170px; padding: 14px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; gap: 8px;
}
.observe-row { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.observe-line { flex: 1; height: 1px; background: var(--line-2); }
.calc { display: flex; flex-direction: column; gap: 8px; width: 260px; max-width: calc(100% - 32px); }
.calc-factors { display: flex; gap: 6px; align-items: center; font-family: var(--mono); }
.chip-num { padding: 4px 8px; border-radius: var(--r-badge); background: var(--surface); border: 1px solid var(--line); }
.calc-rule { height: 1.5px; background: var(--ink); }
.calc-result { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--muted); }
.calc-big { font-family: var(--mono); font-size: 30px; color: var(--ink); line-height: 1.2; }
.wb { position: absolute; left: 50%; top: 50%; width: 324px; height: 148px; transform: translate(-50%, -50%); }
.wb-draft {
  position: absolute; left: 0; top: 0; width: 110px; height: 76px; padding: 0 14px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center;
}
.wb-draft b { font-size: 12px; }
.wb-h { position: absolute; left: 110px; top: 37px; width: 76px; height: 1.5px; background: var(--ink); }
.wb-gate { position: absolute; left: 186px; top: 16px; width: 6px; height: 44px; border-radius: 3px; background: var(--amber); }
.wb-v { position: absolute; left: 188px; top: 60px; width: 1.5px; height: 52px; background: var(--ink); }
.wb-tools { position: absolute; left: 114px; top: 112px; width: 210px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.wb-tools span { text-align: center; padding: 8px 0; border-radius: var(--r-ctl); background: var(--surface); border: 1px solid var(--line); white-space: nowrap; }
@media (max-width: 899px) {
  .diff { padding-top: 96px; padding-bottom: 72px; }
  .split-head { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 40px; }
  .split-head .h-section { grid-column: auto; }
  .diff-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .illus { height: 240px; }
}
@media (min-width: 600px) and (max-width: 899px) { .diff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 16px; } }

/* ---------------------------------------------------------------- Scenes */
.scenes { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 40px; }
.scene { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.scene-text h3 { margin: 0 0 10px; font-size: 21px; line-height: 1.4; letter-spacing: -0.012em; }
.scene-text p { margin: 0; font-size: 15px; line-height: 1.8; color: var(--muted); }
.scene-illus { height: 300px; border-radius: var(--r-card); background: var(--illus-2); position: relative; overflow: hidden; font-size: 11px; line-height: 1.5; color: var(--text); }
.scene-illus-center { display: flex; align-items: center; justify-content: center; }
.mail {
  position: absolute; left: 24px; top: 28px; width: 210px; max-width: calc(100% - 48px); padding: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; font-size: 10.5px; line-height: 1.7;
}
.mail b { display: block; margin-bottom: 4px; }
.fields {
  position: absolute; right: 20px; bottom: 24px; width: 176px; padding: 10px 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  display: flex; flex-direction: column; gap: 6px; box-shadow: rgba(8, 9, 10, .06) 0 8px 24px;
}
.fields .kv > span:first-child { color: var(--faint); }
.need { color: var(--amber-deep); font-weight: 590; }
.mini-quote {
  width: 240px; max-width: calc(100% - 32px); padding: 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; font-size: 11.5px; display: flex; flex-direction: column; gap: 8px;
}
.page {
  position: absolute; width: 132px; height: 186px; padding: 10px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 4px; display: flex; flex-direction: column; gap: 6px;
}
.page-a { left: 22px; top: 30px; }
.page-b { left: 46%; top: 58px; }
.page-img { height: 30px; border-radius: 2px; background: var(--line); }
.page-price { font-size: 10px; color: var(--ink); }
.page-price.is-flagged { outline: 1.5px solid var(--amber); outline-offset: 2px; border-radius: 2px; }
.page-line { height: 4px; background: var(--fill-2); }
.verdicts { position: absolute; right: 18px; bottom: 22px; display: flex; flex-direction: column; gap: 5px; font-size: 10.5px; }
.verdict { padding: 3px 8px; border-radius: var(--r-badge); white-space: nowrap; }
.verdict-ok { background: var(--surface); border: 1px solid var(--line); }
.verdict-ok::before { content: "\2713\00a0"; }
.verdict-ng { background: var(--amber); color: var(--amber-ink); font-weight: 590; }
.progress-illus { width: 270px; max-width: calc(100% - 32px); display: flex; flex-direction: column; gap: 14px; }
.pi-track { display: flex; align-items: center; }
.pi-track .sq { width: 12px; height: 12px; }
.pi-track .sq-lg { width: 14px; height: 14px; }
.sq-todo { border: 1.5px solid var(--lane); }
.pi-line { flex: 1; height: 1.5px; background: var(--ink); }
.pi-line-todo { background: var(--lane); }
.pi-labels { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); }
.pi-labels .ink { font-weight: 590; }
.pi-reply { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; line-height: 1.7; }
@media (max-width: 1099px) { .scenes { grid-template-columns: minmax(0, 1fr); gap: 48px; } }
@media (max-width: 639px) {
  .scene { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .scene-illus { height: 280px; }
}

/* ---------------------------------------------------------------- Cases (fictional) */
.cases-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 48px; }
.pill-label { font-size: 12px; color: var(--muted); border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 3px 10px; white-space: nowrap; }
.cases { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; }
.case-main { background: var(--ink); color: #F4F4F5; border-radius: 14px; overflow: hidden; display: grid; grid-template-rows: 280px auto; }
.case-art { position: relative; overflow: hidden; background: #141517; }
.case-tag { position: absolute; top: 28px; font-family: var(--mono); font-size: 11px; color: var(--faint); }
.tk-light { border: 1.5px solid #F4F4F5; }
.tk-amber-line { border: 1.5px solid var(--amber); }
.case-gate { position: absolute; left: 52%; top: 56px; width: 6px; height: 190px; border-radius: 3px; background: var(--amber); }
.case-lane { position: absolute; left: 58%; right: 36px; height: 1px; background: #3C3F45; }
.run-light { left: 57%; width: 26px; height: 18px; background: #F4F4F5; --ex: 250px; --dur: 6s; }
.case-body { padding: 32px 36px 36px; display: flex; flex-direction: column; gap: 18px; }
.case-meta { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.case-quote { margin: 0; font-size: 24px; line-height: 1.5; font-weight: 510; letter-spacing: -0.012em; color: #fff; }
.case-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; border-top: 1px solid #2A2C30; padding-top: 18px; }
.metric { display: block; font-family: var(--mono); font-size: 22px; color: #fff; line-height: 1.4; }
.metric-label { font-size: 12px; color: var(--faint); }
.case-side { display: flex; flex-direction: column; gap: 16px; }
.case-card { flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.case-quote-sm { margin: 0; font-size: 18px; line-height: 1.6; font-weight: 510; color: var(--ink); }
.case-tags { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.case-tags span { font-size: 12px; padding: 2px 8px; border-radius: var(--r-badge); background: var(--fill); }
@media (max-width: 899px) { .cases { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .case-main { grid-template-rows: 240px auto; }
  .case-body { padding: 24px 20px 28px; }
  .case-quote { font-size: 20px; }
  .metric { font-size: 18px; }
  .case-card { padding: 22px 20px; }
}

/* ---------------------------------------------------------------- How (steps) */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); }
.step { position: relative; padding: 36px 24px 0 0; display: flex; flex-direction: column; gap: 8px; }
.step-mark { position: absolute; left: 0; top: -6.75px; width: 12px; height: 12px; border-radius: 2px; background: var(--ink); }
.step.is-first .step-mark { background: var(--amber); }
.step-num { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.step h3 { font-size: 18px; }
.step p { margin: 0; font-size: 14px; line-height: 1.75; color: var(--muted); }
@media (max-width: 899px) {
  .steps { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 1.5px solid var(--ink); margin-left: 6px; gap: 32px; }
  .step { padding: 0 0 0 28px; }
  .step-mark { left: -6.75px; top: 4px; }
}

/* ---------------------------------------------------------------- Security */
.security { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; padding-top: 96px; padding-bottom: 96px; }
.security-title { grid-column: span 4; font-size: 28px; line-height: 1.3; letter-spacing: -0.02em; white-space: pre-line; }
.security-body { grid-column: 6 / span 7; display: flex; flex-direction: column; gap: 32px; }
.security-grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; font-size: 14px; line-height: 1.7; }
.security-grid li { border-top: 1px solid var(--line-2); padding-top: 12px; display: flex; flex-direction: column; }
.security-grid li span { color: var(--muted); }
.subsidy { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); padding: 20px 22px; font-size: 14px; line-height: 1.75; }
.subsidy h3 { font-size: 15px; margin-bottom: 6px; }
.subsidy p { margin: 0 0 6px; }
.subsidy p:last-child { margin: 0; }
@media (max-width: 899px) {
  .security { grid-template-columns: minmax(0, 1fr); padding-top: 72px; padding-bottom: 72px; }
  .security-title, .security-body { grid-column: auto; }
}
@media (max-width: 520px) { .security-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- CTA band */
.cta-section { margin-bottom: 0; padding-bottom: 96px; }
.cta-band {
  position: relative; overflow: hidden; border-radius: 16px; background: var(--amber); padding: 72px 64px;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: center;
}
.cta-lanes { position: absolute; inset: 0; pointer-events: none; }
.cta-lane { position: absolute; left: 52%; right: 0; height: 1px; background: rgba(20, 12, 0, .22); }
.run-ink { left: 56%; background: var(--ink); --ex: 480px; --dur: 7s; }
.cta-copy { position: relative; }
.cta-copy h2 { margin: 0; font-size: 48px; line-height: 1.12; letter-spacing: -0.028em; color: var(--amber-ink); white-space: pre-line; }
.cta-actions { position: relative; display: flex; flex-direction: column; gap: 10px; align-self: end; justify-self: end; width: min(100%, 300px); }
.cta-actions .btn { width: 100%; }
.cta-band :focus-visible { outline-color: var(--amber-ink); }
@media (max-width: 899px) {
  .cta-band { grid-template-columns: minmax(0, 1fr); padding: 48px 32px; }
  .cta-lanes { display: none; }
  .cta-copy h2 { font-size: 36px; }
  .cta-actions { justify-self: start; }
}
@media (max-width: 520px) {
  .cta-section { padding-bottom: 72px; }
  .cta-band { padding: 36px 20px; border-radius: 14px; }
  .cta-copy h2 { font-size: 24px; }
  .cta-actions { width: 100%; }
}

/* ---------------------------------------------------------------- Diagnosis + lead layout */
.work-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.work-intro { position: sticky; top: 96px; }
.work-intro .h-section { margin: 8px 0 16px; font-size: 40px; }
.work-intro > p { color: var(--muted); font-size: 15px; line-height: 1.8; margin: 0 0 20px; }
html[lang="en"] .work-intro > p { line-height: 1.6; }
.facts { list-style: none; display: grid; gap: 10px; font-size: 14px; color: var(--text); }
.facts li { display: flex; gap: 10px; align-items: baseline; }
.facts li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--ink); transform: translateY(-1px); }
.facts li:first-child::before { background: var(--amber); }
@media (max-width: 899px) {
  .work-split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .work-intro { position: static; }
  .work-intro .h-section { font-size: 32px; }
}
@media (max-width: 480px) { .work-intro .h-section { font-size: 26px; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.band-white .card { background: var(--canvas); }
.band-white .card .option, .band-white .card .rec, .band-white .card .result-first { background: var(--surface); }

/* ---------------------------------------------------------------- Diagnosis wizard */
.diag-card { padding: 32px; }
.diag-disclaimer {
  font-size: 13px; color: var(--muted); background: var(--surface);
  border: 1px solid var(--line); padding: 10px 14px; border-radius: var(--r-ctl); margin-bottom: 24px; line-height: 1.7;
}
.diag-intro { padding: 8px 0; }
@media (max-width: 480px) { .diag-intro .btn { width: 100%; } }

.progress { margin-bottom: 20px; }
.progress-text { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-bottom: 6px; }
.progress-bar { height: 3px; background: var(--fill-2); border-radius: var(--r-pill); overflow: hidden; }
.progress-bar span { display: block; height: 100%; background: var(--ink); transition: width .2s; }

.q-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.q-fieldset legend { padding: 0; width: 100%; }
.q-title { font-size: 20px; letter-spacing: -0.012em; margin-bottom: 4px; }
.q-hint { font-size: 13px; color: var(--faint); }
.options { display: grid; gap: 8px; }
@media (min-width: 640px) { .options-wide { grid-template-columns: 1fr 1fr; } }
.option {
  display: flex; align-items: flex-start; gap: 12px; min-height: 46px; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface); cursor: pointer;
  line-height: 1.5; font-size: 15px; color: var(--text); transition: border-color .12s, background-color .12s;
}
.option:hover { border-color: var(--line-2); background: var(--fill); }
.option input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); }
.option:has(input:checked) { border-color: var(--ink); background: var(--surface); color: var(--ink); font-weight: 510; box-shadow: 0 0 0 3px var(--amber-ring); }
.option:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.q-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.q-nav .btn { min-width: 120px; }
@media (max-width: 400px) { .q-nav .btn { min-width: 0; flex: 1; } }

.result-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 20px; padding-bottom: 8px; }
.result-title { font-size: 24px; letter-spacing: -0.012em; }
.result-head p { margin: 0; }
.result h4 { font-size: 15px; margin: 8px 0 10px; }
.rec-list { list-style: none; display: grid; gap: 8px; margin-bottom: 20px; }
.rec { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.rec:first-child { border-color: var(--ink); box-shadow: 0 0 0 3px var(--amber-ring); }
.rec-rank {
  flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: var(--r-ctl);
  background: var(--fill-2); color: var(--ink); font-family: var(--mono); font-size: 13px;
}
.rec:first-child .rec-rank { background: var(--amber); color: var(--amber-ink); }
.rec-body { min-width: 0; }
.rec h5 { font-size: 16px; margin-bottom: 4px; }
.rec p { color: var(--muted); font-size: 14px; }
.rec .rec-why { color: var(--ink); font-weight: 510; font-size: 13px; margin: 8px 0 4px; }
.rec-reasons { padding-left: 1.2em; font-size: 14px; color: var(--text); }
.rec-reasons li + li { margin-top: 2px; }

.result-grid { display: grid; gap: 8px; margin-bottom: 8px; }
@media (min-width: 640px) { .result-grid { grid-template-columns: 1fr 1fr; } }
.result-box { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--fill); }
.result-box h4 { margin-top: 0; }
.result-big { font-size: 22px; font-weight: 590; letter-spacing: -0.012em; color: var(--ink); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.result-first { background: var(--surface); }
.badge-estimate {
  display: inline-block; font-size: 11px; font-weight: 510; vertical-align: middle;
  color: var(--muted); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-badge); padding: 0 6px;
}
.formula {
  font-family: var(--mono); font-size: 12px; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 8px 10px;
}
.meter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 4px 0 10px; max-width: 200px; }
.meter span { height: 6px; border-radius: 2px; background: var(--line-2); }
.meter span.on { background: var(--ink); }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
@media (max-width: 480px) { .result-actions .btn { width: 100%; } }

/* ---------------------------------------------------------------- Lead form */
.lead-card { padding: 32px; }
.lead-with-result { background: var(--fill); border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 8px 12px; font-size: 14px; }
.field { margin-bottom: 16px; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 510; font-size: 14px; color: var(--ink); margin-bottom: 6px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; min-height: 42px; padding: 10px 12px; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-ctl);
  transition: border-color .12s, box-shadow .12s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--amber-ring); }
.field [aria-invalid="true"] { border-color: var(--danger); background: var(--danger-soft); }
.field-error { color: var(--danger); font-size: 13px; margin: 4px 0 0; }
.field-error:empty { display: none; }
.field-help { font-size: 13px; margin: 2px 0 0; }
.field-check { display: grid; grid-template-columns: 18px 1fr; column-gap: 12px; align-items: start; }
.field-check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--ink); }
.field-check label { margin: 0; font-weight: 400; }
.field-check .field-help, .field-check .field-error { grid-column: 2; }
.badge-req, .badge-opt {
  display: inline-block; font-size: 11px; font-weight: 510; border-radius: var(--r-badge); padding: 0 5px; margin-left: 4px; vertical-align: middle; line-height: 1.6;
}
.badge-req { background: var(--fill-2); color: var(--ink); }
.badge-opt { background: transparent; color: var(--faint); border: 1px solid var(--line); }
.form-summary { color: var(--danger); background: var(--danger-soft); border: 1px solid rgba(235, 87, 87, .3); border-radius: var(--r-ctl); padding: 10px 14px; margin-bottom: 16px; font-weight: 510; }
#lead-send-error { margin-top: 16px; font-weight: 400; }
.lead-done h3 { color: var(--ink); font-size: 20px; margin-bottom: 8px; }
.lead-done h3::before { content: "\2713\00a0"; color: var(--ok); }
.lead-local-note { font-size: 14px; background: var(--fill); border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 10px 14px; }
.lead-done-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
@media (max-width: 480px) {
  .diag-card, .lead-card { padding: 18px 16px; }
  .rec { flex-direction: column; gap: 8px; padding: 14px; }
}
.q-title:focus, .result-title:focus, .lead-done:focus { outline: none; }

/* ---------------------------------------------------------------- FAQ (compact list) */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; padding-bottom: 72px; }
.faq-title { grid-column: span 4; font-size: 28px; line-height: 1.3; letter-spacing: -0.02em; }
.faq-list { grid-column: 6 / span 7; border-top: 1px solid var(--line-2); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer; list-style: none; padding: 14px 40px 14px 0; font-size: 15px; font-weight: 510; color: var(--ink);
  position: relative; line-height: 1.6;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 7px; height: 7px;
  border-right: 1.5px solid var(--faint); border-bottom: 1.5px solid var(--faint);
  transform: translateY(-70%) rotate(45deg); transition: transform .12s;
}
.faq-list details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-list details p { margin: 0; padding: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.8; }
@media (max-width: 899px) {
  .faq { grid-template-columns: minmax(0, 1fr); }
  .faq-title, .faq-list { grid-column: auto; }
}

/* ---------------------------------------------------------------- Privacy + footer */
.privacy { padding-top: 0; padding-bottom: 72px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.privacy-card { grid-column: 6 / span 7; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); padding: 24px 28px; font-size: 14px; }
.privacy-card h2 { font-size: 16px; margin-bottom: 10px; }
.privacy-list { padding-left: 1.4em; display: grid; gap: 6px; margin-bottom: 12px; }
.privacy-card p { margin: 0; }
@media (max-width: 899px) { .privacy { grid-template-columns: minmax(0, 1fr); } .privacy-card { grid-column: auto; } }
@media (max-width: 480px) { .privacy-card { padding: 20px 18px; } }

.site-footer { border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer-inner { padding-top: 40px; padding-bottom: 56px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand, .footer-meta { display: flex; flex-direction: column; gap: 6px; }
.footer-links { display: flex; gap: 8px 24px; flex-wrap: wrap; align-content: flex-start; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
