/* Golden Canon composition: mirrored half/quarter/eighth guides, common center,
   generous outer eighths on desktop. Small screens keep content and touch sizes. */
.v9-landing{--canon-unit:calc(100% / 8);--landing-vh:100svh;--landing-top:0px;--landing-gap:clamp(48px,6.25vw,96px);position:relative;isolation:isolate;max-width:1536px;padding-inline:clamp(20px,6.25vw,96px)}
.v9-landing>header,.v9-landing>footer{width:100%;max-width:1200px;margin-inline:auto}
.v9-landing .v5-hero{max-width:960px;margin:auto;padding-block:48px 64px}
.v9-landing .v5-hero-art{height:clamp(192px,24vw,272px);margin-bottom:24px;max-width:480px}
.v9-landing .v5-hero-art>.avatar.portrait{width:clamp(168px,20vw,248px);height:clamp(168px,20vw,248px)}
.v9-landing .v5-hero h1{font-size:clamp(40px,5.2vw,72px);letter-spacing:-.045em}
.v9-landing .v5-hero>p{max-width:480px;font-size:17px;margin-block:24px}
.v9-ambient{position:absolute;inset:0;z-index:-1;pointer-events:none;overflow:hidden;mask-image:linear-gradient(transparent,#000 6%,#000 90%,transparent)}
.v9-ambient svg{position:absolute;top:0;left:50%;width:max(100%,1000px);height:1600px;transform:translateX(-50%);fill:none;stroke:var(--accent);stroke-width:1}
.v9-fold{transform-origin:center;animation:canon-drift 24s ease-in-out infinite alternate;opacity:.12}
.v9-fold path:first-child{stroke-width:56;stroke-opacity:.16}
.v9-fold path:last-child{stroke-opacity:.6}
.v9-fold.second{stroke:var(--secondary);animation-delay:-10s;animation-direction:alternate-reverse;opacity:.18}
.v9-ambient svg.v9-ambient-lower{top:auto;bottom:0;transform:translateX(-50%) rotate(180deg)}
.v9-landing .v5-demo-section{min-height:calc(var(--landing-vh)*2.35);margin:0 auto;padding:0;max-width:100%;scroll-margin-top:var(--landing-top)}
.v9-theatre-pin{position:sticky;top:var(--landing-top);height:calc(var(--landing-vh) - var(--landing-top));display:flex;align-items:center;justify-content:center;padding-block:16px;overflow-anchor:none}
.v9-landing .capability-theatre{--stage-height:clamp(176px,calc(var(--landing-vh) - var(--landing-top) - 416px),336px);width:100%;max-width:800px;margin:0 auto;flex:none}
.v9-landing .theatre-tabs{max-width:480px}
.v9-landing .theatre-tabs button{min-height:48px;font-size:12px}
.v9-landing .theatre-caption{min-height:112px;padding:24px 0 16px;gap:8px}
.v9-landing .theatre-caption h2{font-size:32px;line-height:1.15;max-width:600px}
.v9-landing .theatre-caption p{font-size:16px;line-height:1.5;max-width:480px}
.v9-landing .theatre-stage{border-radius:32px;background:color-mix(in srgb,var(--surface-2) 88%,transparent)}
.v9-landing .theatre-actions{flex-direction:row;justify-content:center;gap:24px}
.v9-landing .theatre-actions>.primary{width:auto;min-width:224px;padding-inline:24px}
.v9-landing .theatre-actions>.text-button{min-height:48px;font-size:14px}
.v9-landing .theatre-identity{top:calc(50% - 48px)}
.v9-landing .theatre-identity .avatar{width:160px;height:160px}
.v9-landing .theatre-orbit{display:none}
.v9-landing .theatre-status{font-size:13px;min-height:20px;margin-top:16px}
.v9-landing .theatre-progress{margin:8px 0 16px}
.v9-landing .v5-story{grid-template-columns:3fr 4fr;gap:var(--canon-unit);max-width:1104px;margin:auto;padding-block:var(--landing-gap)}
.v9-landing .v5-story h2{font-size:clamp(32px,3.5vw,48px);line-height:1.14;letter-spacing:-.04em;margin:0 0 24px}
.v9-landing .v5-story p{font-size:16px;line-height:1.65;max-width:400px}
.v9-landing .v8-search-scene{padding:32px 24px;max-width:480px;justify-self:center;width:100%}
.v9-landing .v8-privacy{max-width:1104px;margin:var(--landing-gap) auto;min-height:420px;padding:64px 32px}
.v9-landing .v8-persona-story{grid-template-columns:4fr 3fr}
.v9-landing .v8-persona-story>div:first-child{max-width:480px;justify-self:center}
.v9-landing .v8-persona-art{min-height:320px}
.v9-landing .v5-pricing{max-width:1200px;margin:auto;padding-block:var(--landing-gap)}
.v9-landing .v5-landing-intro{margin:0 auto 40px}
.v9-landing .v5-price-grid{gap:24px;margin:0}
.v9-landing .v5-price-grid b{font-size:24px;line-height:1.3}
.v9-landing .v5-price-grid p{font-size:16px}
.v9-landing .v8-integrations{padding-block:var(--landing-gap)}
.landing-roadmap {
  max-width: 1104px;
  margin-inline: auto;
  padding-block: var(--landing-gap);
  scroll-margin-block-start: 24px;
}
.landing-roadmap-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 6vw, 80px);
  padding: 0;
  margin: 0;
  list-style: none;
}
.landing-roadmap-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding-block: 24px;
  border-block-start: 1px solid var(--line);
}
.landing-roadmap-list .icon { width: 24px; height: 24px; color: var(--accent-ink); }
.landing-roadmap-list h3 { margin: 0; font: 600 20px/1.25 var(--display); }
.landing-roadmap-list p { margin: 8px 0 0; max-width: 44ch; font-size: 16px; line-height: 1.6; color: var(--muted); }
@media (min-width: 761px) {
  .landing-roadmap-list li:last-child { grid-column: 1 / -1; }
  .landing-roadmap-list li:last-child p { max-width: 64ch; }
  .landing-roadmap-link { display: inline-flex; min-height: 44px; align-items: center; padding-inline: 8px; }
}
@media (max-width: 760px) {
  .landing-roadmap-list { grid-template-columns: minmax(0, 1fr); }
}
.v9-landing .v5-landing-footer{margin-top:32px}
.v9-landing .v5-demo-section[data-fits=false]{min-height:0}
.v9-landing [data-fits=false]>.v9-theatre-pin{position:relative;top:auto;height:auto;padding-block:32px}
@keyframes canon-drift{to{transform:translate(24px,-32px) rotate(3deg)}}
@media(min-width:761px) and (max-height:820px){
 .v9-landing .v5-hero{padding-block:24px 32px}
 .v9-landing .v5-hero-art{height:176px;margin-bottom:24px}
 .v9-landing .v5-hero-art>.avatar.portrait{width:160px;height:160px}
 .v9-landing .v5-hero h1{font-size:56px}
 .v9-landing .v5-hero>p{font-size:16px;line-height:1.5;margin-block:20px}
}
@media(max-width:760px){
 .v9-landing{padding-inline:20px;--canon-unit:24px;--landing-gap:56px}
 .v9-landing .v5-hero{padding-block:24px 40px}
 .v9-landing .v5-hero-art{height:192px;margin-bottom:24px;max-width:360px}
 .v9-landing .v5-hero>p{font-size:16px;line-height:1.6;max-width:340px}
 .v9-landing .v5-hero h1{font-size:clamp(36px,10.2vw,48px)}
 .v9-landing .v5-hero-cta{gap:8px}
 .v9-landing .v5-hero-cta .button{min-height:48px}
 .v9-landing .v5-demo-section{min-height:calc(var(--landing-vh)*2.2)}
 .v9-landing .theatre-caption{min-height:136px;padding:20px 0 16px}
 .v9-landing .theatre-caption h2{font-size:26px;max-width:100%}
 .v9-landing .theatre-caption p{font-size:14px;max-width:360px;line-height:1.5}
 .v9-landing .theatre-stage{border-radius:24px}
 .v9-landing .theatre-actions{flex-direction:column;gap:0}
 .v9-landing .theatre-actions>.primary{width:100%;min-height:48px}
 .v9-landing .theatre-actions>.text-button{min-height:44px}
 .v9-landing .theatre-status{margin-top:12px;font-size:12px}
 .v9-landing .theatre-progress{margin:8px 0 12px}
 .v9-landing .v5-story,.v9-landing .v8-persona-story{grid-template-columns:1fr;gap:32px;padding-block:48px}
 .v9-landing .v5-story h2{max-width:400px;margin:0 auto 20px}
 .v9-landing .v5-story>div>p{max-width:360px;font-size:16px}
 .v9-landing .v8-privacy{margin:32px auto;padding:48px 24px;min-height:400px}
 .v9-landing .v8-privacy p{font-size:16px}
 .v9-landing .v8-persona-art{min-height:272px;gap:24px}
 .v9-landing .v5-price-grid{gap:16px}
 .v9-landing .v5-site-header{padding-block:16px;gap:12px}
 .v9-ambient svg{width:850px;opacity:.75}
}
@media(max-width:350px){.v9-landing .theatre-caption{min-height:168px}}
@media(max-height:700px){
 .v9-landing .theatre-caption{min-height:96px;padding:16px 0 12px}
 .v9-landing .theatre-caption h2{font-size:24px}
 .v9-landing .theatre-caption p{font-size:13px}
 .v9-landing .theatre-tabs button{min-height:44px;flex-direction:row;gap:4px;font-size:11px}
 .v9-landing .theatre-tabs button .icon{width:16px;height:16px}
 .v9-landing .scene-request{top:12px;padding:12px;font-size:12px}
 .v9-landing .theatre-identity{top:72px}
 .v9-landing .theatre-identity .avatar{width:96px;height:96px}
 .v9-landing .arranged-day{gap:8px}
 .v9-landing .plan-line{font-size:12px;gap:8px}
 .v9-landing .plan-line>span,.v9-landing .free-time{padding:12px;font-size:12px}
 .v9-landing .voice-theatre>.avatar{top:72px;width:80px;height:80px}
 .v9-landing .demo-wave{top:144px;height:32px}
 .v9-landing .spoken-thought{top:100px;font-size:12px}
 .v9-landing .voice-result{bottom:8px;padding:4px 12px;font-size:11px}
 .v9-landing .brief-page{padding:16px}
 .v9-landing .brief-page h3{font-size:20px;margin:8px 0 4px}
 .v9-landing .brief-action{margin-top:8px}
}
@media(max-width:350px) and (max-height:700px){.v9-landing .theatre-caption{min-height:152px}}
@media(prefers-reduced-motion:reduce){.v9-fold{animation:none}.v9-landing .v5-demo-section{min-height:0}.v9-theatre-pin{position:relative;top:auto;height:auto;padding-block:40px}}
[data-motion=reduce] .v9-fold{animation:none}
[data-motion=reduce] .v9-landing .v5-demo-section{min-height:0}
[data-motion=reduce] .v9-theatre-pin{position:relative;top:auto;height:auto;padding-block:40px}

.landing-trailer-link { white-space: nowrap; }
html:has(.landing-trailer) { scrollbar-gutter: stable; }
html:has(.landing-trailer[open]), body.landing-mode:has(.landing-trailer[open]) { overflow: hidden; }
.landing-trailer-link .icon { width: 17px; height: 17px; }
.landing-trailer-time {
  font-size: .82em;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
dialog.landing-trailer {
  width: min(1240px, calc(100% - 24px));
  max-width: calc(177.78dvh - 256px);
  max-height: calc(100dvh - 16px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #1b191e;
  color: #faf9f6;
  color-scheme: dark;
  overflow: hidden;
  backdrop-filter: none;
}
dialog.landing-trailer[open] { animation: none; }
.landing-trailer::backdrop { background: rgba(16, 13, 19, .87); }
.trailer-deck { background: #1b191e; color: #faf9f6; padding: 0; }
.trailer-head, .trailer-tools, .trailer-sound { display: flex; align-items: center; }
.trailer-head { justify-content: space-between; padding: 2px 10px 2px 20px; }
.landing-trailer h2 {
  display: flex; align-items: center; gap: 10px; margin: 0;
  font: 600 16px/1.25 var(--font); letter-spacing: -.015em;
}
.trailer-head img { display: block; width: 22px; height: 22px; }
.trailer-screen { position: relative; background: #100e12; }
.landing-trailer video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; cursor: pointer; }
.landing-trailer video::cue { color: white; background: rgba(17, 14, 20, .88); }
.trailer-transport { padding: 0 18px 7px; }
.trailer-tools { gap: 3px; }
.trailer-control {
  appearance: none; display: inline-grid; place-items: center; flex: none;
  position: relative; width: 44px; height: 44px; min-height: 44px; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer; color: #f4f2f3; background: transparent;
}
.trailer-control[hidden], .landing-trailer-error[hidden], .trailer-loading[hidden] { display: none; }
.trailer-control .icon { width: 21px; height: 21px; }
.trailer-control[data-film="play"] { color: #19181b; background: var(--secondary); width: 44px; height: 44px; }
.trailer-control[data-film="play"] .icon { width: 18px; height: 18px; }
.trailer-control[aria-pressed="true"] { color: var(--secondary); }
.trailer-control[aria-pressed="true"]::after {
  content: ""; position: absolute; bottom: 5px; width: 12px; height: 2px; border-radius: 2px; background: currentColor;
}
.trailer-control:focus-visible, .trailer-range:focus-visible, .landing-trailer-error a:focus-visible {
  outline: 2px solid #d4c8ff; outline-offset: 1px;
}
.trailer-clock { margin: 0 auto 0 9px; white-space: nowrap; font: 600 14px/1 var(--font); font-variant-numeric: tabular-nums; }
.trailer-clock > :not([data-elapsed]) { color: #bcb8c1; font-weight: 430; }
.trailer-sound { gap: 1px; }
.trailer-range {
  --played: 0%; --track: linear-gradient(to right, var(--secondary) var(--played), #635e69 var(--played));
  appearance: none; display: block; margin: 0; padding: 0; border: 0; border-radius: 4px;
  height: 24px; min-height: 0; cursor: pointer; background: transparent; color: var(--secondary);
}
.trailer-range:disabled { cursor: default; }
.trailer-seek { width: 100%; }
.trailer-volume { --played: 100%; width: 70px; margin-right: 7px; }
.trailer-range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: var(--track); }
.trailer-range::-moz-range-track { height: 4px; border-radius: 4px; background: var(--track); }
.trailer-range::-webkit-slider-thumb {
  appearance: none; width: 12px; height: 12px; margin-top: -4px; border: 0; border-radius: 50%; background: currentColor;
}
.trailer-range::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: currentColor; }
.landing-trailer-error {
  position: absolute; inset: auto 8px 8px; margin: 0; padding: 10px 14px; border-radius: 8px;
  background: #252129; color: #faf9f6; font: 500 15px/1.5 var(--font);
}
.landing-trailer-error a { color: var(--secondary); text-decoration: underline; }
.trailer-loading {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  padding: 8px 14px; border-radius: 8px; background: #252129; color: #faf9f6; font: 500 15px/1.5 var(--font);
}
@media (hover: hover) {
  .trailer-control:hover { background: #38343d; }
  .trailer-control[data-film="play"]:hover { background: #e6ff90; }
}
@media (max-width: 600px) {
  dialog.landing-trailer { width: calc(100% - 12px); border-radius: 12px; }
  .landing-trailer video::cue { font-size: 14px; }
  .trailer-head { padding-left: 13px; padding-right: 4px; }
  .trailer-transport { padding: 0 10px 6px; }
  .trailer-tools { gap: 1px; }
  .trailer-volume { display: none; }
}
@media (pointer: coarse) {
  .trailer-seek { height: 44px; }
}
@media (orientation: landscape) and (max-height: 540px) {
  dialog.landing-trailer { max-width: calc(177.78dvh - 122px); }
  .trailer-head { position: absolute; z-index: 1; top: 3px; right: 3px; padding: 0; }
  .trailer-head h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .trailer-head button { background: rgba(20, 18, 23, .82); }
  .trailer-transport { display: flex; align-items: center; gap: 13px; padding: 4px 10px; }
  .trailer-tools { display: contents; }
  .trailer-control[data-film="play"] { order: -2; }
  .trailer-clock { order: -1; margin: 0; }
  .trailer-seek { flex: 1; width: 0; }
  .trailer-volume { display: none; }
}
.trailer-deck:fullscreen {
  width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; background: #100e12;
}
.trailer-deck:fullscreen .trailer-screen { flex: 1; min-height: 0; }
.trailer-deck:fullscreen video { height: 100%; object-fit: contain; }
.trailer-deck:fullscreen .trailer-transport { background: #1b191e; padding-bottom: max(7px, env(safe-area-inset-bottom)); }
