/* Videoro — public site (landing, legal, support).
 *
 * Rules:
 *  - Monochrome + ONE violet (#8B7CF7). The only eye-catching element is the hero art.
 *  - Colours live in :root only. No glows, no fake controls, no app screenshots.
 *  - CSP is strict (style-src 'self'): no inline style attributes anywhere — use classes.
 *  - Motion is progressive: scroll reveals use CSS scroll timelines and are off for
 *    prefers-reduced-motion.
 */

:root {
  color-scheme: dark;

  --bg:          #08080a;
  --bg-2:        #0c0c0f;
  --surface:     #111115;
  --surface-2:   #18181d;
  --line:        rgba(255, 255, 255, .08);
  --line-2:      rgba(255, 255, 255, .14);
  --text:        #f5f5f7;
  --text-2:      #a3a3ad;
  --text-3:      #6f6f7a;
  --accent:      #8b7cf7;
  --accent-ink:  #0a0a0c;
  --accent-soft: rgba(139, 124, 247, .14);
  --accent-line: rgba(139, 124, 247, .45);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI",
          Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --t-xs: 12px;
  --t-sm: 14px;
  --t-md: 16px;
  --t-lg: 19px;
  --t-xl: clamp(30px, 4.2vw, 52px);
  --t-2xl: clamp(44px, 7.6vw, 96px);

  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 72px; --s9: 120px;

  --r-lg: 24px;
  --r: 16px;
  --r-sm: 10px;
  --head-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 20px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--t-md)/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-sm); }

/* Only inline padding here, so .wrap can be combined with classes that set block padding */
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: var(--s5); }

.skip {
  position: absolute; left: var(--s4); top: -100px; z-index: 100;
  padding: var(--s2) var(--s4); border-radius: 999px;
  background: var(--text); color: var(--bg); font-weight: 600; font-size: var(--t-sm);
}
.skip:focus { top: var(--s3); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------- type */

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.08;
}
h1 { font-size: var(--t-2xl); letter-spacing: -.045em; line-height: 1; }
h2 { font-size: var(--t-xl); letter-spacing: -.035em; }
h3 { font-size: var(--t-lg); letter-spacing: -.015em; line-height: 1.25; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s2);
  margin: 0 0 var(--s4);
  font-size: var(--t-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-3);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--accent); }

.lede { margin: var(--s5) 0 0; font-size: var(--t-lg); line-height: 1.55; color: var(--text-2); max-width: 44ch; }
.muted { color: var(--text-3); }
a.inline { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: text-decoration-color .2s; }
a.inline:hover { text-decoration-color: var(--accent); }

/* Quiet gradient on the biggest headlines — still monochrome */
.shine {
  background: linear-gradient(180deg, #ffffff 30%, #a9a9b6 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  height: 42px; padding: 0 var(--s5);
  border: 1px solid var(--line-2); border-radius: 999px;
  background: transparent; color: var(--text);
  font: 600 var(--t-sm)/1 var(--font);
  white-space: nowrap; cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--surface-2); border-color: rgba(255, 255, 255, .24); }
.btn:active { transform: scale(.98); }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #9d90f9; border-color: #9d90f9; }
.btn-light { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn-light:hover { background: #ffffff; border-color: #ffffff; }
.btn-lg { height: 52px; padding: 0 var(--s6); font-size: var(--t-md); }

.tag {
  display: inline-flex; align-items: center;
  height: 18px; padding: 0 7px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font: 700 10px/1 var(--font); letter-spacing: .08em;
  vertical-align: middle;
}

/* ---------------------------------------------------------------- header */

.head {
  position: sticky; top: 0; z-index: 50;
  height: var(--head-h);
  background: rgba(8, 8, 10, .72);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.head-in { display: flex; align-items: center; gap: var(--s5); height: 100%; }

.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 17px/1 var(--font-display); letter-spacing: -.02em; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }

.nav { display: flex; gap: var(--s1); margin: 0 auto; }
.nav a {
  padding: var(--s2) var(--s3); border-radius: 999px;
  font-size: var(--t-sm); color: var(--text-2);
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--text); }
.head .btn { height: 36px; padding: 0 var(--s4); }

/* Mobile menu: <details>, no JS required */
.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer;
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 999px;
  border: 1px solid var(--line-2);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 18px; height: 18px; }
.menu .icon-close { display: none; }
.menu[open] .icon-open { display: none; }
.menu[open] .icon-close { display: block; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px);
  width: min(280px, calc(100vw - 32px));
  padding: var(--s2);
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
.menu-panel a { display: block; padding: var(--s3) var(--s4); border-radius: var(--r-sm); font-size: var(--t-md); }
.menu-panel a:hover { background: var(--surface); }
.menu-panel hr { border: 0; border-top: 1px solid var(--line); margin: var(--s2) 0; }

/* ---------------------------------------------------------------- sections */

.section { padding: var(--s9) 0; }
.section + .section { padding-top: 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section + .section.alt, .section.alt + .section { padding-top: var(--s9); }

.sec-head { max-width: 720px; margin-bottom: var(--s7); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .lede { margin-left: auto; margin-right: auto; }
.sec-head.center .eyebrow::before { display: none; }
.sec-head .lede { font-size: var(--t-lg); }

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  min-height: min(860px, calc(100svh - var(--head-h)));
  display: grid; align-items: end;
  padding: var(--s9) 0 var(--s8);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(8, 8, 10, .86) 34%, rgba(8, 8, 10, .2) 70%, rgba(8, 8, 10, 0) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(8, 8, 10, 0) 40%);
}
.hero h1 { max-width: 11ch; }
.hero .lede { max-width: 38ch; }

.pill {
  display: inline-flex; align-items: center; gap: var(--s2);
  margin-bottom: var(--s5);
  padding: 6px 14px 6px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2);
  font-size: var(--t-sm); color: var(--text-2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: border-color .2s;
}
.pill:hover { border-color: rgba(255, 255, 255, .28); color: var(--text); }
.pill b { padding: 3px 9px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.pill svg { width: 14px; height: 14px; }

.cta-row { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5);
  margin: var(--s5) 0 0; padding: 0; list-style: none;
  font-size: var(--t-sm); color: var(--text-3);
}
.hero-meta li { display: inline-flex; align-items: center; gap: var(--s2); }
.hero-meta svg { width: 15px; height: 15px; color: var(--text-2); }

/* ---------------------------------------------------------------- stats strip */

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat { padding: var(--s6) var(--s5); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font: 700 clamp(26px, 3vw, 36px)/1.1 var(--font-display); letter-spacing: -.03em; }
.stat span { display: block; margin-top: var(--s2); font-size: var(--t-sm); color: var(--text-2); }

/* ---------------------------------------------------------------- bento */

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s4); }
.card {
  position: relative;
  display: flex; flex-direction: column;
  min-height: 300px; padding: var(--s6);
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.card:hover { border-color: var(--line-2); }
.card h3 { display: flex; align-items: center; gap: var(--s2); }
.card p { margin: var(--s3) 0 0; font-size: var(--t-sm); color: var(--text-2); max-width: 46ch; }
.card .ill { margin-top: auto; padding-top: var(--s6); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.card.row { flex-direction: row; align-items: center; gap: var(--s7); }
.card.row > div { flex: 1; }
.card.row .ill { margin-top: 0; padding-top: 0; }

/* --- illustrations (diagrams, not UI) --- */

.ill { width: 100%; color: var(--text-3); }
.ill svg { width: 100%; height: auto; }

/* timeline diagram */
.tl { display: grid; gap: 10px; position: relative; padding-top: var(--s2); }
.tl-ruler { display: flex; justify-content: space-between; font: 500 11px/1 var(--mono); color: var(--text-3); padding-bottom: 6px; border-bottom: 1px dashed var(--line-2); }
.tl-track { display: flex; gap: 6px; height: 44px; }
.tl-track i { display: block; height: 100%; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line-2); }
.tl-track.thin { height: 22px; }
.tl-track.thin i { border-radius: 6px; }
.tl-track i.sel { border: 2px solid var(--accent); background: var(--accent-soft); }
.tl-track i.gap { background: none; border: 0; }
.tl-track i.wave {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .22) 0 2px, transparent 2px 5px) center / 100% 46% no-repeat,
    var(--surface-2);
}
.w6 { flex: 0 0 6%; }  .w10 { flex: 0 0 10%; } .w14 { flex: 0 0 14%; } .w18 { flex: 0 0 18%; }
.w22 { flex: 0 0 22%; } .w26 { flex: 0 0 26%; } .w30 { flex: 0 0 30%; } .w34 { flex: 0 0 34%; }
.wfill { flex: 1 1 auto; }
.tl-head {
  position: absolute; top: 0; bottom: -6px; left: 41%;
  width: 2px; background: var(--text); border-radius: 2px;
}
.tl-head::before {
  content: ""; position: absolute; top: -2px; left: 50%; translate: -50% 0;
  width: 12px; height: 12px; border-radius: 3px 3px 6px 6px; background: var(--text);
}

/* caption sample */
.caption-demo {
  display: grid; place-items: center; gap: var(--s2);
  min-height: 150px; padding: var(--s5);
  border-radius: var(--r); border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--bg));
  text-align: center;
}
.caption-demo p { margin: 0; font: 800 clamp(20px, 2.4vw, 28px)/1.15 var(--font-display); letter-spacing: -.02em; color: var(--text); text-transform: uppercase; }
.caption-demo mark { background: none; color: var(--accent); }
.caption-demo small { font: 500 11px/1 var(--mono); color: var(--text-3); letter-spacing: .06em; }

/* waveform rows */
.waves { display: grid; gap: var(--s3); }
.wave-row { display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: var(--s3); }
.wave-row span { font-size: var(--t-xs); color: var(--text-3); }
.wave-row svg { height: 40px; }
.wave-row.on span { color: var(--text); }
.wave-row.on svg { color: var(--accent); }

/* ---------------------------------------------------------------- AI tool lists */

.tool-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.tool-group {
  padding: var(--s6);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.tool-group > h3 { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s4); }
.tool-group > h3 small { font: 500 var(--t-sm)/1 var(--font); color: var(--text-3); letter-spacing: 0; }
.tool-list { margin: 0; padding: 0; list-style: none; }
.tool-list li {
  display: grid; grid-template-columns: 36px 1fr; gap: var(--s4); align-items: start;
  padding: var(--s4) 0; border-top: 1px solid var(--line);
}
.tool-list .ic {
  display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line);
  color: var(--text);
}
.tool-list .ic svg { width: 18px; height: 18px; }
.tool-list b { display: flex; align-items: center; gap: var(--s2); font-weight: 600; font-size: var(--t-md); }
.tool-list span { display: block; margin-top: 2px; font-size: var(--t-sm); color: var(--text-2); }

/* ---------------------------------------------------------------- portrait studio */

.studio { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.studio .card { min-height: 0; }
.studio .num { font: 700 44px/1 var(--font-display); letter-spacing: -.04em; color: var(--text); }
.studio .num small { font-size: var(--t-md); color: var(--text-3); letter-spacing: 0; margin-left: 4px; }
.studio h3 { margin-top: var(--s4); }
.studio .words { margin: var(--s2) 0 0; font-size: var(--t-sm); line-height: 1.7; color: var(--text-2); }

/* ---------------------------------------------------------------- split rows */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); align-items: center; }
.split.flip > :first-child { order: 2; }
.ticks { margin: var(--s5) 0 0; padding: 0; list-style: none; }
.ticks li {
  position: relative; padding: var(--s3) 0 var(--s3) var(--s6);
  border-top: 1px solid var(--line);
  font-size: var(--t-md); color: var(--text-2);
}
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 1.15em;
  width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  rotate: -45deg;
}
.frame { border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; background: var(--surface); }
.frame img { width: 100%; }

/* before / after — a real, working comparison */
.compare {
  position: relative; overflow: hidden;
  width: 100%; max-width: 480px; justify-self: end;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-lg); border: 1px solid var(--line);
  --pos: 50%;
  user-select: none; -webkit-user-select: none;
  touch-action: pan-y;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .after { clip-path: inset(0 0 0 var(--pos)); }
.compare .label {
  position: absolute; bottom: var(--s4); z-index: 2;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(8, 8, 10, .66); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: var(--t-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.compare .label.l { left: var(--s4); }
.compare .label.r { right: var(--s4); }
.compare .handle { display: none; }
.compare input { display: none; }
/* JS turns the static split into a draggable comparison */
.js .compare .handle {
  display: block; position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 2;
  width: 2px; translate: -1px 0; background: var(--text); pointer-events: none;
}
.js .compare .handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; translate: -50% -50%;
  width: 40px; height: 40px; border-radius: 999px;
  background: var(--text)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2308080a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 7-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E")
    center / 20px no-repeat;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .45);
}
.js .compare input {
  display: block; position: absolute; inset: 0; z-index: 3;
  width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize;
}
.js .compare input:focus-visible ~ .handle::after { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------------------------------------------------------------- templates marquee */

/* Without JS (or with reduced motion) the row simply scrolls sideways; site.js clones it
   once and adds .looping for a seamless loop */
.marquee { overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.marquee::-webkit-scrollbar { display: none; }
.marquee.looping {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track { display: flex; gap: var(--s4); width: max-content; padding: var(--s2) var(--s5); }
.marquee.looping .marquee-track { padding: var(--s2) 0; }
.marquee .tpl { scroll-snap-align: start; }
.tpl { margin: 0; width: 176px; flex: none; }
.tpl img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--r); border: 1px solid var(--line); background: var(--surface);
}
.tpl figcaption { margin-top: var(--s3); }
.tpl b { display: block; font-size: var(--t-sm); font-weight: 600; }
.tpl span { display: block; font-size: var(--t-xs); color: var(--text-3); }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); margin-top: var(--s7); }
.trio .card { min-height: 0; }
.trio .ic, .pv .ic {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: var(--s5);
  border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2);
}
.trio .ic svg, .pv .ic svg { width: 20px; height: 20px; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--s4); font-size: var(--t-sm); color: var(--accent); }
.card .more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- privacy band */

.pv { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s8); align-items: start; }
.pv h2 { font-size: clamp(34px, 5vw, 64px); }
.pv-list { display: grid; gap: var(--s4); }
.pv-list .card { min-height: 0; padding: var(--s5); flex-direction: row; gap: var(--s4); align-items: flex-start; }
.pv-list .ic { margin: 0; flex: none; }
.pv-list p { margin-top: var(--s1); }
.pv .cta-row { margin-top: var(--s6); }

/* ---------------------------------------------------------------- pricing */

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); max-width: 920px; margin: 0 auto; }
.plan {
  display: flex; flex-direction: column;
  padding: var(--s6); border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
}
.plan.pro { border-color: var(--accent-line); background: linear-gradient(180deg, rgba(139, 124, 247, .08), var(--surface) 40%); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.plan-top h3 { font-size: var(--t-lg); }
.price { margin: var(--s5) 0 0; font: 700 48px/1 var(--font-display); letter-spacing: -.04em; }
.price small { font: 500 var(--t-md)/1 var(--font); color: var(--text-3); letter-spacing: 0; margin-left: 4px; }
.price-note { margin: var(--s3) 0 0; font-size: var(--t-sm); color: var(--text-2); }
.plan ul { margin: var(--s5) 0 var(--s6); padding: 0; list-style: none; }
.plan li { display: flex; gap: var(--s3); padding: 10px 0; border-top: 1px solid var(--line); font-size: var(--t-sm); color: var(--text-2); }
.plan li::before {
  content: ""; flex: none; width: 10px; height: 6px; margin-top: .55em;
  border-left: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); rotate: -45deg;
}
.plan.pro li::before { border-color: var(--accent); }
.plan .btn { margin-top: auto; width: 100%; }
.fine { max-width: 760px; margin: var(--s6) auto 0; text-align: center; font-size: var(--t-xs); line-height: 1.7; color: var(--text-3); }
.fine a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }

/* ---------------------------------------------------------------- FAQ */

.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: var(--s8); align-items: start; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding: var(--s5) 0;
  font: 600 var(--t-md)/1.4 var(--font);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3);
  rotate: 45deg; translate: 0 -3px;
  transition: rotate .25s var(--ease), translate .25s var(--ease);
}
.faq details[open] summary::after { rotate: 225deg; translate: 0 3px; }
.faq summary:hover { color: var(--text); }
.faq details p { margin: 0 0 var(--s5); max-width: 64ch; color: var(--text-2); font-size: var(--t-md); }
.faq details a { color: var(--accent); }

/* ---------------------------------------------------------------- closing CTA */

.closing {
  position: relative; overflow: hidden; isolation: isolate;
  padding: var(--s8) var(--s7);
  border-radius: 32px; border: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
}
.closing img { width: 72px; height: 72px; margin: 0 auto var(--s5); border-radius: 18px; }
.closing h2 { max-width: 16ch; margin: 0 auto; }
.closing .lede { margin-left: auto; margin-right: auto; }
.closing .cta-row { justify-content: center; }

/* ---------------------------------------------------------------- footer */

.foot { border-top: 1px solid var(--line); padding: var(--s8) 0 var(--s7); font-size: var(--t-sm); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--s6); }
.foot-brand p { margin: var(--s4) 0 0; max-width: 32ch; color: var(--text-3); }
.foot h4 { margin: 0 0 var(--s4); font-size: var(--t-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s3); }
.foot ul a { color: var(--text-2); transition: color .2s; }
.foot ul a:hover { color: var(--text); }
.foot-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3);
  margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line);
  color: var(--text-3); font-size: var(--t-xs);
}
.foot-bottom a:hover { color: var(--text); }
.foot.slim { margin-top: 0; padding: var(--s5) 0 var(--s6); }
.foot.slim .foot-bottom { margin-top: 0; padding-top: 0; border-top: 0; }

/* ---------------------------------------------------------------- mobile install bar */

.getbar { display: none; }

/* ---------------------------------------------------------------- legal & support documents */

.doc-hero { padding: var(--s8) 0 var(--s7); border-bottom: 1px solid var(--line); }
.doc-hero h1 { font-size: clamp(40px, 6vw, 72px); }
.doc-hero .lede { max-width: 60ch; }
.doc-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3);
  margin-top: var(--s5); font-size: var(--t-sm); color: var(--text-3);
}
.doc-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); }

.doc-tabs {
  display: inline-flex; gap: 2px; margin-bottom: var(--s6); padding: 3px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
}
.doc-tabs a { padding: 7px 16px; border-radius: 999px; font-size: var(--t-sm); color: var(--text-2); transition: color .2s, background .2s; }
.doc-tabs a:hover { color: var(--text); }
.doc-tabs a[aria-current="page"] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }

.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--s8); padding-block: var(--s7) var(--s9); }
.help-wrap { padding-bottom: var(--s9); }

.toc { position: sticky; top: calc(var(--head-h) + var(--s5)); align-self: start; max-height: calc(100vh - var(--head-h) - 48px); overflow: auto; }
.toc p { margin: 0 0 var(--s3); font-size: var(--t-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; border-left: 1px solid var(--line); }
.toc li { counter-increment: toc; }
.toc a {
  display: flex; gap: var(--s2);
  margin-left: -1px; padding: 6px 0 6px var(--s4);
  border-left: 1px solid transparent;
  font-size: 13.5px; line-height: 1.4; color: var(--text-3);
  transition: color .2s, border-color .2s;
}
.toc a::before { content: counter(toc) "."; min-width: 1.4em; color: var(--text-3); font-variant-numeric: tabular-nums; }
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--text); border-left-color: var(--accent); }

.doc { max-width: 720px; min-width: 0; }
.doc > h2 {
  display: flex; align-items: baseline; gap: var(--s3);
  margin: var(--s8) 0 var(--s4); padding-top: var(--s6);
  border-top: 1px solid var(--line);
  font-size: clamp(22px, 2.4vw, 28px);
}
.doc > h2:first-of-type { margin-top: var(--s7); }
.doc > h2 .n { font: 500 var(--t-sm)/1 var(--mono); color: var(--accent); letter-spacing: 0; }
.doc h3 { margin: var(--s6) 0 var(--s2); font-size: var(--t-md); }
.doc p, .doc li { color: var(--text-2); font-size: 16.5px; line-height: 1.72; }
.doc p { margin: var(--s4) 0 0; }
.doc ul { margin: var(--s3) 0 0; padding-left: 0; list-style: none; }
.doc ul li { position: relative; padding-left: var(--s5); margin-top: var(--s2); }
.doc ul li::before { content: ""; position: absolute; left: 4px; top: .78em; width: 5px; height: 5px; border-radius: 50%; background: var(--text-3); }
.doc a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
.doc a:hover { text-decoration-color: var(--accent); }
.doc strong { color: var(--text); font-weight: 600; }
.doc .intro { font-size: var(--t-lg); line-height: 1.65; color: var(--text-2); margin-top: 0; }

.summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); margin: var(--s6) 0 0; }
.summary > div { padding: var(--s5); border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.summary > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.summary b { display: flex; align-items: center; gap: var(--s2); color: var(--text); font-weight: 600; font-size: var(--t-md); }
.summary b svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.summary span { display: block; margin-top: var(--s2); color: var(--text-2); font-size: var(--t-sm); line-height: 1.6; }

.callout {
  margin: var(--s5) 0 0; padding: var(--s5);
  border-radius: var(--r); background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
}
.callout p:first-child { margin-top: 0; }

.table-scroll { overflow-x: auto; margin: var(--s5) 0 0; border: 1px solid var(--line); border-radius: var(--r); }
.doc table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.doc th, .doc td { text-align: left; vertical-align: top; padding: var(--s4); border-bottom: 1px solid var(--line); }
.doc tr:last-child td { border-bottom: 0; }
.doc th { background: var(--surface); color: var(--text); font-weight: 600; white-space: nowrap; }
.doc td { color: var(--text-2); line-height: 1.6; }
.doc td:first-child { color: var(--text); font-weight: 500; white-space: nowrap; }

.doc-end {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4);
  margin-top: var(--s8); padding: var(--s5);
  border-radius: var(--r); background: var(--surface); border: 1px solid var(--line);
}
.doc-end p { margin: 0; font-size: var(--t-sm); }

/* support */
.help-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); margin-top: var(--s7); }
.help-cards .card { min-height: 0; }
.help-cards .card:hover { border-color: var(--line-2); }
.help-cards .ic {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: var(--s5);
  border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2);
}
.help-cards .ic svg { width: 20px; height: 20px; }
.help-cards a.card::after {
  content: ""; position: absolute; right: var(--s6); top: var(--s6);
  width: 8px; height: 8px; border-top: 2px solid var(--text-3); border-right: 2px solid var(--text-3);
  rotate: 45deg; transition: translate .2s var(--ease);
}
.help-cards a.card:hover::after { translate: 3px 0; border-color: var(--text); }
.help-section { margin-top: var(--s8); }
.help-section > h2 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: var(--s4); }
.help-section .faq summary { font-size: var(--t-md); }
.help-section .faq details p + p { margin-top: calc(var(--s3) * -1); }

/* ---------------------------------------------------------------- 404 */

.not-found { min-height: calc(100svh - var(--head-h) - 120px); display: grid; place-content: center; text-align: center; padding-block: var(--s9); }
.not-found .code { margin: 0; font: 700 clamp(96px, 18vw, 180px)/1 var(--font-display); letter-spacing: -.06em; color: var(--text); }
.not-found p { margin: var(--s4) 0 var(--s6); color: var(--text-2); font-size: var(--t-lg); }
.not-found .cta-row { justify-content: center; margin-top: 0; }

/* ---------------------------------------------------------------- scroll reveal (CSS only) */

@keyframes rise { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
@keyframes fade-up { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
@keyframes marquee { to { transform: translateX(calc(-50% - var(--s4) / 2)); } }

@media (prefers-reduced-motion: no-preference) {
  .hero .reveal { animation: fade-up .9s var(--ease) both; }
  .hero .reveal:nth-child(2) { animation-delay: .06s; }
  .hero .reveal:nth-child(3) { animation-delay: .12s; }
  .hero .reveal:nth-child(4) { animation-delay: .18s; }
  .hero .reveal:nth-child(5) { animation-delay: .24s; }

  @supports (animation-timeline: view()) {
    .scroll-reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }

  .marquee.looping .marquee-track { animation: marquee 80s linear infinite; }
  .marquee.looping:hover .marquee-track { animation-play-state: paused; }
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .nav { display: none; }
  .menu { display: block; }
  .head-in .btn-primary { margin-left: auto; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .span-2, .span-3 { grid-column: span 1; }
  .span-4, .span-6 { grid-column: span 2; }
  .studio { grid-template-columns: repeat(2, 1fr); }
  .doc-layout { grid-template-columns: 1fr; gap: 0; }
  .toc {
    position: static; max-height: none; overflow: visible;
    margin-bottom: var(--s6);
    padding: var(--s5); border-radius: var(--r); background: var(--surface); border: 1px solid var(--line);
  }
  .toc ol { columns: 2; column-gap: var(--s5); border-left: 0; }
  .toc li { break-inside: avoid; }
  .toc a { padding-left: 0; border-left: 0; }
  .toc a.active { color: var(--text-3); }
}

@media (max-width: 860px) {
  :root { --s9: 88px; --s8: 56px; }
  .hero { align-items: end; min-height: min(760px, calc(100svh - var(--head-h))); }
  .hero-bg { object-position: 72% 30%; }
  .hero::after {
    background: linear-gradient(180deg, rgba(8, 8, 10, .1) 0%, rgba(8, 8, 10, .55) 45%, var(--bg) 92%);
  }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: var(--s5) var(--s4); }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .tool-cols, .split, .pv, .faq-wrap, .plans, .trio, .help-cards { grid-template-columns: 1fr; }
  .split { gap: var(--s6); }
  .split.flip > :first-child { order: 0; }
  .compare { justify-self: center; }
  .card.row { flex-direction: column; align-items: stretch; gap: var(--s5); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .wrap { padding-inline: var(--s4); }
  .bento, .studio { grid-template-columns: 1fr; }
  .span-2, .span-3, .span-4, .span-6 { grid-column: span 1; }
  .card, .tool-group, .plan { padding: var(--s5); }
  .card { min-height: 0; }
  .summary { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  .closing { padding: var(--s7) var(--s5); border-radius: var(--r-lg); }
  .cta-row .btn-lg { flex: 1 1 100%; }
  .doc > h2 { margin-top: var(--s7); }
  .doc td:first-child { white-space: normal; }
  .doc-end { flex-direction: column; align-items: flex-start; }

  /* One fixed install bar on the landing page — the header CTA is small on phones */
  body.home { padding-bottom: 88px; }
  .getbar {
    display: flex; align-items: center; gap: var(--s3);
    position: fixed; left: var(--s3); right: var(--s3); bottom: max(var(--s3), env(safe-area-inset-bottom)); z-index: 60;
    padding: 10px 10px 10px 12px;
    background: rgba(24, 24, 29, .86);
    -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
    border: 1px solid var(--line-2); border-radius: 20px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
    transition: translate .35s var(--ease), opacity .35s var(--ease);
  }
  .getbar img { width: 36px; height: 36px; border-radius: 9px; }
  .getbar div { line-height: 1.3; }
  .getbar div b { display: block; font-size: var(--t-sm); }
  .getbar div span { display: block; font-size: var(--t-xs); color: var(--text-3); }
  .getbar .btn { margin-left: auto; height: 36px; }
  .js .getbar.hide { translate: 0 140%; opacity: 0; pointer-events: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  /* No autoplaying art — the poster frame stays */
  .hero-bg.video { display: none; }
  .hero { background: url("/assets/art/hero-poster.webp") 70% 40% / cover no-repeat; }
}

/* ---------------------------------------------------------------- print (legal pages) */

@media print {
  :root { --bg: #fff; --surface: #fff; --text: #000; --text-2: #222; --text-3: #555; --line: #ccc; --accent: #000; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .head, .foot, .toc, .doc-tabs, .getbar, .skip, .doc-end { display: none !important; }
  .doc-layout { display: block; padding: 0; }
  .doc-hero { padding: 0 0 12pt; }
  .doc a { color: #000; }
  .doc > h2 { break-after: avoid; }
}
