/* ==========================================================================
   Recibase — marketing site
   Warm editorial-minimal: cream & white surfaces, single orange accent,
   Fraunces display serif + Instrument Sans body.
   ========================================================================== */

:root {
  /* Brand (mirrors recibase-ui src/theme/colors.ts) */
  --brand: #e85d26;
  --brand-dark: #c74d1f;
  --brand-light: #ff7a45;
  --cream: #fff8f5;
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --orange-200: #fed7aa;

  --ink: #171717;
  --ink-soft: #404040;
  --ink-mute: #737373;
  --line: #e5e5e5;
  --paper: #ffffff;

  --green: #16a34a;

  /* Error surface — mirrors recibase-ui status.errorBg and red.200 / red.700 */
  --error-bg: #fef2f2;
  --error-border: #fecaca;
  --error-ink: #b91c1c;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Instrument Sans", -apple-system, "Segoe UI", sans-serif;

  --radius: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 1px 2px rgba(23, 23, 23, 0.04), 0 12px 32px -12px rgba(199, 77, 31, 0.18);
  --shadow-pop: 0 2px 4px rgba(23, 23, 23, 0.05), 0 24px 48px -16px rgba(199, 77, 31, 0.28);

  --wrap: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* subtle paper grain over everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.02 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

::selection { background: var(--orange-200); color: var(--ink); }

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-variation-settings: "SOFT" 40, "WONK" 1;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-dark);
}
.kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

.lede { font-size: 19px; color: var(--ink-soft); max-width: 56ch; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand-light), var(--brand-dark));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 17px;
  box-shadow: 0 4px 12px -4px rgba(199, 77, 31, 0.5);
}
/* The mark ships as white-on-transparent so it sits inside the gradient chip
   above rather than carrying its own background. */
.logo-mark img { width: 20px; height: 20px; display: block; }

.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--ink-soft); transition: color 0.15s; }
.nav-links a:hover { color: var(--brand-dark); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(199, 77, 31, 0.6);
}
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 12px 24px -8px rgba(199, 77, 31, 0.65); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero { position: relative; padding: 84px 0 40px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(44px, 6vw, 74px);
  margin: 18px 0 22px;
}
.hero h1 em {
  font-style: italic;
  color: var(--brand);
  font-variation-settings: "SOFT" 80, "WONK" 1;
}

.hero .lede { margin-bottom: 34px; }

.store-badges { display: flex; flex-wrap: wrap; gap: 14px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  padding: 10px 20px 10px 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 10px 24px -12px rgba(23, 23, 23, 0.5);
}
.badge:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(23, 23, 23, 0.55); }
.badge svg { width: 26px; height: 26px; }
.badge small { display: block; font-size: 10.5px; opacity: 0.75; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.2; }
.badge strong { display: block; font-size: 17px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.badge.coming { position: relative; }
.badge .soon-tag {
  position: absolute;
  top: -9px;
  right: -8px;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 999px;
}

.hero-note { margin-top: 18px; font-size: 14px; color: var(--ink-mute); }
.hero-note strong { color: var(--green); font-weight: 600; }

/* Hero demo: link pill transforming into a recipe card */

.hero-demo { position: relative; padding: 12px 0 12px 12px; }

.demo-glow {
  position: absolute;
  inset: -8% -12%;
  background:
    radial-gradient(52% 46% at 62% 38%, rgba(255, 122, 69, 0.22), transparent 70%),
    radial-gradient(40% 36% at 30% 78%, rgba(232, 93, 38, 0.14), transparent 70%);
  filter: blur(4px);
  z-index: 0;
}

.link-pill {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px dashed var(--orange-200);
  border-radius: 999px;
  padding: 12px 20px;
  width: fit-content;
  max-width: 100%;
  font-size: 14px;
  color: var(--ink-mute);
  box-shadow: var(--shadow-card);
  animation: pill-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.link-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); animation: pulse 1.8s ease-in-out infinite; }
.link-pill code { font-family: ui-monospace, "SF Mono", monospace; font-size: 13px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.demo-arrow {
  position: relative;
  z-index: 2;
  margin: 10px 0 10px 34px;
  color: var(--brand);
  animation: fade-up 0.7s 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.recipe-card {
  position: relative;
  z-index: 2;
  background: #fff;
  border: 1px solid var(--orange-100);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow-pop);
  animation: card-in 0.9s 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.recipe-card::after {
  /* stacked-card depth */
  content: "";
  position: absolute;
  inset: 14px -10px -10px 14px;
  border-radius: var(--radius-lg);
  background: var(--orange-50);
  border: 1px solid var(--orange-100);
  z-index: -1;
}

.rc-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 6px; }
.rc-title { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.rc-save {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--orange-50);
  color: var(--brand);
  border: 1px solid var(--orange-100);
}

.rc-meta { display: flex; gap: 14px; font-size: 13px; color: var(--ink-mute); margin-bottom: 18px; }
.rc-meta span { display: inline-flex; align-items: center; gap: 5px; }

.rc-section { font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-dark); margin-bottom: 9px; }

.rc-ingredients { display: grid; gap: 7px; margin-bottom: 18px; font-size: 14.5px; color: var(--ink-soft); }
.rc-ingredients li { display: flex; align-items: baseline; gap: 9px; }
.rc-ingredients li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 2px; background: var(--brand-light); transform: translateY(-2px) rotate(45deg); }
.rc-ingredients b { color: var(--ink); font-weight: 600; }

.rc-steps { display: grid; gap: 9px; font-size: 14.5px; color: var(--ink-soft); counter-reset: step; }
.rc-steps li { display: flex; gap: 11px; }
.rc-steps li::before {
  counter-increment: step;
  content: counter(step);
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  transform: translateY(2px);
}

.rc-foot { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ink-mute); }
.rc-foot .chip { background: var(--orange-50); border: 1px solid var(--orange-100); color: var(--brand-dark); border-radius: 999px; padding: 4px 12px; font-weight: 600; font-size: 12px; }

@keyframes pill-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes card-in { from { opacity: 0; transform: translateY(22px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* --------------------------------------------------------------------------
   Sources marquee
   -------------------------------------------------------------------------- */

.sources { padding: 44px 0 10px; }
.sources-inner {
  border-block: 1px solid var(--line);
  padding: 18px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee { display: flex; gap: 56px; width: max-content; animation: marquee 26s linear infinite; }
.marquee span {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 56px;
  white-space: nowrap;
}
.marquee span::after { content: "◆"; font-size: 9px; color: var(--orange-200); }
.marquee span svg { width: 30px; height: 30px; flex: none; margin-right: -42px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Platforms
   -------------------------------------------------------------------------- */

.platform-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 48px 72px;
  margin-top: 54px;
}
.platform {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-width: 110px;
}
.platform svg { width: 64px; height: 64px; }
.platform b {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}
.platform small {
  font-size: 14px;
  color: var(--ink-mute);
  margin-top: -8px;
}
@media (max-width: 640px) {
  .platform-grid { gap: 36px 40px; }
  .platform { min-width: 88px; }
  .platform svg { width: 52px; height: 52px; }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

section.block { padding: 92px 0; }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(32px, 4.2vw, 48px); margin: 16px 0 14px; }

/* How it works */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  background: #fff;
  border: 1px solid var(--orange-100);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  position: relative;
  box-shadow: var(--shadow-card);
}
.step-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 44px;
  color: var(--orange-200);
  line-height: 1;
  margin-bottom: 14px;
}
.step h3 { font-size: 22px; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--ink-soft); }

/* --- Step vignettes: small CSS-only scenes, one per step --- */

.step-viz { height: 78px; display: flex; align-items: center; margin: 2px 0 16px; }

/* 01 — a link typing itself into a pill */
.sv-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px dashed var(--orange-200);
  border-radius: 999px;
  padding: 9px 14px;
  background: #fff;
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 12px;
  color: var(--ink-mute);
}
.sv-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); animation: pulse 1.8s ease-in-out infinite; flex: none; }
.sv-pill code { overflow: hidden; white-space: nowrap; animation: sv-type 5s steps(20, end) infinite; }
.sv-caret { width: 1.5px; height: 14px; background: var(--brand); animation: sv-blink 0.9s steps(2, start) infinite; flex: none; }
@keyframes sv-type { 0%, 6% { width: 0; } 52%, 94% { width: 20ch; } 100% { width: 0; } }
@keyframes sv-blink { 50% { opacity: 0; } }

/* 02 — audio bars becoming structured text */
.sv-listen { display: flex; align-items: center; gap: 14px; }
.sv-bars { display: flex; align-items: center; gap: 4px; height: 44px; }
.sv-bars i {
  width: 5px; height: 38px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--brand-light), var(--brand-dark));
  animation: v-bounce 1.1s ease-in-out infinite;
  transform-origin: center;
}
.sv-bars i:nth-child(2) { animation-delay: 0.12s; }
.sv-bars i:nth-child(3) { animation-delay: 0.24s; }
.sv-bars i:nth-child(4) { animation-delay: 0.36s; }
.sv-bars i:nth-child(5) { animation-delay: 0.48s; }
.sv-arrow { color: var(--orange-200); flex: none; }
.sv-lines { display: flex; flex-direction: column; gap: 6px; }
.sv-lines i { height: 7px; border-radius: 4px; background: var(--orange-100); animation: sv-line 3.3s ease-in-out infinite; }
.sv-lines i:nth-child(1) { width: 74px; }
.sv-lines i:nth-child(2) { width: 56px; animation-delay: 0.35s; }
.sv-lines i:nth-child(3) { width: 66px; animation-delay: 0.7s; }
@keyframes sv-line { 0%, 10% { opacity: 0.3; } 30%, 80% { opacity: 1; } 95%, 100% { opacity: 0.3; } }

/* 03 — a floating mini recipe card earning its check */
.sv-card {
  position: relative;
  width: 122px;
  padding: 13px 14px;
  background: #fff;
  border: 1px solid var(--orange-100);
  border-radius: 12px;
  box-shadow: 0 12px 24px -14px rgba(199, 77, 31, 0.45);
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: v-rise 3.4s ease-in-out infinite;
}
.sv-card b { height: 9px; width: 68%; border-radius: 5px; background: var(--brand); opacity: 0.85; }
.sv-card i { height: 6px; border-radius: 4px; background: var(--orange-100); }
.sv-card i:nth-of-type(2) { width: 84%; }
.sv-card i:nth-of-type(3) { width: 62%; }
.sv-badge {
  position: absolute;
  top: -9px; right: -9px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px -4px rgba(22, 163, 74, 0.55);
  animation: v-pop 3.6s ease-in-out infinite;
}

/* checkmark micro-bullets */
.step-points {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 7px;
  font-size: 14px;
  color: var(--ink-soft);
}
.step-points li { display: flex; align-items: baseline; gap: 9px; }
.step-points li::before { content: "✓"; color: var(--green); font-weight: 700; font-size: 13px; flex: none; }

/* Features */

.features { background: #fff; border-block: 1px solid var(--orange-100); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--line); gap: 1px; }
.feature {
  background: #fff;
  padding: 34px 30px;
  transition: background 0.2s ease;
}
.feature:hover { background: var(--orange-50); }
.feature.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  background: linear-gradient(120deg, var(--orange-50), #fff 55%);
}
.feature.featured .feature-icon { width: 56px; height: 56px; border-radius: 16px; margin: 0; background: #fff; }
.feature.featured h3 { font-size: 24px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.feature.featured p { max-width: 68ch; }
.feature-plan-note { margin-top: 10px; font-size: 13px; color: var(--ink-mute); font-style: italic; }

/* --- Feature vignettes: small CSS-only demos, one per card --- */

.vignette { height: 76px; display: flex; align-items: center; margin-bottom: 16px; }

/* link pill → check */
.v-link .vp {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px dashed var(--orange-200);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 12px;
  color: var(--ink-mute);
  background: #fff;
}
.v-link .vp-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); animation: pulse 1.8s ease-in-out infinite; }
.v-link .vp-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  animation: v-pop 3.6s ease-in-out infinite;
}

/* audio waveform */
.v-wave { gap: 5px; }
.v-wave span {
  width: 6px; height: 44px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--brand-light), var(--brand-dark));
  animation: v-bounce 1.1s ease-in-out infinite;
  transform-origin: center;
}
.v-wave span:nth-child(2) { animation-delay: 0.12s; }
.v-wave span:nth-child(3) { animation-delay: 0.24s; }
.v-wave span:nth-child(4) { animation-delay: 0.36s; }
.v-wave span:nth-child(5) { animation-delay: 0.48s; }
.v-wave span:nth-child(6) { animation-delay: 0.6s; }
.v-wave span:nth-child(7) { animation-delay: 0.72s; }

/* library: stacked cards + bookmark */
.v-lib { position: relative; width: 88px; height: 62px; }
.v-lib i {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--orange-100);
  box-shadow: 0 4px 10px -6px rgba(199, 77, 31, 0.3);
}
.v-lib i:nth-child(1) { transform: translate(10px, 8px) rotate(3deg); opacity: 0.55; }
.v-lib i:nth-child(2) { transform: translate(5px, 4px) rotate(1.5deg); opacity: 0.8; }
.v-lib .v-bookmark {
  position: absolute;
  top: -6px; right: 10px;
  color: var(--brand);
  animation: v-dip 2.6s ease-in-out infinite;
}

/* weekly plan: chip hopping across days */
.v-week { position: relative; width: 100%; max-width: 238px; height: 46px; }
.v-week .cells { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; height: 100%; }
.v-week .cells i { border: 1px solid var(--orange-100); background: #fff; border-radius: 8px; }
.v-week .v-chip {
  position: absolute;
  top: 8px;
  left: 2px;
  width: calc(100% / 7 - 8px);
  height: 30px;
  border-radius: 7px;
  background: var(--brand);
  box-shadow: 0 4px 10px -4px rgba(199, 77, 31, 0.6);
  animation: v-hop 5.2s cubic-bezier(0.55, 0, 0.2, 1.4) infinite;
}
@keyframes v-hop {
  0%, 14% { transform: translateX(0); }
  24%, 40% { transform: translateX(calc(238px / 7 * 2)); }
  50%, 66% { transform: translateX(calc(238px / 7 * 4)); }
  76%, 96% { transform: translateX(calc(238px / 7 * 6)); }
  100% { transform: translateX(0); }
}

/* groceries: sequential ticks */
.v-list { flex-direction: column; align-items: flex-start; justify-content: center; gap: 9px; display: flex; }
.v-list .row { display: flex; align-items: center; gap: 9px; }
.v-list .box {
  width: 16px; height: 16px;
  border-radius: 5px;
  border: 1.5px solid var(--orange-200);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
}
.v-list .bar { height: 7px; border-radius: 4px; background: var(--orange-100); }
.v-list .row:nth-child(1) .bar { width: 96px; }
.v-list .row:nth-child(2) .bar { width: 72px; }
.v-list .row:nth-child(3) .bar { width: 110px; }
.v-list .box::after { content: "✓"; opacity: 0; }
.v-list .row:nth-child(1) .box { animation: v-tick 4.2s infinite; }
.v-list .row:nth-child(2) .box { animation: v-tick 4.2s 0.5s infinite; }
.v-list .row:nth-child(3) .box { animation: v-tick 4.2s 1s infinite; }
.v-list .row:nth-child(1) .box::after { animation: v-tick-mark 4.2s infinite; }
.v-list .row:nth-child(2) .box::after { animation: v-tick-mark 4.2s 0.5s infinite; }
.v-list .row:nth-child(3) .box::after { animation: v-tick-mark 4.2s 1s infinite; }

/* pdf: rising doc */
.v-pdf .doc {
  position: relative;
  width: 46px; height: 58px;
  background: #fff;
  border: 1.5px solid var(--orange-200);
  border-radius: 8px 16px 8px 8px;
  animation: v-rise 2.8s ease-in-out infinite;
}
.v-pdf .doc::before { content: ""; position: absolute; left: 9px; right: 9px; top: 14px; height: 5px; border-radius: 3px; background: var(--orange-100); box-shadow: 0 10px 0 var(--orange-100), 0 20px 0 var(--orange-100); }
.v-pdf .doc::after { content: "PDF"; position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: 9px; font-weight: 800; letter-spacing: 0.06em; border-radius: 999px; padding: 2px 7px; }

/* ingredient swap (featured customization card) */
.v-swap { position: relative; width: 178px; height: 40px; flex: none; }
.v-swap .chipx {
  position: absolute;
  top: 2px;
  width: 82px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
}
.v-swap .chipx.a { left: 0; background: #fff; border: 1.5px solid var(--orange-200); color: var(--ink-soft); animation: v-swap-a 4.4s cubic-bezier(0.6, 0, 0.3, 1) infinite; }
.v-swap .chipx.b { left: 96px; background: var(--brand); color: #fff; box-shadow: 0 6px 14px -6px rgba(199, 77, 31, 0.6); animation: v-swap-b 4.4s cubic-bezier(0.6, 0, 0.3, 1) infinite; }

@keyframes v-pop { 0%, 18% { transform: scale(0); opacity: 0; } 30%, 72% { transform: scale(1); opacity: 1; } 84%, 100% { transform: scale(0); opacity: 0; } }
@keyframes v-bounce { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }
@keyframes v-dip { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@keyframes v-tick { 0%, 8% { background: transparent; border-color: var(--orange-200); } 16%, 78% { background: var(--green); border-color: var(--green); } 88%, 100% { background: transparent; border-color: var(--orange-200); } }
@keyframes v-tick-mark { 0%, 8% { opacity: 0; } 16%, 78% { opacity: 1; } 88%, 100% { opacity: 0; } }
@keyframes v-rise { 0%, 100% { transform: translateY(4px); } 50% { transform: translateY(-4px); } }
@keyframes v-swap-a { 0%, 30% { transform: translateX(0); } 48%, 82% { transform: translateX(96px); } 100% { transform: translateX(0); } }
@keyframes v-swap-b { 0%, 30% { transform: translateX(0); } 48%, 82% { transform: translateX(-96px); } 100% { transform: translateX(0); } }
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: var(--orange-50);
  border: 1px solid var(--orange-100);
  color: var(--brand);
  margin-bottom: 18px;
}
.feature:hover .feature-icon { background: #fff; }
.feature h3 { font-size: 19.5px; margin-bottom: 7px; }
.feature p { font-size: 14.5px; color: var(--ink-soft); }

/* Difference band */

.why { position: relative; }
.why-band {
  background: var(--ink);
  color: var(--cream);
  border-radius: 28px;
  padding: 64px 60px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.why-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 85% 15%, rgba(232, 93, 38, 0.28), transparent 60%);
}
.why-band > * { position: relative; }
.why-band .kicker { color: var(--brand-light); }
.why-band h2 { font-size: clamp(30px, 3.6vw, 42px); margin: 14px 0 16px; }
.why-band .lede { color: #d4d4d4; font-size: 16.5px; }

.why-list { display: grid; gap: 14px; }
.why-item {
  display: flex;
  gap: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.why-item svg { flex: none; color: var(--brand-light); transform: translateY(3px); }
.why-item b { display: block; font-size: 15.5px; margin-bottom: 3px; }
.why-item p { font-size: 14px; color: #a3a3a3; }

/* Pricing */

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan {
  background: #fff;
  border: 1px solid var(--orange-100);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  position: relative;
}
.plan.hot { border: 2px solid var(--brand); box-shadow: var(--shadow-pop); }
.plan .flag {
  position: absolute;
  top: -13px; left: 28px;
  background: var(--brand);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}
.plan h3 { font-size: 21px; }
.plan .price { font-family: var(--font-display); font-size: 44px; font-weight: 560; margin: 12px 0 2px; letter-spacing: -0.02em; }
.plan .price small { font-family: var(--font-body); font-size: 14px; color: var(--ink-mute); font-weight: 500; }
.plan .yr { font-size: 13.5px; color: var(--ink-mute); margin-bottom: 20px; }
.plan ul { display: grid; gap: 9px; font-size: 14.5px; color: var(--ink-soft); margin-bottom: 26px; }
.plan li { display: flex; gap: 9px; align-items: baseline; }
.plan li::before { content: "✓"; color: var(--green); font-weight: 700; }
.plan li.no { color: var(--ink-mute); }
.plan li.no::before { content: "—"; color: var(--line); }
.plan .btn { margin-top: auto; }
.pricing-note { text-align: center; margin-top: 26px; font-size: 13.5px; color: var(--ink-mute); }

/* FAQ */

.faq-list { max-width: 760px; }
.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  font-weight: 600;
  font-size: 17px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--font-display); font-size: 24px; color: var(--brand); transition: transform 0.2s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 0 20px; color: var(--ink-soft); font-size: 15.5px; max-width: 62ch; }

/* Final CTA */

.cta-final { text-align: center; padding: 100px 0 110px; }
.cta-final h2 { font-size: clamp(36px, 5vw, 58px); margin: 18px 0 16px; }
.cta-final h2 em { font-style: italic; color: var(--brand); }
.cta-final .lede { margin: 0 auto 36px; }
.cta-final .store-badges { justify-content: center; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer { background: #fff; border-top: 1px solid var(--orange-100); padding: 48px 0; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 26px; font-size: 14px; color: var(--ink-mute); }
.footer-links a:hover { color: var(--brand-dark); }
.footer-note { font-size: 13px; color: var(--ink-mute); }

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Legal / article pages
   -------------------------------------------------------------------------- */

.article { max-width: 760px; margin: 0 auto; padding: 72px 24px 110px; }
.article h1 { font-size: clamp(36px, 5vw, 52px); margin: 14px 0 10px; }
.article .updated { color: var(--ink-mute); font-size: 14px; margin-bottom: 44px; }
.article h2 { font-size: 26px; margin: 44px 0 12px; }
.article h3 { font-size: 19px; margin: 28px 0 8px; }
.article p, .article li { color: var(--ink-soft); font-size: 16px; }
.article p { margin-bottom: 14px; }
.article ul { list-style: none; margin: 0 0 14px; display: grid; gap: 8px; }
.article ul li { display: flex; gap: 10px; }
.article ul li::before { content: "◆"; color: var(--brand-light); font-size: 9px; transform: translateY(7px); }
.article a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }
/* buttons inside article pages keep their button look, not the inline-link look */
.article a.btn { text-decoration: none; }
.article a.btn-primary { color: #fff; }
.article a.btn-ghost { color: var(--ink); }
.article a.btn-ghost:hover { color: var(--cream); }
.article .card-note {
  background: var(--orange-50);
  border: 1px solid var(--orange-100);
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 24px 0;
}

/* Support page cards */
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 36px 0; }
.support-card {
  background: #fff;
  border: 1px solid var(--orange-100);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.support-card h3 { margin: 0 0 8px; }
.support-card p { font-size: 14.5px; margin-bottom: 14px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .steps, .feature-grid, .pricing-grid { grid-template-columns: 1fr 1fr; }
  .why-band { grid-template-columns: 1fr; padding: 44px 36px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  section.block { padding: 64px 0; }
  .hero { padding-top: 56px; }
  .steps, .feature-grid, .pricing-grid, .support-grid { grid-template-columns: 1fr; }
  .why-band { padding: 36px 26px; }
  .link-pill code { max-width: 200px; }
}
