:root {
  --paper: #F1F2F3;
  --paper-raised: #FFFFFF;
  --ink: #23272B;
  --ink-muted: #62686C;
  --accent: #C6741F;
  --accent-ink: #7A430E;
  --structure: #2B5B88;
  --structure-soft: #85A2BC;
  --line: #D3D6D7;
  --grid-line: rgba(43, 91, 136, 0.07);
  --shadow: 0 1px 0 rgba(20, 26, 30, 0.06);
  --axis-x: #D8342A;
  --axis-y: #3E8E41;
  --axis-z: #2B5B88;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1B1D1F;
    --paper-raised: #232527;
    --ink: #ECEEEE;
    --ink-muted: #9BA0A3;
    --accent: #E08A3B;
    --accent-ink: #FFD9AE;
    --structure: #5B9BD5;
    --structure-soft: #3F5A73;
    --line: #33373A;
    --grid-line: rgba(91, 155, 213, 0.10);
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
  }
}

:root[data-theme="dark"] {
  --paper: #1B1D1F;
  --paper-raised: #232527;
  --ink: #ECEEEE;
  --ink-muted: #9BA0A3;
  --accent: #E08A3B;
  --accent-ink: #FFD9AE;
  --structure: #5B9BD5;
  --structure-soft: #3F5A73;
  --line: #33373A;
  --grid-line: rgba(91, 155, 213, 0.10);
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--ink);
  font-family: "Sarabun", "Noto Sans Thai", sans-serif;
  line-height: 1.6;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: "Bai Jamjuree", "Sarabun", sans-serif;
  text-wrap: balance;
  margin: 0;
  color: var(--ink);
}

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Bai Jamjuree", sans-serif;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  color: var(--ink);
}
.brand img { width: 42px; height: 42px; object-fit: contain; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-muted);
}
.nav-links a:hover { color: var(--structure); }
.nav-cta-mobile { display: none; }

.nav-cta-group { display: flex; align-items: center; gap: 10px; }

.nav-cta {
  font-family: "Sarabun", sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 3px;
  text-decoration: none;
  white-space: nowrap;
}
.nav-cta-primary { background: var(--accent); color: #FFFFFF; }
.nav-cta-primary:hover { transform: translateY(-1px); }
.nav-cta-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.nav-cta-ghost:hover { border-color: var(--structure-soft); }

.promo-bar { background: var(--axis-x); }
.promo-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 9px 24px;
}
.promo-bar-text {
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.promo-bar-btn {
  flex: none;
  background: #FFFFFF;
  color: var(--axis-x);
  font-family: "Sarabun", sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  padding: 5px 14px;
  border-radius: 3px;
  text-decoration: none;
  white-space: nowrap;
}
.promo-bar-btn:hover { transform: translateY(-1px); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--paper-raised);
  border-radius: 3px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; stroke: var(--ink); }

/* ---------- Hero ---------- */
.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--structure);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--structure); }

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0 80px;
}

.hero h1 {
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 700;
  line-height: 1.16;
  margin-top: 14px;
}
.hero h1 .accent-word { color: var(--accent); }

.hero .sub {
  margin-top: 20px;
  font-size: 16.5px;
  color: var(--ink-muted);
  max-width: 46ch;
}

.cta-row { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.btn {
  font-family: "Sarabun", sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  min-height: 44px;
  border-radius: 3px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:focus-visible { outline: 2px solid var(--structure); outline-offset: 3px; }
.btn-primary { background: var(--structure); color: #FFFFFF; }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--structure-soft); }

.hero-art { position: relative; display: flex; align-items: center; justify-content: center; padding: 20px; }
.hero-art .photo-frame {
  position: relative;
  width: 100%;
  max-width: 460px;
  border: 1.5px solid #FFFFFF;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-art .photo-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  pointer-events: none;
  z-index: 1;
}
.hero-art .hero-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.hero-art .corner-tag {
  position: absolute;
  bottom: -13px;
  left: 36px;
  background: var(--paper);
  padding: 0 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--structure);
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  z-index: 2;
}

.hero-diagram-panel {
  --diag-bg: #142C42;
  --diag-grid-minor: rgba(255, 255, 255, 0.07);
  --diag-grid-major: rgba(255, 255, 255, 0.15);
  --diag-stroke: rgba(255, 255, 255, 0.92);
  --diag-dot: #5FB4E8;
  --diag-door: #5A3A22;
  --diag-glass: #BFE6F7;
  position: relative;
  width: 100%;
  aspect-ratio: 11 / 10;
  background-color: var(--diag-bg);
  background-image:
    linear-gradient(var(--diag-grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--diag-grid-major) 1px, transparent 1px),
    linear-gradient(var(--diag-grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--diag-grid-minor) 1px, transparent 1px);
  background-size: 110px 110px, 110px 110px, 27.5px 27.5px, 27.5px 27.5px;
  overflow: hidden;
}
.hero-diagram { width: 100%; height: 100%; display: block; }

.diag-shadow { fill: #000000; opacity: 0.22; }
.diag-outline { fill: none; stroke: var(--diag-stroke); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.diag-face { stroke: var(--diag-stroke); stroke-width: 1.6; stroke-linejoin: round; opacity: 0; }
.diag-panel-1 { fill: var(--accent); }
.diag-panel-3 { fill: var(--accent); }
.diag-panel-2 { fill: color-mix(in srgb, var(--accent) 80%, black); }

.diag-slot-face { fill: var(--diag-bg); stroke: var(--diag-stroke); stroke-width: 1.4; stroke-linejoin: round; opacity: 0; }

.diag-door-face { fill: var(--diag-door); stroke: var(--diag-stroke); stroke-width: 1.4; stroke-linejoin: round; opacity: 0; }
.diag-door-handle { fill: var(--diag-dot); opacity: 0; }

.diag-window-face { fill: var(--diag-glass); stroke: var(--diag-stroke); stroke-width: 1.4; stroke-linejoin: round; opacity: 0; }
.diag-window-muntins { opacity: 0; }
.diag-window-muntin-line { stroke: var(--diag-stroke); stroke-width: 1.4; }

.diag-dot { fill: var(--diag-dot); opacity: 0; transform-origin: center; transform-box: fill-box; }
.diag-ring { fill: none; stroke: var(--diag-dot); stroke-width: 2; opacity: 0; transform-origin: center; transform-box: fill-box; }
.diag-draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
@keyframes diagDraw { to { stroke-dashoffset: 0; } }
@keyframes diagFadeIn { to { opacity: 1; } }
@keyframes diagPopDot { 0% { opacity: 0; transform: scale(0); } 60% { opacity: 1; transform: scale(1.25); } 100% { opacity: 1; transform: scale(1); } }
@keyframes diagRingPulse { 0% { opacity: 0.55; transform: scale(0.5); } 100% { opacity: 0; transform: scale(1.9); } }

/* Reveal plays only while .hero-diagram-panel has .in-view (toggled in script.js)
   so it replays every time a visitor scrolls back to it, not just on page load.
   Sequence: 4 wall clicks (P0-P3, a Z-shaped wall) -> horizontal slot on the
   middle panel -> door -> window, echoing how Smart Wall is actually drawn
   one click at a time. */

/* 1. ผนัง: 4 จุดคลิกหักมุมฉาก 2 ครั้ง (0.10s - 1.65s) */
.hero-diagram-panel.in-view .diag-dot-p0 { animation: diagPopDot .35s cubic-bezier(.34,1.56,.64,1) forwards; animation-delay: .10s; }
.hero-diagram-panel.in-view .diag-ring-p0 { animation: diagRingPulse .6s ease-out forwards; animation-delay: .10s; }
.hero-diagram-panel.in-view .diag-dot-p1 { animation: diagPopDot .35s cubic-bezier(.34,1.56,.64,1) forwards; animation-delay: .22s; }
.hero-diagram-panel.in-view .diag-ring-p1 { animation: diagRingPulse .6s ease-out forwards; animation-delay: .22s; }
.hero-diagram-panel.in-view .diag-dot-p2 { animation: diagPopDot .35s cubic-bezier(.34,1.56,.64,1) forwards; animation-delay: .34s; }
.hero-diagram-panel.in-view .diag-ring-p2 { animation: diagRingPulse .6s ease-out forwards; animation-delay: .34s; }
.hero-diagram-panel.in-view .diag-dot-p3 { animation: diagPopDot .35s cubic-bezier(.34,1.56,.64,1) forwards; animation-delay: .46s; }
.hero-diagram-panel.in-view .diag-ring-p3 { animation: diagRingPulse .6s ease-out forwards; animation-delay: .46s; }
.hero-diagram-panel.in-view .diag-panel-1-draw { animation: diagDraw .4s ease forwards; animation-delay: .60s; }
.hero-diagram-panel.in-view .diag-panel-2-draw { animation: diagDraw .4s ease forwards; animation-delay: .75s; }
.hero-diagram-panel.in-view .diag-panel-3-draw { animation: diagDraw .4s ease forwards; animation-delay: .90s; }
.hero-diagram-panel.in-view .diag-panel-1 { animation: diagFadeIn .35s ease forwards; animation-delay: 1.25s; }
.hero-diagram-panel.in-view .diag-panel-2 { animation: diagFadeIn .35s ease forwards; animation-delay: 1.40s; }
.hero-diagram-panel.in-view .diag-panel-3 { animation: diagFadeIn .35s ease forwards; animation-delay: 1.55s; }

/* 2. ช่องแนวนอนบนผนังชิ้นกลาง (2.00s - 2.8s) */
.hero-diagram-panel.in-view .diag-dot-slot { animation: diagPopDot .35s cubic-bezier(.34,1.56,.64,1) forwards; animation-delay: 2.00s; }
.hero-diagram-panel.in-view .diag-ring-slot { animation: diagRingPulse .6s ease-out forwards; animation-delay: 2.00s; }
.hero-diagram-panel.in-view .diag-slot-draw { animation: diagDraw .35s ease forwards; animation-delay: 2.15s; }
.hero-diagram-panel.in-view .diag-slot-face { animation: diagFadeIn .3s ease forwards; animation-delay: 2.50s; }

/* 3. ประตู (2.90s - 3.9s) */
.hero-diagram-panel.in-view .diag-dot-door { animation: diagPopDot .35s cubic-bezier(.34,1.56,.64,1) forwards; animation-delay: 2.90s; }
.hero-diagram-panel.in-view .diag-ring-door { animation: diagRingPulse .6s ease-out forwards; animation-delay: 2.90s; }
.hero-diagram-panel.in-view .diag-door-draw { animation: diagDraw .35s ease forwards; animation-delay: 3.05s; }
.hero-diagram-panel.in-view .diag-door-face { animation: diagFadeIn .3s ease forwards; animation-delay: 3.40s; }
.hero-diagram-panel.in-view .diag-door-handle { animation: diagFadeIn .2s ease forwards; animation-delay: 3.70s; }

/* 4. หน้าต่าง (4.00s - 5.0s) */
.hero-diagram-panel.in-view .diag-dot-window { animation: diagPopDot .35s cubic-bezier(.34,1.56,.64,1) forwards; animation-delay: 4.00s; }
.hero-diagram-panel.in-view .diag-ring-window { animation: diagRingPulse .6s ease-out forwards; animation-delay: 4.00s; }
.hero-diagram-panel.in-view .diag-window-draw { animation: diagDraw .35s ease forwards; animation-delay: 4.15s; }
.hero-diagram-panel.in-view .diag-window-face { animation: diagFadeIn .3s ease forwards; animation-delay: 4.50s; }
.hero-diagram-panel.in-view .diag-window-muntins { animation: diagFadeIn .2s ease forwards; animation-delay: 4.75s; }

/* ---------- Section shell ---------- */
section { padding: 56px 0; }
section.alt { background: var(--paper-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.customer-section {
  background: color-mix(in srgb, var(--structure) 22%, var(--paper));
  border-top: 1px solid var(--structure-soft);
  border-bottom: 1px solid var(--structure-soft);
  padding: 56px 0;
}
.customer-section .section-lede { margin-bottom: 24px; }
.customer-section .cta-row { margin-top: 0; }

.section-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { font-size: 15px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }
.section-head .rule { flex: 1; min-width: 40px; height: 1px; background: var(--line); }
.section-head .idx { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--ink-muted); }
.section-lede { font-size: 16px; color: var(--ink-muted); max-width: 60ch; margin: -14px 0 32px; }

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.feature-card {
  background: var(--paper-raised);
  border: 1.5px solid var(--accent);
  padding: 26px 22px;
}
.feature-card .n {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--structure);
}
.feature-card h3 { font-size: 16.5px; font-weight: 600; margin: 12px 0 8px; }
.feature-card p { font-size: 13.5px; color: var(--ink-muted); margin: 0; }
.feature-card ul { list-style: none; margin: 14px 0 0; padding: 0; font-size: 13px; color: var(--ink-muted); display: grid; gap: 8px; }
.feature-card li { display: flex; align-items: center; gap: 9px; }
.feature-card .cmd-icon {
  flex: none;
  width: 52px;
  height: 52px;
  padding: 4px;
  border-radius: 7px;
  background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(20, 26, 30, 0.18);
  object-fit: contain;
}

/* ---------- Flagship ---------- */
.flagship {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  padding: 40px;
}
.flagship + .flagship { margin-top: 24px; }
.flagship .tag {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--accent-ink);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 14px;
}
.flagship h3 { font-size: 24px; margin-bottom: 10px; }
.flagship p { color: var(--ink-muted); font-size: 15px; max-width: 52ch; }
.flagship .diagram {
  aspect-ratio: 4 / 3;
  border: 1px dashed var(--line);
  overflow: hidden;
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 20px 20px;
}
.flagship .diagram img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.flagship .diagram.video-diagram { position: relative; display: block; }
.flagship .diagram.video-diagram .play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 70%, transparent);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  padding-left: 4px;
}

/* ---------- Screenshot gallery ---------- */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.screenshot-grid figure {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--paper-raised);
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.screenshot-grid img {
  width: 100%;
  max-width: 260px;
  height: auto;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.screenshot-grid figcaption {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--structure);
  letter-spacing: 0.04em;
  text-align: center;
}

/* ---------- Trial CTA ---------- */
.trial-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  border: 1.5px solid var(--accent);
  background: var(--paper-raised);
  padding: 36px 40px;
}
.trial-band h3 { font-size: 20px; margin-bottom: 8px; }
.trial-band p { color: var(--ink-muted); font-size: 14.5px; margin: 0; max-width: 48ch; }
.promo-badge {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  background: var(--axis-x);
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 10px;
}
.price-strike { color: var(--ink-muted); text-decoration: line-through; font-weight: 400; font-size: 0.75em; }
.price-now { color: var(--axis-x); }
.promo-deadline { color: var(--axis-x); font-size: 13px; font-weight: 600; margin: 0 0 8px; }
.nav-badge {
  display: inline-block;
  background: var(--axis-x);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  margin-left: 4px;
  vertical-align: middle;
}
.trial-meta {
  display: flex;
  gap: 20px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--structure);
  margin-top: 14px;
  flex-wrap: wrap;
}

/* ---------- Install steps ---------- */
.install-steps {
  margin-top: 20px;
  border: 1px solid var(--line);
  background: var(--paper-raised);
  padding: 28px 32px;
}
.install-steps h4 {
  font-family: "Bai Jamjuree", sans-serif;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 18px;
}
.install-steps ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.install-steps li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-size: 14.5px;
  color: var(--ink-muted);
  line-height: 1.55;
}
.install-steps .step-n {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--structure);
  color: #FFFFFF;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(2px);
}
.install-steps .step-text {
  flex: 1 1 auto;
  min-width: 0;
}
.install-steps strong { color: var(--ink); font-weight: 600; }
.install-steps code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  background: var(--grid-line);
  padding: 2px 6px;
  border-radius: 2px;
  color: var(--ink);
}
.install-note {
  margin: 20px 0 0;
  padding: 14px 16px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-muted);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 4px;
}
.install-note strong { color: var(--ink); font-weight: 600; }
.install-note a { color: var(--accent-ink); }

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
}
.footer-slogan {
  font-family: "Bai Jamjuree", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  margin: 0 0 14px;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  color: var(--ink-muted);
}
.footer-row a { color: inherit; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 40px 0 56px; gap: 32px; }
  .hero-art { order: -1; padding: 0; }
  .hero-art .photo-frame { max-width: 320px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .screenshot-grid { grid-template-columns: repeat(2, 1fr); }
  .flagship { grid-template-columns: 1fr; padding: 28px; }
  .flagship .diagram { order: -1; }
  .trial-band { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
  .site-nav { padding: 12px 20px; }
  .nav-links {
    position: fixed;
    inset: 60px 0 0 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
    gap: 22px;
    border-top: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
  }
  .nav-links a { font-size: 17px; color: var(--ink); }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-cta-group { display: none; }
  .nav-links .nav-cta-mobile {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    background: var(--structure);
    color: #FFFFFF;
    padding: 12px 20px;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 600;
  }
  .nav-links .nav-cta-mobile-primary { background: var(--accent); }
  .nav-toggle { display: inline-flex; }

  .feature-grid { grid-template-columns: 1fr; }
  .screenshot-grid { grid-template-columns: 1fr; }
  .wrap { padding: 0 18px; }
  section { padding: 40px 0; }
  .btn { width: 100%; justify-content: center; }
  .cta-row { flex-direction: column; }
}
