/* ==========================================================================
   Echoprice — Homepage Stylesheet
   Design system: cohesive 5-color palette, Fraunces serif + Inter sans,
   uniform 8px spacing scale, aligned grid, and a CSS-only blender animation.
   ========================================================================== */

:root {
  /* ---------- Color (5 tokens total) ---------- */
  --ink:        #1a1f17;   /* primary foreground */
  --paper:      #f7f5ef;   /* page background (warm ivory) */
  --surface:    #ffffff;   /* cards / elevated surfaces */
  --muted:      #6b6f63;   /* secondary text */
  --line:       #e6e3d8;   /* borders / dividers */
  --brand:      #4d7c0f;   /* earthy green primary */
  --brand-soft: #eef3df;   /* brand wash */
  --brand-deep: #355409;   /* hover / pressed */

  /* ---------- Type ---------- */
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif:   'Fraunces', 'Iowan Old Style', 'Apple Garamond', Georgia, 'Times New Roman', serif;

  /* ---------- Spacing scale (4 / 8 px rhythm) ---------- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* ---------- Radius ---------- */
  --radius-sm:   0.5rem;
  --radius:      0.875rem;
  --radius-lg:   1.25rem;
  --radius-xl:   1.75rem;
  --radius-full: 9999px;

  /* ---------- Elevation ---------- */
  --shadow-sm: 0 1px 2px rgba(26, 31, 23, 0.06);
  --shadow:    0 6px 18px -8px rgba(26, 31, 23, 0.18);
  --shadow-lg: 0 24px 48px -24px rgba(26, 31, 23, 0.28);
  --shadow-xl: 0 40px 80px -32px rgba(26, 31, 23, 0.32);

  /* ---------- Container ---------- */
  --container: 72rem;
}

/* ==========================================================================
   Background gradient animation
   ========================================================================== */
@keyframes bgShift {
  0%   { background-position: 0% 0%, 100% 100%, 50% 0%; }
  33%  { background-position: 40% 20%, 60% 80%, 80% 40%; }
  66%  { background-position: 80% 60%, 20% 30%, 10% 80%; }
  100% { background-position: 0% 0%, 100% 100%, 50% 0%; }
}

@keyframes orb1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(6vw, -4vh) scale(1.08); }
  66%       { transform: translate(-4vw, 6vh) scale(0.94); }
}
@keyframes orb2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(-8vw, 5vh) scale(0.92); }
  66%       { transform: translate(5vw, -6vh) scale(1.06); }
}
@keyframes orb3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(4vw, 8vh) scale(1.05); }
}

.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-orbs::before,
.bg-orbs::after,
.bg-orbs .orb3 {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.55;
  will-change: transform;
}
.bg-orbs::before {
  width: 55vw;
  height: 55vw;
  max-width: 680px;
  max-height: 680px;
  background: radial-gradient(circle, #eef3df 0%, transparent 70%);
  top: -15%;
  right: -10%;
  animation: orb1 22s ease-in-out infinite;
}
.bg-orbs::after {
  width: 45vw;
  height: 45vw;
  max-width: 560px;
  max-height: 560px;
  background: radial-gradient(circle, #e6e3d8 0%, transparent 70%);
  bottom: 5%;
  left: -8%;
  animation: orb2 28s ease-in-out infinite;
}
.bg-orbs .orb3 {
  display: block;
  width: 38vw;
  height: 38vw;
  max-width: 440px;
  max-height: 440px;
  background: radial-gradient(circle, rgba(77,124,15,0.07) 0%, transparent 70%);
  top: 40%;
  left: 35%;
  animation: orb3 34s ease-in-out infinite;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

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

a { color: inherit; text-decoration: none; }

ul[role="list"] { list-style: none; }

/* Focus ring */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  left: var(--space-3);
  top: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
  z-index: 200;
}
.skip-link:focus { transform: translateY(0); }

/* ==========================================================================
   Layout primitives
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-5);
}
@media (min-width: 768px) { .container { padding: 0 var(--space-6); } }
@media (min-width: 1024px) { .container { padding: 0 var(--space-7); } }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: var(--space-4);
}

.header-container {
  max-width: var(--container);
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 3.25rem;
  padding: var(--space-2) var(--space-5);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .header-inner {
    padding: var(--space-2) var(--space-6);
  }
}

.header-nav {
  display: none;
  align-items: center;
  gap: var(--space-6);
  flex: 1;
  justify-content: center;
}
.header-nav a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.2s ease;
  white-space: nowrap;
}
.header-nav a:hover { color: var(--ink); }
@media (min-width: 720px) {
  .header-nav { display: flex; }
}

.header-user {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.header-user-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.25rem 0.4rem 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(26, 31, 23, 0.04);
  border: 1px solid var(--line);
  color: var(--ink);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.header-user-link:hover {
  background: rgba(26, 31, 23, 0.08);
  border-color: var(--ink);
}
.header-user-name {
  font-size: 0.85rem;
  font-weight: 500;
  display: none;
  white-space: nowrap;
}
@media (min-width: 540px) {
  .header-user-name { display: inline; }
}
.header-user-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 0.8rem;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--line);
}
.header-user-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  color: var(--ink);
}

.logo-text {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 2rem;
  height: 2rem;
  background: var(--ink);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: var(--paper);
}
.logo-icon svg { width: 1rem; height: 1rem; }
.logo-icon.small { width: 1.5rem; height: 1.5rem; }
.logo-icon.small svg { width: 0.75rem; height: 0.75rem; }

.logo-text {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: var(--space-6);
}
.desktop-nav a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.2s ease;
}
.desktop-nav a:hover { color: var(--ink); }
@media (min-width: 768px) { .desktop-nav { display: flex; } }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.desktop-only { display: none; }
@media (min-width: 768px) { .desktop-only { display: inline-flex; } }
.mobile-only { display: inline-flex; }
@media (min-width: 768px) { .mobile-only { display: none; } }

.menu-btn {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.menu-btn:hover { background: rgba(26, 31, 23, 0.05); border-color: var(--line); }
.menu-btn svg { width: 1.125rem; height: 1.125rem; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1;
  letter-spacing: 0.005em;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
              transform 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-sm {
  height: 2.25rem;
  padding: 0 var(--space-4);
  font-size: 0.85rem;
}

.btn-lg {
  height: 3rem;
  padding: 0 var(--space-6);
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--brand-deep);
  box-shadow: var(--shadow);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover { background: rgba(26, 31, 23, 0.06); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover {
  background: var(--surface);
  border-color: var(--ink);
}

/* ==========================================================================
   Mobile menu
   ========================================================================== */
.mobile-menu-overlay {
  position: fixed; inset: 0;
  background: rgba(26, 31, 23, 0.4);
  backdrop-filter: blur(4px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.mobile-menu-overlay.active { opacity: 1; pointer-events: auto; }

.mobile-menu {
  position: fixed;
  top: var(--space-4); left: var(--space-4); right: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--space-5);
  z-index: 101;
  transform: translateY(-0.5rem);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}
.mobile-menu.active { transform: translateY(0); opacity: 1; pointer-events: auto; }

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}

.mobile-nav { display: flex; flex-direction: column; gap: var(--space-1); }
.mobile-nav a {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  color: var(--ink);
  transition: background 0.2s ease;
}
.mobile-nav a:hover { background: rgba(26, 31, 23, 0.05); }

.mobile-menu-actions {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.mobile-menu-actions .btn {
  width: 100%;
  height: 2.75rem;
}

body.menu-open { overflow: hidden; }

/* ==========================================================================
   Main shell
   ========================================================================== */
main {
  padding-top: 5rem;
  padding-bottom: var(--space-9);
}
@media (min-width: 768px) {
  main { padding-top: 5.5rem; }
}

section { scroll-margin-top: 6rem; }

/* ==========================================================================
   Typography
   ========================================================================== */
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
}

.hero h1,
.section-title,
.cta-content h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1.04;
  margin-bottom: var(--space-5);
  text-wrap: balance;
}

.hero-headline { display: inline; }
.hero-headline--serif em {
  font-style: italic;
  font-weight: 500;
  color: var(--brand);
}

.hero-subtitle {
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 32rem;
  margin-inline: auto;
  margin-bottom: var(--space-6);
  text-align: center;
  text-wrap: pretty;
}

.section-title {
  font-size: clamp(1.875rem, 3.6vw, 2.5rem);
  text-align: center;
  margin-bottom: var(--space-7);
  text-wrap: balance;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: var(--space-4) 0 var(--space-8);
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  .hero { padding: var(--space-5) 0 var(--space-9); }
}

.hero::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 720px;
  max-height: 720px;
  background: radial-gradient(circle at 50% 50%, var(--brand-soft) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: var(--space-9);
  }
}

.hero-content { max-width: 36rem; }

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
@media (min-width: 480px) {
  .hero-actions { flex-direction: row; align-items: center; }
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.trust-badge {
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
}
.trust-badge strong { color: var(--ink); font-weight: 600; }


/* Legacy blender styles kept disabled for backwards compat */
.blender {
  display: none;
}

.blender-stage {
  position: relative;
  width: 100%;
  flex: 1;
  border-radius: 50% 50% 18% 18% / 55% 55% 14% 14%;
  background:
    radial-gradient(120% 80% at 50% 25%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0.5) 100%),
    linear-gradient(180deg, var(--surface) 0%, var(--brand-soft) 100%);
  border: 1px solid var(--line);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.9),
    inset 0 -40px 60px -30px rgba(77, 124, 15, 0.18),
    var(--shadow-lg);
  overflow: hidden;
  contain: layout style paint;
}

/* glass shine */
.blender-stage::before {
  content: "";
  position: absolute;
  top: 6%;
  left: 8%;
  width: 22%;
  height: 60%;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(2px);
  pointer-events: none;
  z-index: 6;
}

/* concentric rings */
.blender-rings {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
}
.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(77, 124, 15, 0.25);
}
.ring-1 { width: 78%; height: 78%; animation: spin 18s linear infinite; }
.ring-2 { width: 58%; height: 58%; border-style: solid; border-color: rgba(77, 124, 15, 0.18); animation: spin 12s linear infinite reverse; }
.ring-3 { width: 38%; height: 38%; border-style: dotted; border-color: rgba(77, 124, 15, 0.35); animation: spin 8s linear infinite; }

/* swirling vortex */
.blender-vortex {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
  pointer-events: none;
}
.swirl {
  position: absolute;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(77, 124, 15, 0.18) 60deg, transparent 180deg, rgba(77, 124, 15, 0.12) 240deg, transparent 360deg);
  filter: blur(6px);
  mix-blend-mode: multiply;
}
.swirl-1 { width: 82%; height: 82%; animation: spin 6s linear infinite; }
.swirl-2 { width: 60%; height: 60%; opacity: 0.7; animation: spin 4s linear infinite reverse; }
.swirl-3 { width: 38%; height: 38%; opacity: 0.55; animation: spin 2.6s linear infinite; }

/* orbiting chips (ingredients) */
.blender-orbits {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 3;
}
.orbit {
  position: absolute;
  width: 70%;
  height: 70%;
  display: grid;
  place-items: center;
  animation: spin 9s linear infinite;
}
.orbit-a { animation-duration: 9s; }
.orbit-b { width: 56%; height: 56%; animation-duration: 7s; animation-direction: reverse; }
.orbit-c { width: 84%; height: 84%; animation-duration: 12s; }
.orbit-d { width: 42%; height: 42%; animation-duration: 5.5s; animation-direction: reverse; }

.chip {
  position: absolute;
  top: -6%;
  left: 50%;
  width: 2.5rem;
  height: 2.5rem;
  margin-left: -1.25rem;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow);
  color: var(--brand);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.95rem;
  animation: counter-spin 9s linear infinite;
}
.orbit-a .chip { animation-duration: 9s; }
.orbit-b .chip { animation-duration: 7s; animation-direction: reverse; }
.orbit-c .chip { animation-duration: 12s; }
.orbit-d .chip { animation-duration: 5.5s; animation-direction: reverse; }

.chip svg { width: 1.125rem; height: 1.125rem; }
.chip-mic  { color: var(--brand); }
.chip-chat { color: var(--ink); }
.chip-tag  { color: var(--brand-deep); }
.chip-num  { color: var(--ink); font-family: var(--font-sans); font-weight: 700; }

/* blade */
.blender-blade {
  position: absolute;
  top: 50%; left: 50%;
  width: 40%;
  height: 40%;
  transform: translate(-50%, -50%);
  z-index: 4;
  display: grid;
  place-items: center;
  animation: spin 1.6s linear infinite;
  filter: drop-shadow(0 4px 8px rgba(26, 31, 23, 0.18));
}
.blade-arm {
  position: absolute;
  top: 50%; left: 50%;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, transparent 0%, rgba(26, 31, 23, 0.85) 30%, var(--ink) 50%, rgba(26, 31, 23, 0.85) 70%, transparent 100%);
  border-radius: var(--radius-full);
  transform-origin: 50% 50%;
}
.blade-arm:nth-child(1) { transform: translate(-50%, -50%) rotate(0deg); }
.blade-arm:nth-child(2) { transform: translate(-50%, -50%) rotate(60deg); }
.blade-arm:nth-child(3) { transform: translate(-50%, -50%) rotate(120deg); }
.blade-hub {
  position: relative;
  width: 1.25rem;
  height: 1.25rem;
  background: var(--ink);
  border-radius: 50%;
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.15), 0 0 0 4px rgba(255, 255, 255, 0.6);
}

/* output document — emerges and pulses */
.blender-output {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: 58%;
  display: grid;
  place-items: center;
  animation: doc-rise 6s ease-in-out infinite;
}
.doc {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: var(--space-2);
}
.doc-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--space-2);
}
.doc-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.doc-id {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.doc-line {
  height: 6px;
  background: var(--line);
  border-radius: var(--radius-full);
}
.doc-line-1 { width: 92%; }
.doc-line-2 { width: 78%; }
.doc-line-3 { width: 60%; }
.doc-total {
  margin-top: var(--space-2);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--brand);
  align-self: end;
  justify-self: end;
}

/* base */
.blender-base {
  position: relative;
  width: 78%;
  margin-top: -8%;
  height: 4rem;
  background: linear-gradient(180deg, var(--ink) 0%, #0d100b 100%);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}
.blender-base::before {
  content: "";
  position: absolute;
  top: 0;
  left: 6%;
  right: 6%;
  height: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent);
  border-radius: var(--radius-full);
}
.base-light {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--brand);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--brand);
  margin-right: var(--space-3);
  animation: pulse 1.6s ease-in-out infinite;
}
.base-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.7);
}

/* keyframes */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes counter-spin { to { transform: rotate(-360deg); } }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.85); }
}
@keyframes doc-rise {
  0%   { transform: translate(-50%, 30%) scale(0.92); opacity: 0; }
  20%  { transform: translate(-50%, 0%)  scale(1);    opacity: 1; }
  80%  { transform: translate(-50%, 0%)  scale(1);    opacity: 1; }
  100% { transform: translate(-50%, -10%) scale(0.96); opacity: 0; }
}

/* ==========================================================================
   Features
   ========================================================================== */
.features { padding: var(--space-9) 0; }

.features-grid {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 768px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(77, 124, 15, 0.3);
}

.feature-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--brand-soft);
  color: var(--brand);
}
.feature-icon svg { width: 1.25rem; height: 1.25rem; }

.feature-card h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.feature-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ── Media-style feature card: image on top, text below ── */
.feature-card--media {
  padding: 0;
  overflow: hidden;
  gap: 0;
}
.feature-card--media .feature-body {
  padding: var(--space-5) var(--space-6) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.feature-card-img {
  display: block;
  width: 100%;
  height: 14rem;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .feature-card-img { height: 16rem; }
}

/* ==========================================================================
   How it works
   ========================================================================== */
.how-it-works { padding: var(--space-8) 0; }

.how-it-works-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: var(--space-7) var(--space-5);
  box-shadow: var(--shadow);
}
@media (min-width: 768px) {
  .how-it-works-card { padding: var(--space-8) var(--space-7); }
}

.steps {
  display: grid;
  gap: var(--space-5);
  max-width: 36rem;
  margin: 0 auto var(--space-7);
}

.step {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: var(--space-4);
  align-items: start;
}

.step-number {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--brand);
  color: var(--surface);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 8px 16px -8px rgba(77, 124, 15, 0.5);
}

.step-content h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: var(--space-1);
  letter-spacing: -0.005em;
}
.step-content p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

.section-cta { text-align: center; }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta-section {
  padding: var(--space-9) 0;
  margin-top: var(--space-7);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(60% 80% at 50% 0%, var(--brand-soft) 0%, transparent 70%),
    var(--paper);
}

.cta-content {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  margin-bottom: var(--space-4);
  text-wrap: balance;
}

.cta-content p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: var(--space-6);
  text-wrap: pretty;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  justify-content: center;
}
@media (min-width: 480px) {
  .cta-actions { flex-direction: row; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: var(--space-7) 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}
@media (min-width: 640px) {
  .footer-content { flex-direction: row; justify-content: space-between; }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-logo-text {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.875rem;
  color: var(--muted);
}
.footer-links a {
  color: var(--muted);
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--ink); }

.footer-copy { font-size: 0.85rem; color: var(--muted); }

.footer-legal {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.7;
}
.footer-legal p { margin: 0; }
.footer-legal a { color: var(--muted); text-decoration: underline; }
.footer-legal a:hover { color: var(--ink); }

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(0.75rem); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-in { animation: fadeInUp 0.7s ease forwards; }
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.22s; opacity: 0; }
.delay-3 { animation-delay: 0.34s; opacity: 0; }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .animate-in { opacity: 1; }
  .ring, .swirl, .orbit, .chip, .blender-blade, .base-light, .blender-output {
    animation: none !important;
  }
  .blender-output { transform: translateX(-50%); opacity: 1; }
}

/* ==========================================================================
   Pre-signup questionnaire modal
   ========================================================================== */
.om-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 22, 24, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  animation: omFade 180ms ease-out;
}
.om-backdrop[hidden] { display: none; }
@keyframes omFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes omSlide { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.om-card {
  background: #faf8f3;
  color: #1a1a1a;
  border-radius: 20px;
  width: 100%;
  max-width: 540px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  animation: omSlide 220ms ease-out;
  font-family: 'Inter', -apple-system, sans-serif;
}

.om-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.om-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 4px;
}
.om-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 4px;
  line-height: 1.2;
  color: #1a1a1a;
}
.om-sub {
  font-size: 0.84rem;
  color: #4b5563;
  margin: 0;
  line-height: 1.4;
  max-width: 380px;
}
.om-close {
  flex-shrink: 0;
  background: rgba(0,0,0,0.04);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #1a1a1a;
  transition: background 0.15s ease;
}
.om-close:hover { background: rgba(0,0,0,0.1); }

.om-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px 8px;
}

.om-section {
  padding: 14px 0;
  border-bottom: 1px dashed rgba(0,0,0,0.08);
  animation: omSlide 220ms ease-out;
}
.om-section:last-of-type { border-bottom: none; }

.om-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.om-step-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1a1a1a;
  color: #faf8f3;
  font-size: 0.74rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.om-step-title {
  font-size: 0.96rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
}
.om-step-sub {
  font-size: 0.78rem;
  color: #6b7280;
  margin-top: 2px;
}

.om-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.om-pill {
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
  color: #1a1a1a;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: 999px;
  padding: 9px 16px;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease, color 0.12s ease, transform 0.08s ease;
  line-height: 1.2;
}
.om-pill:hover { border-color: #1a1a1a; }
.om-pill:active { transform: scale(0.97); }
.om-pill.is-active {
  background: #1a1a1a;
  color: #faf8f3;
  border-color: #1a1a1a;
}

.om-rate-block {
  margin-top: 14px;
}
.om-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #1a1a1a;
}
.om-rate-input-wrap {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.om-rate-input-wrap:focus-within { border-color: #1a1a1a; }
.om-rate-prefix,
.om-rate-suffix {
  flex-shrink: 0;
  padding: 0 12px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #6b7280;
  white-space: nowrap;
}
.om-rate-prefix {
  color: #1a1a1a;
  border-right: 1px solid rgba(0,0,0,0.08);
}
.om-rate-input-wrap input {
  flex: 1;
  min-width: 0;
  padding: 12px 8px;
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
}
.om-rate-input-wrap input::-webkit-outer-spin-button,
.om-rate-input-wrap input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.om-rate-input-wrap input[type=number] { -moz-appearance: textfield; }
.om-rate-help {
  font-size: 0.76rem;
  color: #6b7280;
  margin-top: 6px;
}

.om-phone-wrap {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.om-phone-wrap:focus-within { border-color: #1a1a1a; }
.om-phone-prefix {
  padding: 0 14px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a1a;
  border-right: 1px solid rgba(0,0,0,0.08);
}
.om-phone-wrap input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: 0.02em;
}
.om-phone-help {
  font-size: 0.76rem;
  color: #6b7280;
  margin-top: 6px;
}

.om-input-group {
  margin-top: 12px;
}
.om-input-group + .om-input-group {
  margin-top: 10px;
}
.om-input-group input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  background: #fff;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  outline: none;
  transition: border-color 0.15s ease;
}
.om-input-group input[type="text"]:focus {
  border-color: #1a1a1a;
}
.om-input-group input[type="text"]::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.om-error {
  margin: 10px 0;
  padding: 10px 12px;
  background: #fef1f1;
  border: 1px solid #f5b8b8;
  border-radius: 10px;
  font-size: 0.82rem;
  color: #842121;
}

.om-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 22px 18px;
  border-top: 1px solid rgba(0,0,0,0.06);
  background: rgba(0,0,0,0.02);
}
.om-btn-ghost,
.om-btn-primary {
  appearance: none;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  padding: 12px 20px;
  transition: opacity 0.15s ease, background 0.15s ease, transform 0.08s ease;
}
.om-btn-ghost {
  background: transparent;
  color: #6b7280;
}
.om-btn-ghost:hover { color: #1a1a1a; }
.om-btn-primary {
  background: #1a1a1a;
  color: #faf8f3;
  flex: 1;
  max-width: 280px;
  text-align: center;
}
.om-btn-primary:hover { background: #2a2a2a; }
.om-btn-primary:active { transform: scale(0.98); }
.om-btn-primary:disabled {
  background: rgba(0,0,0,0.18);
  color: rgba(255,255,255,0.7);
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .om-card { max-height: 96vh; border-radius: 16px; }
  .om-head { padding: 16px 16px 12px; }
  .om-body { padding: 14px 16px 6px; }
  .om-foot { padding: 12px 16px 14px; }
  .om-title { font-size: 1.2rem; }
}
