/* ============================================================
   SAVOR — Shared Stylesheet (V4-General architecture)
   Modular section-by-section styling.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* === BACKGROUND SYSTEM === */
  --bg-base:        #FCF6F0;   /* warm off-white base layer */

  /* === SURFACE & PAPER === */
  --surface:        #F5F2EB;   /* card backgrounds, alternate sections */
  --paper:          #EFEAE0;   /* image placeholders */

  /* === TEXT === */
  --text:           #1A1918;
  --text-80:        rgba(26, 25, 24, 0.80);
  --text-60:        rgba(26, 25, 24, 0.60);
  --text-40:        rgba(26, 25, 24, 0.40);
  --text-20:        rgba(26, 25, 24, 0.20);
  --secondary:      #8A8274;   /* labels, secondary text */
  --border:         rgba(26, 25, 24, 0.10);

  /* === BRAND ACCENT (single spectrum stop) === */
  --accent:         #6bbf9a;   /* Sage — the anchor color */

  /* === TYPOGRAPHY === */
  --font-display:   'Instrument Serif', Georgia, serif;
  --font-body:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* === SPACING BASE === */
  --unit: 8px;

  /* === SPECTRUM === */
  --spectrum: linear-gradient(
    90deg,
    #d94e28 0%,
    #f87d30 12.5%,
    #f5a832 22%,
    #f5c832 33.33%,
    #c5e063 40%,
    #8fd4a0 50%,
    #6bbf9a 58%,
    #5bc4e8 66.67%,
    #4ec5e8 72%,
    #7ec8e8 80%,
    #6b2d8f 91%,
    #3d1a5c 100%
  );
}

/* ---------- Global resets ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  /* Two-layer background system: spectrum wash (5%) over warm base */
  background:
    linear-gradient(
      90deg,
      rgba(217, 78, 40, 0.05)   0%,
      rgba(248, 125, 48, 0.05)  12.5%,
      rgba(245, 168, 50, 0.05)  22%,
      rgba(245, 200, 50, 0.05)  33.33%,
      rgba(197, 224, 99, 0.05)  40%,
      rgba(143, 212, 160, 0.05) 50%,
      rgba(107, 191, 154, 0.05) 58%,
      rgba(91, 196, 232, 0.05)  66.67%,
      rgba(78, 197, 232, 0.05)  72%,
      rgba(126, 200, 232, 0.05) 80%,
      rgba(107, 45, 143, 0.05)  91%,
      rgba(61, 26, 92, 0.05)    100%
    ),
    var(--bg-base);
  color: var(--text);
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: -0.008em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 40px;
  position: relative;
}

/* ---------- Shared typography ---------- */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 400;
  max-width: 820px;
  color: var(--text);
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  padding-top: 5px;
  padding-bottom: 5px;
}

.section-subtitle {
  font-size: clamp(15px, 2vw, 20px);
  font-weight: 300;
  color: var(--text-60);
  max-width: 640px;
  margin-top: 16px;
}

/* Gradient emphasis for section titles — mirrors .hero-headline-gradient */
.section-title-gradient {
  background: var(--spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
  font-family: var(--font-display);
  font-weight: 400;
  display: inline-block;     /* lets padding/box apply */
  padding: 0 0.08em;         /* room for the italic overhang on both sides */
  margin: 0 -0.08em;         /* cancel the padding so word spacing stays correct */
}

/* Section lead paragraph — center-aligned to share the section-title's edge */
.section-subheadline {
  font-size: clamp(15px, 4vw, 20px);
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-80);
  max-width: 720px;
  margin: 16px auto 0;
  text-align: center;
}

#different .section-subheadline {
  margin-bottom: 16px;
}

.label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight: 500;
}

#problem > .label { text-align: center; }
#benefits > .label { text-align: center; }
#how-it-works > .label { text-align: center; }
#features > .label { text-align: center; }

/* ============================================================
   SECTION 01 — Top spectrum bar + Navigation
   ============================================================ */
.spectrum-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--spectrum);
  z-index: 200;
}

nav.top {
  position: fixed;
  top: 4px; left: 0; right: 0;
  height: 52px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background-color: var(--bg-base);
  color: var(--surface);
  background-clip: unset;
  -webkit-background-clip: unset;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

/* Frosted-glass background that fades in once the page is scrolled. */
nav.top.scrolled {
  background-color: color-mix(in srgb, var(--bg-base) 70%, transparent);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  box-shadow: none;
  border-style: none;
  border-width: 0px;
  border-color: rgba(0, 0, 0, 0);
}

nav.top .brand {
  display: flex;
  align-items: center;
}

nav.top .brand-logo {
  height: 28px;
  width: auto;
  display: block;
}

nav.top ul {
  display: flex;
  gap: 28px;
  list-style: none;
}

nav.top ul a {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-80);
  text-decoration: none;
  transition: color 0.2s ease;
}

nav.top ul a:hover { color: var(--text); }

/* ============================================================
   SECTION 02 — Hero
   ============================================================ */
.hero {
  /* svh = the *visible* viewport (excludes mobile browser chrome), so the
     whole hero — mockup included — always fits without overflowing. */
  min-height: 100svh;
  /* Sit above the next section so the overflowing phone paints on top of it. */
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  /* One gap controls vertical rhythm; it shrinks on short screens. */
  gap: clamp(12px, 2.4vh, 28px);
  padding: 70px clamp(20px, 4vw, 60px) 0;
}

.hero-illustration {
  width: min(560px, 60vw);
  /* Cap by height so it yields space to everything below on short screens. */
  max-height: 18vh;
  height: auto;
  object-fit: contain;
  margin: 0;
  user-select: none;
  pointer-events: none;
}

.minimal-caption {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight: 500;
  margin-bottom: 20px;
}

.hero-headline {
  font-family: var(--font-display);
  /* Sized to stay on ONE line on desktop (see rule 161) */
  font-size: clamp(40px, 4.8vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 400;
  max-width: 100%;
  margin: 0;
  color: var(--text);
  white-space: nowrap;
}

.hero-headline-plain { white-space: nowrap; }

.hero-headline-gradient {
  background: var(--spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
  font-family: var(--font-display);
  font-weight: 400;
  display: inline-block;     /* lets padding/box apply */
  padding: 0 0.08em;         /* room for the italic overhang on both sides */
  margin: 0 -0.08em;         /* cancel the padding so word spacing stays correct */
}

.hero-subheadline {
  font-size: clamp(15px, 4vw, 20px);
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-80);
  max-width: 540px;
  margin: 0 auto;
}

/* --- Email CTA --- */
.hero-email-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.hero-email-label {
  font-size: 13px;
  font-weight: 300;
  color: var(--secondary);
}

.email-input-row {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 100px;
  padding: 6px 6px 6px 24px;
  width: 100%;
  max-width: 460px;
  border: 1px solid var(--border);
  box-shadow: 0 6px 24px rgba(26, 25, 24, 0.05);
}

.email-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  outline: none;
  color: var(--text);
}

.email-input::placeholder { color: var(--text-40); }

.email-submit {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}

.email-submit:hover { transform: scale(1.06); background: #000; }

/* --- App mockup with floating cards --- */
.hero-mockup {
  position: relative;
  width: 100%;
  max-width: 940px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  /* Let the phone spill out of the hero and into the next section. */
  overflow: visible;
  min-height: 40svh;   /* reserve ≥40% of the *visible* viewport height */
  margin-top: auto;
  
  -webkit-mask-image: linear-gradient(
    to bottom,
    black 0%,
    black 40%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    black 0%,
    black 40%,
    transparent 100%
  );/* absorb free space → pins the mockup to the bottom */
}

/* --- Gentle spectrum wave behind the mockup --- */
/* Concentric arcs (one per spectrum stop) that breathe outward in a soft,
   faded radial dome behind the phone and cards — the brand's "calm flow". */
.hero-waves {
  position: absolute;
  inset: 0;
  z-index: 0;            /* behind cards (1) and phone (5) */
  pointer-events: none;
  overflow: visible;
  /* Brightest near the phone, dissolving toward the edges. */
  -webkit-mask-image: radial-gradient(
    60% 55% at 50% 50%,
    #000 0%, rgba(0,0,0,0.85) 45%, transparent 78%
  );
  mask-image: radial-gradient(
    60% 55% at 50% 50%,
    #000 0%, rgba(0,0,0,0.85) 45%, transparent 78%
  );
}

.hero-wave {
  position: absolute;
  left: 50%;
  top: 48%;
  /* Each successive ring is larger, so the 12 stops fan out as a spectrum. */
  width:  calc(150px + var(--i) * 82px);
  height: calc(150px + var(--i) * 82px);
  margin-left: calc((150px + var(--i) * 82px) / -2);
  margin-top:  calc((150px + var(--i) * 82px) / -2);
  border: 1.5px solid var(--c);
  border-radius: 50%;
  /* Inner arcs read stronger; outer ones fade — a soft chromatic falloff. */
  --o: calc(0.5 - var(--i) * 0.03);
  opacity: 0;
  filter: blur(0.4px);
  will-change: transform, opacity;
  /* Staggered phases make the rings ripple outward like a slow wave. */
  animation: hero-wave-breathe 7.5s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.55s);
}

@keyframes hero-wave-breathe {
  0%, 100% { transform: scale(0.965); opacity: calc(var(--o) * 0.4); }
  50%      { transform: scale(1.03);  opacity: var(--o); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-wave {
    animation: none;
    opacity: calc(var(--o) * 0.7);
  }
}

.hero-phone {
  width: min(280px, 60vw);
  height: auto;
  object-fit: contain;
  /* Out of flow: anchored to the mockup's bottom, then pushed down so the
     lower portion crosses the boundary into the testimonials section. */
  position: absolute;
  left: 50%;
  top: 11px;
  bottom: -180px;      /* how far the phone spills into the next section */
  transform: translateX(-50%);
  z-index: 5;
}

.hero-card {
  position: absolute;
  width: clamp(150px, 24vw, 230px);
  max-height: 28vh;
  height: auto;
  object-fit: contain;
  z-index: 1;
  filter: drop-shadow(0 16px 32px rgba(26, 25, 24, 0.10));
}

.hero-card--now {
  left: 2%;
  top: 80px;
  transform: rotate(-4deg);
  animation: card-float-now 7s ease-in-out infinite,
             card-glow-now 12s ease-in-out infinite;
}

.hero-card--later {
  right: 2%;
  top: 56px;
  transform: rotate(4deg);
  animation: card-float-later 6.2s ease-in-out infinite,
             card-glow-later 12s ease-in-out infinite;
  animation-delay: -2.5s, -6s; /* desync from the "now" card */
}

/* Gentle vertical bob — rotation is baked into each keyframe so the
   cards keep their tilt while drifting. */
@keyframes card-float-now {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50%      { transform: rotate(-4deg) translateY(-12px); }
}

@keyframes card-float-later {
  0%, 100% { transform: rotate(4deg) translateY(0); }
  50%      { transform: rotate(4deg) translateY(-14px); }
}

/* Soft drop-shadow that drifts across the brand spectrum (low opacity,
   so it reads as a faint colored glow rather than a hard shadow). */
@keyframes card-glow-now {
  0%, 100% { filter: drop-shadow(0 16px 32px rgba(107, 191, 154, 0.22)); }  /* sage  */
  25%      { filter: drop-shadow(0 16px 32px rgba(245, 168, 50, 0.20)); }   /* amber */
  50%      { filter: drop-shadow(0 16px 32px rgba(91, 196, 232, 0.22)); }   /* sky   */
  75%      { filter: drop-shadow(0 16px 32px rgba(107, 45, 143, 0.18)); }   /* violet*/
}

@keyframes card-glow-later {
  0%, 100% { filter: drop-shadow(0 16px 32px rgba(91, 196, 232, 0.22)); }   /* sky   */
  25%      { filter: drop-shadow(0 16px 32px rgba(107, 45, 143, 0.18)); }   /* violet*/
  50%      { filter: drop-shadow(0 16px 32px rgba(217, 78, 40, 0.18)); }    /* clay  */
  75%      { filter: drop-shadow(0 16px 32px rgba(245, 200, 50, 0.20)); }   /* gold  */
}

@media (prefers-reduced-motion: reduce) {
  .hero-card--now,
  .hero-card--later { animation: none; }
}

/* ============================================================
   SECTION 03 — Testimonials
   ============================================================ */
/* Sits below the hero so the hero's phone can overflow on top of it. */
#testimonials { z-index: 1; text-align: center; }

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 16px;
}

.testimonial-quote {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-80);
  line-height: 1.5;
  margin-bottom: 18px;
}

.testimonial-name {
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
}

.testimonial-title {
  font-size: 13px;
  color: var(--secondary);
  margin-top: 4px;
}

/* ============================================================
   SECTION 04 — Problem / Comparison table
   ============================================================ */
.comparison-table {
  margin-top: 48px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.comparison-header,
.comparison-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.comparison-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.comparison-row { border-bottom: 1px solid var(--border); }
.comparison-row:last-child { border-bottom: none; }

.comparison-header-item {
  padding: 20px 28px;
  font-weight: 500;
  font-size: 15px;
}

.comparison-header-item:first-child {
  border-right: 1px solid var(--border);
  color: var(--secondary);
}

.comparison-cell {
  padding: 20px 28px;
  font-size: 15px;
  font-weight: 300;
}

.comparison-cell:first-child {
  border-right: 1px solid var(--border);
  color: var(--text-60);
}

.comparison-cell:last-child { color: var(--text); }

/* ============================================================
   SECTION 05 — How It Works
   ============================================================ */
.how-it-works-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin: 72px auto 0;
  max-width: 1040px;
}

/* Spectrum thread that flows through the three step markers (Capture →
   Shape → Resurface). Sits at the vertical center of the 72px markers. */
.how-flow {
  position: absolute;
  top: 63px; /* aligns with the vertical center of the 72px icon medallions */
  left: 16.66%;
  right: 16.66%;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, #f5a832 0%, #6bbf9a 50%, #5bc4e8 100%);
  opacity: 0.45;
  border-radius: 2px;
  pointer-events: none;
}
.how-flow::before,
.how-flow::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: translateY(-50%);
}
.how-flow::before { left: -3px; background: #f5a832; }
.how-flow::after  { right: -3px; background: #5bc4e8; }

.how-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 8px;
}

/* Marker = numbered label sitting above the icon medallion */
.how-step-marker {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 22px;
}

.how-step-num {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--step-accent, var(--accent));
  margin-bottom: 14px;
}

.how-step-icon {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-base);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow:
    0 0 0 6px rgba(var(--step-accent-rgb, 107,191,154), 0.08),
    0 10px 30px rgba(26, 25, 24, 0.06);
  transition: transform 0.4s cubic-bezier(.22,1,.36,1),
              box-shadow 0.4s cubic-bezier(.22,1,.36,1);
}

.how-step:hover .how-step-icon {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 6px rgba(var(--step-accent-rgb, 107,191,154), 0.16),
    0 16px 38px rgba(26, 25, 24, 0.10);
}

.how-step-content {
  max-width: 280px;
}

.how-step-content h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 8px;
}

.how-step-content p {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-60);
  line-height: 1.55;
}

/* ---- Animated capture demo (snap / type / speak) ---- */
.capture-demo {
  --cd-accent: #078be8;          /* Blue — camera viewfinder accents */
  --cd-accent-deep: #0670c2;
  --cd-bar-accent: #078be8;      /* Blue — capture bar animations */
  --cd-bar-deep: #0670c2;
  --cd-bar-rgb: 7, 139, 232;
  --cd-card: #ffffff;
  --cd-ease: cubic-bezier(.22, 1, .36, 1);
  --cd-ease-soft: cubic-bezier(.4, 0, .2, 1);
  display: flex;
  justify-content: center;
  margin: 56px auto 8px;
}

.cd-stage {
  position: relative;
  width: 344px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Camera viewfinder panel — expands up out of the bar */
.cd-cam {
  width: 100%;
  background: var(--cd-card);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 14px 44px rgba(26, 25, 24, 0.10), 0 2px 8px rgba(26, 25, 24, 0.05);
  padding: 12px;
  margin-bottom: 0;
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  transform-origin: bottom center;
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  transition:
    opacity 0.8s var(--cd-ease),
    transform 0.8s var(--cd-ease),
    max-height 0.8s var(--cd-ease),
    margin-bottom 0.8s var(--cd-ease);
}
.cd-cam.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  max-height: 240px;
  margin-bottom: 12px;
}

.cd-vf {
  position: relative;
  width: 100%;
  height: 152px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 10px;
  background: #F5F2EB;
}

.cd-grid {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-image:
    linear-gradient(rgba(7, 139, 232, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 139, 232, 0.14) 1px, transparent 1px);
  background-size: 30px 30px;
  animation: cd-grid-in 0.7s ease forwards;
}
@keyframes cd-grid-in { to { opacity: 1; } }

.cd-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 0 solid var(--cd-accent);
  opacity: 0.85;
}
.cd-corner.tl { top: 12px; left: 12px; border-top-width: 2px; border-left-width: 2px; border-radius: 4px 0 0 0; }
.cd-corner.tr { top: 12px; right: 12px; border-top-width: 2px; border-right-width: 2px; border-radius: 0 4px 0 0; }
.cd-corner.bl { bottom: 12px; left: 12px; border-bottom-width: 2px; border-left-width: 2px; border-radius: 0 0 0 4px; }
.cd-corner.br { bottom: 12px; right: 12px; border-bottom-width: 2px; border-right-width: 2px; border-radius: 0 0 4px 0; }

.cd-scan {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(7, 139, 232, 0.5) 20%, rgba(7, 139, 232, 1) 50%, rgba(7, 139, 232, 0.5) 80%, transparent);
  box-shadow: 0 0 12px rgba(7, 139, 232, 0.6);
}
.cd-scan.go { animation: cd-scan 2.8s cubic-bezier(.37, 0, .63, 1) infinite; }
@keyframes cd-scan {
  0%   { top: 0; opacity: 0; }
  10%  { opacity: 1; }
  88%  { top: calc(100% - 2px); opacity: 0.85; }
  100% { top: calc(100% - 2px); opacity: 0; }
}

.cd-reticle {
  position: absolute;
  top: 50%; left: 50%;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(7, 139, 232, 0.4);
  transform: translate(-50%, -50%);
}
.cd-reticle::before, .cd-reticle::after { content: ''; position: absolute; background: rgba(7, 139, 232, 0.55); }
.cd-reticle::before { top: 50%; left: -10px; right: -10px; height: 1px; }
.cd-reticle::after  { left: 50%; top: -10px; bottom: -10px; width: 1px; }

.cd-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  border-radius: 14px;
  transition: opacity 0.5s var(--cd-ease-soft);
  z-index: 5;
}
.cd-flash.pop { opacity: 0.7; transition: opacity 0.06s ease-out; }

.cd-cam-row { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.cd-hint { font-family: var(--font-body); font-size: 12px; color: var(--text-40); letter-spacing: 0.02em; }
.cd-dots { display: flex; gap: 6px; align-items: center; }
.cd-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-20); transition: background 0.5s var(--cd-ease-soft), transform 0.5s var(--cd-ease-soft); }
.cd-dot.on { background: var(--cd-accent); transform: scale(1.25); }
.cd-shutter { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; }
.cd-shutter-inner { width: 24px; height: 24px; border-radius: 50%; background: var(--text-20); transition: transform 0.35s cubic-bezier(.34, 1.4, .64, 1), background 0.3s ease; }
.cd-shutter-inner.snap { transform: scale(0.42); background: var(--cd-accent); }

/* The capture bar (pill) */
.cd-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: var(--cd-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 7px 7px 7px 12px;
  box-shadow: 0 4px 18px rgba(26, 25, 24, 0.07), 0 1px 3px rgba(26, 25, 24, 0.05);
  transition: box-shadow 0.7s var(--cd-ease-soft);
  position: relative;
  z-index: 2;
}
.cd-bar.pulse { box-shadow: 0 6px 26px rgba(var(--cd-bar-rgb), 0.22), 0 1px 3px rgba(26, 25, 24, 0.05); }

.cd-add {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--text-20);
  background: transparent;
  transition: border-color 0.35s ease, background 0.35s ease, transform 0.45s cubic-bezier(.34, 1.4, .64, 1);
}
.cd-add svg { width: 14px; height: 14px; stroke: var(--text-40); stroke-width: 2.5; transition: stroke 0.3s; }
.cd-add.open { border-color: var(--cd-bar-accent); background: rgba(var(--cd-bar-rgb), 0.10); transform: rotate(45deg); }
.cd-add.open svg { stroke: var(--cd-bar-accent); }

.cd-input {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  height: 22px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
}
.cd-placeholder { position: absolute; left: 0; color: var(--text-40); transition: opacity 0.5s var(--cd-ease-soft); }
.cd-typed { color: var(--text); opacity: 0; transform: translateY(4px); transition: opacity 0.6s var(--cd-ease-soft), transform 0.6s var(--cd-ease-soft); }
.cd-caret { width: 1.5px; height: 18px; margin-left: 2px; border-radius: 2px; background: var(--cd-bar-accent); opacity: 0; transition: opacity 0.5s var(--cd-ease-soft); }
.cd-input.filled .cd-placeholder { opacity: 0; }
.cd-input.filled .cd-typed { opacity: 1; transform: translateY(0); }
.cd-input.filled .cd-caret { opacity: 1; animation: cd-blink 1.15s ease-in-out infinite; }
@keyframes cd-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.15; } }

.cd-mic {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  border: none;
  background: var(--cd-bar-accent);
  box-shadow: 0 4px 14px rgba(var(--cd-bar-rgb), 0.4);
  transition: box-shadow 0.5s var(--cd-ease-soft), background 0.45s var(--cd-ease-soft), transform 0.5s var(--cd-ease);
  overflow: hidden;
}
.cd-mic.active { background: var(--cd-bar-deep); box-shadow: 0 6px 22px rgba(var(--cd-bar-rgb), 0.55); transform: scale(1.05); }
.cd-ring {
  position: absolute;
  top: 0; left: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(var(--cd-bar-rgb), 0.45);
  opacity: 0;
  pointer-events: none;
}
.cd-mic.active .cd-ring { animation: cd-ring 2s cubic-bezier(.22, 1, .36, 1) infinite; }
.cd-mic.active .cd-ring:nth-child(2) { animation-delay: 0.9s; }
@keyframes cd-ring {
  0%   { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(2.6); opacity: 0; }
}
.cd-mic-icon { position: absolute; display: flex; align-items: center; justify-content: center; transition: opacity 0.35s ease, transform 0.35s var(--cd-ease); }
.cd-mic-icon svg { width: 18px; height: 18px; fill: #fff; }
.cd-mic-icon.gone { opacity: 0; transform: scale(0.6); }
.cd-wave { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 3px; opacity: 0; transition: opacity 0.35s ease; }
.cd-wave.show { opacity: 1; }
.cd-wave i { width: 3px; height: 4px; border-radius: 3px; background: #fff; transition: height 0.14s var(--cd-ease-soft); }

@media (prefers-reduced-motion: reduce) {
  .cd-cam { display: none; }
  .cd-scan, .cd-grid, .cd-ring, .cd-caret { animation: none; }
}

/* ============================================================
   SECTION 06 — Features
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-base);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 400;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-60);
  line-height: 1.55;
}

/* ============================================================
   SECTION 07 — Benefits
   ============================================================ */
.benefits-list {
  display: grid;
  gap: 8px;
  margin-top: 60px;
  max-width: 800px;
}

.benefit-item {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.benefit-item:last-child { border-bottom: none; }

.benefit-number {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
  color: var(--text-20);
  flex-shrink: 0;
  width: 44px;
}

.benefit-content h4 {
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 6px;
}

.benefit-content p {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-60);
  line-height: 1.55;
}

/* ============================================================
   SECTION 08 — Blog
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(26, 25, 24, 0.08);
}

.blog-image {
  height: 160px;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.blog-content { padding: 24px; }

.blog-content h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 8px;
}

.blog-content p {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-60);
  line-height: 1.5;
}

/* ============================================================
   SECTION 09 — Differentiation
   ============================================================ */
#different { padding-top: 80px; padding-bottom: 80px; }

#different .label {
  margin-bottom: 18px;
  display: block;
  text-align: center;
}
.different-part--are .label { margin-top: 0; }

/* Soft horizontal divider between the two halves */
.different-divider {
  width: 100%;
  max-width: 220px;
  height: 1px;
  margin: 72px auto;
  background: linear-gradient(90deg, transparent, var(--border) 22%, var(--border) 78%, transparent);
}

/* ---------- PART A: What we are NOT ---------- */
.not-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: 760px;
  margin: 36px auto 0;
}

.not-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  background: color-mix(in srgb, var(--surface) 65%, transparent);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 15px 26px 15px 50px;
  font-size: 15px;
  font-weight: 300;
  color: var(--text-60);
  transition: transform .4s cubic-bezier(.2,.7,.2,1), border-color .4s ease, color .4s ease, background .4s ease;
}

.not-item::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 50%;
  width: 13px;
  height: 1.5px;
  background: var(--text-40);
  border-radius: 2px;
  transform: translateY(-50%) rotate(-16deg);
  transition: background .4s ease, width .4s ease;
}

.not-item:hover {
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  border-color: color-mix(in srgb, var(--text) 18%, transparent);
  color: var(--text-80);
}

.not-item:hover::before {
  background: var(--text-60);
  width: 16px;
}

/* ---------- PART B: What Savor IS ---------- */
.what-we-are {
  position: relative;
  background: unset;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: clamp(40px, 6vw, 64px) clamp(28px, 5vw, 56px);
  text-align: center;
  margin: 36px auto 0;
  max-width: 720px;
  overflow: hidden;
  box-shadow:
    0 36px 70px -36px rgba(26, 25, 24, 0.22),
    0 2px 6px rgba(26, 25, 24, 0.04);
}

/* Spectrum top edge — mirrors the global spectrum bar, inset with soft ends */
.what-we-are::before {
  content: '';
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 3px;
  background: var(--spectrum);
  border-radius: 0 0 4px 4px;
}

.what-we-are p {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.8vw, 30px);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--text-80);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================
   SECTION 10 — Final CTA
   ============================================================ */
.cta-section {
  text-align: center;
  padding: 110px 40px;
  border-radius: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cta-section .section-title { margin: 0 auto; padding-top: 10px; padding-bottom: 10px; }

.cta-section p {
  font-size: 17px;
  font-weight: 300;
  color: var(--text-60);
  margin: 18px auto 36px;
  max-width: 460px;
}

.cta-button {
  display: inline-block;
  background: var(--text);
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  padding: 16px 40px;
  border-radius: 100px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.cta-button:hover { transform: scale(1.04); background: #000; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  padding: 60px 40px;
  text-align: center;
}

.footer-iso {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
}

.footer-content {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text-80);
  font-weight: 400;
  font-style: italic;
}

/* ============================================================
   LEGAL BAR
   ============================================================ */
.legal-bar {
  padding: 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.legal-bar .copyright {
  font-size: 13px;
  color: var(--secondary);
  font-weight: 300;
}

.legal-link {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-80);
  text-decoration: none;
  padding: 8px 18px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.legal-link:hover { color: var(--text); border-color: var(--text-40); }

/* ============================================================
   Standalone legal pages (privacy / contact)
   ============================================================ */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 140px 40px 100px;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.legal-page .updated {
  font-size: 13px;
  color: var(--secondary);
  margin-bottom: 40px;
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  margin: 36px 0 12px;
}

.legal-page p,
.legal-page li {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-80);
  line-height: 1.65;
  margin-bottom: 14px;
}

.legal-page h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  margin: 28px 0 10px;
}

.legal-page ul,
.legal-page ol { padding-left: 22px; }

.legal-page a { color: var(--text); }

.legal-page code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 5px;
}

.legal-page blockquote {
  margin: 0 0 28px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--text);
  border-radius: 12px;
  font-size: 16px;
  font-weight: 300;
  font-style: italic;
  color: var(--text-80);
  line-height: 1.65;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 0 0 20px;
}

.legal-page table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.legal-page th,
.legal-page td {
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--border);
  font-weight: 300;
  color: var(--text-80);
  line-height: 1.55;
  vertical-align: top;
}

.legal-page th {
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
}

.back-link {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 14px;
  color: var(--text-60);
  text-decoration: none;
}

.back-link:hover { color: var(--text); }

.contact-methods {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.contact-method {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
}

.contact-method h3 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

.contact-method a {
  font-size: 17px;
  font-weight: 300;
  color: var(--text);
  text-decoration: none;
}

/* ============================================================
   RESPONSIVE — four-breakpoint cascade
   375px  → small mobile
   768px  → tablet / large mobile (main collapse)
   1024px → small desktop / landscape tablet
   1400px → wide desktop
   ============================================================ */

/* ---------- Breakpoint 2 — Tablet / large mobile ---------- */
@media (max-width: 768px) {
  /* Navigation */
  nav.top ul { display: none; }
  nav.top { padding: 0 20px; }

  /* Sections */
  section { padding: 60px 24px; }

  /* Hero */
  .hero {
    padding: clamp(88px, 12vh, 110px) 24px clamp(24px, 5vh, 64px);
    min-height: 100svh;
    text-align: center;
  }

  .hero-mockup::after {
    height: 38%;
  }

  /* Mobile: headline breaks into exactly 2 lines (see rule 161) */
  .hero-headline {
    font-size: clamp(28px, 7.5vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    max-width: 100%;
    margin: 0;
    white-space: normal;
  }

  .hero-headline-plain,
  .hero-headline-gradient { display: block; }

  .hero-headline-plain { white-space: nowrap; }

  .hero-subheadline {
    font-size: clamp(15px, 4vw, 18px);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Stays left-aligned to the section-title on mobile */
  .section-subheadline {
    font-size: clamp(15px, 4vw, 18px);
    max-width: 640px;
  }

  .minimal-caption {
    font-size: 10px;
    letter-spacing: 0.18em;
    margin-bottom: 16px;
  }

  /* Email CTA */
  .hero-email-form { width: 100%; }
  .email-input-row {
    max-width: 100%;
    padding: 6px 6px 6px 20px;
  }

  /* Section titles */
  .section-title {
    font-size: clamp(28px, 7vw, 44px);
    line-height: 1.1;
  }

  .section-subtitle { font-size: clamp(15px, 4vw, 18px); }

  /* Body text — bump weight slightly for legibility on small screens */
  body { font-weight: 400; }
  .body-text { font-weight: 400; }

  /* All grids collapse to 1 column */
  .testimonials,
  .features-grid,
  .blog-grid { grid-template-columns: 1fr; }

  /* Comparison table — keep the two columns side by side so each
     "Without / With" pair stays aligned; shrink padding & text to fit. */
  .comparison-table { margin-top: 32px; }

  .comparison-header,
  .comparison-row { grid-template-columns: 1fr 1fr; }

  .comparison-header-item,
  .comparison-cell {
    padding: 14px 14px;
    font-size: 13px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  .comparison-header-item:first-child,
  .comparison-cell:first-child {
    border-right: 1px solid var(--border);
    border-bottom: none;
  }

  /* How-it-works steps — stack vertically, drop the horizontal thread */
  .how-it-works-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 420px;
  }
  .how-flow { display: none; }
  .how-step-marker { margin-bottom: 16px; }

  /* CTA & footer */
  .cta-section { padding: 72px 24px; }
  footer { padding: 48px 24px; }
  .footer-content { font-size: 18px; }

  /* What-we-are box */
  .what-we-are { padding: 36px 24px; }
  .what-we-are p { font-size: clamp(19px, 5.5vw, 24px); }
  .not-item { padding: 14px 22px 14px 46px; }
  .different-divider { margin: 56px auto; }

  /* Hero mockup — keep cards OVERLAPPING the phone (not stacked) so the whole
     mockup stays within one screen height instead of running 3x tall. */
  .hero-mockup { margin-top: clamp(8px, 1.5vh, 20px); }
  .hero-card { width: clamp(120px, 30vw, 180px); max-height: 24vh; }
  .hero-card--now  { left: 0; top: 8vh; }
  .hero-card--later { right: 0; top: 5vh; }

  /* Tighten the spectrum rings so the outer arcs don't run off-screen. */
  .hero-wave {
    width:  calc(110px + var(--i) * 48px);
    height: calc(110px + var(--i) * 48px);
    margin-left: calc((110px + var(--i) * 48px) / -2);
    margin-top:  calc((110px + var(--i) * 48px) / -2);
  }
}

/* ---------- Breakpoint 1 — Small mobile ---------- */
@media (max-width: 375px) {
  section { padding: 48px 16px; }

  .hero {
    padding: clamp(80px, 11vh, 100px) 16px clamp(20px, 4vh, 48px);
    min-height: 100svh;
  }

  /* Small mobile: keep both headline lines on one line each (no overflow) */
  .hero-headline {
    font-size: 28px;
    letter-spacing: -0.02em;
    line-height: 1.1;
  }

  .section-title { font-size: 28px; }

  /* CTA pill goes full-width */
  .email-input-row {
    max-width: 100%;
    padding: 6px 6px 6px 16px;
  }

  .email-submit {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  /* Comparison table — extra-tight on very small screens */
  .comparison-header-item,
  .comparison-cell {
    padding: 12px 10px;
    font-size: 12px;
  }
}

/* ---------- Short viewports (landscape phones / small laptops) ----------
   When there isn't enough vertical room, drop the decorative illustration
   and tighten spacing so the headline → CTA → mockup chain still fits. */
@media (max-height: 720px) {
  .hero-illustration { display: none; }
  .hero { gap: clamp(8px, 1.6vh, 18px); }
  .hero-phone { width: min(220px, 50vw); bottom: -120px; }
  .hero-card { max-height: 22vh; }
}

@media (max-height: 540px) {
  .hero-phone { width: min(190px, 44vw); bottom: -90px; }
  .hero-card--now  { top: 4vh; }
  .hero-card--later { top: 2vh; }
}

/* ---------- Breakpoint 3 — Small desktop / landscape tablet ---------- */
@media (min-width: 1024px) {
  /* Stays on one line; capped so it never overflows the content width */
  .hero-headline {
    font-size: clamp(52px, 4.8vw, 64px);
    line-height: 1.02;
  }

  /* Features show 3 per row comfortably */
  .features-grid { grid-template-columns: repeat(3, 1fr); }

  /* Testimonials: 3-up */
  .testimonials { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Breakpoint 4 — Wide desktop ---------- */
@media (min-width: 1400px) {
  section { padding: 120px 60px; }

  .hero { padding: clamp(120px, 14vh, 160px) 60px clamp(60px, 9vh, 120px); }

  /* Hero headline hits its ceiling while staying on one line */
  .hero-headline { font-size: 64px; }

  /* Section titles hit ceiling */
  .section-title { font-size: 56px; }
}

/* ========================================================
   Scroll reveal — elements ease + drift up into view as the
   page scrolls. Staggered per group for a gentle cascade.
   JS adds [data-reveal] then .in-view (see index.html).
   ======================================================== */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition:
      opacity 0.8s cubic-bezier(.22, 1, .36, 1),
      transform 0.8s cubic-bezier(.22, 1, .36, 1);
    transition-delay: var(--reveal-delay, 0s);
    will-change: opacity, transform;
  }

  [data-reveal].in-view {
    opacity: 1;
    transform: none;
  }
}
