/* =============================================================================
 * Turbo Monkey — the one stylesheet.
 *
 * Light-mode design system. White page, alternating #f7f8fa / #fbfbfd bands
 * instead of hairline borders between sections, white cards on 1px #e6e8ec
 * borders with layered soft shadows, one deep blue accent, system font stack,
 * fluid clamp() type scale. No dark mode, no toggle.
 *
 * Marketing sections run 1100px wide (.wrap-wide); long prose stays at 820px
 * (.wrap). No vendor logos anywhere. Screenshots are the product proof and get
 * a deliberate frame (.shot) — see includes/helpers.php shot_figure().
 * ========================================================================== */

:root {
  /* Surfaces */
  --bg: #ffffff;
  --bg-band: #f7f8fa;
  --bg-band-2: #fbfbfd;
  --surface: #ffffff;
  --surface-2: #f3f4f7;
  --surface-3: #eceef2;
  --border: #e6e8ec;
  --border-strong: #d4d8df;
  --border-input: #89919f;   /* form-control boundary: 3.2:1 on white (WCAG 1.4.11); the lighter borders are decorative */

  /* Text — every pair below clears WCAG AA on white and on the bands */
  --text: #0d0f14;
  --text-2: #3b4350;
  --text-muted: #5b6472;
  --text-faint: #646c79;      /* 4.65:1 on the darkest band it sits on (#eef0f5); #6b7280 was 4.24:1 there */

  /* Accent — one hue. 6.7:1 on white as text, 6.7:1 as a white-on-accent button. */
  --accent: #1e4fd6;
  --accent-hover: #1a44bf;
  --accent-active: #163aa3;
  --accent-text: #1a44bf;
  --accent-dim: rgba(30, 79, 214, 0.08);
  --accent-dim-2: rgba(30, 79, 214, 0.14);
  --accent-ring: rgba(30, 79, 214, 0.28);

  --green: #15803d;
  --green-dim: rgba(21, 128, 61, 0.1);
  --amber: #92400e;           /* 5.8:1 on its own tint over the band; #a16207 was 4.1:1 at 11px */
  --amber-dim: rgba(161, 98, 7, 0.1);
  --red: #b91c1c;

  --radius-lg: 18px;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 7px;

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Layered shadows: a contact line, a near lift, a soft ambient. Never one harsh drop. */
  --shadow-xs: 0 1px 2px rgba(13, 15, 20, 0.04);
  --shadow-sm: 0 1px 2px rgba(13, 15, 20, 0.05), 0 2px 8px rgba(13, 15, 20, 0.04);
  --shadow-md: 0 1px 2px rgba(13, 15, 20, 0.05), 0 4px 12px rgba(13, 15, 20, 0.05), 0 14px 36px rgba(13, 15, 20, 0.06);
  --shadow-lg: 0 1px 2px rgba(13, 15, 20, 0.05), 0 8px 24px rgba(13, 15, 20, 0.07), 0 28px 72px rgba(13, 15, 20, 0.09);
  --shadow-frame: 0 1px 2px rgba(13, 15, 20, 0.06), 0 12px 32px rgba(13, 15, 20, 0.08), 0 32px 80px -12px rgba(30, 79, 214, 0.14);

  /* Fluid type scale */
  --fs-display: clamp(2.5rem, 1.55rem + 3.4vw, 4.25rem);     /* 40 → 68 */
  --fs-h1: clamp(2.125rem, 1.5rem + 2.4vw, 3.25rem);          /* 34 → 52 */
  --fs-h2: clamp(1.75rem, 1.35rem + 1.5vw, 2.5rem);           /* 28 → 40 */
  --fs-h3: 1.0625rem;
  --fs-lede: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);         /* 17 → 20 */
  --fs-body: 1rem;
  --fs-small: 0.9375rem;
  --fs-caption: 0.8125rem;

  --section-y: clamp(72px, 5vw + 44px, 120px);
  --wrap: 820px;
  --wrap-wide: 1100px;
  --gutter: 24px;
}

/* ---- Reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.15em; }
code {
  font-family: var(--mono); font-size: 0.9em; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 1px 6px; border-radius: 5px;
}
ul, ol { margin: 0; padding: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
dl, dd { margin: 0; }
h1, h2, h3, h4 { color: var(--text); line-height: 1.15; letter-spacing: -0.025em; font-weight: 650; margin: 0; }
h3, h4 { letter-spacing: -0.015em; line-height: 1.3; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: #fff; font-weight: 600;
  padding: 10px 16px; border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
}
.skip-link:focus { top: 12px; outline-offset: 0; }

/* ---- Width containers --------------------------------------------------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { max-width: var(--wrap-wide); margin: 0 auto; padding: 0 var(--gutter); }

/* ---- Rhythm ------------------------------------------------------------- */
.section { padding: var(--section-y) 0; }
.section-band { background: var(--bg-band); }
.section-band-2 { background: var(--bg-band-2); }
.section-band + .section-band { padding-top: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-text); margin: 0 0 18px;
}
.eyebrow::before {
  content: ''; width: 18px; height: 2px; border-radius: 2px; background: currentColor; opacity: 0.6;
}
.section-title { font-size: var(--fs-h2); margin-bottom: 16px; max-width: 24ch; }
.section-lede { color: var(--text-muted); font-size: var(--fs-lede); line-height: 1.55; max-width: 58ch; margin-bottom: 40px; }
.section-lede:last-child { margin-bottom: 0; }
.section-head { margin-bottom: 48px; }
.section-head .section-lede { margin-bottom: 0; }

/* ---- Topbar ------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.topbar.scrolled {
  background: rgba(255, 255, 255, 0.86);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(13, 15, 20, 0.02), 0 6px 20px -8px rgba(13, 15, 20, 0.08);
}
.topbar-inner {
  position: relative;
  max-width: var(--wrap-wide); margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: center; gap: 11px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15.5px; font-weight: 650; color: var(--text); letter-spacing: -0.015em;
}
.wordmark:hover { text-decoration: none; color: var(--text); }
.wordmark-mark { width: 28px; height: 28px; flex: 0 0 auto; display: block; object-fit: contain; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav-links { list-style: none; display: flex; gap: 4px; }
.nav-links a, .nav-login {
  display: inline-block; color: var(--text-2); font-size: 14.5px; font-weight: 500;
  padding: 7px 10px; border-radius: var(--radius-xs);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover, .nav-login:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav-links a[aria-current="page"], .nav-login[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 8px; }

/* The mobile menu is a checkbox + label. Hidden on desktop, CSS-only toggle
 * on small screens, so it works with JavaScript disabled. */
.nav-toggle {
  position: absolute; opacity: 0; width: 1px; height: 1px; overflow: hidden;
  pointer-events: none;
}
.nav-burger { display: none; }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff;
  font-size: 15px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em;
  border: 1px solid var(--accent); cursor: pointer; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 1px 2px rgba(13, 15, 20, 0.08), 0 2px 8px -2px rgba(30, 79, 214, 0.45);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}
.btn:hover {
  background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 1px 2px rgba(13, 15, 20, 0.1), 0 6px 16px -4px rgba(30, 79, 214, 0.5);
}
.btn:active {
  background: var(--accent-active); border-color: var(--accent-active);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.18); transform: translateY(1px);
}
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--accent); }
.btn-ghost {
  background: #fff; color: var(--text); border-color: var(--border-strong);
  box-shadow: var(--shadow-xs);
}
.btn-ghost:hover { background: var(--bg-band); color: var(--text); border-color: #b9bfc9; box-shadow: var(--shadow-sm); }
.btn-ghost:active { background: var(--surface-2); box-shadow: inset 0 1px 3px rgba(13, 15, 20, 0.08); transform: translateY(1px); }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 8px; }
.btn-lg { padding: 15px 28px; font-size: 16px; border-radius: 12px; }

/* ---- Hero --------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(36px, 3vw + 18px, 64px) 0 clamp(64px, 5vw + 32px, 104px);
  background: linear-gradient(180deg, #f4f6fc 0%, #ffffff 72%);
}
.hero::before {
  content: ''; position: absolute; z-index: -1; left: 50%; top: -32%;
  width: 140%; max-width: 1800px; height: 90%; transform: translateX(-50%);
  background:
    radial-gradient(42% 55% at 50% 0%, rgba(30, 79, 214, 0.16), transparent 70%),
    radial-gradient(30% 40% at 18% 20%, rgba(30, 79, 214, 0.07), transparent 70%),
    radial-gradient(30% 40% at 82% 18%, rgba(30, 79, 214, 0.06), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; z-index: -1; inset: 0;
  background-image:
    linear-gradient(to right, rgba(13, 15, 20, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(13, 15, 20, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 100%);
  pointer-events: none;
}
.hero-inner { position: relative; }
.hero-copy { max-width: 820px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: var(--fs-display); letter-spacing: -0.03em; line-height: 1.05; margin: 0 auto 22px; max-width: 18ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-copy .hero-actions { justify-content: center; }
.hero-fine { margin-top: 14px; font-size: 13.5px; color: var(--text-faint); }

/* The hero note. The lede is a signed message from the owner rather than
 * product voice, so it gets a signature instead of a bare <p>. Left
 * aligned on purpose inside a centered hero: a letter reads as a letter. */
.hero-note {
  max-width: 70ch; margin: 0 auto 32px; text-align: left;
}
.hero-note-body { margin: 0; border: 0; padding: 0; }
.hero-note-body p {
  font-size: var(--fs-lede); color: var(--text-muted); line-height: 1.55; margin: 0;
}
.hero-note-sign {
  margin-top: 14px; font-size: 14px; font-weight: 650; color: var(--text);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px;
}
.hero-note-sign span { font-weight: 450; color: var(--text-faint); }

.facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; margin: 56px auto 0; max-width: 940px; box-shadow: var(--shadow-sm);
}
.fact { background: #fff; padding: 20px 18px; }
.fact-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-faint); font-weight: 650; }
.fact-value { font-size: 1.5rem; font-weight: 650; letter-spacing: -0.03em; margin-top: 6px; line-height: 1.1; color: var(--text); }
.fact-note { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

.hero-shot { margin: 56px auto 0; max-width: 1040px; }
.hero-shot .shot-frame { box-shadow: var(--shadow-frame); }

/* ---- Screenshot figures ----------------------------------------------- */
/* The frame: white window on a 1px border, layered shadow, 1px inner highlight,
 * optional faux chrome bar. The aspect ratio is pinned from the real file via
 * --ar (set inline by shot_figure) so nothing reflows while it loads. */
.shot { margin: 0; min-width: 0; }
.shot-frame {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), var(--shadow-md);
}
.shot-frame::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.shot-chrome {
  display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px;
  background: linear-gradient(180deg, #fbfbfd, #f3f4f7); border-bottom: 1px solid var(--border);
}
.shot-chrome span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.shot-chrome span:nth-child(1) { background: #e4e7ec; }
.shot-chrome span:nth-child(2) { background: #dcdfe5; }
.shot-chrome span:nth-child(3) { background: #d3d7de; }
.shot-chrome::after {
  content: ''; margin-left: 10px; flex: 1 1 auto; max-width: 320px; height: 16px;
  border-radius: 6px; background: #fff; border: 1px solid var(--border);
}
.shot img { display: block; width: 100%; height: auto; aspect-ratio: var(--ar); background: var(--surface-2); }
.shot figcaption { margin-top: 14px; font-size: var(--fs-caption); line-height: 1.5; color: var(--text-faint); max-width: 72ch; }

/* Portrait captures never blow out a landscape slot: cap the height, shrink
 * the frame to the image, centre it. */
.shot-portrait { text-align: center; }
.shot-portrait .shot-frame { display: inline-flex; flex-direction: column; max-width: 100%; text-align: left; }
.shot-portrait img { width: auto; max-width: 100%; max-height: min(72vh, 640px); margin: 0 auto; }
.shot-portrait .shot-chrome { width: 100%; }
.shot-portrait figcaption { margin-left: auto; margin-right: auto; }

/* Gallery rows (feature pages) */
.gallery { display: flex; flex-direction: column; gap: clamp(48px, 5vw, 80px); }
.shot-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
.shot-single { max-width: 980px; margin: 0 auto; width: 100%; }
.media-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.media-row-flip .media-copy { order: 2; }
.media-copy { max-width: 44ch; }
.media-heading { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem); margin-bottom: 12px; }
.media-copy p { color: var(--text-muted); font-size: var(--fs-small); line-height: 1.6; }
.media-shot { min-width: 0; }

/* ---- Showcase (home: alternating image / copy rows) ------------------- */
.showcase { display: flex; flex-direction: column; gap: clamp(64px, 7vw, 112px); }
.showcase-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.showcase-row:nth-child(even) .showcase-copy { order: 2; }
.showcase-copy { max-width: 46ch; }
.showcase-copy .eyebrow { margin-bottom: 14px; }
.showcase-copy h3 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.125rem); letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 14px; }
.showcase-copy p { color: var(--text-muted); font-size: var(--fs-lede); line-height: 1.55; margin-bottom: 20px; }
/* padding/negative margin: a 44px tap target without moving the text */
.showcase-link { display: inline-block; font-weight: 600; font-size: 15px; padding: 13px 0; margin: -13px 0; }
.showcase-link::after { content: ' \2192'; }
.showcase-shot { min-width: 0; }
.showcase-shot .shot-frame { box-shadow: var(--shadow-lg); }

/* ---- Cards -------------------------------------------------------------- */
.cards { list-style: none; display: grid; gap: 20px; }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards > li { min-width: 0; display: flex; }
.card {
  display: flex; flex-direction: column; gap: 10px; width: 100%; height: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; color: var(--text-2); box-shadow: var(--shadow-xs);
  position: relative; overflow: hidden;
}
.card h3 { font-size: var(--fs-h3); }
.card p { color: var(--text-muted); font-size: var(--fs-small); }
.card-link {
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.card-link:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); text-decoration: none; transform: translateY(-2px); color: var(--text-2); }
.card-link:hover h3 { color: var(--accent-text); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-meta { font-size: 13px !important; color: var(--text-faint); letter-spacing: 0.01em; margin-top: -4px; }
.card-more { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 600; color: var(--accent-text); }
.card-more::after { content: ' \2192'; display: inline-block; transition: transform 0.18s ease; }
.card-link:hover .card-more::after { transform: translateX(3px); }

/* Cards that carry a cropped thumbnail across the top */
.card-has-thumb { padding: 0; }
.card-has-thumb .card-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1 1 auto; }
.card-thumb {
  position: relative; overflow: hidden; aspect-ratio: 16 / 9;
  background: linear-gradient(180deg, #f4f6fc, #eceff6); border-bottom: 1px solid var(--border);
}
.card-thumb picture, .card-thumb img { width: 100%; height: 100%; }
.card-thumb img {
  object-fit: cover; object-position: left top; aspect-ratio: auto;
  transform: scale(1.02); transform-origin: left top;
  transition: transform 0.35s ease;
}
.card-link:hover .card-thumb img { transform: scale(1.05); }
.card-thumb-portrait img { object-position: center 9%; transform-origin: center 9%; }
.card-thumb::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 -1px 0 rgba(13, 15, 20, 0.04);
}
.card-thumb-empty {
  display: flex; align-items: center; justify-content: center;
  color: var(--text-faint); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(30, 79, 214, 0.08), transparent 70%),
    linear-gradient(180deg, #f7f8fb, #eef0f5);
}

.badge {
  display: inline-block; font-size: 11px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; white-space: nowrap; line-height: 1.3;
}
.badge-soon { background: var(--amber-dim); color: var(--amber); border: 1px solid rgba(161, 98, 7, 0.25); }

/* ---- Steps (How it installs) ------------------------------------------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.install-note { margin-top: 24px; font-size: 14px; color: var(--text-muted); }
.step {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--shadow-xs);
}
.step-num {
  flex: 0 0 36px; width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: var(--accent-dim); color: var(--accent-text);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 650; font-size: 15px;
}
.step h3 { font-size: 1rem; margin-bottom: 6px; }
.step p { color: var(--text-muted); font-size: var(--fs-small); }

/* ---- Pricing teaser + CTA band ---------------------------------------- */
.pricing-teaser, .cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.pricing-teaser .section-lede, .cta-inner .section-lede { margin-bottom: 0; }
.cta-band { position: relative; overflow: hidden; isolation: isolate; background: var(--bg-band); }
.cta-band::before {
  content: ''; position: absolute; z-index: -1; inset: 0;
  background: radial-gradient(50% 80% at 85% 50%, rgba(30, 79, 214, 0.1), transparent 70%);
  pointer-events: none;
}
.cta-band .section-title { font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem); }

/* ---- Pricing page ------------------------------------------------------ */
.pricing-head { padding-top: clamp(56px, 4vw + 32px, 88px); background: linear-gradient(180deg, #f4f6fc 0%, #ffffff 40%); }
.pricing-title { font-size: var(--fs-h1); letter-spacing: -0.03em; }
.tiers { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 880px; }
.tier {
  display: flex; flex-direction: column; gap: 24px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-md);
}
.tier-highlight { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-lg); }
.tier-name { font-size: 1.25rem; margin-bottom: 6px; }
.tier-blurb { color: var(--text-muted); font-size: var(--fs-small); }
.tier-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 10px; }
.tier-amount { font-size: 2.75rem; font-weight: 650; letter-spacing: -0.035em; line-height: 1; color: var(--text); }
.tier-amount-tbd { color: var(--text-faint); }
.tier-period { color: var(--text-muted); font-size: 15px; }
.tier-tbd {
  flex-basis: 100%; font-size: 12px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--amber);
}
.tier-includes { list-style: none; display: flex; flex-direction: column; gap: 10px; color: var(--text-2); font-size: var(--fs-small); }
.tier-includes li { padding-left: 28px; position: relative; }
.tier-includes li::before {
  content: ''; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--green-dim);
}
.tier-includes li::after {
  content: ''; position: absolute; left: 5px; top: 7px; width: 8px; height: 4px;
  border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg);
}
.tier-cta { margin-top: auto; width: 100%; }

.qa { display: flex; flex-direction: column; gap: 14px; }
.qa-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px 20px; box-shadow: var(--shadow-xs); }
.qa dt { font-weight: 650; color: var(--text); margin-bottom: 6px; }
.qa dd { color: var(--text-muted); font-size: var(--fs-small); }

/* ---- Prose (820px blocks) --------------------------------------------- */
.prose p { font-size: 1.0625rem; color: var(--text-2); line-height: 1.7; margin-bottom: 1.1em; }
.prose p:last-child { margin-bottom: 0; }
.prose h2 { font-size: 1.25rem; margin: 36px 0 12px; }
.prose h2:first-of-type { margin-top: 0; }
.legal .section-title { font-size: var(--fs-h1); }
.legal .legal-meta { color: var(--text-muted); font-size: 14px; margin-bottom: 32px; }
.legal h2 { margin-top: 36px; }
.plain-links { list-style: none; display: flex; flex-direction: column; gap: 0; font-size: 16px; }
.plain-links a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---- Feature pages ---------------------------------------------------- */
.feature-head {
  position: relative; overflow: hidden; isolation: isolate;
  padding-top: clamp(56px, 4vw + 32px, 96px); padding-bottom: clamp(40px, 4vw, 64px);
  background: linear-gradient(180deg, #f4f6fc 0%, #ffffff 100%);
}
.feature-head::before {
  content: ''; position: absolute; z-index: -1; left: 50%; top: -40%; width: 120%; height: 100%; transform: translateX(-50%);
  background: radial-gradient(40% 50% at 50% 0%, rgba(30, 79, 214, 0.12), transparent 70%);
  pointer-events: none;
}
.feature-head-inner { max-width: 860px; }
.feature-title { font-size: var(--fs-h1); letter-spacing: -0.03em; max-width: 22ch; margin-bottom: 16px; }
.feature-app { color: var(--text-muted); font-size: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.feature-lede { max-width: 62ch; }
.feature-head .hero-actions { margin-top: 4px; }
.feature-hero-shot { padding-top: 0; padding-bottom: 0; margin-top: clamp(8px, 2vw, 24px); position: relative; z-index: 1; }
.feature-hero-shot .shot-frame { box-shadow: var(--shadow-frame); }
.feature-hero-shot + .section { padding-top: clamp(56px, 5vw, 96px); }
.feature-prose { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); }
.feature-prose .section-title { font-size: clamp(1.375rem, 1.15rem + 0.9vw, 1.875rem); margin-bottom: 18px; }
.detail-list .card h3 { font-size: 1rem; }

.feature-nav { padding: 48px 0; }
.feature-nav-inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: stretch; }
.feature-nav-link {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); min-height: 72px; box-shadow: var(--shadow-xs);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.feature-nav-link:hover { text-decoration: none; border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.feature-nav-link:hover .feature-nav-name { color: var(--accent-text); }
.feature-nav-empty { visibility: hidden; }
.feature-nav-dir { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); font-weight: 650; }
.feature-nav-name { font-weight: 600; }
.feature-nav-next { text-align: right; align-items: flex-end; }
.feature-nav-all { justify-content: center; align-items: center; color: var(--text-muted); font-weight: 600; font-size: 14px; }

/* ---- Coming-soon stubs ------------------------------------------------ */
.stub { min-height: 50vh; display: flex; align-items: center; background: linear-gradient(180deg, #f4f6fc 0%, #ffffff 60%); }
.stub .wrap { width: 100%; }
.stub-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 40px 36px; box-shadow: var(--shadow-lg);
}
.stub-card .prose { margin-bottom: 28px; }
.stub-card .prose p { color: var(--text-muted); }

/* ---- Footer ----------------------------------------------------------- */
.foot { border-top: 1px solid var(--border); padding: 56px 0 44px; color: var(--text-muted); font-size: 13.5px; background: var(--bg-band); }
.foot-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand .wordmark { margin-bottom: 14px; }
.foot-tagline { color: var(--text); font-size: 14.5px; font-weight: 500; }
.foot-fine { font-size: 13px; max-width: 42ch; }
.foot-heading { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text); margin-bottom: 14px; font-weight: 650; }
.foot-links { list-style: none; display: flex; flex-direction: column; gap: 1px; }
.foot-links a { color: var(--text-muted); display: inline-block; padding: 4px 0; }
.foot-links a:hover { color: var(--text); }
.foot-soon { font-size: 11px; color: var(--amber); text-transform: uppercase; letter-spacing: 0.06em; margin-left: 4px; font-weight: 650; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border); }
.foot-bottom p { margin: 0; }
.foot-domain { font-family: var(--mono); font-size: 12px; }

/* ---- Motion ----------------------------------------------------------- */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.rise { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.rise-2 { animation-delay: 0.12s; }
.rise-3 { animation-delay: 0.18s; }
.rise-4 { animation-delay: 0.26s; }
.rise-5 { animation-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { animation: none; }
  .card-link, .btn, .topbar, .feature-nav-link, .card-thumb img, .card-more::after, .nav-links a, .nav-login,
  .nav-burger-bar::before, .nav-burger-bar::after { transition: none; }
  .btn:active { transform: none; }
  .card-link:hover { transform: none; }
  .card-link:hover .card-thumb img { transform: scale(1.02); }
}

/* ---- Breakpoints ------------------------------------------------------ */
@media (max-width: 1000px) {
  .media-row, .showcase-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .cards-3, .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .foot-inner { grid-template-columns: 1fr 1fr; }
  .feature-prose { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 760px) {
  .nav-burger {
    display: inline-flex; align-items: center; gap: 10px; margin-left: auto;
    min-height: 44px; padding: 8px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-xs);
    background: #fff; color: var(--text); font-size: 14px; font-weight: 600; cursor: pointer; user-select: none;
  }
  .nav-burger-bar { position: relative; width: 18px; height: 2px; background: var(--text); border-radius: 2px; }
  .nav-burger-bar::before, .nav-burger-bar::after {
    content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: var(--text); border-radius: 2px;
    transition: transform 0.15s ease;
  }
  .nav-burger-bar::before { top: -6px; }
  .nav-burger-bar::after { top: 6px; }
  .nav-toggle:checked ~ .nav-burger .nav-burger-bar { background: transparent; }
  .nav-toggle:checked ~ .nav-burger .nav-burger-bar::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger .nav-burger-bar::after { transform: translateY(-6px) rotate(-45deg); }
  .nav-toggle:focus-visible ~ .nav-burger, .nav-burger:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 8px var(--gutter) 20px; box-shadow: var(--shadow-lg);
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a, .nav-login { display: block; padding: 13px 0; font-size: 16px; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; }
  .nav-links a:hover, .nav-login:hover { background: transparent; }
  .nav-links a[aria-current="page"], .nav-login[aria-current="page"] { background: transparent; box-shadow: inset 3px 0 0 var(--accent); padding-left: 12px; }
  .nav-actions { flex-direction: column; align-items: stretch; gap: 14px; margin-top: 6px; }
  .nav-actions .btn { width: 100%; margin-top: 6px; min-height: 44px; }
  .foot-links { gap: 0; }
  .foot-links a { padding: 10px 0; min-height: 44px; display: inline-flex; align-items: center; }

  .facts { grid-template-columns: repeat(2, 1fr); }
  .cards-2, .cards-3, .cards-4 { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .feature-nav-inner { grid-template-columns: 1fr 1fr; }
  .feature-nav-all { grid-column: 1 / -1; order: 3; }
  .pricing-teaser, .cta-inner { flex-direction: column; align-items: flex-start; }
  .media-row, .showcase-row { grid-template-columns: 1fr; gap: 24px; }
  .media-row-flip .media-copy, .showcase-row:nth-child(even) .showcase-copy { order: 0; }
  .shot-pair { grid-template-columns: 1fr; gap: 32px; }
  .hero-shot { margin-top: 40px; }
  .shot-portrait img { max-height: min(60vh, 520px); }
}

@media (max-width: 620px) {
  .hero-copy { text-align: left; }
  .hero-copy .hero-actions { justify-content: flex-start; }
  .hero h1 { margin-left: 0; margin-right: 0; }
  .hero-note { margin-left: 0; margin-right: 0; }
  .foot-inner { grid-template-columns: 1fr; gap: 24px; }
  .shot-chrome { height: 28px; padding: 0 12px; }
  .shot-chrome span { width: 8px; height: 8px; }
  .shot-frame, .card { border-radius: var(--radius-sm); }
}

@media (max-width: 420px) {
  :root { --gutter: 16px; --section-y: 56px; }
  .hero { padding: 48px 0 44px; }
  .hero-actions .btn { width: 100%; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact-value { font-size: 1.25rem; }
  .stub-card, .tier { padding: 24px 18px; }
  .feature-nav-inner { grid-template-columns: 1fr; }
  .feature-nav-next { text-align: left; align-items: flex-start; }
}

/* ---- Sign-up questionnaire (/signup.php) --------------------------------
 * Plain form first: every .ea-screen is visible with JS off (the JS-only
 * screens ship with `hidden`). assets/site.js adds .ea-on and shows one
 * screen at a time with a progress bar and a Next button. The interest cards
 * and the radio choices are labels around real inputs, so they are tappable
 * either way. (The ea- prefix is from the first version of the form.) */
.ea-section { background: linear-gradient(180deg, #f4f6fc 0%, #ffffff 40%); }
.ea-title { font-size: var(--fs-h1); letter-spacing: -0.03em; }
.ea-lede { margin-bottom: 32px; }
.ea { max-width: 720px; }
.ea-screens { display: grid; gap: 36px; }
.ea-screen { min-width: 0; }
.ea-q {
  display: block; margin: 0 0 14px; padding: 0;
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem); font-weight: 650; line-height: 1.25;
  letter-spacing: -0.02em; color: var(--text);
}
.ea-q-intro { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.25rem); max-width: 26ch; }
.ea-lead { color: var(--text-muted); font-size: var(--fs-lede); line-height: 1.5; max-width: 52ch; margin: 0 0 20px; }
.ea-optional { font-size: 0.85em; font-weight: 500; color: var(--text-faint); }
.ea-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.ea-row { display: grid; gap: 16px; grid-template-columns: 1fr; }
.ea-field { margin: 0; display: grid; gap: 8px; }
.ea-field + .ea-field, .ea-row + .ea-field { margin-top: 16px; }
.ea-label { font-weight: 600; color: var(--text); font-size: var(--fs-small); }
.ea-hint { font-size: 14px; color: var(--text-muted); }
.ea-input {
  font: inherit; font-size: 1.0625rem; color: var(--text); background: var(--surface);
  border: 1px solid var(--border-input); border-radius: var(--radius-sm);
  padding: 13px 16px; width: 100%; min-height: 52px;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ea-input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.ea-input[aria-invalid="true"] { border-color: var(--red); }
.ea-select { -webkit-appearance: none; appearance: none; padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.ea-textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.ea-error { display: block; color: var(--red); font-size: var(--fs-small); font-weight: 600; margin: 0; }
.ea-error-server {
  display: none; margin: 0 0 24px; padding: 14px 18px;
  background: var(--surface); border: 1px solid rgba(185, 28, 28, 0.3); border-left: 4px solid var(--red);
  border-radius: var(--radius-sm); color: var(--text);
}
.ea-error-server.is-shown, .ea-error-server:target { display: block; }
.ea-error-server:focus { outline: none; }
.ea-submit { margin: 36px 0 0; }

/* Honeypot: off-screen, never display:none (some bots skip those), never in the tab order. */
.ea-hp { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; margin: 0; }

/* Interest cards: a label around a real checkbox. Checked state is CSS only. */
.ea-cards { list-style: none; display: grid; gap: 12px; grid-template-columns: 1fr; margin: 4px 0 0; }
.ea-cards > li { min-width: 0; display: flex; }
.ea-card {
  position: relative; display: flex; gap: 14px; align-items: flex-start; width: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 18px 18px 16px; cursor: pointer; box-shadow: var(--shadow-xs);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.ea-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.ea-card-input {
  -webkit-appearance: none; appearance: none; flex: 0 0 22px; width: 22px; height: 22px; margin: 2px 0 0;
  border: 1.5px solid var(--border-input); border-radius: 7px; background: #fff; cursor: pointer;
  display: inline-grid; place-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.ea-card-input::before {
  content: ''; width: 11px; height: 6px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform 0.12s ease;
}
.ea-card-input:checked { background: var(--accent); border-color: var(--accent); }
.ea-card-input:checked::before { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.ea-card-input:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-ring); }
.ea-card:has(.ea-card-input:checked) { border-color: var(--accent); background: #f6f8fe; box-shadow: 0 0 0 1px var(--accent), var(--shadow-sm); }
.ea-card-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ea-card-title { font-weight: 650; color: var(--text); font-size: 1.0625rem; line-height: 1.3; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ea-card-text { color: var(--text-muted); font-size: 14px; line-height: 1.5; }
.ea-screen-interests .ea-error { margin-top: 12px; }

/* Radio choices (Shopmonkey today / when): the same card, one column, a round
 * input with a dot instead of the tick. */
.ea-choices { list-style: none; display: grid; gap: 10px; grid-template-columns: 1fr; margin: 4px 0 0; padding: 0; max-width: 480px; }
.ea-choices > li { min-width: 0; display: flex; }
.ea-choices .ea-card { align-items: center; padding: 14px 18px 14px 16px; }
.ea-choices .ea-card-input { margin-top: 0; }
.ea-card-radio { border-radius: 50%; }
.ea-card-radio::before { width: 10px; height: 10px; border: 0; border-radius: 50%; background: #fff; transform: scale(0); }
.ea-card-radio:checked::before { transform: scale(1); }
.ea-screen-shopmonkey .ea-error, .ea-screen-timing .ea-error { margin-top: 12px; }
.ea-field-narrow .ea-select { max-width: 320px; }
/* The "runs inside Shopmonkey" hint: shown for the two non-yes answers.
 * site.js toggles .is-shown; with JS off, :has() does the same job. */
.ea-radio-hint { display: none; margin: 14px 0 0; max-width: 52ch; }
.ea-radio-hint.is-shown { display: block; }
@supports selector(:has(*)) {
  .ea-screen-shopmonkey:has(.ea-card-radio[value="not_yet"]:checked) .ea-radio-hint,
  .ea-screen-shopmonkey:has(.ea-card-radio[value="something_else"]:checked) .ea-radio-hint { display: block; }
}

/* Thank-you panel: both the no-JS ?sent=1 render and the JS done screen. */
.ea-done {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 40px 36px; box-shadow: var(--shadow-lg);
}
.ea-done .section-lede, .ea-done .ea-lead { margin-bottom: 28px; }
.ea-done:focus { outline: none; }

/* Wizard chrome (built by site.js; nothing here renders with JS off). */
.ea-progress { height: 4px; border-radius: 2px; overflow: hidden; background: var(--surface-3); margin: 0 0 10px; }
.ea-bar { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.25s ease; }
.ea-count { margin: 0 0 28px; font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); }
.ea-nav { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.ea-nav .btn { min-height: 48px; }
.ea-nav .ea-next { margin-left: auto; }
.ea-keyhint { margin: 12px 0 0; font-size: 13px; color: var(--text-faint); display: none; }
@media (hover: hover) and (pointer: fine) { .ea-keyhint { display: block; } }
.ea[aria-busy="true"] .ea-nav .btn { opacity: 0.6; pointer-events: none; }

/* One screen at a time once the wizard boots. */
.ea-on .ea-screens { display: block; }
.ea-on .ea-screen { display: none; }
.ea-on .ea-screen.is-active { display: block; }
.ea-on .ea-error-server { margin: 20px 0 0; }
.ea-on.is-sent .ea-progress, .ea-on.is-sent .ea-count, .ea-on.is-sent .ea-nav, .ea-on.is-sent .ea-keyhint, .ea-on.is-sent .ea-hp { display: none; }
.ea-on .ea-screen-done { border: 0; box-shadow: none; padding: 0; }

@media (prefers-reduced-motion: no-preference) {
  .ea-on .ea-screen.is-entering { animation: ea-in 0.26s ease-out both; }
  .ea-on .ea-screen-done.is-entering { animation: ea-fade 0.45s ease-out both; }
}
@keyframes ea-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ea-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .ea-card, .ea-card-input, .ea-card-input::before, .ea-bar, .ea-input { transition: none; }
  .ea-card:hover { transform: none; }
}

@media (min-width: 621px) {
  .ea-row { grid-template-columns: 1fr 1fr; }
  .ea-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .ea-done { padding: 24px 18px; }
  .ea-nav .btn { flex: 1 1 8rem; }
}
