:root {
  --accent: oklch(0.52 0.11 200);
  --accent-hover: oklch(0.40 0.10 200);
  --accent-light: oklch(0.62 0.12 200);
  --accent-dark-hover: oklch(0.42 0.10 200);
  --accent-on-dark: oklch(0.78 0.09 200);
  --ink: #0b0d0e;
  --ink-soft: #101416;
  --text: #0b0d0e;
  --text-body: #4a5153;
  --text-muted: #6b7275;
  /* #8a9092 was 3.01:1 on --bg — below the 4.5:1 AA floor for text under 24px, and
     every use of this token is 10-13px (.section-label, .footer-col-label, the footer
     mono line). #6a6f71 is 4.73:1. It sits very close to --text-muted now: AA simply
     does not leave room for three distinct grey tiers above 4.5:1 on this background,
     so the label tier is carried by size, weight, letter-spacing and case instead. */
  --text-faint: #6a6f71;
  --border: #e3e6e6;
  --border-soft: #dfe3e3;
  --bg: #f6f7f7;
  --card-bg: #fff;
}

* { box-sizing: border-box; }

.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;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", "Helvetica Neue", Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.mono { font-family: "Geist Mono", monospace; }

/* ── Header ───────────────────────────────────────────── */
header.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 247, 247, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 32px; height: 66px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.brand-link { display: flex; align-items: center; cursor: pointer; background: none; border: none; padding: 0; }
.brand-link img { height: 22px; width: auto; display: block; }
nav.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-link {
  font-size: 14px; color: #3d4446; cursor: pointer; padding: 6px 0;
  border-bottom: 2px solid transparent; background: none; border-top: none; border-left: none; border-right: none;
  font-family: inherit;
}
.nav-link:hover { color: var(--ink); border-bottom: 2px solid var(--accent-light); }
.btn-buy-nav {
  font-size: 14px; font-weight: 500; color: var(--bg); background: var(--ink);
  padding: 9px 18px; border-radius: 2px; cursor: pointer; border: none; font-family: inherit;
}
.btn-buy-nav:hover { background: var(--accent-dark-hover); }
.nav-toggle {
  display: none; width: 36px; height: 36px; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--border-soft); border-radius: 3px; cursor: pointer; padding: 0;
  flex-shrink: 0;
}
.nav-toggle svg { display: block; }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-block; font-size: 15px; font-weight: 500; padding: 14px 26px;
  border-radius: 2px; cursor: pointer; border: none; font-family: inherit; text-align: center;
}
.btn-primary { color: var(--bg); background: var(--ink); }
.btn-primary:hover { background: var(--accent-dark-hover); }
.btn-secondary { color: var(--ink); background: transparent; border: 1px solid #c9cfcf; }
.btn-secondary:hover { border-color: var(--ink); }
.btn-light { color: var(--ink-soft); background: #eceeee; }
.btn-light:hover { background: var(--accent-on-dark); }

/* ── Layout helpers ───────────────────────────────────── */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.eyebrow {
  font-family: "Geist Mono", monospace; font-size: 11px; letter-spacing: 0.18em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 26px;
}
.section-label {
  margin: 0 0 40px; font-size: 13px; font-family: "Geist Mono", monospace;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint);
}
/* The hairline grid: 1px gaps showing the background through as rules. Pages built
   before the multi-page split set grid-template-columns and cell padding inline on
   every use; these defaults mean a plain .grid-line/.grid-cell pair works on its own,
   and any inline value still wins. */
.grid-line {
  display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.grid-cell { background: var(--bg); padding: 28px 26px 32px; }

/* Inside a dark section the cells and the rules between them have to invert, or the
   grid reads as light boxes punched out of the dark band. */
.section-dark .grid-line { background: #242b2d; border-color: #242b2d; }
.section-dark .grid-cell { background: var(--ink-soft); }
.screenshot-frame {
  border: 1px solid var(--border-soft); border-radius: 3px; background: var(--card-bg); padding: 10px;
}
.screenshot-inner {
  display: flex; align-items: flex-end; justify-content: space-between; padding: 26px;
  background-image: repeating-linear-gradient(135deg, #eef0f0 0 2px, transparent 2px 9px);
  border: 1px solid #e8ebeb;
}
.screenshot-inner img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }

/* ── Gallery lightbox triggers ───────────────────────────── */
.gallery-item {
  display: block; width: 100%; padding: 0; margin: 0; border: none; background: none;
  font: inherit; color: inherit; text-align: left; cursor: zoom-in;
}
.gallery-item .screenshot-frame { position: relative; transition: border-color .15s ease; }
.gallery-item:hover .screenshot-frame,
.gallery-item:focus-visible .screenshot-frame { border-color: var(--accent); }
.gallery-item .screenshot-frame::after {
  content: "Enlarge"; position: absolute; top: 18px; right: 18px; padding: 5px 10px;
  font-family: "Geist Mono", monospace; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(0,0,0,.65); color: #fff; border-radius: 3px; opacity: 0; transition: opacity .15s ease;
  pointer-events: none;
}
.gallery-item:hover .screenshot-frame::after,
.gallery-item:focus-visible .screenshot-frame::after { opacity: 1; }

.lightbox {
  display: none; position: fixed; inset: 0; z-index: 1000; padding: 6vh 6vw;
  background: rgba(10,12,13,.92); align-items: center; justify-content: center; flex-direction: column;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 100%; max-height: 80vh; width: auto; height: auto; border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox-caption { margin-top: 18px; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: #b7bcbd; }
.lightbox-close {
  position: absolute; top: 20px; right: 28px; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: #fff;
  font-size: 22px; line-height: 1; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,.16); }

.gallery-theme-toggle {
  display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; gap: 2px;
}
.gallery-theme-opt {
  font: inherit; font-family: "Geist Mono", monospace; font-size: 11px; letter-spacing: 0.04em;
  padding: 5px 14px; border: none; border-radius: 999px; background: none; color: var(--text-muted); cursor: pointer;
}
.gallery-theme-opt.active { background: var(--ink); color: #fff; }

/* ── Two-column content grid ──────────────────────────── */
.two-col-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 52px 64px; }

/* ── Dark sections ────────────────────────────────────── */
.section-dark { background: var(--ink-soft); color: #eceeee; }

footer.site-footer { border-top: 1px solid var(--border); }
.footer-inner {
  max-width: 1180px; margin: 0 auto; padding: 44px 32px 56px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.footer-cols { display: flex; gap: 44px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col-label {
  font-family: "Geist Mono", monospace; font-size: 10px; letter-spacing: 0.14em;
  color: var(--text-faint); text-transform: uppercase;
}
.footer-link { font-size: 14px; color: #3d4446; cursor: pointer; background: none; border: none; text-align: left; font-family: inherit; padding: 0; }
.footer-link:hover { color: var(--ink); }

/* ── Pricing card ─────────────────────────────────────── */
.pricing-card {
  border: 1px solid var(--border-soft); background: var(--card-bg); border-radius: 3px;
  padding: 40px 36px; display: flex; flex-direction: column; gap: 26px;
}
.addon-row {
  display: flex; align-items: flex-start; gap: 12px; border-top: 1px solid #eceeee;
  padding-top: 22px; cursor: pointer; background: none; border-left: none; border-right: none; border-bottom: none;
  text-align: left; font-family: inherit; width: 100%;
}
.addon-box {
  width: 18px; height: 18px; border-radius: 3px; border: 1px solid #c9cfcf; flex-shrink: 0;
  margin-top: 1px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px;
}
.addon-box.checked { background: var(--ink); border-color: var(--ink); }

/* ── Contact form ─────────────────────────────────────── */
.contact-card {
  border: 1px solid var(--border-soft); background: var(--card-bg); border-radius: 3px;
  padding: 32px 30px 36px; display: flex; flex-direction: column; gap: 18px;
}
.field-label {
  font-family: "Geist Mono", monospace; font-size: 10px; letter-spacing: 0.14em;
  color: var(--text-muted); text-transform: uppercase;
}
.field { display: flex; flex-direction: column; gap: 7px; }
input[type="text"], input[type="email"], textarea {
  font-family: "Geist", sans-serif; font-size: 15px; padding: 11px 12px;
  border: 1px solid var(--border-soft); border-radius: 2px; background: #fbfbfb; color: var(--ink); outline: none;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border: 1px solid var(--accent-light); background: #fff;
}
textarea { resize: vertical; font-family: "Geist", sans-serif; }
.form-msg { font-size: 14px; margin-top: 4px; }
.form-msg.ok { color: #1f7a4d; }
.form-msg.err { color: #b3261e; }

/* ── Requirements list ────────────────────────────────── */
.req-note {
  margin: 40px 0 0; border: 1px solid #242b2d; border-left: 2px solid var(--accent-on-dark);
  padding: 22px 26px; max-width: 70ch;
}

/* ── FAQ ──────────────────────────────────────────────── */
/* Plain <details>/<summary> so the answer text is in the served HTML whether or not
   the reader opens it — collapsed content is still indexed, and AI crawlers that
   don't run JS see all of it. */
.faq { border-top: 1px solid var(--border); max-width: 76ch; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 32px 22px 0; position: relative;
  font-size: 17px; font-weight: 500; color: var(--ink); line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 20px; font-weight: 400; color: var(--text-faint); line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--accent); }
.faq details p {
  margin: 0; padding: 0 32px 24px 0; font-size: 15px; line-height: 1.7;
  color: var(--text-body); text-wrap: pretty;
}

@media (max-width: 860px) {
  /* ── Mobile nav: collapse the horizontal link row into a toggled dropdown ── */
  .nav-toggle { display: flex; }
  nav.site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 6px 18px 18px; box-shadow: 0 12px 24px rgba(0,0,0,.06);
  }
  nav.site-nav.open { display: flex; }
  nav.site-nav .nav-link {
    width: 100%; text-align: left; padding: 13px 0; border-bottom: 1px solid var(--border-soft);
  }
  nav.site-nav .btn-buy-nav { width: 100%; margin-top: 14px; padding: 11px 18px; }

  .header-inner { padding: 0 18px; }
  .wrap { padding: 0 18px; }

  /* ── Any multi-column grid stacks to one column on narrow screens ── */
  .grid-line { grid-template-columns: 1fr !important; }
  .hero-grid, .two-col-grid, .gallery-grid { grid-template-columns: 1fr !important; }
  .install-step { grid-template-columns: 40px 1fr !important; row-gap: 6px !important; }
  .install-step > *:last-child { grid-column: 1 / -1; }

  /* ── Fixed pixel heights on screenshot frames don't scale with a narrower
       width — let a consistent aspect-ratio drive the height instead so
       object-fit:cover still frames the image correctly at any width. ── */
  .screenshot-inner { height: auto !important; aspect-ratio: 16 / 10; }

  h1 { font-size: 34px !important; line-height: 1.15 !important; }
}

