/* ==========================================================================
   Stillstack Labs — shared styles
   Theme: "homegrown" — warm linen, forest green, terracotta, soft serif.
   ========================================================================== */

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

:root {
  --bg:        #f3ece0;   /* linen */
  --bg2:       #fbf8f2;   /* warm paper (cards) */
  --bg3:       #efe6d6;   /* oat (insets, tags) */
  --border:    #e2d6c2;
  --border-2:  #cdbb9d;
  --fg:        #2a241e;   /* espresso */
  --muted:     #574d42;   /* body copy — ~7.6:1 on --bg */
  --dim:       #6e6254;   /* secondary labels — ~5.2:1 on --bg */
  --accent:    #3f5e3a;   /* forest green — ~6.6:1 on --bg */
  --accent-dk: #31492d;
  --accent-ink:#fbf8f2;
  --accent-soft: rgba(63, 94, 58, 0.08);
  --clay:      #a3492a;   /* terracotta — ~5:1 on --bg */
  --clay-soft: rgba(163, 73, 42, 0.09);
  --honey:     #85651a;   /* ~4.8:1 on --bg */
  --honey-soft: rgba(176, 134, 40, 0.12);
  --soon:      var(--clay);
  --ok:        var(--honey);

  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --mono:    'DM Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --sans:    'DM Sans', system-ui, 'Segoe UI', sans-serif;

  --radius:    14px;
  --radius-sm: 10px;
  --shadow:    0 1px 0 rgba(255,255,255,0.7) inset, 0 14px 34px -22px rgba(74, 52, 30, 0.45);
  --shadow-lg: 0 1px 0 rgba(255,255,255,0.7) inset, 0 24px 48px -26px rgba(74, 52, 30, 0.55);

  --wrap: 1120px;
  --gutter: 48px;
  --nav-h: 70px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

main { flex: 1; position: relative; z-index: 2; }

/* background: paper grain + soft sun & sage glows */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 8% 0%, rgba(222, 176, 110, 0.28), transparent 70%),
    radial-gradient(ellipse 55% 45% at 100% 100%, rgba(122, 150, 104, 0.20), transparent 70%),
    radial-gradient(ellipse 40% 35% at 95% 10%, rgba(196, 120, 80, 0.10), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.25 0 0 0 0 0.15 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.18;
  pointer-events: none;
  z-index: 1;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

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

.skip-link {
  position: absolute;
  left: 16px; top: -48px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font: 500 13px var(--sans);
  z-index: 1000;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── type helpers ───────────────────────────────────────────── */

.eyebrow {
  font: 500 12px var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
}

.section-label {
  font: 500 12px var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 0;
  border-top: 1px dashed var(--border-2);
}

.h-display {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
  font-variation-settings: 'opsz' 144;
}

.h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 16px;
}
.h2 em, .h-display em { font-style: italic; font-weight: 500; color: var(--clay); }

.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
}

.muted { color: var(--muted); }

/* ── buttons ────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: 600 15px var(--sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 14px 26px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 8px 20px -10px rgba(49, 73, 45, 0.7);
}
.btn-primary:hover { background: var(--accent-dk); transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 14px 28px -12px rgba(49, 73, 45, 0.75); }

.btn-outline {
  border-color: var(--border-2);
  color: var(--fg);
  background: rgba(251, 248, 242, 0.6);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--bg2); }

.btn-ghost {
  color: var(--accent);
  padding-left: 4px;
  padding-right: 4px;
}
.btn-ghost:hover { color: var(--accent-dk); }

.btn-sm { padding: 9px 18px; font-size: 14px; }

.btn[disabled], .btn.is-disabled {
  background: var(--bg3);
  color: var(--dim);
  border-color: var(--border);
  cursor: default;
  transform: none;
  box-shadow: none;
}

.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ── nav ────────────────────────────────────────────────────── */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid var(--border);
  background: rgba(243, 236, 224, 0.86);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
}

.site-nav .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--fg);
  flex-shrink: 0;
}
.brand svg { width: 36px; height: 36px; color: var(--accent); }
.brand-name { font: 600 19px/1.05 var(--display); letter-spacing: -0.01em; }
.brand-name small { display: block; font: 500 10px var(--mono); color: var(--clay); letter-spacing: 0.2em; margin-top: 3px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-links a {
  font: 500 14.5px var(--sans);
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--fg); background: rgba(205, 187, 157, 0.25); }
.nav-links a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.nav-links .nav-cta { margin-left: 12px; }
.nav-links .nav-cta a.btn { color: var(--accent-ink); background: var(--accent); padding: 10px 20px; }
.nav-links .nav-cta a.btn:hover { background: var(--accent-dk); }

.nav-toggle {
  display: none;
  background: var(--bg2);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  color: var(--fg);
  width: 44px; height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .i-close { display: none; }
.nav-open .nav-toggle .i-open { display: none; }
.nav-open .nav-toggle .i-close { display: block; }

/* ── sections ───────────────────────────────────────────────── */

.section { padding: 112px 0; position: relative; }
.section + .section::before {          /* stitched divider */
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: min(var(--wrap), 100%);
  transform: translateX(-50%);
  border-top: 1.5px dashed var(--border-2);
  opacity: 0.8;
}
.section-head { margin-bottom: 56px; }
.section-head .lead { margin-top: 4px; }

.page-head {
  padding: calc(var(--nav-h) + 88px) 0 64px;
}
.page-head .h-display { font-size: clamp(40px, 10vw, 84px); margin: 16px 0 20px; }

/* ── hero (home) ────────────────────────────────────────────── */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 64px) 0 96px;
  text-align: center;
}
.hero .wrap { display: flex; flex-direction: column; align-items: center; }
.hero-title { font-size: clamp(44px, 11vw, 104px); margin: 22px 0 30px; }
.hero-title span {
  color: var(--clay);
  font-style: italic;
  font-weight: 500;
  position: relative;
  white-space: nowrap;
  padding-bottom: 0.08em;
}
.hero-title span::after {             /* hand-drawn underline */
  content: '';
  position: absolute;
  left: 2%; right: 2%; bottom: -0.06em;
  height: 0.16em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 C 50 2, 90 11, 140 6 S 230 2, 298 7' fill='none' stroke='%233f5e3a' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  opacity: 0.75;
}
.hero .lead { margin: 0 auto 44px; text-align: center; }
.hero-cta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: center; }

.trust {
  margin-top: 48px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  font: 500 13px var(--sans);
  color: var(--muted);
}
.trust li {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(251, 248, 242, 0.7);
}
.trust li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ── cards ──────────────────────────────────────────────────── */

.card {
  border: 1px solid var(--border);
  background: var(--bg2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.card.is-link:hover { border-color: var(--border-2); transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.badge {
  display: inline-block;
  font: 500 11px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--clay);
  background: var(--clay-soft);
  line-height: 1.4;
  white-space: nowrap;
}
.badge.available { color: var(--accent); background: var(--accent-soft); }
.badge.free { color: var(--honey); background: var(--honey-soft); }

.app-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg3);
  display: grid;
  place-items: center;
  color: var(--accent);
  flex-shrink: 0;
}
.app-icon svg { width: 26px; height: 26px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.tags li {
  font: 500 12.5px var(--sans);
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--bg3);
  border-radius: 999px;
  padding: 4px 12px;
}

.price {
  font-family: var(--display);
  font-weight: 600;
  font-size: 30px;
  color: var(--accent);
  line-height: 1;
}
.price small {
  font: 400 13px var(--sans);
  color: var(--dim);
  margin-left: 6px;
}

/* product card (products page + home bench) */
.product-card { display: flex; flex-direction: column; gap: 20px; }
.product-card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.product-card h3 { font-family: var(--display); font-size: 28px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.1; }
.product-card h3 a { text-decoration: none; }
.product-card h3 a::after { content: ''; position: absolute; inset: 0; }   /* whole-card link */
.product-card p { color: var(--muted); font-size: 15px; }
.product-card p a { position: relative; z-index: 1; }
.product-card .foot {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px dashed var(--border-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.product-card .foot .btn { position: relative; z-index: 1; }

/* ── spotlight (home featured product) ──────────────────────── */

.spotlight {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.spotlight h2 { font-family: var(--display); font-size: clamp(44px, 5.5vw, 68px); font-weight: 600; letter-spacing: -0.025em; line-height: 1; margin: 16px 0 18px; }
.spotlight .lead { margin-bottom: 28px; }
.spotlight .tags { margin-bottom: 32px; }
.spotlight .actions { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }

.checklist { list-style: none; display: grid; gap: 12px; margin-bottom: 32px; }
.checklist li { display: flex; gap: 12px; color: var(--muted); }
.checklist li::before {
  content: '';
  flex-shrink: 0;
  width: 18px; height: 18px; margin-top: 4px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%233f5e3a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 12px;
}
.checklist li:has(> a)::before { display: none; }
.checklist strong { color: var(--fg); font-weight: 600; }

/* motion-detect illustration (not a screenshot) — a warm, dark "screen" */
.viewfinder {
  --vf-ink: #f1e8d8;
  --vf-hi:  #b9d0a3;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  border: 8px solid #3a3029;
  background:
    radial-gradient(ellipse at 30% 75%, rgba(185, 208, 163, 0.10), transparent 60%),
    linear-gradient(160deg, #2f2822, #1f1a16);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.viewfinder::before {      /* scanlines */
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255,240,220,0.025) 0 1px, transparent 1px 4px);
}
.vf-corner { position: absolute; width: 22px; height: 22px; border: 2px solid var(--vf-hi); opacity: 0.75; }
.vf-corner.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.vf-corner.tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; border-top-right-radius: 6px; }
.vf-corner.bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; border-bottom-left-radius: 6px; }
.vf-corner.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; border-bottom-right-radius: 6px; }
.vf-rec {
  position: absolute; top: 20px; left: 48px;
  font: 500 12px var(--mono); letter-spacing: 0.14em; color: var(--vf-ink);
  display: flex; align-items: center; gap: 8px;
}
.vf-rec::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #e0754a; animation: blink 1.4s steps(1) infinite; }
.vf-time { position: absolute; top: 20px; right: 48px; font: 400 12px var(--mono); color: rgba(241,232,216,0.7); letter-spacing: 0.08em; }
.vf-status {
  position: absolute; left: 48px; right: 48px; bottom: 20px;
  display: flex; justify-content: space-between;
  font: 400 11px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(241,232,216,0.6);
}
.vf-status b { color: var(--vf-hi); font-weight: 500; }
.vf-figure { position: absolute; left: 50%; top: 52%; width: 34%; transform: translate(-50%, -50%); color: #4a4038; animation: drift 7s ease-in-out infinite; }
.vf-box {
  position: absolute; left: 50%; top: 52%;
  width: 42%; height: 66%;
  transform: translate(-50%, -50%);
  border: 1.5px solid var(--vf-hi);
  border-radius: 6px;
  box-shadow: 0 0 22px rgba(185,208,163,0.25), inset 0 0 22px rgba(185,208,163,0.08);
  animation: drift 7s ease-in-out infinite;
}
.vf-box span {
  position: absolute; top: -24px; left: -1.5px;
  background: var(--vf-hi); color: #1f1a16;
  border-radius: 4px;
  font: 500 10px var(--mono); letter-spacing: 0.12em; padding: 3px 8px;
}

@keyframes blink { 50% { opacity: 0; } }
@keyframes drift {
  0%, 100% { transform: translate(-62%, -50%); }
  50%      { transform: translate(-38%, -50%); }
}

/* ── screenshot preview ─────────────────────────────────────── */

.peek { margin-top: 96px; }
.peek-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 32px; }
.peek-head > div { max-width: 640px; }
.shot { border: 1px solid var(--border); background: var(--bg2); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; }
.shot a { display: block; }
.shot img { width: 100%; height: auto; border-radius: 8px; transition: opacity 0.2s; }
.shot a:hover img { opacity: 0.92; }
.shot figcaption { font: 500 13px var(--sans); color: var(--dim); padding: 12px 6px 4px; }

/* ── principles ─────────────────────────────────────────────── */

.principle { padding: 32px; }
.principle .num { font: italic 500 30px/1 var(--display); color: var(--clay); margin-bottom: 18px; display: block; }
.principle h3 { font-family: var(--display); font-size: 22px; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.01em; }
.principle p { color: var(--muted); font-size: 15px; }

/* ── about ──────────────────────────────────────────────────── */

.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: start; }
.about-body p { color: var(--muted); font-size: 17.5px; }
.about-body p + p { margin-top: 18px; }
.about-body strong { color: var(--fg); font-weight: 600; }
.sig { margin-top: 28px; font: italic 500 18px var(--display); color: var(--clay); }

/* ── free-tool band ─────────────────────────────────────────── */

.band {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 40px;
  background: linear-gradient(120deg, var(--honey-soft), transparent 55%), var(--bg2);
}
.band h3 { font-family: var(--display); font-size: 28px; font-weight: 600; margin: 8px 0 6px; }
.band p { color: var(--muted); }
.mini-ring { width: 84px; height: 84px; }

/* ── forms ──────────────────────────────────────────────────── */

.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label, .field .label {
  font: 600 13px var(--sans);
  color: var(--fg);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  color: var(--fg);
  font: 400 15px var(--sans);
  padding: 13px 16px;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder, .field textarea::placeholder { color: #93877a; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field textarea { min-height: 150px; resize: vertical; }
.field select {
  cursor: pointer;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%233f5e3a' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
}
.field select option { background: var(--bg2); color: var(--fg); }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.check {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: var(--bg2);
  padding: 9px 16px 9px 12px;
  cursor: pointer;
  font: 500 14px var(--sans);
  color: var(--muted);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.field .check input { accent-color: var(--accent); width: 16px; height: 16px; padding: 0; -webkit-appearance: auto; appearance: auto; background: none; border: 0; box-shadow: none; }
.check:has(input:checked) { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.form-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-note { font-size: 13px; color: var(--dim); }

.form-status {
  font: 500 14px var(--sans);
  padding: 14px 16px;
  border: 1px solid;
  border-radius: var(--radius-sm);
  display: none;
}
.form-status.is-ok { display: block; color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.form-status.is-err { display: block; color: var(--clay); border-color: var(--clay); background: var(--clay-soft); }
.form-status a { color: inherit; }

.is-sending .btn[type="submit"] { opacity: 0.7; pointer-events: none; }

.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 80px; }
.contact > form {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 32px;
}
.contact-aside p { color: var(--muted); margin-bottom: 20px; }
.contact-aside ul { list-style: none; display: grid; gap: 12px; font: 500 15px var(--sans); }
.contact-aside li a { color: var(--accent); text-decoration: none; }
.contact-aside li a:hover { color: var(--accent-dk); text-decoration: underline; }

/* ── product page ───────────────────────────────────────────── */

.product-hero {
  padding: calc(var(--nav-h) + 72px) 0 96px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.product-hero h1 { font-size: clamp(40px, 5.2vw, 70px); margin: 18px 0 20px; }
.product-hero h1 span { font-style: italic; font-weight: 500; }
.product-hero .lead { margin-bottom: 32px; }
.buy-box { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.req { font: 400 13px var(--sans); color: var(--dim); }

.steps { counter-reset: step; }
.step { padding: 32px; }
.step::after {
  counter-increment: step;
  content: counter(step);
  position: absolute; top: 22px; right: 26px;
  font: italic 500 34px/1 var(--display);
  color: var(--clay);
  opacity: 0.85;
}
.step h3 { padding-right: 40px; }
.step h3 { font-family: var(--display); font-size: 21px; font-weight: 600; margin: 0 0 10px; }
.step p { color: var(--muted); font-size: 15px; }
.step code, .prose code {
  font: 400 0.86em var(--mono);
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--fg);
}

.feature { padding: 28px; }
.feature .ico {
  color: var(--accent);
  width: 46px; height: 46px;
  padding: 11px;
  border-radius: 12px;
  background: var(--accent-soft);
  margin-bottom: 18px;
}
.feature h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 15px; }

.privacy-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, rgba(122, 150, 104, 0.16), transparent 60%), var(--bg2);
}

.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { border: 1px solid var(--border); background: var(--bg2); border-radius: var(--radius-sm); transition: box-shadow 0.2s; }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 400 22px/1 var(--sans); color: var(--clay); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] { border-color: var(--border-2); box-shadow: var(--shadow); }
.faq .answer { padding: 0 24px 22px; color: var(--muted); }
.faq .answer a { color: var(--accent); }

.cta-final { text-align: center; }
.cta-final .h2 { margin-bottom: 12px; }
.cta-final .lead { margin: 0 auto 32px; }

/* ── prose (privacy) ────────────────────────────────────────── */

.prose { max-width: 760px; }
.prose h2 {
  font: 600 24px var(--display);
  letter-spacing: -0.01em;
  color: var(--fg);
  margin: 48px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border-2);
}
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 1.2em; display: grid; gap: 10px; }
.prose ul ul { margin-top: 10px; }
.prose li::marker { color: var(--clay); }
.prose strong { color: var(--fg); font-weight: 600; }
.prose code { overflow-wrap: anywhere; }
.product-hero > *, .spotlight > *, .about > *, .contact > *, .privacy-strip > * { min-width: 0; }
.prose a { color: var(--accent); }
.prose .note {
  margin-top: 48px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 14px;
  color: var(--dim);
}
.meta-line { font: 400 14px var(--sans); color: var(--dim); }

.toc { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; font: 500 14px var(--sans); }
.toc a { color: var(--muted); text-decoration: none; display: inline-block; padding: 5px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg2); }
.toc a:hover { color: var(--accent); border-color: var(--accent); }

/* ── footer ─────────────────────────────────────────────────── */

.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1.5px dashed var(--border-2);
  padding: 64px 0 40px;
  background: rgba(233, 222, 204, 0.55);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-grid p { color: var(--dim); font-size: 14.5px; margin-top: 16px; max-width: 300px; }
.footer-grid h4 {
  font: 500 12px var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid ul a { color: var(--muted); text-decoration: none; font-size: 15px; }
.footer-grid ul a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border-2);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font: 400 13px var(--sans);
  color: var(--dim);
}
.footer-bottom strong { color: var(--accent); font-weight: 700; letter-spacing: 0.06em; }

/* ── reveal on scroll (only when JS is running) ─────────────── */

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

.fade-up { animation: fadeUp 0.7s ease both; }
.d1 { animation-delay: 0.1s; } .d2 { animation-delay: 0.2s; } .d3 { animation-delay: 0.35s; } .d4 { animation-delay: 0.5s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ── responsive ─────────────────────────────────────────────── */

@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 880px) {
  :root { --gutter: 24px; }

  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(243, 236, 224, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 20px 30px -20px rgba(74, 52, 30, 0.4);
    padding: 8px var(--gutter) 24px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .nav-open .nav-links { opacity: 1; transform: none; visibility: visible; }
  .nav-links a { display: block; padding: 14px 4px; font-size: 16px; border-radius: 0; border-bottom: 1px dashed var(--border-2); }
  .nav-links a:hover, .nav-links a[aria-current="page"] { background: none; }
  .nav-links .nav-cta { margin: 20px 0 0; }
  .nav-links .nav-cta a.btn { width: 100%; border: 0; border-radius: 999px; }

  .section { padding: 80px 0; }
  .spotlight, .about, .contact, .product-hero, .privacy-strip { grid-template-columns: 1fr; gap: 40px; }
  .product-hero { padding-top: calc(var(--nav-h) + 48px); padding-bottom: 64px; }
  .product-hero h1 { font-size: clamp(40px, 12vw, 68px); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .band { grid-template-columns: 1fr; text-align: left; padding: 32px 24px; }
  .privacy-strip { padding: 32px 24px; }
  .card { padding: 28px 24px; }
  .contact > form { padding: 24px 20px; }
}

@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; }
  .hero-cta .btn { width: 100%; }
  .btn { white-space: normal; text-align: center; }
  .buy-box .btn-primary { width: 100%; }
  .trust { gap: 8px; }
  .vf-rec, .vf-status { left: 42px; }
  .vf-time, .vf-status { right: 42px; }
  .vf-status span:last-child { display: none; }
}
