/* GVERA landing page. Loaded after site.css, which owns tokens, base, buttons, footer and the download page's nav.
   Layout rules: sections are chapters (huge vertical padding), the hero H1 is two lines on a wide measure, the
   bento is 4x3 with grid-auto-flow: dense and spans that sum to 12 cells, and every animation has a reduced-motion
   path. Pictures are the real app screenshots; there is no stock photography. */

.lp { overflow-x: clip; width: 100%; max-width: 100%; }
.lp .wrap { width: min(100% - 40px, 1280px); }

/* grain used by the ambient backgrounds */
.hero-bg, .final-bg { --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* ── floating glass pill nav ─────────────────────────────────────────── */
.pnav { position: fixed; z-index: 50; top: 14px; left: 50%; transform: translateX(-50%); width: min(100% - 28px, 880px); height: 56px; padding: 0 8px 0 18px; display: flex; align-items: center; gap: 16px; border-radius: 999px; background: var(--nav-bg); border: 1px solid var(--line-2); box-shadow: var(--shadow); backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%); }
@media (prefers-reduced-transparency: reduce) { .pnav { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; } }
.pnav-links { display: flex; gap: 2px; margin-left: auto; }
.pnav-links a { text-decoration: none; font-size: 15px; color: var(--ink-3); padding: 8px 13px; border-radius: 999px; transition: color .2s, background .2s; white-space: nowrap; }
.pnav-links a:hover { color: var(--ink); background: var(--surface-2); }
.pnav-end { display: flex; align-items: center; gap: 8px; }
.pnav .icon-btn { border-radius: 999px; border-color: transparent; }
.pnav .btn { border-radius: 999px; }
@media (max-width: 767px) { .pnav-links { display: none; } .pnav-end { margin-left: auto; } .pnav .brand { letter-spacing: .24em; } }

/* ── headings shared by chapters ─────────────────────────────────────── */
.sec { padding: clamp(96px, 13vw, 192px) 0; }
.head { margin-bottom: clamp(48px, 6vw, 88px); }
.h2 { font-size: clamp(2.1rem, 4.6vw, 4.2rem); letter-spacing: -.04em; max-width: 20ch; }
.head .sub { max-width: 54ch; }

/* inline typography images: pills that sit inside type */
.pill-img { display: inline-block; vertical-align: middle; height: .74em; border-radius: 999px; background-size: cover; background-position: center; border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.pill-3d { width: 1.9em; margin: 0 .16em; }
.pill-steps { width: 1.7em; margin: 0 .1em; background-image: url(/assets/img/app-steps-light.webp); background-position: center 30%; }
.pill-evidence { width: 2em; margin: 0 .1em; background-image: url(/assets/img/app-evidence-light.webp); }
:root[data-theme="dark"] .pill-steps { background-image: url(/assets/img/app-steps-dark.webp); }
:root[data-theme="dark"] .pill-evidence { background-image: url(/assets/img/app-evidence-dark.webp); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pill-steps { background-image: url(/assets/img/app-steps-dark.webp); }
  :root:not([data-theme="light"]) .pill-evidence { background-image: url(/assets/img/app-evidence-dark.webp); }
}

/* ── hero: editorial split ───────────────────────────────────────────── */
.hero { position: relative; padding: clamp(120px, 14vw, 190px) 0 clamp(72px, 9vw, 128px); }
.hero-bg { position: absolute; inset: 0 0 auto 0; height: 100%; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(60% 55% at 78% 8%, rgb(76 195 230 / .22), transparent 70%),
    radial-gradient(45% 45% at 8% 30%, rgb(22 112 143 / .14), transparent 70%); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .09; mix-blend-mode: multiply; }
:root[data-theme="dark"] .hero-bg::after { mix-blend-mode: screen; opacity: .06; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-bg::after { mix-blend-mode: screen; opacity: .06; } }
.hero .wrap { position: relative; }
.hero h1 { max-width: none; font-size: clamp(2.5rem, 5vw, 5rem); letter-spacing: -.05em; line-height: 1.04; text-wrap: balance; }
.hero-row { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.hero .lede { margin-top: clamp(24px, 3vw, 40px); max-width: 32ch; font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--ink-2); line-height: 1.5; }
.hero .cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.shot { border: 1px solid var(--line-2); border-radius: var(--r-panel); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lg); }
.shot img { width: 100%; height: auto; }
.hero-shot { will-change: transform; }
.shot { position: relative; }
.viewer { display: block; position: relative; aspect-ratio: 1200 / 1000; background: var(--surface-2); touch-action: pan-y; }
.viewer canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.viewer canvas:active { cursor: grabbing; }
.shot.has3d .viewer { display: block; }
.shot.has3d picture { display: none; }
.vtools { position: absolute; left: 12px; top: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.vt { pointer-events: auto; display: inline-flex; align-items: center; gap: 10px; height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font: 500 12.5px var(--sans); cursor: pointer; }
.vt:hover { color: var(--ink); border-color: var(--ink-3); }
.vt[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.vt.vr { cursor: default; }
.vt input[type="range"] { width: 84px; height: 4px; accent-color: var(--ink); margin: 0; }
.vmeta { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line-2); font: 400 12.5px var(--sans); color: var(--ink-2); pointer-events: none; }
.pill-3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s; }
.pill-3d { position: relative; overflow: hidden; background-color: var(--surface-2); }
.pill-3d.live canvas { opacity: 1; }
@media (max-width: 639px) { .vt:not(.vr):not([data-fit]) { display: none; } .vmeta { font-size: 11.5px; } }
.hero-shot .shot { transform: translateY(0); }
.cap { margin-top: 18px; font-size: 14px; color: var(--ink-3); max-width: 62ch; }
@media (max-width: 1023px) {
  .hero-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) { .hero .cta .btn { flex: 1 1 100%; } .hero h1 br { display: none; } }

/* ── tools marquee ───────────────────────────────────────────────────── */
.tools { padding: 0 0 clamp(64px, 8vw, 112px); }
.tools-h { width: min(100% - 40px, 1280px); margin: 0 auto 32px; font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--ink-3); text-wrap: pretty; }
.mq { overflow: hidden; border-block: 1px solid var(--line); padding: 28px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.mq-track { display: flex; width: max-content; animation: mq 38s linear infinite; }
.mq:hover .mq-track { animation-play-state: paused; }
.mq-row { list-style: none; margin: 0; padding: 0 0 0 clamp(40px, 6vw, 88px); display: flex; align-items: center; gap: clamp(40px, 6vw, 88px); flex: none; }
.mq-row li { display: flex; align-items: center; gap: 14px; color: var(--ink-3); font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-weight: 600; letter-spacing: -.03em; white-space: nowrap; transition: color .25s; }
.mq-row li:hover { color: var(--ink); }
.mq-row .mark { width: 1.15em; height: 1.15em; fill: currentColor; }
@keyframes mq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .mq-track { animation: none; } .mq { overflow-x: auto; } .mq-row[aria-hidden] { display: none; } }

/* ── manifesto: words scrub in on scroll ─────────────────────────────── */
.manifesto { padding: clamp(64px, 8vw, 120px) 0 clamp(32px, 4vw, 64px); }
.scrub { font-size: clamp(1.9rem, 4.4vw, 4rem); line-height: 1.22; letter-spacing: -.035em; font-weight: 600; max-width: 28em; text-wrap: pretty; }
.scrub .w { display: inline-block; }
.js .scrub.is-split .w, .js .scrub.is-split .pill-img { opacity: .12; }

/* ── how it works: horizontal accordion ──────────────────────────────── */
.slices { display: flex; gap: 12px; height: clamp(460px, 58vh, 540px); }
.slice { position: relative; flex: 1 1 0; min-width: 0; border: 1px solid var(--line-2); border-radius: 22px; background: var(--surface); overflow: hidden; transition: flex-grow .7s var(--ease), background .4s, border-color .4s; display: flex; }
.slice.is-open { flex-grow: 5.2; background: var(--surface-2); border-color: var(--accent-line); }
.slice::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 100% 0%, var(--accent-soft), transparent 70%); opacity: 0; transition: opacity .6s; pointer-events: none; }
.slice.is-open::before { opacity: 1; }
.slice-head { all: unset; box-sizing: border-box; cursor: pointer; flex: none; width: 72px; padding: 24px 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between; color: var(--ink-2); }
.slice-head:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; border-radius: 22px; }
.slice-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.slice-ico .icon { width: 22px; height: 22px; }
.slice-title { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; transition: color .3s; }
.slice.is-open .slice-title { color: var(--ink); }
.slice-body { flex: 1 1 auto; min-width: 380px; padding: 40px 40px 40px 8px; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; }
.slice.is-open .slice-body { opacity: 1; visibility: visible; transition: opacity .6s .22s var(--ease), visibility 0s; }
.slice-steps { font: 400 14px/1.5 var(--mono); color: var(--ink-3); }
.slice-text { margin-top: 18px; font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.45; letter-spacing: -.015em; color: var(--ink); max-width: 36ch; }
.slice-body ul { margin: auto 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.slice-body li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.slice-body li .icon { margin-top: 3px; color: var(--accent); }
@media (max-width: 1023px) {
  .slices { flex-direction: column; height: auto; }
  .slice, .slice.is-open { flex: none; flex-direction: column; background: var(--surface-2); }
  .slice-head { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 14px; padding: 24px 24px 0; width: auto; flex-direction: row; justify-content: flex-start; }
  .slice-title { writing-mode: horizontal-tb; transform: none; }
  .slice-body { opacity: 1; visibility: visible; min-width: 0; padding: 16px 24px 28px; }
  .slice-body ul { margin-top: 24px; }
}

/* ── evidence bento: 4 columns x 3 rows, 12 cells, no voids ─────────── */
.evidence { background: var(--surface-2); border-block: 1px solid var(--line); }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(220px, auto)) auto; grid-auto-flow: dense; gap: 14px; }
.card { position: relative; overflow: hidden; padding: clamp(22px, 2.4vw, 34px); border-radius: 22px; border: 1px solid var(--line-2); background: var(--surface); transition: border-color .4s, transform .7s var(--ease); }
.card:hover { border-color: var(--accent-line); }
.card h3 { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; letter-spacing: -.02em; }
.card h3 .icon { color: var(--accent); width: 1.3em; height: 1.3em; }
.card p { margin-top: 12px; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.card code { font-size: .88em; background: var(--surface-3); padding: 2px 7px; border-radius: 6px; }
.c-a { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; background: var(--surface); }
.c-b { grid-column: span 2; background: var(--accent-soft); border-color: var(--accent-line); }
.c-c, .c-d { grid-column: span 1; }
.c-e { grid-column: span 4; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.shots { display: grid; gap: 14px; }
.shots .shot { box-shadow: var(--shadow); }
.shots .shot img { transition: transform 1.1s var(--ease); }
.c-a:hover .shot img { transform: scale(1.03); }
.c-a .cap { margin: 0; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 520px; justify-content: flex-end; }
.chips li { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2); font-size: 15px; color: var(--ink-2); transition: background .25s, color .25s, border-color .25s; }
.chips li:hover { background: var(--accent-soft); color: var(--ink); border-color: var(--accent-line); }
@media (max-width: 1023px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  .c-a { grid-row: auto; grid-column: span 2; }
  .c-b { grid-column: span 2; }
  .c-c, .c-d { grid-column: span 1; }
  .c-e { grid-column: span 2; }
  .chips { justify-content: flex-start; }
}
@media (max-width: 639px) { .bento { grid-template-columns: minmax(0, 1fr); } .c-a, .c-b, .c-c, .c-d, .c-e { grid-column: span 1; } }

/* ── local + cloud + price: cards stack as you scroll ───────────────── */
.stack { position: relative; }
.scard { position: sticky; top: calc(96px + var(--n, 0) * 22px); margin-bottom: 28px; min-height: 360px; padding: clamp(28px, 4vw, 56px); border-radius: 28px; border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow-lg); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: start; transform-origin: 50% 0; }
.scard.alt { background: var(--surface-2); }
.scard.price-card { background: var(--surface); border-color: var(--accent-line); margin-bottom: 0; }
.scard h3 { display: flex; align-items: center; gap: 14px; font-size: clamp(1.6rem, 2.6vw, 2.3rem); letter-spacing: -.035em; }
.scard h3 .icon { width: 1.2em; height: 1.2em; color: var(--accent); }
.scard .lead { margin-top: 16px; color: var(--ink-2); font-size: 1.1rem; max-width: 36ch; }
.scard dl { margin: 0; }
.scard dt { font-weight: 600; font-size: 17px; margin-top: 24px; }
.scard dt:first-child { margin-top: 0; }
.scard dd { margin: 4px 0 0; color: var(--ink-3); font-size: 16px; line-height: 1.55; max-width: 52ch; }
.price { margin-top: 20px; font-size: clamp(3.6rem, 8vw, 6.4rem); font-weight: 600; letter-spacing: -.055em; line-height: 1; }
.price small { font-size: 1.1rem; letter-spacing: 0; font-weight: 400; color: var(--ink-3); margin-left: 10px; }
.price-card .cta { margin-top: 28px; }
.inc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 36px; }
.inc li { display: grid; gap: 6px; align-content: start; }
.inc .icon { color: var(--accent); width: 1.5em; height: 1.5em; margin-bottom: 8px; }
.inc b { font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; }
.inc span { color: var(--ink-3); font-size: 15px; line-height: 1.55; }
@media (max-width: 1023px) { .scard { grid-template-columns: minmax(0, 1fr); position: relative; top: auto; min-height: 0; } }
@media (max-width: 639px) { .inc { grid-template-columns: minmax(0, 1fr); } }

/* ── faq ─────────────────────────────────────────────────────────────── */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq .h2 { position: sticky; top: 112px; }
details { border-top: 1px solid var(--line-2); }
details:last-child { border-bottom: 1px solid var(--line-2); }
summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 4px; font-size: 1.2rem; font-weight: 500; letter-spacing: -.015em; transition: color .2s; }
summary:hover { color: var(--accent); }
summary::-webkit-details-marker { display: none; }
summary .icon { transition: transform .3s var(--ease); color: var(--ink-3); }
details[open] summary .icon { transform: rotate(180deg); }
details .ans { padding: 0 4px 28px; color: var(--ink-2); max-width: 64ch; font-size: 16.5px; }
details .ans code { font-size: .88em; background: var(--surface-3); padding: 2px 7px; border-radius: 6px; }
@media (max-width: 1023px) { .faq-wrap { grid-template-columns: minmax(0, 1fr); } .faq .h2 { position: static; } }

/* ── final call to action: always dark, whatever the theme ──────────── */
.final { position: relative; overflow: hidden; padding: clamp(112px, 15vw, 240px) 0; background: #0b1014; color: #e7edf0; border-top: 0; }
.final-bg { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(55% 70% at 85% 100%, rgb(76 195 230 / .30), transparent 70%),
    radial-gradient(40% 50% at 5% 0%, rgb(22 112 143 / .28), transparent 70%); }
.final-bg::after { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .07; mix-blend-mode: screen; }
.final .wrap { position: relative; }
.final h2 { font-size: clamp(2.8rem, 8vw, 7.5rem); letter-spacing: -.055em; line-height: .98; max-width: 14ch; }
.final .cta { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.btn.light { background: #e7edf0; color: #0b1014; border-color: transparent; }
.btn.light:hover { background: #ffffff; }
.final .code { display: inline-flex; align-items: center; gap: 12px; font: 400 15px/1 var(--mono); padding: 0 7px 0 18px; height: 54px; border-radius: var(--r-ctl); border: 1px solid #2b3a43; background: rgb(255 255 255 / .04); color: #c3cdd3; }
.final .icon-btn { height: 38px; width: 38px; color: #c3cdd3; border-color: #2b3a43; }
.final .icon-btn:hover { background: rgb(255 255 255 / .08); }
@media (max-width: 767px) { .final .cta .btn { flex: 1 1 100%; } .final .code { width: 100%; justify-content: space-between; overflow: hidden; } }

/* ── hero entrance only; scroll motion is GSAP (landing.js) ─────────── */
@media (max-width: 767px) { .lp .wrap { width: min(100% - 32px, 1280px); } .sec { padding: 88px 0; } }
