/* ==========================================================================
   IntellaType — marketing site
   Palette & tokens pulled verbatim from the app (src/index.css --app-* tokens
   via marketing-website/intellatype-website-content.json).
   Type: Georgia (display/prose) over Poppins (UI) — mirrors the app + its PDF export.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --app-page: #ffffff;
  --app-surface: #ffffff;
  --app-surface-muted: #f4f4f4;
  --app-hover: #eeeeee;
  --app-text: #333333;
  --app-text-strong: #1c2122;
  --app-text-muted: #555555;
  --app-text-faint: #8b8d94;
  --app-placeholder: #aaaaaa;
  --app-border: #e2e2e2;
  --app-border-strong: #c7c7c7;
  --app-accent: #ddc000;
  --app-accent-strong: #c0a800;
  --app-accent-text: #7a6b00; /* gold dark enough for AA text on white & #f4f4f4 */
  --app-sidebar: #262d37;
  --app-sidebar-hover: #363b43;
  --app-sidebar-text: #ffffff;
  --app-sidebar-text-muted: #b1b4b8;
  --app-shadow-sm: 0 1px 3px rgba(28, 33, 34, 0.06), 0 1px 2px rgba(28, 33, 34, 0.04);
  --app-shadow-md: 0 4px 12px -4px rgba(28, 33, 34, 0.12);
  --app-shadow-lg: 0 24px 60px -24px rgba(28, 33, 34, 0.28);

  --gold-gradient: linear-gradient(to right, #ddc000, #c0a800);
  --gold-gradient-hover: linear-gradient(to right, #c0a800, #ddc000);

  --font-ui: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-prose: Georgia, 'Times New Roman', serif;

  --radius: 0.5rem;
  --radius-lg: 0.875rem;
  --container: 72rem;
  --header-h: 4.25rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-swift: cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --app-page: #1c2122;
  --app-surface: #262d37;
  --app-surface-muted: #1f242c;
  --app-hover: #2d3542;
  --app-text: #e8e8ea;
  --app-text-strong: #ffffff;
  --app-text-muted: #b1b4b8;
  --app-text-faint: #8b8d94;
  --app-placeholder: #6a6d73;
  --app-border: #363b43;
  --app-border-strong: #4a5260;
  --app-accent: #ddc000;
  --app-accent-strong: #f0d728;
  --app-accent-text: #f0d728;
  --app-sidebar: #14181f;
  --app-sidebar-hover: #1f242c;
  --app-sidebar-text: #e8e8ea;
  --app-sidebar-text-muted: #8b8d94;
  --app-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
  --app-shadow-md: 0 6px 16px -6px rgba(0, 0, 0, 0.45);
  --app-shadow-lg: 0 24px 60px -24px rgba(0, 0, 0, 0.6);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--app-text);
  background: var(--app-page);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
}

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

a { color: inherit; }

h1, h2, h3, h4 { color: var(--app-text-strong); line-height: 1.15; }

h2 {
  font-family: var(--font-prose);
  font-weight: 400;
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h2 em, h1 em { font-style: italic; }

h3 { font-size: 1.1rem; font-weight: 600; }

::selection { background: rgba(221, 192, 0, 0.35); color: var(--app-text-strong); }

:focus-visible {
  outline: 2px solid var(--app-text-strong);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--app-accent);
  border-radius: 2px;
}

[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }

.container {
  width: min(100% - 3rem, var(--container));
  margin-inline: auto;
}

.container.narrow { max-width: 52rem; }

.section { padding-block: clamp(4.5rem, 3rem + 5vw, 7.5rem); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }

.section-sub {
  margin-top: 1.1rem;
  font-family: var(--font-prose);
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--app-text-muted);
}

.kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--app-accent-text);
  margin-bottom: 0.9rem;
}

.kicker.gold { color: var(--app-accent); }

/* ---------- Ink underline (draws itself on reveal) ---------- */
.ink-underline {
  background-image: linear-gradient(to right, rgba(221, 192, 0, 0.55), rgba(221, 192, 0, 0.55));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 0% 0.14em;
  transition: background-size 1s var(--ease-out) 0.45s;
  padding-bottom: 0.05em;
}

.is-visible .ink-underline,
.is-visible.ink-underline { background-size: 100% 0.14em; }

/* ---------- Reveal-on-scroll ----------
   Hidden state only applies once JS adds .js-reveal to <html> (progressive
   enhancement): with JS off or IntersectionObserver stalled, content shows.
   visibility keeps links inside unrevealed blocks out of the tab order. */
.js-reveal .reveal {
  opacity: 0;
  visibility: hidden;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out), visibility 0.8s;
}

.js-reveal .reveal[data-reveal="right"] { transform: translateX(40px); }

.js-reveal .reveal.is-visible { opacity: 1; visibility: visible; transform: none; }

.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.42s; }
.reveal[data-delay="5"] { transition-delay: 0.54s; }
.reveal[data-delay="6"] { transition-delay: 0.66s; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-ui);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-swift), box-shadow 0.25s var(--ease-swift), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}

.btn-sm { font-size: 0.85rem; padding: 0.5rem 1.1rem; }
.btn-lg { font-size: 1rem; padding: 0.5rem 1.9rem; }

.btn-gold {
  background: var(--gold-gradient);
  color: #1c2122;
  box-shadow: 0 8px 20px -8px rgba(221, 192, 0, 0.55);
}

.btn-gold:hover {
  background: var(--gold-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -8px rgba(221, 192, 0, 0.65);
}

/* shine sweep (one-way: the return jump is instant and off-canvas) */
.btn-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.45) 50%, transparent 62%);
  transform: translateX(-110%);
  pointer-events: none;
}

.btn-gold:hover::after {
  transform: translateX(110%);
  transition: transform 0.7s var(--ease-swift);
}

.btn-ghost {
  color: var(--app-sidebar-text);
  border-color: rgba(255, 255, 255, 0.35);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--app-accent);
  color: var(--app-accent);
  transform: translateY(-2px);
}

.btn-outline-gold {
  color: var(--app-accent);
  border-color: rgba(221, 192, 0, 0.5);
  background: transparent;
}

.btn-outline-gold:hover {
  border-color: var(--app-accent);
  background: rgba(221, 192, 0, 0.08);
  transform: translateY(-2px);
}

.btn svg { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
.btn-gold svg { fill: #1c2122; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--app-sidebar) 88%, #000);
  color: var(--app-sidebar-text);
  transition: box-shadow 0.3s ease, background-color 0.35s ease;
}

.site-header.is-scrolled { box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.45); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--app-sidebar-text);
}

.logo-mark { width: 1.9rem; height: 1.9rem; }

.header-logo { height: 3.75rem; width: auto; max-width: none; aspect-ratio: 950 / 262; display: block; flex-shrink: 0; }

.footer-logo { height: 2.75rem; width: auto; max-width: none; aspect-ratio: 950 / 262; display: block; flex-shrink: 0; }

.wordmark-text {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}

.site-nav { margin-left: auto; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
  padding: 0;
}

.nav-menu a:not(.btn) {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--app-sidebar-text-muted);
  text-decoration: none;
  padding-block: 0.4rem;
  background-image: linear-gradient(var(--app-accent), var(--app-accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: color 0.25s ease, background-size 0.35s var(--ease-swift);
}

.nav-menu a:not(.btn):hover {
  color: var(--app-sidebar-text);
  background-size: 100% 2px;
}

.nav-cta-item { display: none; }

.header-actions { display: flex; align-items: center; gap: 0.9rem; }

/* Stacked trial CTA: main label + small-print sub-line, both inside the button */
.header-download {
  flex-direction: column;
  gap: 0.05rem;
  line-height: 1.15;
  padding-block: 0.32rem;
}
.header-download .hcb-note {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0.72;
}

.nav-toggle { display: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background: var(--app-sidebar);
  color: var(--app-sidebar-text);
  padding-block: clamp(0.5rem, -0.25rem + 3vw, 2.5rem) clamp(5rem, 4rem + 4vw, 8rem);
  overflow: hidden;
}

.hero-texture,
.cta-texture,
.download-texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, black 30%, transparent 75%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 2rem + 3vw, 5rem);
  align-items: center;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--app-accent);
  margin-bottom: 1.4rem;
}

.hero-headline {
  font-family: var(--font-prose);
  font-weight: 400;
  font-size: clamp(2.5rem, 1.6rem + 3.8vw, 4.3rem);
  letter-spacing: -0.015em;
  color: #ffffff;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}

.hh-line { display: block; }

/* Below ~800px the authored two-line break no longer fits the fluid type —
   let the browser wrap (balanced) instead of stranding words. */
@media (max-width: 50rem) {
  .hh-line { display: inline; }
}

.hero .ink-underline {
  background-image: linear-gradient(to right, rgba(221, 192, 0, 0.75), rgba(221, 192, 0, 0.75));
}

.hero-sub {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--app-sidebar-text-muted);
  max-width: 34rem;
  margin-bottom: 2.1rem;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.6rem; }

.hero-trial-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--app-accent);
  border: 1px solid rgba(221, 192, 0, 0.35);
  background: rgba(221, 192, 0, 0.07);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  margin-bottom: 1.1rem;
}

.hero-trial-badge svg {
  width: 1rem; height: 1rem;
  fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}

.hero-support { font-size: 0.82rem; color: var(--app-sidebar-text-muted); opacity: 0.85; max-width: 34rem; }

/* ---------- Hero mockup: the editor writing itself ---------- */
.hero-mockup { position: relative; align-self: start; }

.hero-carousel-frame { position: relative; }

.hero-mockup .hero-ctas { margin-top: 2rem; margin-bottom: 1.1rem; }

.hero-mockup .hero-ctas .btn { flex: 1 1 0; }

.hero-mockup .hero-trial-badge { display: flex; width: 100%; justify-content: center; }

.hero-carousel { position: relative; z-index: 1; }

.hero-carousel-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1447 / 925;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: mockup-float 7s ease-in-out infinite;
}

.hero-carousel-track {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.6, 0.05, 0.2, 1);
}

.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 0.8rem;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 0.4rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(20, 24, 31, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hero-carousel-dots:empty { display: none; }

.hero-carousel-dots button {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.hero-carousel-dots button.is-active {
  background: var(--app-accent);
  transform: scale(1.3);
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel-viewport { animation: none; }
  .hero-carousel-track { transition: none; }
}

.hero-slide { cursor: zoom-in; }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(10, 12, 16, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lightbox.is-open { display: flex; }

.lightbox-img {
  max-width: min(1200px, 94vw);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.22); }

.lightbox-close {
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  width: 2.75rem; height: 2.75rem;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 3rem; height: 3rem;
}

.lightbox-nav:hover { transform: translateY(-50%) scale(1.08); }

.lightbox-prev { left: clamp(0.75rem, 2vw, 2rem); }
.lightbox-next { right: clamp(0.75rem, 2vw, 2rem); }

.lightbox-close svg,
.lightbox-nav svg {
  width: 1.4rem; height: 1.4rem;
  fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}

.lightbox-counter {
  position: absolute;
  bottom: clamp(1rem, 3vw, 2rem);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.mockup-glow {
  position: absolute;
  inset: 8% -6% -10% -6%;
  background: radial-gradient(ellipse at 50% 60%, rgba(221, 192, 0, 0.16), transparent 65%);
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
}

.mockup-window {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
  animation: mockup-float 7s ease-in-out infinite;
  font-size: clamp(0.62rem, 0.5rem + 0.45vw, 0.8rem);
}

@keyframes mockup-float {
  0%, 100% { transform: translateY(0) rotate(0.25deg); }
  50% { transform: translateY(-12px) rotate(-0.25deg); }
}

.mockup-titlebar {
  display: flex;
  align-items: center;
  gap: 0.45em;
  background: #14181f;
  padding: 0.7em 1em;
}

.mock-dot {
  width: 0.72em; height: 0.72em;
  border-radius: 50%;
  background: #363b43;
}

.mock-dot:first-child { background: rgba(221, 192, 0, 0.8); }

.mockup-title {
  margin-left: 0.8em;
  font-size: 0.92em;
  color: #8b8d94;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mockup-body { display: grid; grid-template-columns: 34% 66%; min-height: 24em; }

.mockup-sidebar {
  background: #262d37;
  color: #b1b4b8;
  padding: 1.1em 1em;
  display: flex;
  flex-direction: column;
  gap: 0.55em;
}

.ms-brand {
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: #ffffff;
  font-weight: 600;
  font-size: 1.05em;
  margin-bottom: 1em;
}

.ms-brand svg { width: 1.5em; height: 1.5em; }

.ms-label {
  font-size: 0.8em;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8b8d94;
  margin-bottom: 0.2em;
}

.ms-chapter {
  display: flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.55em 0.7em;
  border-radius: 0.45em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ms-chapter.is-active { background: #363b43; color: #ffffff; }

.ms-chip { width: 0.5em; height: 0.5em; border-radius: 2px; background: #4a5260; flex: none; }

.ms-chapter.is-active .ms-chip { background: #ddc000; }

.ms-new { margin-top: auto; color: #ddc000; font-weight: 500; padding: 0.55em 0.7em; }

.mockup-editor { display: flex; flex-direction: column; background: #ffffff; }

.me-toolbar {
  display: flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.65em 1.1em;
  border-bottom: 1px solid #e2e2e2;
  color: #555555;
}

.me-tool {
  padding: 0.25em 0.5em;
  border-radius: 0.35em;
  background: #f4f4f4;
  font-size: 0.9em;
}

.me-b { font-weight: 700; }
.me-i { font-style: italic; }
.me-u { text-decoration: underline; }
.me-sep { width: 1px; height: 1.2em; background: #e2e2e2; margin-inline: 0.3em; }

.me-ai {
  background: linear-gradient(to right, #ddc000, #c0a800);
  color: #1c2122;
  font-weight: 600;
}

.me-page { flex: 1; padding: 1.4em 1.6em; }

.me-chapter-title {
  font-family: var(--font-prose);
  font-size: 1.5em;
  font-weight: 400;
  color: #1c2122;
  margin-bottom: 0.7em;
}

.me-prose {
  font-family: var(--font-prose);
  font-size: 1.05em;
  line-height: 1.8;
  color: #333333;
  min-height: 11em;
}

.type-caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: #ddc000;
  vertical-align: text-bottom;
  margin-left: 1px;
  animation: caret-blink 1.05s steps(1) infinite;
}

@keyframes caret-blink { 50% { opacity: 0; } }

.me-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6em 1.1em;
  border-top: 1px solid #e2e2e2;
  color: #555555;
  font-size: 0.92em;
}

.me-saved {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  color: #806f00;
  font-weight: 500;
  transition: opacity 0.4s ease;
}

.me-saved svg {
  width: 1em; height: 1em;
  fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
}

.me-saved.is-saving { opacity: 0.35; }

/* ==========================================================================
   Problem
   ========================================================================== */
.card-grid { display: grid; gap: 1.4rem; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }

.pain-card {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--app-shadow-sm);
  transition: transform 0.35s var(--ease-swift), box-shadow 0.35s var(--ease-swift), border-color 0.35s ease;
}

.pain-card:hover {
  box-shadow: var(--app-shadow-md);
  border-color: var(--app-border-strong);
}

.pain-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem; height: 3rem;
  border-radius: var(--radius);
  background: var(--app-surface-muted);
  border: 1px solid var(--app-border);
  margin-bottom: 1.3rem;
  color: var(--app-text-muted);
}

.pain-icon svg {
  width: 1.4rem; height: 1.4rem;
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

.pain-card h3 { margin-bottom: 0.6rem; }

.feature-shot {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 1.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--app-border);
}

.pain-card p { font-size: 0.95rem; color: var(--app-text-muted); }

/* ==========================================================================
   Guide
   ========================================================================== */
.guide { background: var(--app-surface-muted); }

[data-theme="dark"] .guide { background: var(--app-surface-muted); }

.problem-pivot {
  margin: clamp(2.2rem, 1.8rem + 1.5vw, 3.2rem) auto 0;
  max-width: 36rem;
  text-align: center;
  font-family: var(--font-prose);
  font-style: italic;
  font-size: 1.24rem;
  line-height: 1.6;
  color: var(--app-text-strong);
}

.problem-pivot em { color: var(--app-accent-text); }

.problem-banner {
  margin: clamp(2.2rem, 1.8rem + 1.5vw, 3.4rem) auto 0;
  max-width: 52rem;
  background: var(--app-accent);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 1rem + 2vw, 2.3rem) clamp(1.6rem, 1rem + 3vw, 3rem);
  text-align: center;
  box-shadow: 0 18px 40px -20px rgba(221, 192, 0, 0.55);
}

.problem-banner p {
  margin: 0;
  font-family: var(--font-prose);
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.55rem);
  line-height: 1.5;
  font-weight: 600;
  color: #17181a;
}

.problem-banner em {
  font-style: italic;
  color: #17181a;
}

.guide-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  align-items: center;
}

.guide-empathy {
  font-family: var(--font-prose);
  font-style: italic;
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--app-text-strong);
  border-left: 3px solid var(--app-accent);
  padding-left: 1.2rem;
  margin-block: 1.5rem;
}

.guide-copy > p:not(.kicker):not(.guide-empathy) { color: var(--app-text-muted); }

.cred-list {
  list-style: none;
  padding: 0;
  margin-top: 1.8rem;
  display: grid;
  gap: 0.95rem;
}

.cred-list li {
  display: flex;
  gap: 0.85rem;
  font-size: 0.95rem;
  color: var(--app-text);
}

.cred-check {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem; height: 1.5rem;
  margin-top: 0.1rem;
  border-radius: 50%;
  background: rgba(221, 192, 0, 0.14);
  color: var(--app-accent-strong);
}

.cred-check svg {
  width: 0.85rem; height: 0.85rem;
  fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
}

.screenshot-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--app-shadow-lg), 0 0 0 1px var(--app-border);
  background: #14181f;
  transform: perspective(1200px) rotateY(-3deg) rotateX(1.2deg);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
  will-change: transform;
}

.screenshot-frame:hover {
  transform: perspective(1200px) rotateY(0deg) rotateX(0deg) scale(1.012);
  box-shadow: 0 32px 80px -28px rgba(28, 33, 34, 0.45), 0 0 0 1px var(--app-border);
}

.screenshot-frame img { width: 100%; }

.screenshot-frame figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.6rem 1.2rem 0.9rem;
  font-size: 0.8rem;
  color: #b1b4b8;
  text-align: center;
  background: linear-gradient(to top, rgba(20, 24, 31, 0.92), transparent);
}

/* ==========================================================================
   Plan (How it works)
   ========================================================================== */
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: step;
  position: relative;
}

.step {
  position: relative;
  padding-top: 0.4rem;
}

.step-num {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 1.4rem;
}

.step-num span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem; height: 3.2rem;
  border-radius: 50%;
  font-family: var(--font-prose);
  font-size: 1.5rem;
  color: #1c2122;
  background: var(--gold-gradient);
  box-shadow: 0 10px 22px -10px rgba(221, 192, 0, 0.7);
  flex: none;
}

.step-num::after {
  content: "";
  flex: 1;
  height: 1px;
  margin-left: 1.1rem;
  background: linear-gradient(to right, var(--app-border-strong), transparent);
}

.step:last-child .step-num::after { display: none; }

.step h3 { margin-bottom: 0.6rem; font-size: 1.2rem; }

.step p { font-size: 0.95rem; color: var(--app-text-muted); }

.agreement {
  margin-top: 3.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  justify-content: center;
  border-top: 1px solid var(--app-border);
  padding-top: 2.2rem;
}

.agreement p {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--app-text-muted);
}

.agreement svg {
  width: 1rem; height: 1rem;
  fill: none; stroke: var(--app-accent-strong); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  position: relative;
  background: var(--app-sidebar);
  color: var(--app-sidebar-text);
  overflow: hidden;
}

.cta-inner { position: relative; text-align: center; max-width: 46rem; }

.cta-band h2 { color: #ffffff; margin-bottom: 1.2rem; }

.cta-band h2 em { color: var(--app-accent); }

.cta-band p { color: var(--app-sidebar-text-muted); max-width: 36rem; margin-inline: auto; }

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.2rem;
}

.cta-trial { margin-top: 1.4rem; font-size: 0.85rem; color: var(--app-accent); }

/* ==========================================================================
   Stakes
   ========================================================================== */
.stakes { background: var(--app-page); }

.stakes-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

.stakes-list li {
  font-family: var(--font-prose);
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--app-text-muted);
  padding-left: 1.6rem;
  position: relative;
}

.stakes-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--app-text-muted);
}

/* ==========================================================================
   Success / transformation
   ========================================================================== */
.success { background: var(--app-surface-muted); }

.transformation {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 1.4rem;
  margin-top: 1rem;
}

.transform-card {
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  font-family: var(--font-prose);
  font-size: 1.05rem;
  line-height: 1.6;
}

.transform-card.from {
  background: var(--app-surface);
  border: 1px dashed var(--app-border-strong);
  color: var(--app-text-muted);
}

.transform-card.to {
  background: var(--app-sidebar);
  color: var(--app-sidebar-text);
  border: 1px solid transparent;
  box-shadow: var(--app-shadow-lg);
}

.transform-label {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
  color: var(--app-text-muted);
}

.transform-card.to .transform-label { color: var(--app-accent); }

.transform-arrow { display: flex; align-items: center; }

.transform-arrow svg { width: 4rem; height: 1.6rem; }

.arrow-path {
  fill: none;
  stroke: var(--app-accent-strong);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 90;
  stroke-dashoffset: 90;
  transition: stroke-dashoffset 1.1s var(--ease-out) 0.5s;
}

.is-visible .arrow-path { stroke-dashoffset: 0; }

.success-cta { text-align: center; margin-top: 3rem; }

/* ==========================================================================
   Features (tabs)
   ========================================================================== */
.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 1px solid var(--app-border);
  padding-bottom: 0.9rem;
  margin-bottom: 2.2rem;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--app-text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease-swift);
}

.tab:hover { color: var(--app-text-strong); background: var(--app-hover); }

.tab.is-active {
  color: #1c2122;
  background: var(--gold-gradient);
  font-weight: 600;
  box-shadow: 0 8px 18px -8px rgba(221, 192, 0, 0.6);
}

.tab svg {
  width: 1rem; height: 1rem;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}

.tab-panel { display: none; }

.tab-panel.is-active {
  display: block;
  animation: panel-in 0.5s var(--ease-out);
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.features-grid { grid-template-columns: repeat(3, 1fr); }

.feature-card {
  position: relative;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--app-shadow-sm);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.feature-card:hover { border-color: var(--app-border-strong); }

.feature-card h3 { font-size: 1rem; margin-bottom: 0.45rem; }

.feature-card p { font-size: 0.9rem; color: var(--app-text-muted); }

/* ==========================================================================
   Why
   ========================================================================== */
.why-card {
  border-top: 2px solid var(--app-border-strong);
  padding-top: 1.4rem;
}

.why-card h3 {
  font-family: var(--font-prose);
  font-weight: 400;
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}

.why-card p { font-size: 0.92rem; color: var(--app-text-muted); }

/* alternate the background rhythm: features(white) → why(muted) → pricing(white) → faq(muted) */
.why { background: var(--app-surface-muted); }

/* ==========================================================================
   Pricing / trial
   ========================================================================== */

.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 1.6rem;
  align-items: stretch;
  max-width: 58rem;
  margin-inline: auto;
}

.price-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
}

.price-card-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
  color: var(--app-text-muted);
}

.price-card.subscription {
  background: transparent;
  border: 1px dashed var(--app-border-strong);
  color: var(--app-text-muted);
}

.price-list { list-style: none; padding: 0; display: grid; gap: 0.9rem; }

.price-list li { font-size: 0.95rem; }

/* animated strikethrough */
.price-list .strike span { position: relative; display: inline-block; }

.price-list .strike span::after {
  content: "";
  position: absolute;
  left: -2%; right: 102%;
  top: 55%;
  height: 2px;
  background: var(--app-text-muted);
  opacity: 0.85;
  transition: right 0.6s var(--ease-swift);
}

.is-visible.price-card .strike:nth-child(1) span::after { transition-delay: 0.55s; }
.is-visible.price-card .strike:nth-child(2) span::after { transition-delay: 0.8s; }
.is-visible.price-card .strike:nth-child(3) span::after { transition-delay: 1.05s; }
.is-visible.price-card .strike:nth-child(4) span::after { transition-delay: 1.3s; }

.is-visible.price-card .strike span::after { right: -2%; }

.price-foot {
  margin-top: auto;
  padding-top: 1.6rem;
  font-family: var(--font-prose);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--app-text-muted);
}

.price-card.intellatype {
  background: var(--app-sidebar);
  color: var(--app-sidebar-text);
  box-shadow: var(--app-shadow-lg);
  overflow: hidden;
}

.price-card.intellatype .price-card-label { color: var(--app-accent); }

.price-ribbon {
  position: absolute;
  top: 1.9rem; right: -4.6rem;
  transform: rotate(45deg);
  background: var(--gold-gradient);
  color: #1c2122;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 3.6rem;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.4);
}

.price-line {
  font-family: var(--font-prose);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--app-sidebar-text-muted);
  margin-bottom: 1.6rem;
}

.price-big {
  font-size: 1.75rem;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.gold-checks li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--app-sidebar-text-muted);
}

.gold-checks svg {
  width: 1.05rem; height: 1.05rem;
  margin-top: 0.25rem;
  fill: none; stroke: var(--app-accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}

.price-card.intellatype .btn { margin-top: 1.9rem; align-self: flex-start; }

.price-card.intellatype .price-foot { color: var(--app-accent); opacity: 0.95; }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq { background: var(--app-surface-muted); }

.acc-item {
  border-bottom: 1px solid var(--app-border);
}

.acc-item h3 { font-size: inherit; }

.acc-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  background: none;
  border: 0;
  padding: 1.35rem 0.2rem;
  font-family: var(--font-ui);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--app-text-strong);
  text-align: left;
  cursor: pointer;
  transition: color 0.25s ease;
}

.acc-trigger:hover { color: var(--app-accent-text); }

.acc-trigger svg {
  width: 1.1rem; height: 1.1rem;
  flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.35s var(--ease-swift);
}

.acc-trigger[aria-expanded="true"] svg { transform: rotate(180deg); stroke: var(--app-accent-text); }

.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease-swift);
}

.acc-panel > p {
  overflow: hidden;
  visibility: hidden; /* keep collapsed answers out of the accessibility tree */
  font-size: 0.95rem;
  color: var(--app-text-muted);
  padding-left: 0.2rem;
  padding-right: 2.5rem;
  transition: visibility 0.4s var(--ease-swift);
}

.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }

.acc-item.is-open .acc-panel > p { visibility: visible; padding-bottom: 1.4rem; }

/* ==========================================================================
   Download
   ========================================================================== */
.download {
  position: relative;
  background: var(--app-sidebar);
  color: var(--app-sidebar-text);
  overflow: hidden;
}

.download-texture {
  mask-image: radial-gradient(ellipse 80% 90% at 50% 100%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 100%, black 20%, transparent 70%);
}

.download-inner { position: relative; text-align: center; }

.download h2 { color: #ffffff; margin-bottom: 1.2rem; }

.download h2 em { color: var(--app-accent); }

.download-sub {
  color: var(--app-sidebar-text-muted);
  max-width: 33rem;
  margin-inline: auto;
  margin-bottom: 2.4rem;
}

.platform-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.download-note {
  margin-top: 1.8rem;
  font-size: 0.85rem;
  color: var(--app-accent);
}

.download-buy-line {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  color: var(--app-sidebar-text-muted);
}

.download-buy-line a {
  color: var(--app-accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(221, 192, 0, 0.4);
  transition: border-color 0.25s ease;
}

.download-buy-line a:hover { border-bottom-color: var(--app-accent); }

.trial-points {
  list-style: none;
  padding: 0;
  margin: 0 auto 2.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem 1.6rem;
  max-width: 34rem;
}

.trial-points li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--app-sidebar-text);
}

.trial-points svg {
  width: 1rem; height: 1rem;
  fill: none; stroke: var(--app-accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}

/* ==========================================================================
   Problem list · Privacy · 5-step plan
   ========================================================================== */
.problem-head { text-align: center; max-width: 46rem; margin-inline: auto; }

.problem-head .section-sub { margin-inline: auto; }

.problem-cards { margin-top: clamp(2.2rem, 1.8rem + 1.5vw, 3rem); }

.struggle-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.struggle-card .struggle-dot {
  width: 0.7rem; height: 0.7rem;
  border-radius: 50%;
  background: var(--app-accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--app-accent) 16%, transparent);
  flex: none;
}

.struggle-card p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--app-text-strong);
}

.privacy { background: var(--app-surface-muted); }

.steps.steps-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.5rem;
}

.steps.steps-5 .step-num span { width: 2.7rem; height: 2.7rem; font-size: 1.25rem; }
.steps.steps-5 .step-num::after { display: none; }
.steps.steps-5 .step h3 { font-size: 1.05rem; }

/* Getting started — two-column: copy + vertical timeline */
.getstarted-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  align-items: start;
}

.getstarted-lead {
  margin-top: 1.2rem;
  color: var(--app-text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 26rem;
}

/* Vertical timeline (Getting started) */
.steps-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline-step {
  position: relative;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.4rem;
  padding-bottom: 2.6rem;
}

.timeline-step:last-child { padding-bottom: 0; }

.timeline-step::before {
  content: "";
  position: absolute;
  left: 1.5rem;
  top: 3rem;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: var(--app-border-strong);
}

.timeline-step:last-child::before { display: none; }

.timeline-marker span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem; height: 3rem;
  border-radius: 50%;
  font-family: var(--font-prose);
  font-size: 1.35rem;
  color: #1c2122;
  background: var(--gold-gradient);
  box-shadow: 0 10px 22px -10px rgba(221, 192, 0, 0.7);
  flex: none;
}

.timeline-body { padding-top: 0.35rem; }
.timeline-body h3 { margin-bottom: 0.4rem; font-size: 1.2rem; }
.timeline-body p { font-size: 0.98rem; color: var(--app-text-muted); line-height: 1.6; }

.timeline-body a {
  color: var(--app-text-strong);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--app-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s ease;
}

.timeline-body a:hover { text-decoration-color: var(--app-text-strong); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: color-mix(in srgb, var(--app-sidebar) 88%, #000);
  color: var(--app-sidebar-text-muted);
  border-top: 1px solid var(--app-sidebar-hover);
  padding-block: 3.5rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-tagline {
  font-family: var(--font-prose);
  font-style: italic;
  margin-top: 0.9rem;
  font-size: 0.95rem;
}

.footer-col h3 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--app-sidebar-text);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; padding: 0; display: grid; gap: 0.55rem; }

.footer-col a {
  display: inline-block;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--app-sidebar-text-muted);
  transition: color 0.25s ease;
}

.footer-col a:hover { color: var(--app-accent); }

.footer-legal {
  border-top: 1px solid var(--app-sidebar-hover);
  padding-top: 1.6rem;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem 1.5rem;
  flex-wrap: wrap;
}

.footer-legal-links {
  margin-left: auto;
  display: flex;
  gap: 0.5rem 1.1rem;
  font-size: 0.72rem;
  text-align: right;
  color: var(--app-sidebar-text-muted);
}
.footer-legal-links a { text-decoration: none; transition: color 0.2s ease; }
.footer-legal-links a:hover { color: var(--app-accent); }

/* ==========================================================================
   Legal / simple content pages (privacy, terms)
   ========================================================================== */
.legal-hero {
  background: var(--app-sidebar);
  color: var(--app-sidebar-text);
  padding-block: clamp(3rem, 2.4rem + 3vw, 4.5rem) clamp(2.5rem, 2rem + 2vw, 3.5rem);
}

.legal-hero h1 {
  font-family: var(--font-prose);
  font-weight: 400;
  font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3rem);
  line-height: 1.22;
  color: #fff;
  letter-spacing: -0.015em;
  margin-top: 0.4rem;
  max-width: 26ch;
  text-wrap: balance;
}

.legal-updated {
  margin-top: 1.1rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--app-sidebar-text-muted);
}

.legal-prose {
  font-family: var(--font-prose);
  color: var(--app-text-muted);
  font-size: 1.08rem;
  line-height: 1.85;
  max-width: 42rem; /* ~68ch reading measure — narrower than the container on purpose */
}
.legal-prose > * + * { margin-top: 1.4rem; }
.legal-prose .legal-lead {
  font-size: 1.24rem;
  line-height: 1.75;
  color: var(--app-text);
}
.legal-prose h2 {
  font-size: clamp(1.45rem, 1.15rem + 1vw, 1.85rem);
  line-height: 1.3;
  margin-top: 3.25rem;
  margin-bottom: 0.9rem;
}
.legal-prose h2 + * { margin-top: 0; }
.legal-prose h3 {
  font-family: var(--font-ui);
  font-size: 1rem;
  letter-spacing: 0.01em;
  margin-top: 2.2rem;
  margin-bottom: 0.55rem;
  color: var(--app-text-strong);
}
.legal-prose h3 + * { margin-top: 0; }
.legal-prose ul { margin: 0.6rem 0 0 1.2rem; display: grid; gap: 0.7rem; }
.legal-prose li { padding-left: 0.25rem; }
.legal-prose a {
  color: var(--app-accent-text);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(221, 192, 0, 0.4);
}
.legal-prose a:hover { border-bottom-color: var(--app-accent); }
.legal-prose strong { color: var(--app-text-strong); }
/* Guide video embed / placeholder (16:9). Swap the placeholder div for an
   iframe.youtube-nocookie embed when a video is ready — same wrapper class. */
.guide-video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--app-border);
  box-shadow: var(--app-shadow-sm);
  margin-block: 2.25rem;
}
.guide-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.guide-video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(221, 192, 0, 0.07), transparent 55%),
    var(--app-sidebar);
  color: var(--app-sidebar-text-muted);
}
.guide-video-placeholder .gv-play {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  border: 2px solid var(--app-accent);
  background: rgba(221, 192, 0, 0.12);
}
.guide-video-placeholder .gv-play svg {
  width: 1.6rem;
  height: 1.6rem;
  fill: var(--app-accent);
  margin-left: 0.25rem;
}
.guide-video-placeholder p {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}

/* Prev/next pager at the bottom of guide articles */
.guide-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--app-border);
  font-family: var(--font-ui);
}
.guide-pager a {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--app-border);
  border-radius: var(--radius-lg);
  background: var(--app-surface);
  box-shadow: var(--app-shadow-sm);
  text-decoration: none;
  color: var(--app-text-strong);
  transition: transform 0.28s var(--ease-swift),
              border-color 0.28s ease,
              box-shadow 0.28s ease;
}
.guide-pager a:hover {
  transform: translateY(-3px);
  border-color: var(--app-accent);
  box-shadow: var(--app-shadow-md);
}
.guide-pager a:focus-visible {
  outline: 2px solid var(--app-accent);
  outline-offset: 3px;
}
.guide-pager .gp-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--app-accent-text);
}
.guide-pager .gp-arrow {
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 0.28s var(--ease-swift);
}
.guide-pager .gp-title {
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--app-text-strong);
}
.guide-pager .gp-prev { grid-column: 1; align-items: flex-start; text-align: left; }
.guide-pager .gp-next { grid-column: 2; align-items: flex-end; text-align: right; }
.guide-pager .gp-prev:hover .gp-arrow { transform: translateX(-3px); }
.guide-pager .gp-next:hover .gp-arrow { transform: translateX(3px); }
@media (max-width: 34rem) {
  .guide-pager { grid-template-columns: 1fr; gap: 0.85rem; margin-top: 2.75rem; padding-top: 2rem; }
  .guide-pager .gp-prev, .guide-pager .gp-next { grid-column: 1; align-items: flex-start; text-align: left; }
  .guide-pager .gp-next:hover .gp-arrow { transform: translateX(3px); }
}

.legal-disclaimer {
  margin-top: 3rem;
  padding: 1.2rem 1.4rem;
  background: var(--app-surface-muted);
  border: 1px solid var(--app-border);
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--app-text-muted);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 64rem) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mockup { max-width: 36rem; margin-inline: auto; }
  .guide-grid { grid-template-columns: 1fr; }
  .card-grid.four { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps.steps-5 { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .getstarted-grid { grid-template-columns: 1fr; }
  .getstarted-lead { max-width: none; }
}

/* three-up grids get too narrow well before the phone breakpoint */
@media (max-width: 56rem) {
  .card-grid.three { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 2.6rem; }
  .step-num::after { display: none; }
}

@media (max-width: 46rem) {
  .features-grid { grid-template-columns: 1fr; }
  .transformation { grid-template-columns: 1fr; }
  .transform-arrow { justify-content: center; }
  .transform-arrow svg { transform: rotate(90deg); }
  .pricing-grid { grid-template-columns: 1fr; }
  .card-grid.four { grid-template-columns: 1fr; }
  .steps.steps-5 { grid-template-columns: 1fr; }
  .header-download { display: none; }

  /* mobile nav */
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.6rem; height: 2.6rem;
    padding: 0.6rem;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--app-sidebar-text);
    border-radius: 2px;
    transition: transform 0.3s var(--ease-swift), opacity 0.3s 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); }

  .site-nav { position: static; }

  .nav-menu {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--app-sidebar);
    border-top: 1px solid var(--app-sidebar-hover);
    padding: 0.8rem 1.5rem 1.4rem;
    box-shadow: 0 24px 40px -18px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s var(--ease-swift), visibility 0.3s;
  }

  .nav-menu.is-open { opacity: 1; transform: none; visibility: visible; }

  .nav-menu li { border-bottom: 1px solid var(--app-sidebar-hover); }

  .nav-menu li:last-child { border-bottom: 0; }

  .nav-menu a:not(.btn) { display: block; padding: 0.9rem 0.2rem; font-size: 1rem; }

  .nav-cta-item { display: block; padding-top: 1rem; }

  .nav-cta-item .btn { width: 100%; }

  .nav-menu li.nav-buy-item { border-bottom: 0; padding-top: 1rem; }

  .nav-buy-item .btn { width: 100%; }
}

@media (max-width: 30rem) {
  .hero-ctas .btn, .cta-buttons .btn, .platform-buttons .btn, .success-cta .btn {
    width: 100%;
    white-space: normal;
  }
  .price-card { padding: 1.8rem 1.4rem; }
}

/* ---------- Touch targets on coarse pointers ---------- */
@media (pointer: coarse) {
  .nav-toggle { width: 2.75rem; height: 2.75rem; }
  .tab { padding-block: 0.75rem; }
  .footer-col a { padding-block: 0.6rem; }
  .footer-col ul { gap: 0.1rem; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    transition-delay: 0s !important;
  }

  .reveal, .js-reveal .reveal { opacity: 1; visibility: visible; transform: none; }
  .ink-underline { background-size: 100% 0.14em; }
  .arrow-path { stroke-dashoffset: 0; }
  .price-list .strike span::after { right: -2%; }
  .mockup-window { animation: none; }
  .type-caret { animation: none; opacity: 0; }
}
