/* ================================================================
   TrendingGen landing — style.css (v2)
   Editorial / atelier dark aesthetic. No framework, no build step.
   Focus: Oswald display, flat premium, quieter sections.
   ================================================================ */

:root {
  --ink: #f4f1ea;
  --dim: rgba(244, 241, 234, 0.58);
  --faint: rgba(244, 241, 234, 0.16);
  --line: rgba(244, 241, 234, 0.10);
  --bg: #0a0a0b;
  --bg-elevated: #111114;
  --accent: #c9a961;
  --accent-hot: #d6b770;

  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --serif: "Oswald", "Impact", "Helvetica Neue", Arial, sans-serif;

  --max: 1280px;
  --gutter: clamp(20px, 5vw, 48px);
}

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

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover { color: var(--accent); }

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

::selection { background: var(--accent); color: var(--bg); }

/* ----------------------- Shader canvases -------------------------- */
/* Hero shader — fixed, full-viewport, passive ambient mist */
#shader {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  animation: canvasIn 1.2s ease-out 0.1s forwards;
}

#shader.is-static {
  background: radial-gradient(
    ellipse at 30% 40%,
    rgba(114, 82, 138, 0.35) 0%,
    rgba(36, 62, 86, 0.25) 30%,
    rgba(10, 10, 11, 1) 75%
  );
}

@keyframes canvasIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ----------------------- Typography ------------------------------- */
h1, h2, h3, h4, h5 {
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--faint);
  display: inline-block;
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  max-width: 22ch;
  margin-top: 18px;
}

/* Weight-contrast accent (NOT italic) — lighter roman pulled out in gold */
.section-title .accent-roman {
  font-family: var(--serif);
  font-weight: 400;
  font-style: normal;
  color: var(--accent);
  /* Very slight optical-size bump for readability at the gold weight */
  font-variation-settings: "opsz" 48;
}

/* ----------------------- Layout ----------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  position: relative;
  z-index: 2;
}

section {
  position: relative;
  z-index: 2;
  padding: clamp(80px, 12vw, 160px) 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

section:first-of-type { border-top: none; }

/* ----------------------- Nav -------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 80px;                 /* taller to fit the wordmark + slogan lockup */
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(10, 10, 11, 0.78);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom-color: var(--line);
}

.nav-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Wordmark — Autolova script lockup. Two-tone per brand spec:
   "Trending" in ivory, "Gen" in brand gold (#d8c39a). Static, no animation.
   Animation can be added later by picking a variant from
   landing/wordmark-playground.html. */
@font-face {
  font-family: "Autolova";
  src: url("assets/fonts/Autolova.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  text-decoration: none;
  gap: 4px;
  min-width: 220px;             /* enough room for the slogan rules to look balanced */
}

.nav-logo-text {
  display: inline-block;
  font-family: "Autolova", "Snell Roundhand", "Brush Script MT", cursive;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 400;
  line-height: 1.05;            /* tight — descender room comes from padding below */
  padding: 0 2px 2px;
  letter-spacing: 0.005em;
  color: var(--ink);            /* "Trending" — ivory */
  text-align: center;
}

.nav-logo-accent {
  color: var(--accent);         /* "Gen" — brand gold (site-wide accent for consistency) */
}

/* Slogan beneath the wordmark — no rules, just the tag in mono caps */
.nav-logo-slogan {
  display: block;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  text-align: center;
  margin-top: 4px;
  /* Trim the trailing letter-spacing so the slogan looks centered */
  padding-left: 0.4em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}
.nav-links a:hover { color: var(--ink); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-cta:hover { background: var(--accent); color: var(--bg); }

.nav-toggle {
  display: none;
  width: 28px; height: 28px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.2s;
}
.nav-toggle span:nth-child(2) { width: 70%; }

/* ----------------------- Hero ------------------------------------- */
.hero {
  min-height: 100vh;
  padding-top: 120px;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-top: none !important;
  background: transparent; /* let shader show through */
}

.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent 0%, var(--bg) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero-content {
  min-width: 0;
}

.hero-tagline {
  font-family: var(--serif);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(48px, 7.4vw, 104px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  max-width: 18ch;
  color: var(--ink);
  text-wrap: balance;
  font-variation-settings: "opsz" 72;
}

.hero-tagline .highlight {
  color: var(--accent);
  font-style: normal;
  font-weight: 400;
}

.hero-subtitle {
  margin-top: 36px;
  max-width: 56ch;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
  color: var(--dim);
  font-weight: 300;
}

.hero-ctas {
  margin-top: 48px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ----------------------- Hero fusion stage ------------------------- */
/* Right-side hero animation: three input thumbnails drift in, converge
   to a fusion core, then a finished character emerges. State machine
   driven by [data-fusion-state] on .hero-fusion (see js/hero-fusion.js).
   States: idle -> entering -> merging -> flash -> revealing -> holding -> exiting. */

.hero-fusion {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  justify-self: end;
  font-family: var(--mono);
  color: var(--ink);
}

.hf-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
}

.hf-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid var(--accent);
  opacity: 0.5;
  pointer-events: none;
}
.hf-corner-tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hf-corner-tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.hf-corner-bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.hf-corner-br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.hf-stage {
  position: absolute;
  inset: 32px;
  overflow: visible;
}

.hf-input {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(76px, 22%, 110px);
  aspect-ratio: 4 / 5;
  background: #111520;
  border: 1px solid rgba(217, 207, 185, 0.18);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
  transform: translate(-50%, -50%) translate(var(--tx, 0px), var(--ty, 0px)) rotate(var(--rot, 0deg)) scale(0.85);
  opacity: 0;
  transition:
    transform 1100ms cubic-bezier(0.55, 0.05, 0.25, 1),
    opacity 600ms ease;
  will-change: transform, opacity;
}
.hf-input::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 13, 21, 0) 60%, rgba(10, 13, 21, 0.5) 100%);
  pointer-events: none;
}
.hf-input img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.02);
}
.hf-input .hf-input-swatch {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.hf-input .hf-input-swatch > span { display: block; }

/* Fusion moment — a sharp vertical filament instead of a soft radial bloom.
   Tall, thin, gold; snaps in at flash, decays fast. Sparks (JS-spawned)
   complete the moment of impact. */
.hf-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.5px;
  height: 0%;
  transform: translate(-50%, -50%);
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(232, 192, 120, 0.9) 35%,
    rgba(255, 232, 178, 1)   50%,
    rgba(232, 192, 120, 0.9) 65%,
    transparent 100%
  );
  filter: drop-shadow(0 0 6px rgba(232, 192, 120, 0.85))
          drop-shadow(0 0 18px rgba(232, 192, 120, 0.35));
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 220ms ease,
    height  600ms cubic-bezier(0.7, 0.05, 0.3, 1),
    width   140ms ease;
  will-change: height, opacity, width;
}

.hf-spark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(255, 232, 178, 1);
  box-shadow: 0 0 6px rgba(232, 192, 120, 0.9);
  pointer-events: none;
}

.hf-output {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56%;
  aspect-ratio: 544 / 1080;
  transform: translate(-50%, -50%) scale(0.62);
  opacity: 0;
  border: 1px solid var(--faint);
  background: #0b0f18;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  transition:
    transform 1100ms cubic-bezier(0.2, 0.7, 0.3, 1),
    opacity 1000ms ease;
  will-change: transform, opacity;
}
.hf-output::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(201, 162, 90, 0.18);
  pointer-events: none;
  z-index: 4;
}
.hf-output img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: blur(0) saturate(1) brightness(1);
  transform: scale(1);
}

/* Diffusion-style reveal: noise grain over the character, plus a thin
   gold scan line sweeping top-to-bottom. The image deblurs as the scan
   passes — i.e. the same grain-to-image transition a generation model
   shows when it converges. */
.hf-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.3' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.93  0 0 0 0 0.85  0 0 0 0 0.62  0 0 0 1.4 -0.55'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}
.hf-scan {
  position: absolute;
  left: -2%;
  right: -2%;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(232, 192, 120, 0.95) 50%, transparent 100%);
  box-shadow: 0 0 12px 2px rgba(232, 192, 120, 0.55);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}

/* State transitions ------------------------------------------------- */
.hero-fusion[data-fusion-state="entering"] .hf-input {
  opacity: 1;
  transform: translate(-50%, -50%) translate(var(--tx, 0px), var(--ty, 0px)) rotate(var(--rot, 0deg)) scale(1);
}
.hero-fusion[data-fusion-state="merging"] .hf-input {
  opacity: 0.55;
  transform: translate(-50%, -50%) scale(0.16) rotate(0deg);
}
.hero-fusion[data-fusion-state="flash"] .hf-input {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.05) rotate(0deg);
  transition-duration: 250ms;
}
/* Filament: grow tall during merging, snap brighter on flash, fade fast. */
.hero-fusion[data-fusion-state="merging"] .hf-core {
  opacity: 0.85;
  height: 70%;
}
.hero-fusion[data-fusion-state="flash"] .hf-core {
  opacity: 1;
  height: 100%;
  width: 4px;
  transition-duration: 90ms;
}
.hero-fusion[data-fusion-state="revealing"] .hf-core,
.hero-fusion[data-fusion-state="holding"] .hf-core,
.hero-fusion[data-fusion-state="exiting"] .hf-core {
  opacity: 0;
  height: 100%;
  transition-duration: 320ms;
}

.hero-fusion[data-fusion-state="revealing"] .hf-output,
.hero-fusion[data-fusion-state="holding"] .hf-output {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.hero-fusion[data-fusion-state="exiting"] .hf-output {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.94);
  transition-duration: 700ms;
}

/* Image deblurs from a noisy/desaturated state to a clean render —
   the canonical "AI diffusion" look. Tied to the revealing state. */
.hero-fusion[data-fusion-state="revealing"] .hf-output img {
  animation: hf-img-resolve 1000ms cubic-bezier(0.35, 0, 0.2, 1) forwards;
}
@keyframes hf-img-resolve {
  0%   { filter: blur(14px) saturate(0.35) brightness(1.25); transform: scale(1.05); }
  55%  { filter: blur(4px)  saturate(0.7)  brightness(1.08); }
  100% { filter: blur(0)    saturate(1)    brightness(1);    transform: scale(1); }
}

.hero-fusion[data-fusion-state="revealing"] .hf-noise {
  animation: hf-noise-decay 950ms cubic-bezier(0.4, 0, 0.3, 1) forwards;
}
@keyframes hf-noise-decay {
  0%   { opacity: 0.85; }
  60%  { opacity: 0.35; }
  100% { opacity: 0; }
}

.hero-fusion[data-fusion-state="revealing"] .hf-scan {
  animation: hf-scan-sweep 950ms cubic-bezier(0.5, 0, 0.3, 1) forwards;
}
@keyframes hf-scan-sweep {
  0%   { top: 0%;   opacity: 0; }
  10%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Meta caption below the frame */
.hf-meta {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--dim);
}
.hf-meta-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(201, 162, 90, 0.6);
}
.hf-meta-label { color: var(--ink); opacity: 0.85; }
.hf-meta-rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--faint), transparent); }
.hf-meta-num { color: var(--accent); }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-fusion { display: none; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #1a1305;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hot); border-color: var(--accent-hot); color: #1a1305; transform: translateY(-1px); }

.btn-ghost {
  color: var(--ink);
  border-color: var(--faint);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

.btn .arrow { display: inline-block; transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ----------------------- Problem --------------------------------- */
.problem-inner {
  text-align: center;
  max-width: 980px;
}
.problem-inner .eyebrow {
  justify-content: center;
}
.problem-inner .section-title {
  margin-left: auto;
  margin-right: auto;
  max-width: 22ch;
}
.problem-copy {
  margin-top: 40px;
  margin-left: auto;
  margin-right: auto;
  max-width: 62ch;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  color: var(--dim);
  font-weight: 300;
}

/* ----------------------- Secondary features ---------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 64px;
  border: 1px solid var(--line);
  border-right: none;
  border-bottom: none;
}

.feature {
  position: relative;
  background: var(--bg);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 220px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s ease;
  overflow: hidden;
}
/* Editorial number badge — top-right */
.feature::after {
  content: attr(data-num);
  position: absolute;
  top: 18px; right: 22px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--faint);
}
/* Hairline gold accent line, slides in from top on hover */
.feature::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 2px;
  height: 0;
  background: var(--accent);
  transition: height 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.feature:hover { background: var(--bg-elevated); }
.feature:hover::before { height: 100%; }

/* Icon row: icon + thin hairline filling remaining width — editorial composition */
.feature-icon-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.feature-icon-row::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.feature-icon {
  width: 28px;
  height: 28px;
  /* Icons are line-art SVGs with stroke="currentColor". Inverting the
     <img> flips the implicit black to bone-ivory against the dark bg. */
  filter: invert(1) brightness(1.05);
  opacity: 0.92;
  transition: opacity 0.3s ease;
}
.feature:hover .feature-icon { opacity: 1; }

.feature h3 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-premium {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 2px 6px;
  border-radius: 2px;
  font-weight: 400;
}

.feature p {
  color: var(--dim);
  font-size: 13.5px;
  line-height: 1.55;
  margin-top: auto;
}

/* ----------------------- Pricing --------------------------------- */
.pricing-sub {
  margin-top: 20px;
  color: var(--dim);
  font-size: 15px;
  max-width: 58ch;
}

.pricing-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.price-card {
  position: relative;
  padding: 32px 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color 0.25s ease;
}
.price-card:hover { border-color: var(--faint); }

.price-card.is-featured {
  border-color: var(--accent);
  background: var(--bg);
}

.price-badge {
  position: absolute;
  top: -9px; left: 18px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  background: var(--accent);
  color: #1a1305;
  padding: 3px 10px;
  border-radius: 2px;
}

.price-tier {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}

.price-credits {
  font-family: var(--serif);
  font-weight: 400;
  font-style: normal;
  font-size: 44px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}
.price-credits small {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 8px;
  font-weight: 400;
}

.price-amount {
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 300;
  letter-spacing: -0.01em;
}
.price-per {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.12em;
}

.price-rule {
  border-top: 1px solid var(--line);
  margin: 4px 0;
}

.price-btn {
  margin-top: auto;
  text-align: center;
  padding: 12px;
  border: 1px solid var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 2px;
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.price-btn:hover { border-color: var(--ink); }
.is-featured .price-btn { background: var(--accent); color: #1a1305; border-color: var(--accent); }
.is-featured .price-btn:hover { background: var(--accent-hot); border-color: var(--accent-hot); }

/* ----------------------- FAQ ------------------------------------- */
.faq-list {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  max-width: 900px;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 26px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: clamp(16px, 1.3vw, 19px);
  font-weight: 300;
  letter-spacing: -0.005em;
  color: var(--ink);
  transition: color 0.2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }

.faq .chev {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  position: relative;
  transition: transform 0.3s ease;
}
.faq .chev::before,
.faq .chev::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 1px;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.faq .chev::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.3s ease; }
.faq details[open] .chev::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq-answer {
  padding: 0 0 26px 0;
  color: var(--dim);
  font-size: 15px;
  line-height: 1.65;
  max-width: 68ch;
}

/* ----------------------- CTA final ------------------------------- */
.cta-final {
  text-align: center;
  background: var(--bg);
}
.cta-final .wrap { display: flex; flex-direction: column; align-items: center; }
.cta-final h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(40px, 5.6vw, 80px);
  letter-spacing: -0.02em;
  line-height: 1.02;
  max-width: 20ch;
  font-variation-settings: "opsz" 72;
}
.cta-final p {
  margin-top: 22px;
  color: var(--dim);
  font-size: clamp(15px, 1.3vw, 17px);
  max-width: 52ch;
}
.cta-final .btn { margin-top: 40px; }

/* ----------------------- Footer ---------------------------------- */
footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 2;
  background: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
  gap: 48px;
}

.footer-brand img, .footer-brand svg { height: 18px; width: auto; }
.footer-brand p {
  margin-top: 18px;
  color: var(--dim);
  font-size: 13px;
  max-width: 36ch;
  line-height: 1.55;
}

.footer-col h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 20px;
  font-weight: 400;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14px; color: var(--ink); }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  flex-wrap: wrap;
}
.footer-socials { display: flex; gap: 18px; }
.footer-socials a { color: var(--dim); }
.footer-socials a:hover { color: var(--ink); }

/* =================================================================
   Responsive breakpoints
   ================================================================= */

@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .nav.is-open .nav-links {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--bg);
    padding: 32px var(--gutter);
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }
  /* Option (b): keep CTA hidden when mobile nav opens — dropdown
     links already include "Start free" / "Login", so a separate
     pill CTA would only overlap the toggle button. */
  .nav.is-open .nav-cta { display: none; }

  .hero { padding-top: 128px; }
  .hero-tagline { font-size: clamp(40px, 10.5vw, 64px); }

  .features-grid { grid-template-columns: 1fr; }
  .feature { min-height: auto; }

  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { justify-content: flex-start; }
}

@media (max-width: 480px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
}

/* =================================================================
   Reduced motion
   ================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  html { scroll-behavior: auto; }
}
