/* ============================================================
   MyVerdura — Landing Page styles
   Tokens sampled from design-system.md v2
   ============================================================ */

:root {
  /* Brand emerald */
  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-400: #34d399;
  --emerald-200: #a7f3d0;
  --emerald-50:  #ecfdf5;
  --leaf-mark:   #15803d;

  /* Accents */
  --accent-link: #059669;
  --accent-link-hover: #047857;
  --focus-ring: #a7f3d0;
  --accent-gold: #fbbf24;
  --accent-gold-soft: #fef3c7;
  --accent-orange: #ea580c;

  /* Text */
  --text-primary: #4a453d;
  --text-secondary: #544e44;
  --text-tertiary: #645c4f;
  --text-disabled: #b5ad9d;
  --text-inverse: #f7f6f3;
  --text-emphasis: #047857;

  /* Surfaces */
  --canvas: #f7f6f3;
  --raised: #ffffff;
  --sunken: #e8e5de;
  --overlay: rgba(74,69,61,0.55);
  --inverse: #2f2c27;
  --paper: #fdfbf6;
  --line: #d1ccc0;
  --line-strong: #b5ad9d;
  --line-italic: #047857;

  /* Status */
  --success: #16a34a;
  --success-soft: #dcfce7;
  --warning: #f59e0b;
  --warning-soft: #fef3c7;
  --info: #0f766e;
  --live: #dc2626;

  /* Shadows */
  --shadow-xs: 0 1px 1px rgba(74,69,61,0.04);
  --shadow-sm: 0 1px 2px rgba(74,69,61,0.05);
  --shadow-md: 0 4px 12px rgba(74,69,61,0.10);
  --shadow-lg: 0 12px 32px rgba(74,69,61,0.14);
  --shadow-xl: 0 24px 64px rgba(74,69,61,0.20);
  --shadow-warm: 0 8px 24px rgba(234,88,12,0.10);

  /* Radius */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-2xl: 32px;
  --r-pill: 999px;

  /* Type */
  --font-display: "Playfair Display", "Times New Roman", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, monospace;

  /* Motion */
  --ease: cubic-bezier(0.2,0.8,0.2,1);
  --dur: 220ms;

  /* Layout */
  --maxw: 1200px;
  --maxw-wide: 1440px;
  --maxw-read: 720px;

  /* Tweakable (overridden by JS) */
  --tw-accent-warm: 0;       /* 0 = emerald-led, 1 = golden-hour-led */
  --body-scale: 1;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--canvas);
  font-size: calc(16px * var(--body-scale));
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

em, .italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--text-emphasis);
}

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

.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1; }

::selection { background: var(--emerald-200); color: var(--emerald-700); }

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

/* ---- layout helpers ---- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
@media (min-width: 1280px) { .wrap { padding: 0 48px; } }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* ---- buttons ---- */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease), color var(--dur) var(--ease);
  white-space: nowrap;
  text-align: center;
}
.btn-primary {
  background: var(--emerald-600);
  color: #fff;
}
.btn-primary:hover { background: var(--emerald-700); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: var(--raised);
  color: var(--text-primary);
  border: 1px solid var(--line-strong);
}
.btn-secondary:hover { border-color: var(--emerald-600); color: var(--emerald-700); }
.btn-ghost {
  background: transparent;
  color: var(--accent-link);
}
.btn-ghost:hover { color: var(--accent-link-hover); }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; }
.btn-xl { height: 60px; padding: 0 36px; font-size: 17px; }
.btn-md { height: 44px; padding: 0 20px; font-size: 15px; }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---- pills / badges ---- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-body);
}
.pill-emerald { background: var(--emerald-50); color: var(--emerald-700); }
.pill-gold { background: var(--accent-gold-soft); color: #92400e; }
.pill-neutral { background: var(--sunken); color: var(--text-secondary); }
.pill-live {
  background: var(--live); color: #fff; letter-spacing: 0.04em;
}
.pill-live .dot {
  width: 7px; height: 7px; border-radius: 50%; background: #fff;
  animation: pulse 1.4s var(--ease) infinite;
}
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.35;} }

.dot-lead { width: 6px; height: 6px; border-radius: 50%; background: var(--lead-dot, var(--emerald-500)); }

/* ---- scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .pill-live .dot { animation: none; }
}
