/* ───────────────────────────────────────────────────────────────────────────
   Threads Download — modern mobile-first design system
   Vanilla CSS, no external fonts, no build step.
   ─────────────────────────────────────────────────────────────────────────── */

:root {
  /* Surface */
  --bg:           #fafafa;
  --bg-soft:      #f4f4f5;
  --surface:      #ffffff;
  --surface-2:    #f9fafb;

  /* Text */
  --fg:           #0a0a0a;
  --fg-2:         #1f1f1f;
  --fg-muted:     #525252;
  --fg-soft:      #8a8a8a;

  /* Lines */
  --border:       rgba(0, 0, 0, 0.08);
  --border-2:     rgba(0, 0, 0, 0.12);

  /* Brand */
  --accent:       #0a0a0a;
  --accent-fg:    #ffffff;
  --gradient:     linear-gradient(135deg, #833AB4 0%, #FD1D1D 50%, #FCB045 100%);
  --gradient-soft: linear-gradient(135deg, rgba(131,58,180,0.10) 0%, rgba(253,29,29,0.10) 50%, rgba(252,176,69,0.10) 100%);

  /* Status */
  --error-bg:     #fef2f2;
  --error-fg:     #b91c1c;
  --error-line:   #fecaca;
  --success-fg:   #059669;

  /* Badges */
  --badge-video:    #7c3aed;
  --badge-image:    #0d9488;
  --badge-carousel: #ea580c;

  /* Shape & motion */
  --r-sm:   8px;
  --r:      12px;
  --r-lg:   18px;
  --r-xl:   24px;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:    0 4px 24px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.10), 0 2px 4px rgba(0,0,0,0.04);

  --ease:   cubic-bezier(.2, .8, .2, 1);

  /* Layout */
  --max-w:     1080px;
  --max-w-prose: 720px;
  --header-h:  64px;
}

/* ── Reset ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
*  { -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100dvh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* Respect iPhone notch / left/right safe areas */
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--fg); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--fg-2); }
button { font-family: inherit; }

::selection { background: rgba(131,58,180,0.18); }

/* ── Layout ──────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}
.container-prose { max-width: var(--max-w-prose); }

main { padding-top: 12px; }

/* ── Header / nav ────────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 250, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 18px;
  color: var(--fg);
}
.brand:hover { color: var(--fg); }
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--gradient);
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(253, 29, 29, 0.25);
}
.brand-mark::after {
  content: "T";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.nav-links {
  display: none;
  gap: 4px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--fg-muted);
}
.nav-links a:hover { color: var(--fg); background: rgba(0,0,0,0.04); }
.nav-links a.active { color: var(--fg); background: rgba(0,0,0,0.06); }

.nav-cta {
  display: none;
}
.nav-cta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: var(--accent);
  color: var(--accent-fg);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: transform .15s var(--ease), opacity .15s;
}
.nav-cta a:hover { color: var(--accent-fg); opacity: 0.9; transform: translateY(-1px); }

/* Mobile drawer (CSS-only via checkbox hack) */
.nav-toggle { display: none; }
.nav-toggle-label {
  display: inline-flex;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s;
}
.nav-toggle-label:hover { background: rgba(0,0,0,0.04); }
.nav-toggle-label .bar,
.nav-toggle-label .bar::before,
.nav-toggle-label .bar::after {
  display: block;
  position: relative;
  width: 20px; height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform .25s var(--ease), top .25s var(--ease), bottom .25s var(--ease), opacity .15s;
}
.nav-toggle-label .bar::before,
.nav-toggle-label .bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-label .bar::before { top: -6px; }
.nav-toggle-label .bar::after  { bottom: -6px; top: auto; }

.nav-toggle:checked + .nav-toggle-label .bar { background: transparent; }
.nav-toggle:checked + .nav-toggle-label .bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle:checked + .nav-toggle-label .bar::after  { bottom: 0; transform: rotate(-45deg); }

.nav-drawer {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px 24px;
  display: none;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow);
  z-index: 49;
}
.nav-toggle:checked ~ .nav-drawer { display: flex; }
.nav-drawer a {
  padding: 12px 14px;
  border-radius: var(--r-sm);
  font-size: 15.5px;
  color: var(--fg-2);
}
.nav-drawer a:hover { background: var(--bg-soft); }
.nav-drawer .drawer-cta {
  margin-top: 8px;
  background: var(--accent);
  color: var(--accent-fg);
  text-align: center;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 600;
}
.nav-drawer .drawer-cta:hover { background: var(--accent); color: var(--accent-fg); }

@media (min-width: 820px) {
  .nav-links { display: flex; }
  .nav-cta { display: block; }
  .nav-toggle-label { display: none; }
  .nav-drawer { display: none !important; }
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  text-align: center;
  padding: 32px 0 12px;
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(45px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}
.hero::before {
  width: 220px; height: 220px;
  background: radial-gradient(circle, #FCB045 0%, rgba(252,176,69,0) 70%);
  top: -80px; left: -60px;
}
.hero::after {
  width: 260px; height: 260px;
  background: radial-gradient(circle, #833AB4 0%, rgba(131,58,180,0) 70%);
  top: -100px; right: -80px;
}
.hero > * { position: relative; z-index: 1; }
@media (min-width: 700px) {
  .hero { padding: 56px 0 24px; }
  .hero::before,
  .hero::after { filter: blur(60px); opacity: 0.55; }
  .hero::before {
    width: 360px; height: 360px;
    top: -120px; left: -80px;
  }
  .hero::after {
    width: 420px; height: 420px;
    top: -160px; right: -120px;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  box-shadow: var(--shadow-xs);
  margin-bottom: 20px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18); }
  50%     { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.08); }
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(26px, 7vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 800;
}
.hero h1 .gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .subhead {
  margin: 0 auto 22px;
  color: var(--fg-muted);
  max-width: 600px;
  font-size: 15.5px;
}
@media (min-width: 700px) {
  .hero .subhead { margin-bottom: 32px; font-size: 17px; }
}

/* Input card */
.input-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 14px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.input-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .25s var(--ease);
  pointer-events: none;
}
.input-card:focus-within::before { opacity: 1; }

.input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.input-group input[type="url"] {
  flex: 1;
  height: 52px;
  padding: 0 16px;
  border: none;
  background: transparent;
  /* 16px prevents iOS Safari from auto-zooming the page on focus */
  font-size: 16px;
  font-family: inherit;
  color: var(--fg);
  outline: none;
  width: 100%;
}
.input-group input[type="url"]::placeholder { color: var(--fg-soft); }
.input-group button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 24px;
  background: var(--accent);
  color: var(--accent-fg);
  border: none;
  border-radius: var(--r);
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s, transform .08s var(--ease);
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
  line-height: 1;
}
.input-group button svg { width: 14px; height: 14px; flex-shrink: 0; }
.input-group button:hover { opacity: 0.9; }
.input-group button:active { transform: translateY(1px); }
.input-group button:disabled { opacity: 0.5; cursor: not-allowed; }

@media (min-width: 600px) {
  .input-group { flex-direction: row; }
  .input-group input[type="url"] { padding: 0 16px; }
}

.hero-meta {
  margin: 18px auto 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 13px;
  color: var(--fg-muted);
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-meta svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--success-fg); }

/* ── Error / Loader ──────────────────────────────────────────────────── */
.error {
  margin: 16px auto 0;
  max-width: 720px;
  padding: 12px 16px;
  background: var(--error-bg);
  color: var(--error-fg);
  border: 1px solid var(--error-line);
  border-radius: var(--r);
  font-size: 14.5px;
  font-weight: 500;
}
.loader {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 18px auto 0;
  color: var(--fg-muted);
  font-size: 14.5px;
}
.spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--border-2);
  border-top-color: var(--fg);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }

/* ── Result card ─────────────────────────────────────────────────────── */
.result {
  max-width: 760px;
  margin: 20px auto 0;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  animation: slideUp .35s var(--ease) both;
}
@media (min-width: 700px) {
  .result { margin-top: 36px; padding: 20px; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}
.post-card-media {
  position: relative;
  width: 100%;
  background: var(--bg-soft);
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }

.media-badge {
  position: absolute;
  top: 12px; left: 12px;
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--fg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  letter-spacing: 0.01em;
}
.badge-video    { background: var(--badge-video); }
.badge-image    { background: var(--badge-image); }
.badge-carousel { background: var(--badge-carousel); }

.post-card-info { min-width: 0; }
.author { margin: 0 0 6px; font-weight: 600; font-size: 15px; color: var(--fg); }
.post-text {
  margin: 0;
  color: var(--fg-muted);
  font-size: 14.5px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

@media (min-width: 700px) {
  .post-card { flex-direction: row; align-items: stretch; }
  .post-card-media { width: 280px; flex: 0 0 280px; aspect-ratio: 1 / 1; }
  .post-card-info { flex: 1; padding-top: 4px; }
}

.download-actions { display: flex; flex-direction: column; gap: 12px; }

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  background: var(--accent);
  color: var(--accent-fg);
  border: none;
  border-radius: var(--r);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .15s, transform .08s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn-download:hover { opacity: 0.9; color: var(--accent-fg); }
.btn-download:active { transform: translateY(1px); }
.btn-download:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { width: 100%; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; }

.carousel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}
@media (min-width: 700px) {
  .carousel-grid { grid-template-columns: repeat(3, 1fr); }
}
.carousel-item {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg-soft);
  aspect-ratio: 1 / 1;
}
.carousel-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.carousel-item:hover img { transform: scale(1.04); }
.carousel-item .btn-download {
  position: absolute;
  bottom: 8px; left: 8px; right: 8px;
  width: auto;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.progress-msg {
  margin-top: 14px;
  text-align: center;
  color: var(--fg-muted);
  font-size: 13.5px;
}

/* ── Generic sections ────────────────────────────────────────────────── */
.section { padding: 44px 0; }
.section-tight { padding: 28px 0; }
@media (min-width: 700px) {
  .section { padding: 64px 0; }
  .section-tight { padding: 40px 0; }
}

.section-head { text-align: center; margin: 0 auto 28px; max-width: 640px; }
@media (min-width: 700px) { .section-head { margin-bottom: 36px; } }
.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: transparent;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  margin-bottom: 10px;
}
.section h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 5.4vw, 36px);
  letter-spacing: -0.02em;
  font-weight: 800;
  line-height: 1.18;
}
.section .lede {
  margin: 0;
  color: var(--fg-muted);
  font-size: 15.5px;
}
@media (min-width: 700px) { .section .lede { font-size: 16.5px; } }

/* ── Trust strip ─────────────────────────────────────────────────────── */
.trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 18px 0;
}
@media (min-width: 700px) { .trust-strip { padding: 22px 0; } }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 12px;
  text-align: center;
}
@media (min-width: 700px) { .trust-grid { gap: 18px 12px; } }
.trust-item .num {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (min-width: 700px) { .trust-item .num { font-size: 26px; } }
.trust-item .label {
  font-size: 13px;
  color: var(--fg-muted);
  font-weight: 500;
}
@media (min-width: 700px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── Steps (How it works) ────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  counter-reset: step;
}
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step {
  position: relative;
  padding: 28px 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--border-2);
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 14px;
  box-shadow: 0 6px 16px rgba(253, 29, 29, 0.22);
}
.step h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -0.01em; }
.step p  { margin: 0; color: var(--fg-muted); font-size: 14.5px; }

/* ── Features ────────────────────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 700px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-card {
  position: relative;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
  overflow: hidden;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--border-2);
}
.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--gradient-soft);
  color: #FD1D1D;
  margin-bottom: 14px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -0.01em; }
.feature-card p  { margin: 0; color: var(--fg-muted); font-size: 14.5px; }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin-bottom: 10px;
  transition: border-color .2s, box-shadow .2s;
}
.faq details[open] {
  border-color: var(--border-2);
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 16px 56px 16px 20px;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--fg);
  outline: none;
  user-select: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 22px; top: 50%;
  width: 12px; height: 12px;
  border-right: 2px solid var(--fg-muted);
  border-bottom: 2px solid var(--fg-muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
.faq details p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--fg-muted);
  font-size: 14.5px;
}

/* ── CTA strip ───────────────────────────────────────────────────────── */
.cta-strip {
  margin: 36px auto 0;
  padding: 28px 20px;
  background: var(--fg);
  color: var(--accent-fg);
  border-radius: var(--r-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}
@media (min-width: 700px) {
  .cta-strip { margin-top: 56px; padding: 36px 24px; }
}
.cta-strip::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: var(--gradient);
  border-radius: inherit;
  z-index: -1;
  filter: blur(40px);
  opacity: 0.4;
}
.cta-strip h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3.6vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.cta-strip p { margin: 0 0 22px; opacity: 0.8; font-size: 15.5px; }
.cta-strip .btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--fg);
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: transform .15s var(--ease);
}
.cta-strip .btn-cta:hover { transform: translateY(-1px); color: var(--fg); }

/* ── Prose pages (about, contact, privacy, etc.) ─────────────────────── */
.page-header {
  text-align: center;
  padding: 36px 0 16px;
  position: relative;
  overflow: hidden;
}
@media (min-width: 700px) {
  .page-header { padding: 56px 0 24px; }
}
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-soft);
  z-index: -1;
}
.page-header h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 6.4vw, 44px);
  letter-spacing: -0.025em;
  font-weight: 800;
  line-height: 1.12;
}
.page-header .lede {
  margin: 0 auto;
  max-width: 600px;
  color: var(--fg-muted);
  font-size: 15.5px;
}
@media (min-width: 700px) { .page-header .lede { font-size: 16.5px; } }
.page-header .updated {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--fg-muted);
}

.prose {
  padding: 12px 0 20px;
  font-size: 15.5px;
  color: var(--fg-2);
  line-height: 1.65;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}
@media (min-width: 700px) {
  .prose { padding: 24px 0 64px; font-size: 16px; }
}
.prose h2 {
  margin: 26px 0 10px;
  font-size: 19px;
  letter-spacing: -0.01em;
  font-weight: 700;
  line-height: 1.25;
  text-wrap: pretty;
  hyphens: manual;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  margin: 20px 0 8px;
  font-size: 16px;
  line-height: 1.3;
  text-wrap: pretty;
  hyphens: manual;
}
@media (min-width: 700px) {
  .prose h2 { margin: 36px 0 12px; font-size: 22px; }
  .prose h3 { margin: 24px 0 8px; font-size: 17px; }
}
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 20px; }
.prose ul li, .prose ol li { margin-bottom: 6px; }
.prose a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: #FD1D1D; }
.prose code {
  display: inline-block;
  max-width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0 6px;
  font-size: 90%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  word-break: break-word;
  overflow-wrap: anywhere;
  vertical-align: baseline;
}

/* Contact card */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 24px 0;
}
@media (min-width: 700px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
.contact-card {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color .2s, box-shadow .2s;
}
.contact-card:hover { border-color: var(--border-2); box-shadow: var(--shadow-sm); }
.contact-card .icon {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  background: var(--gradient-soft);
  color: #FD1D1D;
  border-radius: 10px;
  margin-bottom: 12px;
}
.contact-card .icon svg { width: 20px; height: 20px; }
.contact-card h3 { margin: 0 0 4px; font-size: 16px; }
.contact-card p { margin: 0 0 8px; color: var(--fg-muted); font-size: 14px; }
.contact-card a { font-weight: 600; }

/* ── Ad slots ────────────────────────────────────────────────────────── */
.ad-slot {
  display: block;
  margin: 24px auto;
  max-width: 728px;
  text-align: center;
  min-height: 50px;
}
.ad-slot:empty { min-height: 0; margin: 0; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer {
  margin-top: 48px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 36px 0 max(20px, env(safe-area-inset-bottom));
  font-size: 14.5px;
}
@media (min-width: 700px) {
  .site-footer { margin-top: 64px; padding-top: 48px; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-bottom: 24px;
}
@media (min-width: 700px) {
  .footer-grid { gap: 32px; margin-bottom: 32px; }
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; }
}
.footer-brand p {
  margin: 12px 0 0;
  color: var(--fg-muted);
  font-size: 14px;
  max-width: 320px;
}
.footer-col h4 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-soft);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--fg-muted); }
.footer-col a:hover { color: var(--fg); }

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  color: var(--fg-soft);
  font-size: 13px;
  text-align: center;
}
@media (min-width: 700px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ── Touch devices: drop sticky :hover after tap ─────────────────────── */
@media (hover: none) {
  .step:hover,
  .feature-card:hover,
  .contact-card:hover {
    transform: none;
    box-shadow: none;
  }
  .carousel-item:hover img { transform: none; }
  .btn-download:hover,
  .input-group button:hover,
  .nav-cta a:hover,
  .cta-strip .btn-cta:hover { opacity: 1; transform: none; }
  .nav-links a:hover,
  .nav-drawer a:hover { background: transparent; color: var(--fg-muted); }
}

/* ── Tiny-screen tweaks (≤ 380px) ─────────────────────────────────────── */
@media (max-width: 380px) {
  .container { padding: 0 16px; }
  .hero-eyebrow { font-size: 12px; padding: 5px 12px; }
  .input-group input[type="url"] { padding: 0 14px; }
  .input-group button { padding: 0 18px; }
  .brand-name, .brand span:last-child { font-size: 17px; }
  .trust-item .num { font-size: 20px; }
}

/* ── Reduced motion ──────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
