/* ==========================================================================
   Lomelli - Warm Minimal, Italian editorial
   Palette: deep espresso, warm cream, terracotta, sage, gold
   ========================================================================== */

:root {
  /* ---- Palette ---- */
  --cream:         #FAF7F2;
  --cream-2:       #F5F1EA;
  --paper:         #EFE9DE;
  --espresso:      #2B1810;
  --espresso-2:    #3A2218;
  --ink-70:        rgba(43, 24, 16, 0.72);
  --ink-55:        rgba(43, 24, 16, 0.55);
  --ink-38:        rgba(43, 24, 16, 0.38);
  --ink-16:        rgba(43, 24, 16, 0.16);
  --ink-08:        rgba(43, 24, 16, 0.08);
  --ink-04:        rgba(43, 24, 16, 0.04);

  --terracotta:       #C65D3B;
  --terracotta-dark:  #A84E30;
  --terracotta-soft:  #DA7A5A;
  --sage:             #8A9A7B;
  --sage-deep:        #6E7F62;
  --gold:             #D4A017;
  --gold-soft:        #E4B947;

  /* ---- Typography ---- */
  --font-display: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* ---- Motion ---- */
  --ease-premium:  cubic-bezier(0.7, 0, 0.2, 1);
  --ease-overshoot:cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-natural:  cubic-bezier(0.4, 0, 0.2, 1);

  /* ---- Layout ---- */
  --container:  1220px;
  --container-narrow: 860px;
  --radius-sm:  8px;
  --radius:     12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  /* ---- Shadows - soft, low-contrast ---- */
  --shadow-sm:  0 1px 2px rgba(43, 24, 16, 0.06), 0 2px 6px rgba(43, 24, 16, 0.04);
  --shadow-md:  0 8px 24px rgba(43, 24, 16, 0.08), 0 2px 6px rgba(43, 24, 16, 0.04);
  --shadow-lg:  0 24px 60px rgba(43, 24, 16, 0.10), 0 4px 12px rgba(43, 24, 16, 0.06);
  --shadow-inset: inset 0 0 0 1px var(--ink-08);
}

/* ==========================================================================
   Reset + base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--espresso);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em; color: var(--espresso); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Full-page paper-grain noise overlay (subtle, premium) */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='280' height='280'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.168  0 0 0 0 0.094  0 0 0 0 0.063  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }
.container-narrow { max-width: var(--container-narrow); }

.section { padding: 120px 0; position: relative; z-index: 2; }

.section-head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.section-head .kicker { margin-bottom: 20px; }
.section-head .display { margin: 0 auto; }
.section-head .lead { margin-top: 20px; color: var(--ink-70); }

/* ==========================================================================
   Typography scale
   ========================================================================== */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.028em;
  color: var(--espresso);
}
.display em {
  font-style: italic;
  font-weight: 500;
  color: var(--terracotta);
  font-feature-settings: "ss01" on;
}
.display-sm {
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.022em;
}

.lead {
  font-size: clamp(17px, 1.2vw, 19px);
  line-height: 1.6;
  color: var(--ink-70);
  max-width: 52ch;
}
.lead-sm { font-size: 17px; max-width: 60ch; margin-left: auto; margin-right: auto; }

/* Kicker - small all-caps editorial label with dot */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-70);
}
.kicker-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(198, 93, 59, 0.18);
  animation: kicker-pulse 2.4s ease-in-out infinite;
}
@keyframes kicker-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(198, 93, 59, 0.14); }
  50%      { box-shadow: 0 0 0 6px rgba(198, 93, 59, 0.04); }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1;
  border: 1px solid transparent;
  transition: transform 220ms var(--ease-natural),
              box-shadow 220ms var(--ease-natural),
              background-color 180ms var(--ease-natural),
              color 180ms var(--ease-natural),
              border-color 180ms var(--ease-natural);
  cursor: pointer;
  white-space: nowrap;
  will-change: transform;
}
.btn-sm  { padding: 10px 18px; font-size: 14px; }
.btn-lg  { padding: 16px 30px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--terracotta);
  color: var(--cream);
  box-shadow: 0 6px 16px rgba(198, 93, 59, 0.24),
              0 1px 0 rgba(255, 255, 255, 0.14) inset;
}
.btn-primary:hover {
  background: var(--terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(168, 78, 48, 0.30),
              0 1px 0 rgba(255, 255, 255, 0.14) inset;
}

.btn-ghost {
  background: transparent;
  color: var(--espresso);
  border: 1px solid var(--ink-16);
}
.btn-ghost:hover {
  background: var(--ink-04);
  border-color: var(--ink-38);
  transform: translateY(-1px);
}

.btn-link {
  padding: 14px 4px;
  color: var(--espresso);
  position: relative;
}
.btn-link::after {
  content: "";
  position: absolute;
  left: 4px; right: 4px; bottom: 10px;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: left;
  transition: opacity 220ms var(--ease-natural), transform 280ms var(--ease-natural);
}
.btn-link:hover { color: var(--terracotta); }
.btn-link:hover::after { opacity: 1; transform: scaleX(1); background: var(--terracotta); }
.btn-link svg { transition: transform 240ms var(--ease-natural); }
.btn-link:hover svg { transform: translateX(4px); }

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 18px 0;
  background: rgba(250, 247, 242, 0.78);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms var(--ease-natural), background 300ms var(--ease-natural);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--espresso);
}
.brand-mark {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(43, 24, 16, 0.10));
}
.brand-word {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: 20px;
}
.nav-links a {
  font-size: 14.5px;
  color: var(--ink-70);
  font-weight: 500;
  padding: 6px 2px;
  position: relative;
  transition: color 180ms var(--ease-natural);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms var(--ease-natural);
}
.nav-links a:hover { color: var(--espresso); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  margin-left: auto;
}
.menu-toggle span {
  width: 22px; height: 1.5px;
  background: var(--espresso);
  transition: transform 240ms var(--ease-natural), opacity 240ms var(--ease-natural);
}
.menu-toggle.is-active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ==========================================================================
   HERO - the animated centerpiece
   ========================================================================== */

.hero {
  position: relative;
  min-height: 700px;
  padding: 80px 0 60px;
  overflow: hidden;
}
/* Soft radial wash behind the hero, pulls attention toward the stage */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 78% 40%, rgba(212, 160, 23, 0.10), transparent 70%),
    radial-gradient(50% 40% at 20% 70%, rgba(198, 93, 59, 0.06), transparent 75%);
  pointer-events: none;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 45fr 55fr;
  gap: 56px;
  align-items: center;
  min-height: calc(100vh - 220px);
}

.hero-copy { max-width: 560px; }
.hero-copy .kicker { margin-bottom: 28px; }

.hero-copy .display {
  font-size: clamp(48px, 5.6vw, 82px);
  line-height: 0.98;
  margin-bottom: 26px;
}

.hero-copy .lead { margin-bottom: 40px; max-width: 48ch; font-size: 19px; line-height: 1.55; }

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 14px;
  color: var(--ink-70);
}
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .check {
  width: 20px; height: 20px;
  display: inline-grid; place-items: center;
  border-radius: 50%;
  background: rgba(138, 154, 123, 0.22);
  color: var(--sage-deep);
  font-weight: 600;
  font-size: 11px;
}

/* --------------------------- Stage ---------------------------------- */

.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 580px;
}

.stage {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 5 / 6.2;
  perspective: 1200px;
  perspective-origin: center center;
  cursor: pointer;
}

.stage-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: camera-drift 12s ease-in-out infinite;
  will-change: transform;
}

/* Slow, zero-gravity float - always running */
@keyframes camera-drift {
  0%, 100% { transform: perspective(1200px) rotateY(-4deg) rotateX(-1.5deg) translateZ(0); }
  25%      { transform: perspective(1200px) rotateY(3deg)  rotateX(2deg)    translateZ(20px); }
  50%      { transform: perspective(1200px) rotateY(4deg)  rotateX(-1deg)   translateZ(10px); }
  75%      { transform: perspective(1200px) rotateY(-2deg) rotateX(1.5deg)  translateZ(16px); }
}
/* Pause the drift on hover so users can take it in */
.stage:hover .stage-inner { animation-play-state: paused; }

/* Frames - stacked, one visible at a time */
.frame {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.92);
  will-change: transform, opacity, filter;
  filter: drop-shadow(0 20px 40px rgba(43, 24, 16, 0.15));
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* Steady states */
.stage.showing-a .frame-a,
.stage.showing-b .frame-b {
  opacity: 1;
  transform: scale(1);
}

/* ---- Frame transitions ---- */

/* A -> B: frame-a gathers out, frame-b resolves in (staggered) */
.stage.t-ab .frame-a {
  animation: frame-gather-out 900ms var(--ease-premium) forwards;
}
.stage.t-ab .frame-b {
  animation: frame-resolve-in 900ms var(--ease-premium) 900ms forwards;
}

/* B -> A: same choreography in reverse */
.stage.t-ba .frame-b {
  animation: frame-gather-out 900ms var(--ease-premium) forwards;
}
.stage.t-ba .frame-a {
  animation: frame-resolve-in 900ms var(--ease-premium) 900ms forwards;
}

@keyframes frame-gather-out {
  0%   { opacity: 1; transform: scale(1);    filter: drop-shadow(0 20px 40px rgba(43, 24, 16, 0.15)) blur(0); }
  55%  { opacity: 1; transform: scale(1.08); filter: drop-shadow(0 10px 28px rgba(43, 24, 16, 0.10)) blur(0.5px); }
  100% { opacity: 0; transform: scale(1.10); filter: drop-shadow(0 4px 18px rgba(43, 24, 16, 0.06)) blur(3px); }
}
@keyframes frame-resolve-in {
  0%   { opacity: 0; transform: scale(0.92); filter: drop-shadow(0 0 40px rgba(212, 160, 23, 0.60)); }
  60%  { opacity: 1; transform: scale(1.02); filter: drop-shadow(0 10px 28px rgba(212, 160, 23, 0.24)); }
  100% { opacity: 1; transform: scale(1);    filter: drop-shadow(0 20px 40px rgba(43, 24, 16, 0.15)); }
}

/* ---- Glow - pulses from center during each transition ---- */
.stage-glow {
  position: absolute;
  left: 50%; top: 50%;
  width: 78%; aspect-ratio: 1;
  margin: 0;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle,
                rgba(212, 160, 23, 0.55) 0%,
                rgba(212, 160, 23, 0.18) 38%,
                transparent 72%);
  filter: blur(6px);
  will-change: transform, opacity;
  mix-blend-mode: screen;
}
.stage.t-ab .stage-glow,
.stage.t-ba .stage-glow {
  animation: glow-pulse 1300ms var(--ease-premium) forwards;
}
@keyframes glow-pulse {
  0%   { opacity: 0;    transform: translate(-50%, -50%) scale(0); }
  35%  { opacity: 0.75; transform: translate(-50%, -50%) scale(1.05); }
  70%  { opacity: 0.35; transform: translate(-50%, -50%) scale(1.20); }
  100% { opacity: 0;    transform: translate(-50%, -50%) scale(1.35); }
}

/* ---- Particle layer + individual particle ---- */
.particle-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}
.particle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--size, 4px);
  height: var(--size, 4px);
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-soft) 0%, var(--gold) 60%, transparent 100%);
  box-shadow:
    0 0 6px rgba(212, 160, 23, 0.7),
    0 0 14px rgba(212, 160, 23, 0.35);
  opacity: 0;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
  animation: particle-burst 1200ms var(--ease-overshoot) forwards;
  animation-delay: var(--delay, 0ms);
}
@keyframes particle-burst {
  0%   { opacity: 0;   transform: translate(-50%, -50%) rotate(var(--angle)) translateX(0)                             scale(0.2); }
  20%  { opacity: 1; }
  55%  { opacity: 1;   transform: translate(-50%, -50%) rotate(var(--angle)) translateX(var(--distance))               scale(1); }
  85%  { opacity: 0.4; transform: translate(-50%, -50%) rotate(var(--angle)) translateX(calc(var(--distance) * 0.6))   scale(0.7); }
  100% { opacity: 0;   transform: translate(-50%, -50%) rotate(var(--angle)) translateX(0)                             scale(0.3); }
}

/* ---- Editorial caption under the stage ---- */
.stage-caption {
  position: absolute;
  left: 50%;
  bottom: -22px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-55);
  white-space: nowrap;
}
.stage-caption em { font-style: normal; color: var(--terracotta); letter-spacing: 0; }
.stage-caption-line {
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--ink-38);
}

/* ==========================================================================
   Reveal on load - staggered entrance
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 700ms var(--ease-premium), transform 700ms var(--ease-premium);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Trust bar (below hero)
   ========================================================================== */

.trust-bar {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 60px auto 0;
  padding: 28px 32px 0;
  border-top: 1px solid var(--ink-08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.trust-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-55);
}
.trust-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
  justify-content: center;
}
.trust-logos span {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink-55);
  font-style: italic;
  transition: color 200ms var(--ease-natural);
}
.trust-logos span:hover { color: var(--espresso); }

/* ==========================================================================
   Sections
   ========================================================================== */

.section-demo { background: var(--cream-2); }
.section-problem { background: var(--cream); }
.section-how { background: var(--cream-2); }
.section-features { background: var(--cream); }
.section-verticals { background: var(--cream-2); }
.section-pricing { background: var(--cream); }
.section-faq { background: var(--cream-2); }
.section-contact { background: var(--cream); }
.section-cta { background: var(--cream-2); padding-bottom: 160px; }

/* Demo */
.demo-frame {
  background: var(--cream);
  border: 1px solid var(--ink-08);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 960px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}
/* Crop encoded pillarboxing: ultrawide frame → ~16:9 visible UI */
.demo-video-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin: 0 auto;
  width: 100%;
  max-height: min(72vh, 640px);
  aspect-ratio: 16 / 9;
  background: var(--cream);
}
.demo-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
.demo-disclaimer {
  margin: 20px auto 0;
  text-align: center;
  color: var(--ink-55);
  font-size: 13.5px;
  max-width: 600px;
}

/* Problem - stats */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.stat {
  padding: 44px 32px;
  border: 1px solid var(--ink-08);
  border-radius: var(--radius-lg);
  background: var(--cream);
  text-align: center;
  transition: transform 260ms var(--ease-natural), box-shadow 260ms var(--ease-natural);
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(54px, 5.2vw, 72px);
  font-weight: 400;
  line-height: 1;
  color: var(--terracotta);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.stat-num .stat-suffix { color: var(--ink-38); font-size: 0.6em; }
.stat p { color: var(--ink-70); font-size: 15px; }

/* How it works - steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
  max-width: 1100px;
  margin: 0 auto;
}
.step {
  padding: 40px 32px 44px;
  border: 1px solid var(--ink-08);
  border-radius: var(--radius-lg);
  background: var(--cream);
  position: relative;
  transition: transform 260ms var(--ease-natural), box-shadow 260ms var(--ease-natural);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 48px;
  font-style: italic;
  font-weight: 400;
  color: var(--terracotta);
  line-height: 1;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}
.step p { color: var(--ink-70); font-size: 15.5px; line-height: 1.55; }

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1160px;
  margin: 0 auto;
}
.feature {
  padding: 36px 32px;
  background: var(--cream);
  border: 1px solid var(--ink-08);
  border-radius: var(--radius-lg);
  transition: transform 260ms var(--ease-natural), box-shadow 260ms var(--ease-natural), border-color 200ms var(--ease-natural);
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--ink-16); }
.feature-glyph {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(198, 93, 59, 0.10);
  color: var(--terracotta);
  display: grid; place-items: center;
  margin-bottom: 20px;
  transition: background 220ms var(--ease-natural);
}
.feature:hover .feature-glyph { background: rgba(198, 93, 59, 0.18); }
.feature h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}
.feature p { color: var(--ink-70); font-size: 15.5px; }

/* Verticals */
.vertical-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1160px;
  margin: 0 auto;
}
.vertical {
  padding: 36px 32px;
  background: var(--cream);
  border: 1px solid var(--ink-08);
  border-radius: var(--radius-lg);
  transition: transform 260ms var(--ease-natural), box-shadow 260ms var(--ease-natural);
}
.vertical:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.vertical-tag {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(138, 154, 123, 0.20);
  color: var(--sage-deep);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.vertical h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: -0.018em;
}
.vertical p { color: var(--ink-70); font-size: 15.5px; margin-bottom: 20px; }
.vertical ul { display: flex; flex-direction: column; gap: 10px; }
.vertical li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-70);
  font-size: 14.5px;
  line-height: 1.5;
}
.vertical li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 12px; height: 1px;
  background: var(--terracotta);
}

/* Pricing */
.pricing-toggle {
  display: inline-flex;
  padding: 4px;
  background: var(--cream-2);
  border: 1px solid var(--ink-08);
  border-radius: 999px;
  margin: 0 auto 48px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  gap: 0;
}
.pricing-toggle-btn {
  position: relative;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-70);
  border-radius: 999px;
  transition: color 200ms var(--ease-natural), background 220ms var(--ease-natural);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pricing-toggle-btn.is-active {
  background: var(--espresso);
  color: var(--cream);
}
.pricing-toggle-badge {
  background: var(--gold);
  color: var(--espresso);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.pricing-toggle-btn.is-active .pricing-toggle-badge { background: var(--gold-soft); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
  align-items: stretch;
}
.price-card {
  padding: 40px 32px 36px;
  background: var(--cream);
  border: 1px solid var(--ink-08);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 260ms var(--ease-natural), box-shadow 260ms var(--ease-natural);
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.price-card-featured {
  background: var(--espresso);
  color: var(--cream);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}
.price-card-featured:hover { transform: translateY(-12px); }
.price-card-featured .price-name,
.price-card-featured .price-amount,
.price-card-featured .price-tagline,
.price-card-featured .price-billed,
.price-card-featured .price-features li { color: var(--cream); }
.price-card-featured .price-tagline { color: rgba(250, 247, 242, 0.70); }
.price-card-featured .price-billed { color: rgba(250, 247, 242, 0.60); }
.price-card-featured .price-features li::before { background: var(--terracotta-soft); }

.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  background: var(--terracotta);
  color: var(--cream);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(198, 93, 59, 0.35);
}
.price-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 6px;
}
.price-tagline {
  color: var(--ink-70);
  font-size: 14.5px;
  margin-bottom: 24px;
  min-height: 40px;
}
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
  font-family: var(--font-display);
  margin-bottom: 6px;
}
.price-currency { font-size: 22px; font-weight: 400; opacity: 0.7; }
.price-number { font-size: 56px; font-weight: 400; letter-spacing: -0.03em; line-height: 1; }
.price-period { font-family: var(--font-body); font-size: 15px; font-weight: 400; color: var(--ink-55); margin-left: 4px; }
.price-strike {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-55);
  text-decoration: line-through;
  margin-right: 8px;
}
.price-billed {
  font-size: 13px;
  color: var(--ink-55);
  margin-bottom: 8px;
}
.price-savings {
  font-size: 13px;
  color: var(--sage-deep);
  font-weight: 500;
  margin-bottom: 20px;
}
.price-card-featured .price-savings { color: var(--gold-soft); }
.price-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0 28px;
  flex: 1;
}
.price-features li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--ink-70);
  line-height: 1.5;
}
.price-features li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 12px; height: 1px;
  background: var(--terracotta);
}
.price-card-featured .btn-primary {
  background: var(--terracotta);
  color: var(--cream);
}
.price-card-featured .btn-ghost {
  border-color: rgba(250, 247, 242, 0.22);
  color: var(--cream);
}
.price-card-featured .btn-ghost:hover { background: rgba(250, 247, 242, 0.08); border-color: rgba(250, 247, 242, 0.4); }

.pricing-footnote {
  text-align: center;
  color: var(--ink-55);
  font-size: 14px;
  margin-top: 32px;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--ink-08);
}
.faq-item {
  border-bottom: 1px solid var(--ink-08);
}
.faq-item summary {
  list-style: none;
  padding: 26px 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--espresso);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: color 180ms var(--ease-natural);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  width: 14px; height: 14px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232B1810' stroke-width='2' stroke-linecap='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 260ms var(--ease-natural);
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item summary:hover { color: var(--terracotta); }
.faq-item p {
  padding: 0 0 28px;
  color: var(--ink-70);
  font-size: 16px;
  line-height: 1.65;
  max-width: 72ch;
}

/* ==========================================================================
   Contact section
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  max-width: 1120px;
  margin: 0 auto;
  align-items: start;
}
.contact-info .kicker { margin-bottom: 20px; }
.contact-info .display { margin-bottom: 16px; }
.contact-info .lead { margin-bottom: 36px; max-width: 42ch; }

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 36px;
}
.contact-list li {
  padding: 20px 22px;
  border: 1px solid var(--ink-08);
  border-radius: var(--radius);
  background: var(--cream-2);
  display: grid;
  grid-template-columns: 130px 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
  row-gap: 2px;
  transition: border-color 200ms var(--ease-natural), background 200ms var(--ease-natural);
}
.contact-list li:hover { border-color: var(--ink-16); background: var(--cream); }
.contact-list-label {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-55);
  align-self: center;
}
.contact-list-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--espresso);
  align-self: center;
  transition: color 180ms var(--ease-natural);
}
a.contact-list-value:hover { color: var(--terracotta); }
.contact-list-value--plain { font-family: var(--font-body); font-size: 16px; font-weight: 500; }
.contact-list-hint {
  grid-column: 2;
  font-size: 13px;
  color: var(--ink-55);
  line-height: 1.5;
}
.contact-list-hint a { color: var(--terracotta); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }

.security-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(138, 154, 123, 0.14);
  color: var(--sage-deep);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.security-badge svg { opacity: 0.9; }

/* ---- Form ---- */
.contact-form {
  padding: 44px 44px 40px;
  background: var(--cream-2);
  border: 1px solid var(--ink-08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-70);
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--espresso);
  background: var(--cream);
  border: 1px solid var(--ink-16);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 180ms var(--ease-natural), box-shadow 180ms var(--ease-natural), background 180ms var(--ease-natural);
  -webkit-appearance: none;
  appearance: none;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--ink-38); }
.form-field input:hover,
.form-field textarea:hover { border-color: var(--ink-38); }
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--terracotta);
  background: var(--cream);
  box-shadow: 0 0 0 4px rgba(198, 93, 59, 0.12);
}
.form-field textarea { resize: vertical; min-height: 128px; }
.form-field--hp {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.contact-form .btn { margin-top: 6px; }
.form-note {
  font-size: 12.5px;
  color: var(--ink-55);
  line-height: 1.55;
}
.form-note a { color: var(--terracotta); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.form-status {
  font-size: 13.5px;
  min-height: 1.2em;
  margin: 0;
}
.form-status--ok  { color: var(--sage-deep); }
.form-status--err { color: #B33A25; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-list li { grid-template-columns: 1fr; row-gap: 6px; }
  .contact-list-hint { grid-column: 1; }
  .contact-form { padding: 32px 24px; }
}

/* Final CTA */
.cta-frame {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 88px 56px;
  background:
    radial-gradient(70% 100% at 50% 0%, rgba(212, 160, 23, 0.08), transparent 70%),
    var(--espresso);
  color: var(--cream);
  border-radius: var(--radius-xl);
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-frame::before {
  content: "";
  position: absolute;
  top: -30%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(198, 93, 59, 0.25), transparent 70%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 2; }
.cta-frame .kicker { color: var(--gold-soft); margin-bottom: 20px; justify-content: center; display: inline-flex; }
.cta-frame .kicker-dot { background: var(--gold); box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.25); }
.cta-frame .display { color: var(--cream); margin-bottom: 18px; }
.cta-frame .display em { color: var(--terracotta-soft); }
.cta-frame .lead { color: rgba(250, 247, 242, 0.78); margin: 0 auto 32px; }
.cta-actions { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 20px; }
.cta-frame .btn-ghost { border-color: rgba(250, 247, 242, 0.22); color: var(--cream); }
.cta-frame .btn-ghost:hover { background: rgba(250, 247, 242, 0.08); border-color: rgba(250, 247, 242, 0.4); }
.cta-footnote {
  color: rgba(250, 247, 242, 0.55);
  font-size: 13px;
  letter-spacing: 0.06em;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--cream-2);
  border-top: 1px solid var(--ink-08);
  padding: 48px 0 32px;
  margin-top: 0;
  position: relative;
  z-index: 2;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--ink-08);
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-word { font-family: var(--font-display); font-size: 20px; font-weight: 500; }
.footer-brand p { color: var(--ink-55); font-size: 13.5px; margin-top: 2px; }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a {
  font-size: 14px;
  color: var(--ink-70);
  transition: color 180ms var(--ease-natural);
}
.footer-nav a:hover { color: var(--terracotta); }
.footer-copy { padding-top: 20px; font-size: 13px; color: var(--ink-55); }

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

@media (max-width: 1024px) {
  .section { padding: 96px 0; }
  .hero-inner { gap: 32px; }
  .stat-row, .steps, .feature-grid, .vertical-grid, .pricing-grid { gap: 20px; }
}

@media (max-width: 768px) {
  .container, .nav-inner, .hero-inner, .trust-bar { padding-left: 20px; padding-right: 20px; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--cream); border-top: 1px solid var(--ink-08); padding: 12px 20px 20px; }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--ink-04); }
  .nav-links a:last-child { border-bottom: none; }
  .menu-toggle { display: inline-flex; }
  .nav-right .btn { display: none; }

  .hero { padding: 40px 0 40px; min-height: auto; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    min-height: auto;
  }
  .hero-stage { order: -1; min-height: 420px; }
  .stage { width: min(100%, 420px); }
  .hero-copy { max-width: 100%; }
  .hero-copy .display { font-size: 48px; line-height: 1.02; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }

  .section { padding: 72px 0; }
  .section-head { margin-bottom: 44px; }
  .display-sm { font-size: 34px; }

  .stat-row, .steps, .feature-grid, .vertical-grid, .pricing-grid { grid-template-columns: 1fr; }
  .price-card-featured { transform: translateY(0); }
  .price-card-featured:hover { transform: translateY(-4px); }

  .cta-frame { padding: 60px 28px; }
  .trust-logos { gap: 24px; }
  .trust-logos span { font-size: 15px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero-copy .display { font-size: 40px; line-height: 1.04; }
  .display-sm { font-size: 28px; line-height: 1.1; }
  .faq-item summary { font-size: 18px; padding: 20px 0; }
  .faq-item p { padding-bottom: 20px; font-size: 15px; }
  .stat { padding: 32px 20px; }
  .feature, .vertical, .step, .price-card { padding: 28px 22px; }
  .section { padding: 60px 0; }
  .hero-stage { min-height: 360px; }
  .stage { aspect-ratio: 5 / 5.6; }
  .cta-frame { padding: 48px 22px; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .stage-inner { animation: none; transform: none; }
  .kicker-dot { animation: none; }

  /* Simple 0.4s crossfade, no particles, no glow, no scale */
  .stage .frame { transition: opacity 400ms ease; }
  .stage.showing-a .frame-a, .stage.showing-b .frame-b { opacity: 1; transform: none; }
  .stage.showing-a .frame-b, .stage.showing-b .frame-a { opacity: 0; transform: none; }
  .stage.t-ab .frame-a, .stage.t-ba .frame-b { animation: none; opacity: 0; transform: none; transition: opacity 400ms ease; }
  .stage.t-ab .frame-b, .stage.t-ba .frame-a { animation: none; opacity: 1; transform: none; transition: opacity 400ms ease; }
  .stage-glow, .particle { display: none !important; }

  .reveal { opacity: 1; transform: none; }
}
