/* Homepage presentation (Nov 2026). Product interactions stay in hero-prompt.js / the landing controller.
   Palette: ink, blue and white only. Shared header/footer/fonts belong to site-system.css. */
.marketing-home { --home-line:var(--color-rule); --home-soft:var(--color-paper-2); --home-ease:cubic-bezier(.65,0,.35,1);
  /* Surfaces sit on the page without outlines; a soft shadow separates them when needed. */
  --home-float:0 1px 2px oklch(30% .03 260 / .05),0 24px 60px -24px oklch(30% .04 260 / .22); background:var(--color-paper); }

/* ── Hero: decorative sheet behind the headline and the real composer ── */
.marketing-home .home-hero { position:relative; overflow:hidden; padding:88px 0 96px; }
.marketing-home .home-hero-grid,.marketing-home .home-hero-live { position:absolute; inset:0; }
.marketing-home .home-hero-grid { display:flex; flex-direction:column; color:var(--color-muted); --home-grid-line:oklch(93% .008 255); font:12px var(--font-outlier);
  -webkit-mask-image:radial-gradient(ellipse 100% 95% at 50% 45%,#000 55%,transparent 100%); mask-image:radial-gradient(ellipse 100% 95% at 50% 45%,#000 55%,transparent 100%); }
.marketing-home .home-hero-row { display:grid; grid-template-columns:44px repeat(12,minmax(0,1fr)); height:44px; flex:0 0 44px; border-bottom:1px solid var(--home-grid-line); }
.marketing-home .home-hero-row > span { display:flex; align-items:center; min-width:0; padding:0 10px; overflow:hidden; border-right:1px solid var(--home-line); white-space:nowrap; border-right-color:var(--home-grid-line); transition:background .6s; }
.marketing-home .home-hero-row > span:first-child,.marketing-home .home-hero-row:first-child > span { justify-content:center; color:var(--color-muted); opacity:.55; }
.marketing-home .home-hero-row .is-head { color:var(--color-muted); font-weight:600; }
.marketing-home .home-hero-row .is-filled { color:var(--color-ink); font-weight:500; }
.marketing-home .home-hero-row .is-total { font-weight:700; }
.marketing-home .home-hero-row .is-over { color:var(--color-accent-ink); background:var(--color-ink); font-weight:600; }
.marketing-home .home-hero-row .is-flash { background:var(--color-selection); transition:none; }
.marketing-home .home-hero-live { z-index:1; pointer-events:none; }
.marketing-home .home-hero-cursor,.marketing-home .home-hero-selection { position:absolute; left:0; top:0; opacity:0; transition:transform .7s var(--home-ease),width .5s,height .5s,opacity .2s; }
.marketing-home .home-hero.is-jumping :is(.home-hero-cursor,.home-hero-selection) { transition:none; }
.marketing-home .home-hero-cursor { display:flex; align-items:flex-start; gap:2px; color:var(--color-accent); }
.marketing-home .home-hero-cursor b { margin-top:14px; padding:2px 7px; border-radius:5px; background:var(--color-accent); color:var(--color-accent-ink); font:600 11px var(--font-outlier); }
.marketing-home .home-hero-selection { border:2px solid var(--color-accent); background:oklch(60% .2 260 / .06); }
.marketing-home .home-hero-selection i { position:absolute; right:-4px; bottom:-4px; width:7px; height:7px; background:var(--color-accent); border:1px solid var(--color-paper); }
/* Give the four travel results room while keeping the central headline unobstructed. */
.marketing-home .home-hero-grid.is-travel .home-hero-row:nth-child(n+4):nth-child(-n+7) { height:76px; flex-basis:76px; }
.marketing-home .home-hero.is-filling .home-hero-selection { transition:height 1.2s var(--home-ease); }
.marketing-home .home-hero.is-filling .home-hero-cursor { transition:transform 1.2s var(--home-ease); }
.marketing-home .home-hero-row .is-workflow img { display:block; width:100%; height:100%; object-fit:cover; object-position:50% 42%; }
/* The spending chart spans two background columns and three rows, away from the composer. */
.marketing-home .home-hero-row .is-trend { position:relative; overflow:visible; padding:0; }
.marketing-home .home-hero-row .is-trend svg { position:absolute; top:0; left:0; width:calc(200% + 1px); height:132px; color:var(--color-accent); }
.marketing-home .home-trend-grid { fill:none; stroke:var(--home-line); stroke-width:1; }
.marketing-home .home-trend-area { fill:var(--color-selection); }
.marketing-home .home-trend-line { fill:none; stroke:currentColor; stroke-width:2; }
.marketing-home .is-trend circle { fill:currentColor; }
.marketing-home .is-trend text { fill:var(--color-muted); font:9px var(--font-outlier); }
/* Workflow cells reuse the product's state labels (等待审批 / 执行中 / 已完成). */
.marketing-home .home-hero-row .is-workflow { position:relative; padding:0; }
.marketing-home .home-hero-row .is-workflow em,.marketing-home .home-cell-state { position:absolute; left:5px; top:5px; z-index:1; display:flex; align-items:center; gap:4px; padding:2px 6px; border-radius:4px; background:oklch(100% 0 0 / .92); color:var(--color-muted); font:600 9px var(--font-outlier); font-style:normal; }
.marketing-home .home-hero-row .is-workflow em i,.marketing-home .home-cell-state i { width:5px; height:5px; border-radius:50%; background:var(--color-accent); }
.marketing-home :is(.home-hero-row .is-running,.home-life-cell.is-running) { background:repeating-linear-gradient(100deg,var(--home-soft) 0 30%,var(--color-paper) 40%,var(--home-soft) 55%) 0 0/300% 100%; animation:home-skeleton 1.4s linear infinite; }
.marketing-home :is(.home-hero-row .is-running em i,.home-cell-state .is-spin) { width:7px; height:7px; background:none; border:1.5px solid var(--color-accent); border-right-color:transparent; animation:home-spin .8s linear infinite; }
.marketing-home :is(.home-hero-row .is-done,.home-life-cell.is-done) { background:linear-gradient(135deg,var(--color-selection),var(--color-accent)); }
.marketing-home .home-hero-row .is-done { animation:home-pop .5s var(--ease-out); }
.marketing-home .home-hero-row .is-media-1,.marketing-home .home-media.is-dark { background:linear-gradient(160deg,var(--home-soft),var(--color-ink)); }
.marketing-home .home-hero-row .is-media-2,.marketing-home .home-media.is-light { background:linear-gradient(200deg,var(--color-paper),var(--color-accent)); }
.marketing-home .home-hero-row .is-done em { color:var(--color-accent); }
@keyframes home-skeleton { to { background-position:-300% 0; } }
@keyframes home-spin { to { transform:rotate(360deg); } }
@keyframes home-pop { from { box-shadow:inset 0 0 0 30px oklch(60% .2 260 / .25); } to { box-shadow:inset 0 0 0 0 transparent; } }
@keyframes home-blink { 50% { opacity:0; } }

.marketing-home .home-hero-inner { position:relative; z-index:2; display:flex; flex-direction:column; align-items:center; text-align:center; }
.marketing-home .home-hero .cell-headline { margin:0; font-size:clamp(48px,7.2vw,100px); font-weight:700; line-height:1.22; letter-spacing:-.04em; }
.marketing-home .headline-story { display:block; white-space:nowrap; } /* line breaks come from copy, per locale */
.marketing-home .headline-cell { position:relative; display:inline-block; margin:0 .06em; padding:0 .1em; border:3px solid var(--color-accent); border-radius:3px; color:var(--color-accent); text-align:left; cursor:text; transition:background var(--dur-short); }
.marketing-home .headline-cell:hover { background:oklch(60% .2 260 / .05); }
.marketing-home .headline-address { position:absolute; left:-3px; top:-30px; padding:0 8px; border-radius:4px 4px 4px 0; background:var(--color-accent); color:var(--color-accent-ink); font:600 14px/22px var(--font-outlier); letter-spacing:0; }
.marketing-home .headline-value { white-space:nowrap; }
.marketing-home .headline-handle { position:absolute; right:-8px; bottom:-8px; width:12px; height:12px; background:var(--color-accent); border:2.5px solid var(--color-paper); }
.marketing-home .headline-cell[data-typing] .headline-value { font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-weight:600; letter-spacing:-.04em; }
.marketing-home .headline-cell[data-typing] .headline-value::after { content:''; display:inline-block; width:3px; height:.78em; margin-left:4px; background:var(--color-accent); vertical-align:-.04em; animation:home-blink 1s steps(1) infinite; }
.marketing-home .headline-suggest { position:absolute; left:-3px; top:calc(100% + 10px); z-index:5; display:grid; grid-template-columns:auto auto; gap:2px 22px; min-width:300px; padding:8px; border-radius:10px; background:var(--color-paper); box-shadow:0 0 0 1px var(--home-line),var(--shadow-agent); font:500 13px/1.4 var(--font-body); letter-spacing:0; opacity:0; transform:translateY(-6px); pointer-events:none; transition:opacity var(--dur-short),transform var(--dur-short); }
.marketing-home .headline-suggest b { padding:7px 10px; border-radius:6px; color:var(--color-ink); font:600 12px ui-monospace,Menlo,monospace; }
.marketing-home .headline-suggest b:first-child { background:var(--color-selection); color:var(--color-accent); }
.marketing-home .headline-suggest small { align-self:center; color:var(--color-muted); font-size:12px; }
.marketing-home .headline-cell[data-suggest] .headline-suggest { opacity:1; transform:none; }
.marketing-home .home-hero .intro-description { margin:28px 0 0; color:var(--color-muted); font-size:var(--text-lead); }
.marketing-home .home-hero .intro-description strong { color:var(--color-ink); font-weight:600; }
.marketing-home .hero-prompt.agent-composer { width:min(720px,100%); margin:32px 0 0; padding:20px 20px 14px 22px; border:0; border-radius:var(--radius-card); --tr-focus-base-shadow:var(--home-float); background:var(--color-paper); text-align:left; }
.marketing-home #hero-prompt-input.agent-composer-input { min-height:96px; font:17px/1.6 var(--font-body); }
.marketing-home .hero-prompt textarea::placeholder { color:var(--color-muted); }
.marketing-home .hero-prompt-status { display:block; color:var(--color-muted); font-size:13px; line-height:1.6; }
.marketing-home .hero-prompt-status:empty { display:none; }
.marketing-home .hero-prompt-status:not(:empty) { margin-top:10px; }
.marketing-home .hero-prompt-status a, .marketing-home .home-prompt-retry { color:var(--color-accent); text-decoration:underline; text-underline-offset:3px; }
.marketing-home .hero-prompt-status:has(> .home-prompt-signin) { text-align:center; }
.marketing-home .hero-prompt-status .home-prompt-signin { display:inline-flex; align-items:center; gap:6px; min-height:28px; padding:2px 6px; border-radius:6px; color:color-mix(in srgb,var(--color-muted) 80%,var(--color-accent)); font-size:12px; text-decoration:none; }
.marketing-home .hero-prompt-status .home-prompt-signin:hover { color:var(--color-accent); text-decoration:underline; }
.marketing-home .hero-prompt-status .home-prompt-signin:focus-visible { color:var(--color-accent); outline:2px solid var(--color-accent); outline-offset:2px; }
.marketing-home .home-prompt-retry { border:0; padding:0; background:transparent; font:inherit; cursor:pointer; }
/* Prompt suggestions: the active one shows the demo's playback progress. */
.marketing-home .home-hero-chips { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:6px; margin-top:18px; }
.marketing-home .home-hero-chips button { position:relative; display:inline-flex; align-items:center; gap:7px; overflow:hidden; padding:8px 12px; border:0; border-radius:10px; background:transparent; color:var(--color-muted); font:inherit; font-size:13px; cursor:pointer; transition:color var(--dur-short),background var(--dur-short),box-shadow var(--dur-short); }
.marketing-home .home-hero-chips svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.marketing-home .home-hero-chips button:hover { background:var(--color-paper); box-shadow:0 0 0 1px var(--home-line); color:var(--color-ink); }
.marketing-home .home-hero-chips button.is-active { background:var(--color-paper); box-shadow:0 0 0 1px oklch(60% .2 260 / .35),0 6px 18px -10px oklch(60% .2 260 / .5); color:var(--color-accent); }
.marketing-home .home-hero-chips button i { position:absolute; left:0; bottom:0; width:0; height:2px; background:var(--color-accent); }
.marketing-home .home-hero-chips button.is-active i { animation:home-chip-progress var(--home-scene-duration,24s) linear forwards; }
@keyframes home-chip-progress { to { width:100%; } }
.marketing-home .home-hero-toast { position:absolute; right:max(var(--gutter),calc(50% - 640px)); top:58%; z-index:3; display:flex; flex-direction:column; gap:4px; width:230px; padding:14px 16px; border-radius:14px; background:var(--color-paper); box-shadow:var(--home-float); font-size:12px; text-align:left; opacity:0; transform:translateY(10px); transition:opacity .4s var(--ease-out),transform .4s var(--ease-out); pointer-events:none; }
.marketing-home .home-hero-toast.is-open { opacity:1; transform:none; }
.marketing-home .home-hero-toast b { font-size:13px; }
.marketing-home .home-hero-toast span { color:var(--color-muted); }
.marketing-home .home-hero-toast u { align-self:flex-start; margin-top:6px; padding:5px 10px; border-radius:6px; background:var(--color-accent); color:var(--color-accent-ink); font-weight:600; text-decoration:none; }
.marketing-home .home-hero-toast.is-approved u { display:none; }

/* ── Sections ── */
.marketing-home .home-section { padding:128px 0; scroll-margin-top:24px; }
.marketing-home .home-addr { display:inline-flex; align-items:center; gap:10px; margin:0 0 22px; color:var(--color-muted); font-size:13px; }
.marketing-home .home-addr b { padding:3px 8px; border:1.5px solid var(--color-accent); border-radius:4px; background:var(--color-paper); color:var(--color-accent); font:600 12px ui-monospace,SFMono-Regular,Menlo,monospace; }
.marketing-home .home-title { max-width:820px; margin:0; font-size:var(--text-section); font-weight:700; line-height:1.15; letter-spacing:-.03em; }
.marketing-home .home-title-sub { display:block; color:var(--color-muted); }
.marketing-home .home-title-sm { font-size:clamp(28px,2.8vw,40px); }
.marketing-home .home-body { max-width:460px; margin:20px 0 0; color:var(--color-muted); font-size:var(--text-lead); line-height:1.7; }

/* List ↔ stage switcher. Only the active item shows its description, keeping the column short. */
.marketing-home .home-split { display:grid; grid-template-columns:minmax(0,340px) minmax(0,1fr); gap:56px; align-items:center; margin-top:64px; }
.marketing-home .home-split.is-reversed { grid-template-columns:minmax(0,1fr) minmax(0,340px); }
.marketing-home .home-split.is-reversed .home-list { order:2; }
.marketing-home .home-list { display:flex; flex-direction:column; gap:4px; margin:0; padding:0; list-style:none; counter-reset:home-row; }
.marketing-home .home-list li { position:relative; padding:18px 20px 18px 24px; border-radius:14px; cursor:pointer; outline:none; transition:background var(--dur-short); }
.marketing-home .home-list li::before { content:''; position:absolute; left:0; top:20px; bottom:20px; width:2px; border-radius:2px; background:var(--home-line); transition:background var(--dur-short); }
.marketing-home .home-list li::after { content:attr(data-row); position:absolute; right:20px; top:20px; color:var(--color-muted); font:500 12px ui-monospace,Menlo,monospace; opacity:.6; }
.marketing-home .home-list-tag { display:block; margin-bottom:6px; color:var(--color-muted); font-size:12px; font-weight:500; }
.marketing-home .home-list h3 { margin:0; padding-right:28px; color:var(--color-muted); font-size:18px; font-weight:600; line-height:1.4; transition:color var(--dur-short); }
.marketing-home .home-list h3 br { display:none; }
.marketing-home .home-list-body { display:grid; grid-template-rows:0fr; transition:grid-template-rows .35s var(--ease-out); }
.marketing-home .home-list-body > p { min-height:0; overflow:hidden; margin:0; color:var(--color-muted); font-size:14px; line-height:1.7; }
.marketing-home .home-list li.is-active { background:var(--home-soft); }
.marketing-home .home-list li.is-active::before { background:var(--color-accent); }
.marketing-home .home-list li.is-active::after,.marketing-home .home-list li.is-active .home-list-tag { color:var(--color-accent); opacity:1; }
.marketing-home .home-list li.is-active .home-list-body { grid-template-rows:1fr; }
.marketing-home .home-list li.is-active .home-list-body > p { padding-top:8px; }
.marketing-home .home-list li:is(.is-active,:hover,:focus-visible) h3 { color:var(--color-ink); }
.marketing-home .home-list li:hover:not(.is-active) { background:oklch(97% .005 255 / .6); }
.marketing-home .home-list li:focus-visible { outline:2px solid var(--color-focus); outline-offset:2px; }
.marketing-home .home-stage { position:relative; aspect-ratio:16/9; }
.marketing-home .home-pane { position:absolute; inset:0; overflow:hidden; border-radius:14px; background:var(--color-paper); box-shadow:var(--home-float); transition:opacity .5s var(--ease-out),transform .5s var(--ease-out); }
.marketing-home .home-pane[data-demo-inactive] { opacity:0; transform:translateY(10px); pointer-events:none; }
.marketing-home .home-demo-fallback { display:grid; place-items:center; height:100%; color:var(--color-accent); font-weight:600; }

/* Workspace: formula card + capabilities. */
.marketing-home .home-space { display:grid; grid-template-columns:minmax(0,1.2fr) 320px minmax(0,1fr); gap:40px; align-items:center; }
.marketing-home .home-formula { padding:14px; border-radius:var(--radius-card); background:var(--color-paper); box-shadow:var(--home-float); font-size:12px; --home-line:oklch(93% .008 255); }
.marketing-home .home-formula-bar { display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:8px; background:var(--home-soft); color:var(--color-muted); }
.marketing-home .home-formula-bar code { color:var(--color-ink); font:12px ui-monospace,Menlo,monospace; }
.marketing-home .home-formula-bar u { color:var(--color-accent); text-decoration:none; border-bottom:1.5px dashed var(--color-accent); }
.marketing-home .home-formula-grid { display:grid; grid-template-columns:28px 1fr 96px; margin-top:10px; border-top:1px solid var(--home-line); border-left:1px solid var(--home-line); }
.marketing-home .home-formula-grid > span { display:flex; align-items:center; min-height:30px; padding:6px 8px; border-right:1px solid var(--home-line); border-bottom:1px solid var(--home-line); }
.marketing-home .home-formula-grid > span:nth-child(3n+1),.marketing-home .home-formula-grid > span:nth-child(-n+3) { justify-content:center; background:var(--home-soft); color:var(--color-muted); font-size:11px; }
.marketing-home .home-formula-grid > span:nth-child(n+7) { min-height:58px; }
.marketing-home .home-formula-grid .is-head { font-weight:600; }
.marketing-home .home-formula-grid .is-ref { outline:1.5px dashed var(--color-accent); outline-offset:-3px; }
.marketing-home .home-formula-grid .is-selected { outline:2px solid var(--color-accent); outline-offset:-2px; }
.marketing-home .home-media { display:block; width:100%; height:46px; border-radius:6px; background:linear-gradient(135deg,var(--color-selection),var(--color-accent)); }
.marketing-home .home-formula > p { margin:12px 0 0; color:var(--color-muted); text-align:center; }
.marketing-home .home-caps { margin:0; padding:0; list-style:none; }
.marketing-home .home-caps li { display:flex; flex-direction:column; gap:4px; padding:16px 0; border-bottom:1px solid var(--home-line); }
.marketing-home .home-caps span { color:var(--color-muted); font-size:14px; }

/* The life of a Workflow cell. */
.marketing-home .home-life { margin-top:90px; padding:40px 44px; border-radius:var(--radius-card); background:var(--color-paper); box-shadow:var(--home-float); }
.marketing-home .home-life-head { display:flex; justify-content:space-between; align-items:flex-end; gap:40px; }
.marketing-home .home-life-head h3 { margin:0; font-size:26px; }
.marketing-home .home-life-head p { max-width:420px; margin:0; color:var(--color-muted); font-size:14px; line-height:1.7; }
.marketing-home .home-life-steps { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; margin:34px 0 0; padding:0; list-style:none; }
.marketing-home .home-life-steps li { display:flex; flex-direction:column; gap:4px; opacity:.45; transition:opacity .4s; }
.marketing-home .home-life-steps li.is-active { opacity:1; }
.marketing-home .home-life-steps small { color:var(--color-muted); font-size:13px; }
.marketing-home .home-life-cell { position:relative; height:92px; margin-bottom:14px; overflow:hidden; border-radius:8px; background:var(--home-soft); transition:box-shadow .3s; }
.marketing-home .home-life-steps li.is-active .home-life-cell { box-shadow:0 0 0 2px var(--color-accent); }
.marketing-home .home-life-cell .home-cell-state { left:8px; top:8px; font-size:10px; }
.marketing-home .home-life-cell.is-done .home-cell-state { color:var(--color-accent); }
.marketing-home .home-life-cell.is-stale { background:linear-gradient(135deg,var(--home-soft),var(--color-rule)); }
.marketing-home .home-life-cell.is-stale .home-cell-state i { background:var(--color-ink); }

/* Dark: cost & approval. */
.marketing-home .home-dark { background:var(--color-panel); color:var(--color-panel-ink); }
.marketing-home .home-dark .home-addr { color:var(--color-panel-muted); }
.marketing-home .home-dark .home-addr b { background:transparent; }
.marketing-home .home-dark .home-title-sub { color:var(--color-panel-muted); }
.marketing-home .home-dark-grid { display:grid; grid-template-columns:minmax(0,340px) minmax(0,1fr); gap:56px; align-items:center; margin-top:64px; }
.marketing-home .home-points { margin:0; padding:0; list-style:none; }
.marketing-home .home-points li { display:flex; flex-direction:column; gap:6px; padding:20px 0; border-bottom:1px solid var(--color-panel-rule); }
.marketing-home .home-points b { font-size:17px; }
.marketing-home .home-points span { color:var(--color-panel-muted); font-size:14px; line-height:1.65; }
.marketing-home .home-dark-stage { position:relative; aspect-ratio:16/9; overflow:hidden; border-radius:var(--radius-card); background:radial-gradient(ellipse at 70% 30%,oklch(35% .12 262),var(--color-panel) 70%); box-shadow:0 30px 80px -30px oklch(10% .05 260 / .8); }
.marketing-home .home-pane.is-static { inset:0; border-radius:0; background:transparent; box-shadow:none; }
.marketing-home .home-dark .home-demo-fallback { color:var(--color-panel-ink); }

@media(max-width:960px) {
  .marketing-home .home-split,.marketing-home .home-split.is-reversed,.marketing-home .home-dark-grid,.marketing-home .home-space { grid-template-columns:minmax(0,1fr); }
  .marketing-home .home-split.is-reversed .home-list { order:0; }
  .marketing-home .home-life-steps { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .marketing-home .home-life-head { flex-direction:column; align-items:flex-start; }
  .marketing-home .home-hero-live,.marketing-home .home-hero-toast { display:none; }
  .marketing-home .home-section { padding:88px 0; }
}
@media(max-width:600px) {
  .marketing-home .home-hero { padding:56px 0 64px; }
  .marketing-home .home-hero .cell-headline { font-size:clamp(36px,10vw,56px); }
  .marketing-home .hero-prompt.agent-composer { padding:var(--space-md); }
  .marketing-home #hero-prompt-input.agent-composer-input { min-height:72px; font-size:15px; }
  .marketing-home .home-life { padding:28px 22px; }
}
@media(prefers-reduced-motion:reduce) {
  .marketing-home .home-hero-chips button.is-active i { animation:none; width:100%; }
}
/* Native FAQ disclosures precede the final product entry. */
.marketing-home .home-faq { max-width:800px; padding-top:64px; }
.marketing-home .home-faq h2 { margin:0 0 36px; text-align:center; font-size:36px; font-weight:600; line-height:1.3; letter-spacing:-.035em; }
.marketing-home .home-faq details { border-bottom:1px solid var(--color-rule); }
.marketing-home .home-faq summary { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:24px 0; list-style:none; cursor:pointer; font-size:17px; font-weight:500; line-height:1.6; }
.marketing-home .home-faq summary::-webkit-details-marker { display:none; }
.marketing-home .home-faq summary:focus-visible { border-radius:4px; outline:2px solid var(--color-focus); outline-offset:4px; }
.marketing-home .home-faq summary:active { color:var(--color-accent-hover); }
.marketing-home .home-faq details p { margin:0; padding:0 40px 24px 0; color:var(--color-muted); font-size:15px; line-height:1.9; }
.marketing-home .home-faq-mark { position:relative; width:16px; height:16px; flex:0 0 16px; }
.marketing-home .home-faq-mark::before,.marketing-home .home-faq-mark::after { content:''; position:absolute; background:currentColor; border-radius:1px; }
.marketing-home .home-faq-mark::before { width:14px; height:1.5px; left:1px; top:7px; }
.marketing-home .home-faq-mark::after { width:1.5px; height:14px; left:7px; top:1px; transform:scaleY(1); transition:transform 220ms var(--ease-out); }
.marketing-home .home-faq details[open] .home-faq-mark::after { transform:scaleY(0); }
/* Height changes are intentional: following questions must move with the answer.
   Unsupported engines keep native disclosures; no click interception is needed. */
@supports (interpolate-size:allow-keywords) and (transition-behavior:allow-discrete) {
 .marketing-home .home-faq details { interpolate-size:allow-keywords; }
 .marketing-home .home-faq details::details-content {
  height:0; overflow:clip; opacity:0;
  transition:height 240ms var(--ease-out),opacity 180ms ease,content-visibility 240ms allow-discrete;
 }
 .marketing-home .home-faq details[open]::details-content { height:auto; opacity:1; }
}
@media(prefers-reduced-motion:reduce) {
 .marketing-home .home-faq details::details-content,.marketing-home .home-faq-mark::after { transition:none; }
}
@media(hover:hover) and (pointer:fine) { .marketing-home .home-faq summary:hover { color:var(--color-accent); } }
@media(max-width:760px) {
 .marketing-home .home-faq { padding-top:40px; }
 .marketing-home .home-faq h2 { font-size:28px; margin-bottom:24px; }
 .marketing-home .home-faq summary { font-size:16px; padding:20px 0; }
 .marketing-home .home-faq details p { padding-right:24px; }
}

/* Closing entry belongs to the homepage, ahead of the shared footer: styled as a formula bar. */
.marketing-home .home-closing { display:flex; flex-direction:column; align-items:center; gap:24px; padding-top:120px; padding-bottom:120px; text-align:center; }
.marketing-home .home-closing-bar { display:flex; align-items:center; gap:16px; padding:16px 26px; border-radius:16px; background:var(--color-paper); box-shadow:var(--home-float); }
.marketing-home .home-closing-bar > span { padding-right:16px; border-right:1px solid var(--home-line); color:var(--color-muted); font:500 14px ui-monospace,Menlo,monospace; }
.marketing-home .home-closing-bar > i { color:var(--color-muted); font-size:18px; }
.marketing-home .home-closing h2 { margin:0; font-size:clamp(30px,4vw,52px); font-weight:700; line-height:1.2; letter-spacing:-.03em; }
.marketing-home .home-caret { width:3px; height:clamp(30px,4vw,52px); background:var(--color-accent); animation:home-blink 1s steps(1) infinite; }
.marketing-home .home-closing > p { margin:0; color:var(--color-muted); font-size:var(--text-lead); }
.marketing-home .home-closing .enter { min-height:48px; padding:0 28px; border-radius:12px; font-size:15px; cursor:pointer; }
.marketing-home .home-closing .enter:focus-visible { outline:2px solid var(--color-focus); outline-offset:5px; }
@media(max-width:760px) {
 .marketing-home .home-closing { padding-top:72px; padding-bottom:72px; }
 .marketing-home .home-closing-bar { gap:10px; padding:12px 16px; }
}
/* Scroll-linked motion. Native scroll-driven animations only (no JS); unsupported browsers and
   reduced-motion (base.css) keep the static layout. Targets are wrappers, so pane/tab transitions are untouched. */
@supports (animation-timeline: view()) {
 @keyframes home-rise { from { opacity:0; transform:translateY(48px); } to { opacity:1; transform:none; } }
 @keyframes home-lift { from { opacity:.3; transform:translateY(80px) scale(.94); } to { opacity:1; transform:none; } }
 @keyframes home-hero-out { to { opacity:.15; transform:translateY(-80px) scale(.97); } }
 @keyframes home-grid-drift { to { transform:translateY(120px); } }
 .marketing-home .home-hero-inner { animation:home-hero-out linear both; animation-timeline:view(); animation-range:exit 0% exit 100%; }
 .marketing-home .home-hero-grid,.marketing-home .home-hero-live { animation:home-grid-drift linear both; animation-timeline:view(); animation-range:exit 0% exit 100%; }
 .marketing-home :is(.home-addr,.home-title,.home-body,.home-caps li,.home-points li,.home-life-head,.home-faq h2,.home-closing > p) { animation:home-rise linear both; animation-timeline:view(); animation-range:entry 0% cover 30%; }
 .marketing-home :is(.home-stage,.home-formula,.home-dark-stage,.home-life,.home-closing-bar) { animation:home-lift linear both; animation-timeline:view(); animation-range:entry 0% cover 40%; }
 .marketing-home .home-list li { animation:home-rise linear both; animation-timeline:view(); animation-range:entry 0% cover 25%; }
 .marketing-home .home-life-steps li:nth-child(2) .home-life-cell { animation:home-rise linear both; animation-timeline:view(); animation-range:entry 10% cover 35%; }
 .marketing-home .home-life-steps li:nth-child(3) .home-life-cell { animation:home-rise linear both; animation-timeline:view(); animation-range:entry 20% cover 40%; }
 .marketing-home .home-life-steps li:nth-child(4) .home-life-cell { animation:home-rise linear both; animation-timeline:view(); animation-range:entry 30% cover 45%; }
}
