/* ============================================================
   Cutvey marketing site | cutvey.com
   Design language: "Cinematic studio"
   Warm bone paper + deep ink + brand purple #6a4bf7.
   Type: Archivo (display, slightly extended) + IBM Plex Mono
   (slates, timecodes, labels). Film grain, scene numbers,
   registration-corner cards. Built to feel like a working
   production company's world, not a software template.
   ============================================================ */

:root {
  --brand-50: #efedfe;
  --brand-100: #e5e1fe;
  --brand-200: #d0ccfd;
  --brand-300: #b2a8fb;
  --brand-400: #8e7bf9;
  --brand-500: #6a4bf7;
  --brand-600: #592cee;
  --brand-700: #4d24d6;
  --brand-900: #351a92;
  --ink-950: #0a0a0d;
  --ink-900: #121215;
  --ink-800: #1a1a1f;
  --ink-700: #26262c;
  --bone-50: #ffffff;   /* page background: clean white */
  --bone-100: #f6f6f8;
  --bone-200: #e9e9ee;
  --card: #ffffff;      /* card surface */
  --line: #e4e4ea;      /* hairline borders */
  --line-dark: #c6c6cf;
  --stone-900: #17171a;
  --stone-700: #3f3f46;
  --stone-600: #54545c;
  --stone-500: #6f6f78;
  --stone-400: #9b9ba4;
  --green: #0e7a52;
  --amber: #b45309;
  --radius: 6px;
  --shadow-sm: 0 1px 2px rgba(10, 10, 13, 0.05);
  --shadow-md: 0 3px 14px rgba(10, 10, 13, 0.09);
  --shadow-lg: 0 18px 60px rgba(10, 10, 13, 0.28);
  --max: 1200px;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  /* legacy aliases (a few inline styles on interior pages reference these) */
  --zinc-50: var(--bone-100);
  --zinc-100: var(--bone-100);
  --zinc-200: var(--bone-200);
  --zinc-300: var(--line-dark);
  --zinc-400: var(--stone-400);
  --zinc-500: var(--stone-500);
  --zinc-600: var(--stone-600);
  --zinc-700: var(--stone-700);
  --zinc-900: var(--stone-900);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--stone-900);
  background: var(--bone-50);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  font-size: 16.5px;
  position: relative;
}

/* Film grain: the whole site sits under a whisper of 35mm noise */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

::selection { background: var(--brand-500); color: #fff; }

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

a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3, h4 { line-height: 1.06; letter-spacing: -0.015em; font-weight: 800; color: var(--ink-950); }
h1, h2 { text-transform: uppercase; font-stretch: 112%; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); font-weight: 850; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); }
h3 { font-size: 1.2rem; }

/* Long-form pages read in normal case */
.prose h1, .prose h2, .prose h3, .faq summary, .post-list h3 { text-transform: none; font-stretch: 100%; }

/* Scene-numbered eyebrows: every titled section slates itself like a
   call sheet (SC 01, SC 02, ...) automatically */
body { counter-reset: scene; }
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone-500);
  margin-bottom: 18px;
}
.section-head .eyebrow::before {
  counter-increment: scene;
  content: "SC 0" counter(scene) " / ";
  color: var(--brand-600);
}

.lead { font-size: 1.14rem; color: var(--stone-600); }

/* ---------- Buttons: squared, confident, poster-label type ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 3px;
  padding: 13px 24px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  text-decoration: none !important;
  font-family: inherit;
}
.btn-primary { background: var(--brand-600); color: #fff; border-color: var(--brand-600); }
.btn-primary:hover { background: var(--brand-700); border-color: var(--brand-700); }
.btn-secondary { background: transparent; color: var(--ink-950); border-color: var(--line-dark); }
.btn-secondary:hover { border-color: var(--ink-950); }
.btn-light { background: var(--bone-50); color: var(--ink-950); border-color: var(--bone-50); }
.btn-light:hover { background: #fff; }
.btn-lg { padding: 16px 32px; font-size: 0.86rem; }
.btn-sm { padding: 9px 16px; font-size: 0.72rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 34px;
  height: 70px;
}
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; color: var(--ink-950); text-decoration: none !important; }
.logo img { flex-shrink: 0; display: block; height: 28px; width: auto; }
.site-footer .logo img { height: 26px; }
.m-logo img { height: 18px; width: auto; display: inline-block; vertical-align: middle; }

.main-nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.main-nav a {
  color: var(--stone-600);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 9px 13px;
  border-radius: 3px;
  text-decoration: none !important;
}
.main-nav a:hover { color: var(--ink-950); background: var(--bone-100); }
.main-nav a.active { color: var(--brand-700); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .login { color: var(--stone-600); font-weight: 650; font-size: 0.78rem; letter-spacing: 0.09em; text-transform: uppercase; padding: 8px 12px; text-decoration: none !important; }
.header-actions .login:hover { color: var(--ink-950); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink-950); margin: 5px 0; transition: transform 0.2s, opacity 0.2s; }

/* ---------- Hero: dark stage, letterboxed ---------- */
.hero {
  padding: 0;
  background: var(--ink-950);
  color: #eceae2;
  overflow: hidden;
  position: relative;
}
/* faint projector spill, top right */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1100px 480px at 88% -12%, rgba(112, 72, 255, 0.22) 0%, transparent 62%),
    radial-gradient(700px 400px at -6% 30%, rgba(112, 72, 255, 0.08) 0%, transparent 55%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-inner { max-width: 880px; margin: 0; text-align: left; padding: 96px 0 0; }
.hero h1 { color: #f5f3ec; }
.hero .lead { margin: 26px 0 38px; max-width: 660px; color: #b3b0a4; }
.hero-ctas { display: flex; gap: 14px; justify-content: flex-start; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; color: #85826f; }
.hero .btn-secondary { color: #f5f3ec; border-color: #3d3d46; }
.hero .btn-secondary:hover { border-color: #f5f3ec; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  border: 1px solid #34343c;
  border-radius: 3px;
  padding: 7px 14px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a5a294;
  box-shadow: none;
  margin-bottom: 30px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #e5484d; box-shadow: 0 0 8px rgba(229, 72, 77, 0.8); animation: rec 1.6s ease-in-out infinite; }
@keyframes rec { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- Product mockup: rises out of the dark into the page ---------- */
.mockup-wrap { max-width: 1060px; margin: 72px auto 0; padding: 0 28px; position: relative; z-index: 2; margin-bottom: -120px; }
.hero + section, .hero + .trust-strip { padding-top: 180px; }
.mockup {
  border-radius: 8px;
  border: 1px solid rgba(10, 10, 13, 0.5);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: var(--card);
}
.mockup-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  background: var(--ink-900);
  border-bottom: 1px solid var(--ink-700);
}
.mockup-bar .dots { display: flex; gap: 6px; }
.mockup-bar .dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.mockup-bar .dots i:nth-child(1) { background: #e5484d; }
.mockup-bar .dots i:nth-child(2) { background: #f5a623; }
.mockup-bar .dots i:nth-child(3) { background: #30a46c; }
.mockup-bar .url {
  flex: 1;
  max-width: 340px;
  margin: 0 auto;
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: #7d7a6d;
  text-align: center;
  padding: 4px 12px;
}
.mockup-body { display: flex; min-height: 380px; }
.mockup-side {
  width: 170px;
  background: var(--ink-950);
  padding: 16px 10px;
  flex-shrink: 0;
}
.mockup-side .m-logo { display: flex; align-items: center; gap: 7px; color: #fff; font-weight: 700; font-size: 0.82rem; padding: 4px 8px 14px; }
.mockup-side .m-item {
  color: #98958a;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 4px;
  margin-bottom: 2px;
}
.mockup-side .m-item.on { background: var(--brand-600); color: #fff; }
.mockup-side .m-group { color: #55534b; font-family: var(--mono); font-size: 0.56rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; padding: 12px 10px 4px; }
.mockup-main { flex: 1; padding: 22px; background: var(--bone-100); min-width: 0; }
.mockup-main .m-title { font-weight: 750; font-size: 0.95rem; margin-bottom: 3px; color: var(--ink-950); }
.mockup-main .m-sub { font-size: 0.72rem; color: var(--stone-400); margin-bottom: 16px; }
.m-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.m-kpi { background: var(--card); border: 1px solid var(--line); border-radius: 5px; padding: 10px 12px; }
.m-kpi .k-label { font-family: var(--mono); font-size: 0.54rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--stone-400); font-weight: 600; }
.m-kpi .k-val { font-family: var(--mono); font-size: 0.95rem; font-weight: 600; color: var(--ink-950); margin-top: 2px; }
.m-kpi .k-val.green { color: var(--green); }
.m-kpi .k-val.purple { color: var(--brand-600); }
.m-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.m-col { background: var(--card); border: 1px solid var(--line); border-radius: 5px; padding: 10px; }
.m-col .c-head { font-family: var(--mono); font-size: 0.56rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.09em; color: var(--stone-500); padding: 2px 4px 8px; display: flex; justify-content: space-between; }
.m-card { background: var(--bone-50); border: 1px solid var(--bone-200); border-radius: 4px; padding: 8px 9px; margin-bottom: 7px; }
.m-card .t { font-size: 0.68rem; font-weight: 600; color: var(--stone-700); line-height: 1.3; }
.m-card .s { font-size: 0.58rem; color: var(--stone-400); margin-top: 3px; }
.m-card .pill { display: inline-block; font-family: var(--mono); font-size: 0.5rem; font-weight: 600; border-radius: 2px; padding: 2px 6px; margin-top: 5px; letter-spacing: 0.04em; text-transform: uppercase; }
.pill-green { background: #d8ebdd; color: #14532d; }
.pill-amber { background: #f3e5c8; color: #92400e; }
.pill-purple { background: var(--brand-100); color: var(--brand-700); }

/* ---------- Sections ---------- */
section { padding: 96px 0; position: relative; }
section.tight { padding: 60px 0; }
.section-head { max-width: 720px; margin: 0 0 56px; text-align: left; }
.section-head p { margin-top: 16px; color: var(--stone-600); font-size: 1.05rem; max-width: 620px; }

.alt { background: var(--bone-100); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Logo/trust strip: production-slate line */
.trust-strip { padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bone-50); }
.trust-strip .container { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; text-align: center; }
.trust-strip p { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone-500); }
.trust-strip strong { color: var(--stone-900); font-weight: 600; }

/* Lifecycle steps: slate-numbered */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); background: var(--line); }
.steps { gap: 1px; }
.step {
  background: var(--card);
  border: none;
  border-radius: 0;
  padding: 30px 26px 34px;
  position: relative;
}
.step .num {
  width: auto; height: auto;
  border-radius: 0;
  background: none;
  color: var(--brand-600);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 18px;
}
.step .num::before { content: "0"; }
.step .num::after { content: " /"; color: var(--line-dark); }
.step h3 { font-size: 1.02rem; margin-bottom: 8px; }
.step p { font-size: 0.9rem; color: var(--stone-600); }

/* Feature grid: registration-corner cards */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
  transition: border-color 0.18s ease;
}
.feat::before, .feat::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 0 solid var(--brand-500);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.feat::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.feat::after { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
.feat:hover { border-color: var(--line-dark); }
.feat:hover::before, .feat:hover::after { opacity: 1; }
.feat .icon {
  width: 42px; height: 42px;
  border-radius: 4px;
  background: transparent;
  border: 1px solid var(--line-dark);
  color: var(--brand-600);
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feat h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feat p { font-size: 0.92rem; color: var(--stone-600); }
.feat ul { margin: 12px 0 0 0; padding: 0; list-style: none; }
.feat ul li { font-size: 0.88rem; color: var(--stone-600); padding: 4px 0 4px 22px; position: relative; }
.feat ul li::before { content: "+"; position: absolute; left: 0; color: var(--brand-600); font-weight: 700; font-family: var(--mono); }

/* Split rows (feature deep dives) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-bottom: 96px; }
.split:last-child { margin-bottom: 0; }
.split.rev .split-media { order: 2; }
.split h2 { margin-bottom: 18px; }
.split p { color: var(--stone-600); margin-bottom: 12px; }
.split ul { list-style: none; margin-top: 20px; }
.split ul li { padding: 7px 0 7px 28px; position: relative; color: var(--stone-700); font-size: 0.96rem; }
.split ul li::before {
  content: "+";
  position: absolute; left: 0; top: 7px;
  color: var(--brand-600);
  font-family: var(--mono);
  font-weight: 700;
}
.split-media {
  background: var(--bone-100);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: none;
}

/* Mini UI cards used inside split-media */
.ui-card { background: var(--card); border: 1px solid var(--line); border-radius: 5px; padding: 16px; box-shadow: var(--shadow-sm); }
.ui-card + .ui-card { margin-top: 12px; }
.ui-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--bone-100); font-size: 0.85rem; }
.ui-row:last-child { border-bottom: none; }
.ui-row .name { font-weight: 600; color: var(--stone-700); }
.ui-row .meta { font-family: var(--mono); font-size: 0.68rem; color: var(--stone-400); }
.ui-title { font-weight: 750; font-size: 0.9rem; margin-bottom: 8px; color: var(--ink-950); }
.badge { display: inline-block; font-family: var(--mono); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; border-radius: 2px; padding: 3px 8px; }
.badge-green { background: #d8ebdd; color: #14532d; }
.badge-amber { background: #f3e5c8; color: #92400e; }
.badge-purple { background: var(--brand-100); color: var(--brand-700); }
.badge-red { background: #f6d5d5; color: #991b1b; }
.progress { height: 6px; background: var(--bone-200); border-radius: 0; overflow: hidden; margin-top: 8px; }
.progress i { display: block; height: 100%; background: var(--brand-500); border-radius: 0; }

/* Stats band: timecode numerals on black */
.stats-band { background: var(--ink-950); color: #e9e6dc; border: none; }
.stats-band h2 { color: #f5f3ec; }
.stats-band .section-head p { color: #a5a294; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #26262c; border: 1px solid #26262c; text-align: left; }
.stat { background: var(--ink-950); padding: 34px 30px; }
.stat .big { font-family: var(--mono); font-size: 2.5rem; font-weight: 600; letter-spacing: -0.02em; color: var(--brand-300); }
.stat .cap { color: #a5a294; font-size: 0.92rem; margin-top: 8px; }

/* Replace-stack table */
.stack-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: none; border: 1px solid var(--line); }
.stack-table th, .stack-table td { padding: 14px 18px; text-align: left; font-size: 0.92rem; border-bottom: 1px solid var(--bone-100); }
.stack-table th { background: var(--bone-100); font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--stone-500); font-weight: 600; }
.stack-table tr:last-child td { border-bottom: none; }
.stack-table .yes { color: var(--green); font-weight: 700; }
.stack-table .price { color: var(--stone-500); font-family: var(--mono); font-size: 0.85rem; }
.stack-table tfoot td { background: var(--brand-50); font-weight: 700; color: var(--ink-950); }

/* Quote / founder */
.founder-quote {
  max-width: 860px;
  margin: 0 auto;
  text-align: left;
  border-left: 3px solid var(--brand-500);
  padding-left: clamp(24px, 4vw, 48px);
}
.founder-quote blockquote {
  font-size: clamp(1.3rem, 2.7vw, 1.8rem);
  font-weight: 550;
  line-height: 1.42;
  color: var(--ink-950);
  letter-spacing: -0.01em;
}
.founder-quote .who { margin-top: 28px; display: flex; align-items: center; justify-content: flex-start; gap: 14px; }
.founder-quote .avatar {
  width: 52px; height: 52px; border-radius: 4px;
  background: var(--ink-950);
  color: #fff; font-weight: 700; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
}
.founder-quote .who-name { text-align: left; }
.founder-quote .who-name strong { display: block; color: var(--ink-950); font-size: 0.98rem; }
.founder-quote .who-name span { color: var(--stone-500); font-size: 0.85rem; font-family: var(--mono); }

/* Pricing */
.toggle-wrap { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 48px; font-weight: 650; font-size: 0.92rem; }
.toggle-wrap .save { color: var(--green); font-family: var(--mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; background: #d8ebdd; border-radius: 2px; padding: 3px 9px; }
.switch { position: relative; width: 52px; height: 28px; background: var(--bone-200); border-radius: 99px; border: 1px solid var(--line-dark); cursor: pointer; transition: background 0.15s; }
.switch.on { background: var(--brand-600); border-color: var(--brand-600); }
.switch i { position: absolute; top: 2px; left: 3px; width: 22px; height: 22px; background: #fff; border-radius: 50%; transition: transform 0.18s ease; box-shadow: var(--shadow-sm); }
.switch.on i { transform: translateX(23px); }

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan.popular { border: 2px solid var(--brand-600); }
.plan .flag {
  position: absolute; top: -12px; left: 24px; transform: none;
  background: var(--brand-600); color: #fff;
  font-family: var(--mono);
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: 2px; padding: 4px 12px; white-space: nowrap;
}
.plan h3 { font-size: 1.1rem; text-transform: uppercase; font-stretch: 110%; }
.plan .for { color: var(--stone-500); font-size: 0.86rem; margin: 6px 0 20px; min-height: 2.6em; }
.plan .price { font-family: var(--mono); font-size: 2.4rem; font-weight: 600; letter-spacing: -0.04em; color: var(--ink-950); }
/* Suffix only (e.g. "/mo"); never the amount span, which carries data-monthly
   for the toggle and must keep the big .plan .price styling. */
.plan .price span:not([data-monthly]) { font-size: 0.85rem; font-weight: 500; color: var(--stone-500); letter-spacing: 0; }
.plan .bill-note { font-family: var(--mono); font-size: 0.68rem; color: var(--stone-400); margin-bottom: 20px; min-height: 1.2em; }
.plan ul { list-style: none; margin: 20px 0 28px; flex: 1; }
.plan ul li { font-size: 0.89rem; color: var(--stone-700); padding: 6px 0 6px 24px; position: relative; }
.plan ul li::before { content: "+"; position: absolute; left: 2px; color: var(--brand-600); font-weight: 700; font-family: var(--mono); }
.plan ul li.head { font-weight: 700; color: var(--ink-950); padding-left: 0; margin-top: 4px; }
.plan ul li.head::before { content: none; }
.plan .btn { width: 100%; }

/* Comparison table (pricing page) */
.compare-scroll { overflow-x: auto; }
.compare { width: 100%; min-width: 760px; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare th, .compare td { padding: 13px 16px; font-size: 0.9rem; border-bottom: 1px solid var(--bone-100); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { background: var(--bone-100); font-size: 0.85rem; }
.compare thead th.pop { background: var(--brand-50); color: var(--brand-700); }
.compare td.pop { background: #f7f5ff; }
.compare .group td { background: var(--bone-100); font-family: var(--mono); font-weight: 600; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--stone-500); text-align: left; }
.compare .tick { color: var(--green); font-weight: 800; }
.compare .dash { color: var(--line-dark); }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 650;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 1.2rem; color: var(--stone-400); font-weight: 400; flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 22px 20px; color: var(--stone-600); font-size: 0.95rem; }

/* CTA band: the end slate */
.cta-band {
  background: var(--ink-950);
  color: #e9e6dc;
  text-align: left;
  border: 1px solid var(--ink-950);
  border-radius: var(--radius);
  padding: 72px 56px;
  margin: 0 28px;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(800px 380px at 92% 110%, rgba(112, 72, 255, 0.3) 0%, transparent 60%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #f5f3ec; margin-bottom: 14px; }
.cta-band p { color: #a5a294; max-width: 560px; margin: 0 0 32px; }
.cta-band .hero-ctas { justify-content: flex-start; }
.cta-band .hero-note { color: #85826f; }
.cta-band .btn-secondary { color: #f5f3ec; border-color: #3d3d46; }
.cta-band .btn-secondary:hover { border-color: #f5f3ec; }
.cta-outer { padding: 20px 0 100px; }
.cta-outer .container { padding: 0; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px;
  box-shadow: none;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; font-family: var(--mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone-600); margin-bottom: 7px; }
.field label .req { color: var(--brand-600); }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--stone-900);
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px var(--brand-100);
}
.field textarea { resize: vertical; min-height: 120px; }
.field .hint { font-size: 0.78rem; color: var(--stone-400); margin-top: 5px; font-family: inherit; text-transform: none; letter-spacing: 0; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.notice { border-radius: 4px; padding: 16px 20px; font-size: 0.95rem; margin-bottom: 24px; }
.notice-ok { background: #d8ebdd; color: #14532d; }
.notice-err { background: #f6d5d5; color: #991b1b; }

/* Contact page layout */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.contact-aside .aside-card {
  background: var(--bone-100);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}
.contact-aside h3 { font-size: 1rem; margin-bottom: 6px; }
.contact-aside p { font-size: 0.9rem; color: var(--stone-600); }

/* ---------- Prose (legal, about, blog) ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h1 { margin-bottom: 10px; font-size: clamp(2rem, 4vw, 2.8rem); }
.prose .updated { color: var(--stone-400); font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.04em; margin-bottom: 40px; }
.prose h2 { font-size: 1.35rem; margin: 42px 0 14px; }
.prose h3 { font-size: 1.08rem; margin: 26px 0 10px; }
.prose p { margin-bottom: 14px; color: var(--stone-700); }
.prose ul, .prose ol { margin: 0 0 16px 22px; color: var(--stone-700); }
.prose li { margin-bottom: 7px; }

/* ---------- Footer: end credits ---------- */
.site-footer { background: var(--ink-950); color: #98958a; padding: 72px 0 40px; border-top: 4px solid var(--brand-600); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(5, 1fr); gap: 32px; margin-bottom: 52px; }
.footer-brand .logo { color: #fff; margin-bottom: 16px; }
.footer-brand p { font-size: 0.88rem; max-width: 260px; }
.site-footer h4 { color: #f5f3ec; font-family: var(--mono); font-size: 0.66rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; margin-bottom: 18px; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul a { color: #98958a; font-size: 0.9rem; text-decoration: none; }
.site-footer ul a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--ink-700);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}
.footer-bottom a { color: #98958a; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding: 84px 0 60px; text-align: left; background: var(--bone-50); border-bottom: 1px solid var(--line); }
.page-hero .lead { max-width: 660px; margin: 20px 0 0; }
.page-hero .hero-ctas { justify-content: flex-start; margin-top: 30px; }

/* ---------- Mobile overflow guards (v5) ---------- */
/* Backstop: nothing may widen the page beyond the viewport. Individual
   wide elements scroll inside their own container instead. */
html, body { overflow-x: clip; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.table-scroll > table { min-width: 640px; }
/* Responsive media: images/video scale down and keep their ratio. SVG is
   deliberately EXCLUDED from height:auto; the site's logos are inline SVGs
   sized by width/height attributes, and CSS height:auto overrides those
   attributes and resizes them (this bit us in v5). */
img, video { max-width: 100%; height: auto; }
svg { max-width: 100%; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .steps, .m-kpis, .m-cols { grid-template-columns: repeat(2, 1fr); }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.rev .split-media { order: 0; }
  .mockup-side { display: none; }
}

@media (max-width: 720px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: var(--bone-50);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    gap: 2px;
    box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; font-size: 0.9rem; }
  .nav-toggle { display: block; }
  .header-actions .btn { display: none; }
  .feat-grid, .steps, .plans { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .form-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 64px 0; }
  .hero-inner { padding: 64px 0 0; }
  .mockup-wrap { margin-top: 48px; margin-bottom: -60px; }
  .hero + section, .hero + .trust-strip { padding-top: 110px; }
  .cta-band { margin: 0; border-radius: 0; padding: 56px 28px; }
  .stack-table th, .stack-table td, .compare th, .compare td { padding: 10px 12px; font-size: 0.84rem; }
  .m-kpis, .m-cols { grid-template-columns: 1fr; }
  .page-hero { padding: 56px 0 40px; }
  .dl-card { padding: 18px; }
  h1 { overflow-wrap: anywhere; }
}

/* Template download pages */
.dl-card { display: flex; align-items: center; gap: 18px; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--brand-600); border-radius: var(--radius); padding: 24px 28px; margin: 26px 0; flex-wrap: wrap; }
.dl-card .dl-icon { width: 52px; height: 52px; border-radius: 4px; background: var(--ink-950); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.dl-card .dl-meta { flex: 1; min-width: 200px; }
.dl-card .dl-meta strong { display: block; color: var(--ink-950); }
.dl-card .dl-meta span { font-family: var(--mono); font-size: 0.74rem; color: var(--stone-500); }
.post-meta { color: var(--stone-400); font-family: var(--mono); font-size: 0.76rem; margin-bottom: 32px; }
.post-list .item { display: block; padding: 24px 0; border-bottom: 1px solid var(--line); text-decoration: none !important; }
.post-list .item h3 { color: var(--ink-950); margin-bottom: 6px; }
.post-list .item p { color: var(--stone-600); font-size: 0.95rem; }
.post-list .item:hover h3 { color: var(--brand-600); }
.disclaimer { background: #f7f0da; border: 1px solid #e3d5a8; border-radius: 4px; padding: 14px 18px; font-size: 0.85rem; color: #7a5b0f; margin: 22px 0; }
