/* Siegu landing — monochrome, minimal, fast. Matches the app's
   black-on-white / white-on-black theme and the Outfit typeface. */

/* Light theme is the default (also matches prefers-color-scheme: light). */
:root,
:root[data-theme='light'] {
  --bg: #ffffff;
  --surface: #fafafa;
  --surface-2: #f4f4f5;
  --border: #e4e4e7;
  --text: #18181b;
  --text-2: #52525b;
  --text-3: #8f8f98;
  --ink: #000000;
  --on-ink: #ffffff;
  --error: #ef4444;
  --success: #22c55e;
  --max: 1140px;
  --radius: 20px;
  --font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Dark palette applies for OS-dark (system mode) OR a manual dark choice.
   The JS inlines the resolved theme onto <html data-theme> in both cases, so
   this block drives the effective styling regardless of which path triggered
   it. */
:root[data-theme='dark'] {
  --bg: #09090b;
  --surface: #18181b;
  --surface-2: #27272a;
  --border: #2a2a2e;
  --text: #fafafa;
  --text-2: #a1a1aa;
  --text-3: #71717a;
  --ink: #ffffff;
  --on-ink: #000000;
  --error: #f87171;
  --success: #4ade80;
}

/* In dark mode the (black) brand glyph and flat favicons are inverted to
   white so they stay visible on the dark header and dark browser tabs. */
:root[data-theme='dark'] .brand img,
:root[data-theme='dark'] .brand-header-icon { filter: invert(1); }

@media (prefers-color-scheme: dark) {
  /* Fallback for the brief moment before JS sets data-theme, and for
     environments where prefers-color-scheme drives styling directly. */
  :root:not([data-theme='light']) {
    --bg: #09090b;
    --surface: #18181b;
    --surface-2: #27272a;
    --border: #2a2a2e;
    --text: #fafafa;
    --text-2: #a1a1aa;
    --text-3: #71717a;
    --ink: #ffffff;
    --on-ink: #000000;
    --error: #f87171;
    --success: #4ade80;
  }
  :root:not([data-theme='light']) .brand img,
  :root:not([data-theme='light']) .brand-header-icon { filter: invert(1); }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: .3px; }
.brand img { width: 32px; height: 32px; object-fit: contain; border-radius: 7px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: 14.5px; font-weight: 600; color: var(--text-2); }
.nav a:hover { color: var(--text); }
.nav a.is-active { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 14px; }

/* Accessible skip link — visually hidden until focused (keyboard). */
.skip {
  position: absolute; left: -9999px; top: -9999px;
  z-index: 300; background: var(--ink); color: var(--on-ink);
  padding: 12px 18px; border-radius: 10px; font-weight: 700;
}
.skip:focus-visible,
.skip:focus { left: 14px; top: 14px; }

/* Mobile hamburger + slide-in nav */
.menu-btn {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; cursor: pointer;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--text); font-size: 20px; line-height: 1;
}
.menu-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.nav-overlay {
  position: fixed; inset: 0; z-index: 120; display: flex;
  align-items: center; justify-content: center; text-align: center;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(16px);
  opacity: 0; pointer-events: none; transition: opacity .22s ease;
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }
.nav-overlay .nav { flex-direction: column; gap: 22px; }
.nav-overlay .nav a { font-size: 22px; font-weight: 800; }
.nav-overlay .nav-close {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
  color: var(--text); font-size: 20px; cursor: pointer;
}

/* ---------- Subpages (pricing / faq / docs / download) ---------- */
.page-hero {
  padding: 96px 0 40px; text-align: center;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.page-hero .eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px; font-weight: 800;
  color: var(--text-3); margin: 0 0 14px;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 900; letter-spacing: -.02em;
  margin: 0 0 16px; line-height: 1.1;
}
.page-hero .sub { color: var(--text-2); font-size: clamp(1.02rem, 2vw, 1.2rem); max-width: 620px; margin: 0 auto; }
.page-body { padding: 72px 0 40px; }
.page-body .narrow { max-width: 760px; margin: 0 auto; }
.page-body h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.01em; margin: 0 0 14px; }
.page-body h3 { font-size: 1.15rem; font-weight: 750; margin: 0 0 10px; }
.page-body p, .page-body li { color: var(--text-2); font-size: 15.5px; line-height: 1.7; }
.page-body ul { padding-left: 20px; }
.page-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Subpage download grid */
.dl-page-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-top: 8px; }
.dl-page-note { text-align: center; color: var(--text-3); font-size: 13px; margin-top: 22px; }

/* FAQ page: reuse nested list container styling */
.faq-page-list { max-width: 760px; margin: 0 auto; }

/* About / changelog / roadmap / blog / privacy page extras */
.page-hero .sub a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.privacy-h { font-size: 1.5rem; font-weight: 800; letter-spacing: -.01em; margin: 2rem 0 14px; }
.page-body .narrow h3 { margin-top: 22px; }
.page-body code { background: var(--text-2, #999); color: var(--bg); font-family: ui-monospace, SFMono-Regular, monospace; font-size: 13px; padding: 2px 6px; border-radius: 6px; }
.blog-post { margin-top: 48px; }
.blog-post:first-child { margin-top: 0; }
.blog-date { color: var(--text-3); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.changelog-list { list-style: none; padding-left: 0; display: grid; gap: 4px; }
.changelog-list a { text-decoration: none; font-weight: 700; }
.changelog-list a:hover { text-decoration: underline; }

/* Docs page: TOC + real markdown-rendered sections */
.docs-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 0 0 40px;
}
.docs-toc h2 { font-size: 0.85rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin: 0 0 12px; }
.docs-toc > ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.docs-toc > ul > li > a { font-weight: 750; text-decoration: none; }
.docs-toc > ul > li > a:hover { text-decoration: underline; }
.docs-toc .docs-toc-sub { list-style: none; padding: 6px 0 0 14px; margin: 0; display: grid; gap: 4px; }
.docs-toc .docs-toc-sub a { font-weight: 500; color: var(--text-2); text-decoration: none; font-size: 14px; }
.docs-toc .docs-toc-sub a:hover { text-decoration: underline; }

.doc-section { display: grid; gap: 18px; }
.doc-section + .doc-section { margin-top: 44px; }
.doc-section .doc-title { padding-top: 24px; border-top: 1px solid var(--border); }
.doc-section:first-of-type .doc-title { border-top: 0; padding-top: 0; }
.page-body h4 { font-size: 1.02rem; font-weight: 750; margin: 8px 0 6px; }
.page-body ol { padding-left: 20px; }
.page-body .table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
.page-body table { width: 100%; border-collapse: collapse; font-size: 14px; }
.page-body th, .page-body td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.page-body th { font-weight: 800; color: var(--text); background: var(--surface); }
.page-body tbody tr:last-child td { border-bottom: none; }
.page-body blockquote { margin: 0; padding: 4px 18px; border-left: 3px solid var(--text-3); color: var(--text-2); }
.page-body pre {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  overflow-x: auto;
  margin: 4px 0;
  font-size: 12.5px;
  line-height: 1.6;
}
.page-body pre code { background: none; color: var(--text); padding: 0; font-size: inherit; }
.docs-more { margin-top: 40px; font-size: 13px; color: var(--text-3); }

/* Comparison table (compare.html) */
.compare-wrap { overflow-x: auto; margin: 1.4rem 0 2rem; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.compare-table th, .compare-table td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare-table thead th { font-weight: 800; color: var(--text); }
.compare-table thead th:first-child { width: 34%; color: var(--text-2); font-weight: 600; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody td:nth-child(2) { color: var(--text-2); }
.compare-table tbody td:last-child { color: var(--accent); font-weight: 600; }

.search-trigger {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 7px 12px; font-family: var(--font); font-size: 13px; font-weight: 600;
  color: var(--text-2); cursor: pointer; transition: border-color .2s ease, background .2s ease;
}
.search-trigger:hover { border-color: var(--ink); color: var(--text); background: var(--surface-2); }
.search-shortcut {
  font-size: 10.5px; font-weight: 700; color: var(--text-3);
  border: 1px solid var(--border); border-radius: 6px; padding: 1px 5px;
}

.theme-btn {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: none; border: 1px solid var(--border); cursor: pointer;
  font-size: 16px; line-height: 1; color: var(--text);
  transition: background .2s ease, border-color .2s ease;
}
.theme-btn:hover { background: var(--surface-2); }

.lang-switch { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  background: none; border: 1px solid var(--border); border-radius: 999px;
  padding: 7px 12px; font-family: var(--font); font-size: 13px; font-weight: 600;
  color: var(--text); cursor: pointer;
}
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,.18); overflow: hidden; min-width: 170px;
  display: none; z-index: 60;
}
.lang-menu.open { display: block; }
.lang-menu button {
  display: flex; width: 100%; justify-content: space-between; align-items: center;
  background: none; border: none; padding: 10px 16px; font-family: var(--font);
  font-size: 14px; font-weight: 600; color: var(--text-2); cursor: pointer; text-align: left;
}
.lang-menu button:hover { background: var(--surface-2); color: var(--text); }
.lang-menu button.active { color: var(--text); }
.lang-menu .check { color: var(--text-3); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; font-family: var(--font);
  font-size: 15px; font-weight: 700; border: 1px solid transparent; cursor: pointer;
  transition: filter .18s ease, transform .12s ease; white-space: nowrap;
}
.btn:hover { filter: brightness(.93); }
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ---------- Hero (full-bleed editorial) ---------- */
.hero {
  position: relative; overflow: hidden; text-align: center;
  min-height: 640px; display: flex; align-items: center; justify-content: center;
  background: #0b0d13;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block; background: #0b0d13;
}
.hero-bg-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.4s cubic-bezier(.22,1,.36,1);
}
.hero-bg-slide.is-active { opacity: 1; z-index: 1; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(9,11,18,.72) 0%, rgba(9,11,18,.38) 45%, rgba(9,11,18,.86) 100%),
    radial-gradient(120% 90% at 50% 0%, rgba(58,63,255,.16), rgba(0,0,0,0) 62%);
}
.hero-content { position: relative; z-index: 3; padding: 150px 0 130px; }
.hero-dots {
  position: absolute; left: 0; right: 0; bottom: 30px; z-index: 4;
  display: flex; gap: 10px; justify-content: center; align-items: center;
}
.hero-dot {
  width: 26px; height: 4px; border-radius: 999px; border: none; cursor: pointer;
  background: rgba(255,255,255,.28); padding: 0; transition: background .3s ease, width .3s ease;
}
.hero-dot.is-active { width: 44px; background: #fff; }
.hero-dot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.sr-only { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hero-content .hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.1);
  border-radius: 999px; padding: 7px 16px; font-size: 13px; font-weight: 700;
  color: #fff; margin-bottom: 26px; backdrop-filter: blur(8px);
}
.hero-content .hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; }
.hero-content h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 1.05; letter-spacing: -.02em; font-weight: 900; margin: 0 0 22px; color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,.5); }
.hero-content h1 .dim { color: rgba(255,255,255,.6); font-weight: 300; }
.hero-content p.sub { font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(255,255,255,.85); max-width: 640px; margin: 0 auto 36px; text-shadow: 0 1px 16px rgba(0,0,0,.4); }
.hero-content .hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-content .hero-cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.08); }
.hero-content .hero-cta .btn-ghost:hover { background: rgba(255,255,255,.16); }
.hero-content .hero-note { color: rgba(255,255,255,.65); font-size: 13.5px; margin-top: 20px; }
.hero-content .hero-trust { color: rgba(255,255,255,.75); font-size: 13px; font-weight: 600; margin-top: 6px; letter-spacing: .02em; }
.hero-content .hero-trust a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Sections ---------- */
.section { padding: 120px 0; }
.section-eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px; font-weight: 800;
  color: var(--text-3); margin: 0 0 16px;
}
.section-title { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -.02em; margin: 0 0 18px; line-height: 1.1; }
.section-sub { color: var(--text-2); font-size: 1.1rem; max-width: 620px; margin: 0 0 56px; }
.center { text-align: center; }
.center .section-sub { margin-left: auto; margin-right: auto; }

/* ---------- Logos strip ---------- */
.logo-strip { padding: 18px 0 0; text-align: center; }
.logo-strip .label { color: var(--text-3); font-size: 13px; font-weight: 600; letter-spacing: .05em; }
.platform-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.platform-item {
  font-size: 13px; font-weight: 600; color: var(--text-3);
  border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px;
  background: var(--surface);
}

/* ---------- Features grid ---------- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 26px; transition: transform .18s ease, box-shadow .18s ease;
  display: flex; align-items: flex-start; gap: 18px;
}
.feature:hover { transform: translateY(-3px); box-shadow: 0 24px 50px rgba(0,0,0,.10); }
.feature .ico {
  width: 52px; height: 52px; flex: 0 0 52px; border-radius: 14px;
  background: var(--surface-2); position: relative;
  display: flex; align-items: center; justify-content: center;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease;
  box-shadow: inset 0 0 0 1px var(--border);
  animation: icoFloat 6s ease-in-out infinite;
}
.feature .text { min-width: 0; }
/* Gentle always-on motion: stagger the drift so neighbouring cards breathe out of sync. */
.feature:nth-child(2) .ico { animation-duration: 6.8s; animation-delay: .6s; }
.feature:nth-child(3) .ico { animation-duration: 5.4s; animation-delay: 1.1s; }
.feature:nth-child(4) .ico { animation-duration: 7.2s; animation-delay: .3s; }
.feature:nth-child(5) .ico { animation-duration: 5.9s; animation-delay: 1.4s; }
.feature:nth-child(6) .ico { animation-duration: 6.4s; animation-delay: .8s; }
.feature:hover .ico { animation: none; transform: translateY(-3px) scale(1.06); box-shadow: inset 0 0 0 1px var(--border), 0 14px 34px rgba(0,0,0,.16); }
.feature .ico svg { width: 26px; height: 26px; display: block; }
.feature .ico .ic path, .feature .ico .ic circle, .feature .ico .ic line,
.feature .ico .ic polyline, .feature .ico .ic rect, .feature .ico .ic polygon {
  stroke: var(--text); stroke-width: 1.7; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .45s ease;
}
.feature .ico .ic .fill { fill: var(--text); stroke: none; animation: fillPulse 3.2s ease-in-out infinite; transform-origin: center; }
.feature:nth-child(2) .ico .ic .fill { animation-delay: .5s; }
.feature:nth-child(3) .ico .ic .fill { animation-delay: 1s; }
.feature:nth-child(4) .ico .ic .fill { animation-delay: .3s; }
.feature:nth-child(5) .ico .ic .fill { animation-delay: 1.4s; }
.feature:nth-child(6) .ico .ic .fill { animation-delay: .7s; }
/* animated stroke draw-in on hover */
.feature:hover .ico .ic path,
.feature:hover .ico .ic circle,
.feature:hover .ico .ic line,
.feature:hover .ico .ic polyline,
.feature:hover .ico .ic rect {
  stroke-dasharray: 200; stroke-dashoffset: 200; animation: drawIn .5s ease forwards;
}
.feature:hover .ico .ic .fill { animation: popIn .35s ease forwards; }

@keyframes icoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes fillPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}
@keyframes drawIn { to { stroke-dashoffset: 0; } }
@keyframes popIn { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.feature h3 { margin: 0 0 8px; font-size: 1.15rem; font-weight: 750; }
.feature p { margin: 0; color: var(--text-2); font-size: 15px; }

/* Scroll reveal: cards sweep in from left/right as they cross the viewport. */
.feature.reveal-left, .feature.reveal-right {
  opacity: 0;
  transition: opacity .95s ease, transform .95s cubic-bezier(.22,1,.36,1);
  will-change: opacity, transform;
}
.feature.reveal-left { transform: translateX(-60px); }
.feature.reveal-right { transform: translateX(60px); }
.feature.reveal-left.is-visible, .feature.reveal-right.is-visible {
  opacity: 1; transform: none;
}

/* ---------- Section ripple reveal ----------
   Each heading / block inside a section rises in sequence with a spring. */
.sr-elem {
  opacity: 0; transform: translateY(56px) scale(.95);
  transition: opacity 1s cubic-bezier(.22,1,.36,1), transform 1s cubic-bezier(.22,1,.36,1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.sr-elem.is-visible { opacity: 1; transform: none; }

/* Pricing grid card stagger — springy pop up */
.pricing-grid .plan { opacity: 0; transform: translateY(48px) scale(.93); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.pricing-grid .plan.is-visible { opacity: 1; transform: none; }
.pricing-grid .plan:nth-child(1) { transition-delay: 0s; }
.pricing-grid .plan:nth-child(2) { transition-delay: .12s; }
.pricing-grid .plan:nth-child(3) { transition-delay: .24s; }

/* Billing toggle pulse on switch */
.toggle-row button.active { animation: togglePop .38s ease; }
@keyframes togglePop { 50% { transform: scale(1.09); } }

/* Sticky Pro bar slides up */
.sticky-pro { animation: stickyIn .5s cubic-bezier(.22,1,.36,1); }
@keyframes stickyIn { from { opacity: 0; transform: translate(-50%, 26px) scale(.92); } to { opacity: 1; transform: translate(-50%, 0); } }

/* Download / Pro modal pop-in */
.dl-overlay.open .dl-dialog { animation: dlPop .42s cubic-bezier(.22,1,.36,1); }
@keyframes dlPop { from { opacity: 0; transform: scale(.88) translateY(24px); } to { opacity: 1; transform: none; } }

/* Showcase window gently floats */
.showcase-frame { animation: floatY 7s ease-in-out infinite; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* CTA primary button glow pulse */
.cta-band .btn-ink { animation: glowPulse 2.8s ease-in-out infinite; }
@keyframes glowPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,.45); }
  50%     { box-shadow: 0 0 0 16px rgba(255,255,255,0); }
}

/* ---------- Showcase ---------- */
.showcase-wrap { display: flex; flex-direction: column; gap: 40px; align-items: center; text-align: center; }
.showcase-frame { width: 100%; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: 0 30px 80px rgba(0,0,0,.16); }
.showcase-frame img { width: 100%; display: block; }
.showcase-copy { max-width: 720px; }
.showcase-copy .section-sub { margin-bottom: 0; margin-inline: auto; }
.point { display: flex; gap: 14px; margin-top: 26px; align-items: flex-start; max-width: 640px; text-align: left; }
.point .pico { width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px var(--border); }
.point .pico svg { width: 18px; height: 18px; }
.point .pico svg path, .point .pico svg rect, .point .pico svg polygon { stroke: var(--text); stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.point h4 { margin: 0 0 4px; font-size: 1rem; }
.point p { margin: 0; color: var(--text-2); font-size: 14.5px; }

/* ---------- Pricing ---------- */
.pricing-head { margin-bottom: 40px; }
.toggle-row { display: inline-flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 5px; }
.toggle-row button { border: none; background: none; font-family: var(--font); font-weight: 700; font-size: 14px; padding: 8px 18px; border-radius: 999px; cursor: pointer; color: var(--text-2); }
.toggle-row button.active { background: var(--ink); color: var(--on-ink); }
.save-tag { font-size: 12px; font-weight: 800; color: var(--success); }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: stretch; }
.plan {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px 30px;
  display: flex; flex-direction: column; position: relative;
}
.plan.featured { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.plan.featured .plan-name, .plan.featured .period, .plan.featured .tagline { color: inherit; }
.plan-badge {
  position: absolute; top: 18px; right: 18px; font-size: 11px; font-weight: 800;
  background: var(--success); color: #052e16; padding: 4px 10px; border-radius: 999px;
}
.plan-name { font-weight: 800; font-size: 1rem; margin: 0 0 14px; }
.plan-price { font-size: 2.7rem; font-weight: 900; letter-spacing: -.02em; line-height: 1; }
.plan-price .cur { font-size: 1.4rem; vertical-align: super; }
.period { color: var(--text-3); font-size: 13.5px; margin: 6px 0 2px; }
.yearly-badge { font-size: 12px; font-weight: 700; color: var(--text-3); margin-bottom: 14px; }
.plan.featured .yearly-badge { color: var(--text-3); }
.tagline { color: var(--text-2); font-size: 14.5px; margin: 4px 0 20px; }
.plan.featured .tagline { color: rgba(0,0,0,.55); }
.plan ul { list-style: none; margin: 0 0 26px; padding: 0; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: 14.5px; }
.plan li .check { color: var(--success); font-weight: 800; }
.plan.featured li .check { color: #052e16; }
.plan .btn { width: 100%; }
.plan.featured .btn-ink { background: var(--bg); color: var(--ink); }
.pricing-note { color: var(--text-3); font-size: 13px; margin-top: 22px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; background: none; border: none; padding: 22px 0; font-family: var(--font); font-size: 1.05rem; font-weight: 700; color: var(--text); cursor: pointer; text-align: left; }
.faq-q .chev { font-size: 1.1rem; color: var(--text-3); transition: transform .2s ease; flex: none; }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a p { padding: 0 0 22px; margin: 0; color: var(--text-2); font-size: 15px; }

/* ---------- CTA ---------- */
.cta-band { padding: 110px 0; text-align: center; background: var(--ink); color: var(--on-ink); border-radius: var(--radius); position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; letter-spacing: -.02em; margin: 0 0 16px; }
.cta-band p { color: rgba(0,0,0,.6); font-size: 1.1rem; max-width: 520px; margin: 0 auto 30px; }
.cta-band .btn-ink { background: var(--bg); color: var(--ink); }
.cta-note { margin-top: 16px; font-size: 13.5px; color: rgba(0,0,0,.5); }
.cta-band .btn-ghost { color: var(--bg); border-color: rgba(255,255,255,.25); margin-left: 8px; }
.section .cta-band { margin: 0 24px; }

/* Trust / reassurance row */
.trust-row { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--text-3); }
.tdot { opacity: .5; }

/* Pricing risk reversal */
.plan-risk { font-size: 13px; color: var(--text-3); margin: 10px 0 0; }

/* Waitlist card */
.waitlist-card { border-style: dashed; }
.waitlist-card .tagline { font-style: italic; }
.waitlist-form {
  display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap;
}
.waitlist-form input[type="email"] {
  flex: 1; min-width: 140px; padding: 10px 14px; font-size: 14px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg); color: var(--text); font-family: var(--font);
  outline: none; transition: border-color .2s ease;
}
.waitlist-form input[type="email"]:focus { border-color: var(--ink); }
.waitlist-form .btn { flex-shrink: 0; }

@media (max-width: 820px) {
  .waitlist-form { flex-direction: column; }
  .waitlist-form input[type="email"] { min-width: 100%; }
}

/* Waitlist modal overlay */
.waitlist-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.6); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
  padding: 20px;
}
.waitlist-overlay.open { opacity: 1; pointer-events: auto; }
.waitlist-dialog {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px 36px; max-width: 460px; width: 100%;
  text-align: center; transform: translateY(12px) scale(.97);
  transition: transform .25s ease; box-shadow: 0 30px 70px rgba(0,0,0,.25);
}
.waitlist-overlay.open .waitlist-dialog { transform: translateY(0) scale(1); }
.waitlist-close {
  position: absolute; top: 14px; right: 16px; background: none; border: none;
  font-size: 26px; color: var(--text-3); cursor: pointer; line-height: 1;
}
.waitlist-close:hover { color: var(--text); }
.waitlist-dialog h3 { font-size: 1.25rem; margin: 0 0 10px; }
.waitlist-dialog p { color: var(--text-2); font-size: .95rem; margin: 0 0 20px; line-height: 1.55; }
.waitlist-modal-form { display: flex; gap: 10px; }
.waitlist-modal-form input[type="email"] {
  flex: 1; padding: 12px 16px; font-size: 15px; font-family: var(--font);
  border: 1px solid var(--border); border-radius: 12px; background: var(--bg); color: var(--text);
  outline: none; transition: border-color .2s ease;
}
.waitlist-modal-form input[type="email"]:focus { border-color: var(--ink); }
.waitlist-note { font-size: 12.5px !important; color: var(--text-3) !important; margin-top: 14px !important; }
@media (max-width: 540px) {
  .waitlist-modal-form { flex-direction: column; }
  .waitlist-dialog { padding: 32px 24px; }
}

/* Download + Pro modal overlays */
.dl-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.6); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
  padding: 20px;
}
.dl-overlay.open { opacity: 1; pointer-events: auto; }
.dl-dialog {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px 36px; max-width: 560px; width: 100%;
  text-align: center; transform: translateY(12px) scale(.97);
  transition: transform .25s ease; box-shadow: 0 30px 70px rgba(0,0,0,.25);
  max-height: 90vh; overflow-y: auto;
}
.dl-overlay.open .dl-dialog { transform: translateY(0) scale(1); }
.dl-close {
  position: absolute; top: 14px; right: 16px; background: none; border: none;
  font-size: 26px; color: var(--text-3); cursor: pointer; line-height: 1;
}
.dl-close:hover { color: var(--text); }
.dl-dialog h3 { font-size: 1.3rem; margin: 0 0 8px; }
.dl-sub { color: var(--text-2); font-size: .95rem; margin: 0 auto 24px; max-width: 380px; line-height: 1.55; }

/* Platform picker grid */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.dl-opt {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px 12px; border: 1px solid var(--border); border-radius: 16px;
  background: var(--bg); cursor: pointer; text-decoration: none; color: var(--text);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.dl-opt:hover { transform: translateY(-3px); border-color: var(--ink); box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.dl-opt.is-current { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.dl-opt .dl-icon { width: 40px; height: 40px; color: var(--text); }
.dl-opt .dl-name { font-weight: 700; font-size: 14px; }
.dl-opt .dl-arch { font-size: 12px; color: var(--text-3); }
.dl-opt:disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.dl-opt .dl-soon { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.dl-note { font-size: 12.5px !important; color: var(--text-3) !important; margin-top: 18px !important; }

/* Pro modal */
.pro-benefits { list-style: none; margin: 0 auto 26px; padding: 0; max-width: 380px; text-align: left; }
.pro-benefits li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: 14.5px; color: var(--text-2); }
.pro-benefits li .check { color: var(--success); font-weight: 800; }
.pro-pay-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--border); padding-top: 20px; }
.pro-price { font-size: 1.9rem; font-weight: 900; letter-spacing: -.02em; }
.pro-price small { font-size: 13px; font-weight: 500; color: var(--text-3); }
@media (max-width: 540px) {
  .dl-dialog { padding: 32px 24px; }
  .pro-pay-row { flex-direction: column; align-items: stretch; }
}


/* ---------- Command palette (⌘K / Ctrl+K) ---------- */
.cmd-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.55); backdrop-filter: blur(8px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 12vh 20px 20px;
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.cmd-overlay.open { opacity: 1; pointer-events: auto; }
.cmd-dialog {
  width: 100%; max-width: 600px; max-height: 70vh;
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 40px 100px rgba(0,0,0,.35); overflow: hidden;
  transform: translateY(12px) scale(.98); transition: transform .2s ease;
}
.cmd-overlay.open .cmd-dialog { transform: translateY(0) scale(1); }
.cmd-input-wrap {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; border-bottom: 1px solid var(--border); color: var(--text-3);
}
.cmd-input-wrap input {
  flex: 1; border: none; outline: none; background: transparent;
  font-family: var(--font); font-size: 16px; font-weight: 500; color: var(--text);
}
.cmd-input-wrap input::placeholder { color: var(--text-3); }
.cmd-kbd {
  font-family: var(--font); font-size: 11px; font-weight: 700; color: var(--text-3);
  border: 1px solid var(--border); border-radius: 6px; padding: 3px 6px; background: var(--surface-2);
}
.cmd-groups { overflow-y: auto; padding: 8px; }
.cmd-group-label {
  padding: 12px 12px 6px; font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em; color: var(--text-3);
}
.cmd-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 10px 12px; border: none; border-radius: 10px;
  background: none; font-family: var(--font); font-size: 14.5px; font-weight: 600;
  color: var(--text); cursor: pointer; text-align: left; text-decoration: none;
}
.cmd-item:hover, .cmd-item.is-active { background: var(--surface-2); }
.cmd-item .cmd-ico {
  flex: none; width: 32px; height: 32px; border-radius: 8px;
  background: var(--surface-2); display: flex; align-items: center; justify-content: center; color: var(--text-2);
  box-shadow: inset 0 0 0 1px var(--border);
}
.cmd-item .cmd-ico svg { width: 16px; height: 16px; }
.cmd-item .cmd-label { flex: 1; min-width: 0; }
.cmd-item .cmd-desc { display: block; font-weight: 500; font-size: 12px; color: var(--text-3); margin-top: 1px; }
.cmd-item .cmd-hint { flex: none; font-size: 11px; font-weight: 700; color: var(--text-3); border: 1px solid var(--border); border-radius: 6px; padding: 2px 6px; background: var(--surface-2); }
.cmd-empty { padding: 30px; text-align: center; color: var(--text-3); font-size: 14px; }
.cmd-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px 16px; border-top: 1px solid var(--border);
  color: var(--text-3); font-size: 12px;
}
.cmd-footer kbd { font-family: var(--font); font-size: 11px; font-weight: 700; border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; background: var(--surface-2); }
.cmd-footer button { background: none; border: 1px solid var(--border); border-radius: 7px; padding: 4px 10px; font-family: var(--font); font-size: 12px; font-weight: 700; color: var(--text); cursor: pointer; }
.cmd-footer button:hover { background: var(--surface-2); }

@media (max-width: 540px) {
  .cmd-overlay { padding-top: 8vh; }
  .cmd-footer span:not(:last-child) { display: none; }
}


.site-footer { border-top: 1px solid var(--border); padding: 70px 0 30px; margin-top: 96px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { color: var(--text-2); font-size: 14.5px; max-width: 300px; margin: 14px 0 0; }
.footer-col h5 { margin: 0 0 16px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); }
.footer-col a { display: block; padding: 6px 0; color: var(--text-2); font-size: 14.5px; font-weight: 500; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--border); margin-top: 48px; padding-top: 24px; color: var(--text-3); font-size: 13.5px; flex-wrap: wrap; }
.footer-bottom a { color: var(--text-3); }
.footer-bottom a:hover { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { min-height: 560px; }
  .hero-content { padding: 110px 0 100px; }
}
@media (max-width: 720px) {
  .hero { min-height: 480px; }
  .hero-content { padding: 96px 0 88px; }
  .hero-dot { width: 18px; }
  .hero-dot.is-active { width: 30px; }
  .hero-content h1 { font-size: clamp(2.2rem, 9vw, 2.9rem); }
}
@media (max-width: 820px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .nav-overlay .nav { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 68px 0; }
  /* single-column feature cards get a bit more breathing room on tablets */
  .feature { padding: 30px 24px; }
}
@media (max-width: 640px) {
  .feature { padding: 26px 22px; }
  .feature .ico { width: 48px; height: 48px; }
  .feature .ico svg { width: 24px; height: 24px; }
  .section-sub { font-size: 1rem; }
  .cta-band .btn { width: 100%; margin: 6px 0; }
  .cta-band .btn-ghost { margin-left: 0; }
  .cta-band { padding: 72px 20px; }
  .cta-band p { margin-bottom: 18px; }
  .hero-cta .btn { width: 100%; max-width: 360px; }
  /* Mobile pricing: stacked full-width cards, bigger tap targets */
  .pricing-grid { grid-template-columns: 1fr; gap: 16px; }
  .plan { padding: 28px 22px; }
  .plan-price { font-size: 2.2rem; }
  .plan .btn { padding: 14px; font-size: 15px; min-height: 48px; }
  .toggle-row { width: 100%; }
  .toggle-row button { flex: 1; padding: 12px 14px; font-size: 14px; min-height: 44px; }
  .pricing-head { margin-bottom: 28px; }
  .price-anchor { flex-direction: column; gap: 16px; text-align: center; padding: 24px 20px; }
  .price-anchor .btn { width: 100%; }
  .guarantee { font-size: 12px; }
  .sticky-pro { bottom: 76px; font-size: 13px; padding: 8px 16px; gap: 10px; }
  .sticky-pro .btn { padding: 10px 16px; font-size: 13px; min-height: 40px; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .header-actions { gap: 8px; }
  .site-header .btn-sm { padding: 8px 12px; font-size: 13px; }
  .brand span { display: none; }
  .brand img { width: 30px; height: 30px; }
  .plan-price { font-size: 2rem; }
  .plan li { font-size: 14px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .feature, .hero-frame, .showcase-frame, .dl-dialog, .sticky-pro,
  .toggle-row button.active, .cta-band .btn-ink { animation: none !important; transition: none !important; }
  .sr-elem, .pricing-grid .plan { opacity: 1 !important; transform: none !important; transition: none !important; }
  .feature.reveal-left, .feature.reveal-right {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
  .feature .ico,
  .feature .ico .ic .fill { animation: none !important; }
  .feature:hover .ico .ic path,
  .feature:hover .ico .ic circle,
  .feature:hover .ico .ic line,
  .feature:hover .ico .ic polyline,
  .feature:hover .ico .ic rect { animation: none !important; stroke-dashoffset: 0 !important; }
  .hero-video { display: none !important; }
}

/* ---------- Analytics consent banner ---------- */
.consent-banner {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 18px; z-index: 1200; width: min(720px, calc(100vw - 32px));
  display: flex; align-items: center; gap: 18px; justify-content: space-between;
  flex-wrap: wrap;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 18px; box-shadow: 0 12px 40px rgba(0, 0, 0, .28);
  font-size: 14px; line-height: 1.5;
}
.consent-banner.is-hidden { display: none; }
.consent-text { flex: 1 1 380px; margin: 0; }
.consent-text a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.consent-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.consent-actions .btn-ghost { background: transparent; }
.footer-legal a { color: var(--text-muted, #a1a1aa); }
.footer-legal a + a { margin-left: 14px; }

/* Video page */
.video-stage { max-width: 960px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: #000; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.video-stage video { display: block; width: 100%; aspect-ratio: 16/9; background: #000; }
.video-frames { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 960px; margin: 28px auto 0; }
.video-frames img { width: 100%; border-radius: 12px; border: 1px solid var(--border); }
.page-body .video-stage a, .page-body .video-stage a:visited { color: #a1a1aa; text-decoration: underline; }
@media (max-width: 640px) { .video-frames { grid-template-columns: 1fr; } }

/* GitHub stars badge (filled by JS from public repo API) */
.gh-stars { display: none; white-space: nowrap; color: var(--text-2); font-size: 13px; }
.gh-stars[aria-hidden="false"] { display: inline; }

/* Money-back guarantee note */
.guarantee { margin-top: 8px; font-weight: 600; color: var(--text-2); }

/* Google Photos anchor band */
.price-anchor {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin: 32px auto 0; padding: 20px 24px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--card);
}
.price-anchor .sub { margin: 0; color: var(--text-2); }
.price-anchor .btn { flex: 0 0 auto; }

/* Sticky Pro CTA (appears after pricing grid scrolls off screen) */
.sticky-pro {
  position: fixed; bottom: 96px; left: 50%; transform: translateX(-50%);
  z-index: 999; display: flex; gap: 14px; align-items: center;
  padding: 10px 20px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
  color: var(--text-1); font-size: 14px; white-space: nowrap;
  animation: fadeIn .3s ease;
}
.sticky-pro[hidden] { display: none; }

/* Founding / lifetime launch note */
.founding-note { margin: 20px auto 0; font-size: 14px; color: var(--text-2); }
.founding-note[hidden] { display: none; }
.pro-founding { margin: 8px 0 0; font-size: 14px; color: var(--text-2); }
.pro-founding[hidden] { display: none; }
.pro-founding a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
