/* ============ Self-hosted fonts ============ */
/* Inter (variable 400–700) + Instrument Serif (400 normal + italic).
   Self-hosted to kill the render-blocking cross-origin Google Fonts request. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/instrument-serif-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/instrument-serif-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/instrument-serif-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/instrument-serif-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;

  /* ---------- Color: foundations ---------- */
  --ink: #0b0b0f;          /* primary text, dark CTA, brand-mark square */
  --ink-soft: #2a2d35;     /* secondary text, hover-pressed ink */
  --muted: #6b7280;        /* tertiary text, labels */
  --muted-soft: #9ca3af;   /* disabled, helper */
  --line: #e6e8ec;         /* hairline borders */
  --line-soft: #f0f2f5;    /* very subtle dividers */

  /* ---------- Color: surfaces ---------- */
  --bg: #faf9f6;           /* warm page background — "paper-cream" */
  --paper: #ffffff;        /* cards, inputs */
  --paper-tint: #f6f7f6;   /* tinted blocks, hover wash */

  /* ---------- Color: dark-CTA accent (ink-derived; kept for legacy refs) ---------- */
  --accent: #0b0b0f;
  --accent-soft: #1c1f27;

  /* ---------- Color: brand (a calm, trustworthy green) ---------- */
  --brand: #2e7d5b;        /* primary accent */
  --brand-ink: #1f5a40;    /* darker shade — WCAG AA 4.5:1 on light bg */
  --brand-tint: #eef6f1;   /* light fill, success backgrounds */
  --brand-tint-2: #ddeee4; /* second light shade */

  /* ---------- Color: ICP / accent palette ----------
     Secondary hues for vertical hubs, blog tags, polaroid tints, footer icons.
     Brand-green stays the lead — these never replace it on CTAs. */
  --accent-amber: #d97a1b;       /* wedding · warm, sun-through-veil */
  --accent-amber-bg: #fdf3e5;
  --accent-teal: #1f6c7a;        /* real estate / drone · cool, architectural */
  --accent-teal-bg: #e6f1f3;
  --accent-blush: #b5536a;       /* boudoir · muted rose, never neon */
  --accent-blush-bg: #faeaee;
  --accent-clay: #8b5a3c;        /* newborn / family · warm, earthy */
  --accent-clay-bg: #f4ece4;

  /* ---------- Color: semantic ---------- */
  --success: #15803d;
  --success-bg: #f0fdf4;
  --success-line: #bbf7d0;
  --danger: #b91c1c;
  --danger-bg: #fef2f2;
  --danger-line: #fecaca;
  --warn: #b45309;
  --warn-bg: #fffbeb;

  /* ---------- Tints ---------- */
  --header-tint: rgba(11, 11, 15, 0.08);
  --footer-tint: rgba(46, 125, 91, 0.12);
  --body-line: #1f5a40;

  /* ---------- Shadows (layered, ink-tinted) ---------- */
  --shadow-sm: 0 1px 2px rgba(11, 11, 15, 0.04), 0 1px 1px rgba(11, 11, 15, 0.02);
  --shadow-md: 0 12px 28px -10px rgba(11, 11, 15, 0.16), 0 4px 10px -4px rgba(11, 11, 15, 0.08);
  --shadow-lg: 0 28px 60px -20px rgba(11, 11, 15, 0.22), 0 10px 24px -10px rgba(11, 11, 15, 0.10);
  --shadow-paper: 0 1px 0 rgba(11, 11, 15, 0.03), 0 20px 50px -20px rgba(11, 11, 15, 0.24), 0 8px 20px -8px rgba(11, 11, 15, 0.10);

  /* ---------- Radii ---------- */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* ---------- Spacing scale (8pt base) ---------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* ---------- Typography: families ---------- */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", "Georgia", serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* ---------- Typography: size scale ---------- */
  --fs-xs: 0.78rem;        /* eyebrows, captions */
  --fs-sm: 0.86rem;        /* labels, helper */
  --fs-base: 1rem;         /* body */
  --fs-md: 1.05rem;        /* prose */
  --fs-lg: 1.15rem;        /* lede */
  --fs-xl: 1.4rem;
  --fs-2xl: 1.7rem;
  --fs-3xl: 2.2rem;
  --fs-4xl: 2.8rem;
  --fs-5xl: 3.6rem;

  /* ---------- Motion ---------- */
  --ease-out: cubic-bezier(0.2, 0.65, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 0.6, 1);
  --dur-fast: 120ms;
  --dur-base: 180ms;
  --dur-slow: 320ms;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
}

/* ============ Topbar ============ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px max(20px, 4vw);
  background: rgba(250, 249, 246, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  display: inline-flex;
  color: var(--accent);
  line-height: 0;
}

.brand-name {
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.topnav a {
  font-size: 0.92rem;
  color: var(--muted);
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}

.topnav a:hover {
  color: var(--ink);
  background: var(--paper);
}

.topnav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

/* Primary CTA in the nav */
.topnav-cta,
.topnav a.topnav-cta {
  margin-left: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}

.topnav-cta:hover,
.topnav a.topnav-cta:hover {
  background: var(--accent);
  color: #fff;
}

/* Privacy is shown only inside the mobile menu */
.topnav-mobile-only { display: none; }

/* Hamburger — hidden on desktop, shown on mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  /* 44x44 minimum touch target (WCAG 2.5.5). */
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-toggle ~ .topnav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px max(20px, 4vw) 16px;
    background: var(--bg, #faf9f6);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    display: none;
  }
  .nav-toggle ~ .topnav.is-open { display: flex; }
  .nav-toggle ~ .topnav a { padding: 11px 12px; font-size: 1rem; }
  .topnav-mobile-only { display: block; }
  .topnav-cta,
  .topnav a.topnav-cta {
    margin: 8px 0 0;
    text-align: center;
  }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: clamp(36px, 7vw, 84px) max(20px, 4vw) clamp(40px, 7vw, 80px);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(46, 125, 91, 0.16);
}

h1 {
  margin: 0 0 18px;
  max-width: 920px;
  font-size: clamp(2.2rem, 5.2vw, 4.2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.04;
}

h1 em {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  color: var(--ink-soft);
  letter-spacing: -0.01em;
}

.lede {
  max-width: 640px;
  margin: 0 0 36px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  line-height: 1.55;
}

.lede code {
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  font-size: 0.92em;
  color: var(--ink);
}

/* ============ Hero layout — text left, polaroid stack right ============ */
.hero-top {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 44px);
  margin-bottom: clamp(20px, 4vw, 36px);
}
.hero-text { min-width: 0; }
.hero-text .lede { margin-bottom: 0; }

@media (max-width: 900px) {
  .hero-top { grid-template-columns: 1fr; }
}

/* ============ Hero polaroid-stack graphic ============
   Three white polaroid frames fanned at -9 / +5 / -2 degrees, each carrying
   a warm ICP photo. The front frame carries a signature scribble and an
   angled green SIGNED stamp. This is the product's signature graphic. */
.g-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  max-width: 420px;
  margin: 0 0 0 auto;
}

.polaroid {
  position: absolute;
  background: #ffffff;
  padding: 11px 11px 36px;
  border-radius: 4px;
  box-shadow:
    0 1px 0 rgba(11, 11, 15, 0.05),
    0 18px 38px -16px rgba(11, 11, 15, 0.28),
    0 8px 16px -6px rgba(11, 11, 15, 0.12);
  width: 48%;
  aspect-ratio: 3 / 3.4;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.polaroid-back { transform: rotate(-9deg) translate(-22%, 6%); }
.polaroid-mid { transform: rotate(5deg) translate(22%, 4%); }
.polaroid-front { transform: rotate(-2deg); z-index: 3; }

.poly-photo {
  flex: 1;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-color: var(--paper-tint);
}
.poly-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.poly-caption {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 0;
  line-height: 1.2;
}

.poly-signature {
  position: absolute;
  left: 12px;
  right: 50px;
  bottom: 12px;
  height: 22px;
  opacity: 0.78;
}

.poly-stamp {
  position: absolute;
  top: -4px;
  right: -6px;
  transform: rotate(8deg);
  padding: 5px 11px;
  border: 2px solid var(--brand-ink);
  color: var(--brand-ink);
  background: rgba(238, 246, 241, 0.92);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  line-height: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  box-shadow: 0 4px 14px -6px rgba(31, 90, 64, 0.45);
}
.poly-stamp-sub {
  font-size: 0.52rem;
  letter-spacing: 0.14em;
  font-weight: 600;
  opacity: 0.85;
}

@media (max-width: 900px) {
  .g-frame { aspect-ratio: 16 / 10; max-width: 420px; margin: 0 auto; }
  .polaroid { width: 46%; }
}

/* Hero primary CTA — ink-fill button matching .button.primary. */
.hero-cta,
.hero-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 26px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, var(--shadow-md);
  transition: background var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out), transform 0.06s var(--ease-out);
}
.hero-cta:hover,
.hero-cta-button:hover {
  background: var(--ink-soft);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, var(--shadow-lg);
}
.hero-cta:active,
.hero-cta-button:active { transform: translateY(1px); }
.hero-cta svg,
.hero-cta-button svg { display: block; }

/* Secondary text link sometimes paired with the hero CTA. */
.hero-cta-link {
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--line);
  transition: text-decoration-color var(--dur-fast) var(--ease-out);
}
.hero-cta-link:hover { text-decoration-color: var(--ink); }

/* ============ Section scaffolding ============ */
.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--brand-ink);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ============ The core tool widget ============ */
.tool {
  scroll-margin-top: 84px;
}

.ss-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* The field grid inside the form — two columns on desktop. */
.ss-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ss-field {
  display: grid;
  gap: 7px;
  margin: 0;
  font-size: 0.86rem;
}

.ss-field--full {
  grid-column: 1 / -1;
}

.ss-field > span,
.ss-fieldset > legend {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.005em;
}

.ss-field input,
.ss-field select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font: inherit;
  font-size: 0.94rem;
  color: var(--ink);
  font-weight: 500;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ss-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}

.ss-field input:focus,
.ss-field select:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(11, 11, 15, 0.08);
}

.ss-field input:user-invalid,
.ss-field select:user-invalid {
  border-color: #dc2626;
}

.ss-fieldset {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0;
  border: 0;
}
.ss-fieldset > legend {
  padding: 0;
  margin-bottom: 9px;
}

.ss-checkgrid,
.ss-usage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 14px;
}

.ss-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.ss-check:hover { border-color: var(--ink-soft); }
.ss-check input {
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
  accent-color: var(--brand);
  cursor: pointer;
}
.ss-check:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-tint);
}

/* Generate action row */
.ss-actions {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Buttons — `.button` is the kit's base class; the bare `.primary` /
   `.secondary` / `.ghost` forms below stay supported for hand-authored pages. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: background var(--dur-fast) var(--ease-out),
    transform 0.06s var(--ease-out), box-shadow var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}
.button.full { width: 100%; }
.button.primary {
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-size: 0.98rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, var(--shadow-md);
}
.button.primary:hover {
  background: var(--ink-soft);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, var(--shadow-lg);
}
.button.primary:active { transform: translateY(1px); }
.button.brand {
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.button.brand:hover { background: var(--brand-ink); }
.button.secondary {
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink-soft);
  border: 1px solid var(--line);
  font-weight: 500;
  font-size: 0.92rem;
}
.button.secondary:hover {
  border-color: var(--ink-soft);
  background: var(--paper-tint);
}
.button.ghost {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 500;
}
.button.ghost:hover {
  border-color: var(--ink-soft);
  background: var(--paper-tint);
}

/* Buttons */
button.primary,
.button-primary {
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.005em;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, var(--shadow-md);
  transition: background 0.15s ease, transform 0.05s ease;
}
button.primary:hover,
.button-primary:hover { background: var(--accent-soft); }
button.primary:active,
.button-primary:active { transform: translateY(1px); }
button.primary:disabled {
  background: var(--muted-soft);
  cursor: wait;
}

button.brand {
  background: var(--brand);
}
button.brand:hover { background: var(--brand-ink); }

button.secondary {
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
button.secondary:hover {
  border-color: var(--ink-soft);
  background: var(--paper-tint);
}

button.ghost {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
button.ghost:hover:not(:disabled) {
  border-color: var(--ink-soft);
  background: var(--paper-tint);
}
button.ghost:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============ Status line ============ */
.ss-status {
  min-height: 1.2em;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}
.ss-status.is-error { color: #b91c1c; }
.ss-status.is-success { color: #15803d; }

/* ============ Preview panel ============ */
.ss-preview {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
  animation: fadeUp 0.4s cubic-bezier(0.2, 0.65, 0.2, 1) both;
}

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

.ss-preview-doc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-paper);
  overflow: hidden;
}
/* The release preview is an embedded PDF — fixed-aspect so it never shifts. */
.ss-preview-frame {
  display: block;
  width: 100%;
  height: 760px;
  border: 0;
  background: var(--paper-tint);
}
@media (max-width: 560px) {
  .ss-preview-frame { height: 540px; }
}

.ss-preview-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.ss-preview-actions-title {
  margin: 0 0 2px;
  font-size: 0.96rem;
  font-weight: 600;
}
.ss-preview-actions-note {
  margin: 0 0 6px;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
}
.ss-unlock-meta {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
  text-align: center;
}
.ss-preview-meta {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

/* The #ss-generate button sits directly under the form. */
#ss-generate {
  margin-top: 18px;
}

/* Hero tool-intro paragraph — sits between the polaroid grid and the form. */
.tool-intro {
  max-width: 720px;
  margin: 8px 0 24px;
}
.tool-intro p {
  margin: 0;
  color: var(--ink-soft);
}

/* Compact tool variant — embedded in a blog post. */
.tool--compact { scroll-margin-top: 84px; }
.ss-tool-intro {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

@media (max-width: 820px) {
  .ss-preview {
    grid-template-columns: 1fr;
  }
  .ss-preview-actions { order: -1; }
}

@media (max-width: 560px) {
  .ss-form-grid {
    grid-template-columns: 1fr;
  }
  .ss-form {
    padding: 18px;
  }
  .ss-checkgrid,
  .ss-usage {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============ Status banner (post-checkout return) ============ */
.status-banner {
  margin: 0 max(20px, 4vw);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 0.92rem;
  font-weight: 500;
}
.status-banner.is-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

/* ============ How it works ============ */
.how {
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: clamp(56px, 9vw, 96px) max(20px, 4vw);
}

.how h2,
.section-block h2 {
  margin: 0 0 28px;
  max-width: 760px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper-tint);
}

.step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.step-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brand-tint);
  color: var(--brand-ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-icon svg { display: block; }

.step-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--brand-ink);
  line-height: 1;
}

.steps h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.how-cta {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* ============ Generic content section ============ */
.section-block {
  padding: clamp(56px, 9vw, 96px) max(20px, 4vw);
  border-top: 1px solid var(--line);
}
.section-block.tinted { background: var(--paper); }

/* ============ Form-types grid ============ */
.formtype-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.formtype-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper-tint);
}
.formtype-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.formtype-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ============ Built-for grid ============ */
.built-for-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.built-for-card {
  display: block;
  padding: 26px 26px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, transform 0.05s ease;
}
.built-for-card:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}
.built-for-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}
.built-for-card p {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}
.built-for-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-ink);
}

/* ============ Privacy section ============ */
.privacy-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}

.privacy-inner p {
  margin: 0 0 8px;
  max-width: 540px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.privacy-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.privacy-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

.privacy-list svg {
  color: var(--brand);
  flex-shrink: 0;
}

.privacy-link {
  margin: 12px 0 0;
  font-size: 0.9rem;
}
.privacy-link a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============ Pricing teaser ============ */
.pricing-teaser {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.pricing-teaser-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.pricing-teaser-card.is-featured {
  border-color: var(--ink);
  box-shadow: var(--shadow-md);
}
.pricing-teaser-card h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  font-weight: 600;
}
.pricing-teaser-price {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 2.2rem;
  line-height: 1;
  margin: 0 0 10px;
}
.pricing-teaser-price span {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
  margin-left: 4px;
}
.pricing-teaser-card p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}
.pricing-teaser-card .secondary,
.pricing-teaser-card .primary {
  margin-top: auto;
}
@media (max-width: 700px) {
  .pricing-teaser { grid-template-columns: 1fr; }
}

/* ============ FAQ ============ */
.faq dl {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 16px 32px;
  margin: 0;
}
.faq dt {
  font-weight: 600;
  color: var(--ink);
}
.faq dd {
  margin: 0;
  color: var(--ink-soft);
}
@media (max-width: 700px) {
  .faq dl { grid-template-columns: 1fr; }
}

/* ============ Footer ============ */
.footer {
  padding: 52px max(20px, 4vw) 28px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-inner {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.footer-col h3 {
  margin: 0 0 12px;
  font-size: 0.92rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 9px;
}
.footer-col h3 a {
  color: var(--ink);
  text-decoration: none;
}
.footer-col h3 a:hover { color: var(--accent); }

/* Footer column icon tile — tinted in the column's ICP accent. */
.foot-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--paper-tint);
  color: var(--ink-soft);
  flex-shrink: 0;
}
.foot-icon svg { display: block; }
.footer-col--amber .foot-icon { background: var(--accent-amber-bg); color: var(--accent-amber); }
.footer-col--teal .foot-icon { background: var(--accent-teal-bg); color: var(--accent-teal); }
.footer-col--blush .foot-icon { background: var(--accent-blush-bg); color: var(--accent-blush); }
.footer-col--clay .foot-icon { background: var(--accent-clay-bg); color: var(--accent-clay); }

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.footer-col a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.88rem;
}
.footer-col a:hover { color: var(--accent); }

.footer-base {
  width: min(1100px, 100%);
  margin: 38px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  flex-wrap: wrap;
}

.footer-base-brand {
  display: flex;
  align-items: center;
  gap: 9px;
}
.footer-base-brand .brand-mark { color: var(--accent); }
.footer-base-brand span {
  font-weight: 600;
  font-size: 0.92rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
}
.footer-nav a:hover { color: var(--ink); }

.footer-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}
.footer-meta a {
  color: var(--muted);
  text-decoration: underline;
}
.footer-meta a:hover { color: var(--ink); }

@media (max-width: 760px) {
  .footer { padding-top: 40px; }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }
}

@media (max-width: 440px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-base {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============ Responsive ============ */
@media (max-width: 920px) {
  .privacy-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Anchor target for the homepage "Try it free" CTA — clears the sticky topbar. */
#ss-tool { scroll-margin-top: 84px; }

/* ============ Disclaimer note (inside / under the tool) ============ */
.ss-disclaimer {
  margin: 14px 0 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-tint);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}
.ss-disclaimer strong { color: var(--ink-soft); }
