/*
 * site.css — Operator Marketing Site
 * Design framework: taste-skill (https://github.com/Leonxlnx/taste-skill)
 * Baseline dials: DESIGN_VARIANCE 8 / MOTION_INTENSITY 6 / VISUAL_DENSITY 4
 *
 * STRICT taste-skill rules honored:
 *   - NO Inter font (banned)
 *   - NO AI purple/violet accent (banned)
 *   - NO gradient text on headlines (banned)
 *   - NO pure black #000000 (use Zinc-950)
 *   - NO centered hero H1 (asymmetric only)
 *   - NO neon/outer glows (inner borders + tinted shadows instead)
 *   - NO 3-column equal card rows
 *   - NO h-screen (use min-h-[100dvh])
 *   - NO custom cursors
 *   - NO Unsplash (use picsum.photos seeds or real screenshots)
 *   - NO emojis
 *   - ALL numbers in monospace font
 *   - Spring-physics-feel cubic-bezier easing (not linear)
 */

/* ═══════════════════════════════════════════════════════════
   CSS CUSTOM PROPERTIES — ONE palette, ONE accent
   ═══════════════════════════════════════════════════════════ */
:root {
  /* Background & surfaces */
  --bg:          #FAFAFA;              /* Zinc-50 — NOT pure white */
  --surface:     #FFFFFF;              /* Pure white for elevated cards only */
  --surface-2:   #F4F4F5;              /* Zinc-100 — subtle section breaks */

  /* Text */
  --ink:         #09090B;              /* Zinc-950 — off-black, NEVER #000 */
  --ink-2:       #27272A;              /* Zinc-800 — strong body text */
  --ink-3:       #52525B;              /* Zinc-600 — secondary text */
  --ink-4:       #71717A;              /* Zinc-500 — muted */
  --ink-5:       #A1A1AA;              /* Zinc-400 — labels, placeholders */

  /* Borders */
  --line:        #E4E4E7;              /* Zinc-200 — default borders */
  --line-2:      #D4D4D8;              /* Zinc-300 — stronger borders */

  /* Single accent — Emerald-600 (desaturated vs. Emerald-500 for elegance) */
  --accent:      #059669;              /* Emerald-600 */
  --accent-soft: #ECFDF5;              /* Emerald-50 — tint for pill bg */
  --accent-ring: rgba(5, 150, 105, 0.12); /* subtle tint for shadows */

  /* Semantic */
  --success:     #059669;
  --warning:     #D97706;
  --danger:      #DC2626;

  /* Spring physics easing — taste-skill spring feel */
  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
  --ease-swift:  cubic-bezier(0.32, 0.72, 0, 1);

  /* Diffusion shadow — the taste-skill "Bento 2.0" shadow */
  --shadow-diff: 0 20px 40px -15px rgba(9, 9, 11, 0.08);
  --shadow-card: 0 1px 2px rgba(9, 9, 11, 0.04), 0 2px 8px rgba(9, 9, 11, 0.03);
}

/* ═══════════════════════════════════════════════════════════
   BASE
   ═══════════════════════════════════════════════════════════ */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  /* Satoshi for body (NOT Inter — banned by taste-skill) */
  font-family: 'Satoshi', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  font-feature-settings: 'ss01', 'ss02';
}

body.lock { overflow: hidden; }

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

::selection { background: var(--accent); color: #FFFFFF; }

.font-display { font-family: 'Cabinet Grotesk', 'Satoshi', system-ui, sans-serif; }
.font-mono    { font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace; }

/* All numbers are monospace (taste-skill VISUAL_DENSITY rule) */
.num { font-family: 'JetBrains Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

/* ═══════════════════════════════════════════════════════════
   TYPOGRAPHY
   Control hierarchy with WEIGHT and COLOR, not just size.
   ═══════════════════════════════════════════════════════════ */

/* Display H1 — hero only, one per page */
.h-display {
  font-family: 'Cabinet Grotesk', 'Satoshi', sans-serif;
  font-weight: 500;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.h-display strong { font-weight: 700; }

/* H2 — section headings */
.h-section {
  font-family: 'Cabinet Grotesk', 'Satoshi', sans-serif;
  font-weight: 500;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* H3 — sub-section / card titles */
.h-sub {
  font-family: 'Cabinet Grotesk', 'Satoshi', sans-serif;
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
}

/* Eyebrow label — mono, uppercase, tiny */
.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-4);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

/* Lead paragraph — the speakable target */
.lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 65ch;
  font-weight: 400;
}

/* Body prose */
.prose { font-size: 15px; line-height: 1.65; color: var(--ink-3); max-width: 65ch; }
.prose p + p { margin-top: 1em; }

/* ═══════════════════════════════════════════════════════════
   LAYOUT CONTAINERS
   ═══════════════════════════════════════════════════════════ */

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding-left: clamp(1.25rem, 4vw, 3.5rem);
  padding-right: clamp(1.25rem, 4vw, 3.5rem);
}

.section {
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.section-border-top {
  border-top: 1px solid var(--line);
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS — primary + ghost only
   ═══════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: 'Satoshi', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: 9999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.4s var(--ease),
              background 0.4s var(--ease),
              box-shadow 0.4s var(--ease),
              color 0.4s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px) scale(0.985);
}

/* Primary — solid Emerald with inner-border + tinted shadow (NO neon glow) */
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1),
              0 1px 2px rgba(9, 9, 11, 0.15);
}
.btn-primary:hover {
  background: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),
              0 8px 20px -6px var(--accent-ring);
}

/* Ghost — transparent with border */
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--ink);
  box-shadow: var(--shadow-card);
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ═══════════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════════ */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 250, 250, 0.82);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px)) {
  .nav {
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
  }
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: clamp(1.25rem, 4vw, 3.5rem);
  padding-right: clamp(1.25rem, 4vw, 3.5rem);
}
@media (min-width: 768px) {
  .nav-inner { height: 84px; }
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Cabinet Grotesk', 'Satoshi', sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.nav-mark {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--bg);
  border-radius: 8px;
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 700;
  font-size: 14px;
}

/* Real logo (PNG) — replaces the nav-mark + text combo.
   Logo PNG is 1730×287 (6:1 aspect ratio) with minimal padding,
   so the height value maps directly to visible text height. */
.nav-logo {
  height: 28px;
  width: auto;
  display: block;
  object-fit: contain;
}
@media (min-width: 768px) {
  .nav-logo { height: 36px; }
}

.nav-links {
  display: none;
  gap: 2.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  color: var(--ink-3);
}
@media (min-width: 768px) {
  .nav-links { display: flex; }
}
.nav-links a {
  transition: color 0.3s var(--ease);
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); }

/* ═══════════════════════════════════════════════════════════
   CARDS — Bento 2.0 paradigm
   ═══════════════════════════════════════════════════════════ */

/* Rounded-[2.5rem] card with diffusion shadow */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2.5rem;
  padding: 2.5rem;
  box-shadow: var(--shadow-diff);
  position: relative;
  transition: transform 0.5s var(--ease),
              box-shadow 0.5s var(--ease),
              border-color 0.5s var(--ease);
}
@media (min-width: 768px) {
  .card { padding: 2.75rem; }
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 30px 60px -20px rgba(9, 9, 11, 0.1);
}

/* Tight card variant — smaller padding, still rounded */
.card-tight {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  padding: 1.75rem;
  transition: all 0.4s var(--ease);
}
.card-tight:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow-card);
}

/* Pill / tag — for small labels */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 9999px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(5, 150, 105, 0.15);
}

.pill-dot::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--accent);
  animation: pulse-dot 2.4s var(--ease) infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* ═══════════════════════════════════════════════════════════
   FADE-UP — IntersectionObserver animation
   Screenshot-safe: content is visible by default. JS applies
   `.js-animate-ready` to <html> early, which flips the initial
   state to hidden; then the observer triggers the reveal.
   ═══════════════════════════════════════════════════════════ */

.fade-up {
  opacity: 1;
  transform: none;
}

.js-animate-ready .fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.1s var(--ease),
              transform 1.1s var(--ease);
}
.js-animate-ready .fade-up.in {
  opacity: 1;
  transform: translateY(0);
}
.d-1 { transition-delay: 0.06s; }
.d-2 { transition-delay: 0.16s; }
.d-3 { transition-delay: 0.28s; }
.d-4 { transition-delay: 0.42s; }
.d-5 { transition-delay: 0.58s; }
.d-6 { transition-delay: 0.72s; }

/* ═══════════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════════ */

.field-group { display: grid; gap: 0.5rem; }

.field-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-4);
}

.field {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0.875rem;
  padding: 0.85rem 1rem;
  font-family: 'Satoshi', system-ui, sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field::placeholder { color: var(--ink-5); }
.field:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px var(--accent-ring);
}

.field-select {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0.875rem;
  padding: 0.85rem 1rem;
  font-family: 'Satoshi', system-ui, sans-serif;
  font-size: 14px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2352525B' stroke-width='2.2'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
}
.field-select:focus { border-color: var(--ink); box-shadow: 0 0 0 4px var(--accent-ring); }

/* ═══════════════════════════════════════════════════════════
   FAQ ACCORDION — details/summary native
   ═══════════════════════════════════════════════════════════ */

.faq-item {
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--surface);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.faq-item + .faq-item { margin-top: 0.75rem; }
.faq-item[open] {
  border-color: var(--ink);
  box-shadow: var(--shadow-card);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q {
  font-family: 'Cabinet Grotesk', 'Satoshi', sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  flex: 1;
}
.faq-toggle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  color: var(--ink-4);
  transition: transform 0.4s var(--ease);
  line-height: 1;
  padding-top: 2px;
}
.faq-item[open] .faq-toggle { transform: rotate(45deg); }
.faq-answer {
  padding: 0 1.75rem 1.75rem 1.75rem;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-3);
  max-width: 65ch;
}

/* ═══════════════════════════════════════════════════════════
   PRICING TIER CARDS
   ═══════════════════════════════════════════════════════════ */

.tier {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2rem;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
  position: relative;
}
.tier:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-diff);
}
.tier-featured {
  border-color: var(--ink);
  box-shadow: var(--shadow-diff);
}
.tier-featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.tier-name {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: 1rem;
}
.tier-price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}
.tier-price-amount {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 600;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.tier-price-cadence {
  font-size: 14px;
  color: var(--ink-4);
  font-family: 'JetBrains Mono', monospace;
}
.tier-caveat {
  font-size: 13px;
  color: var(--ink-4);
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}
.tier-features {
  list-style: none;
  margin: 0 0 2rem 0;
  padding: 0;
  flex: 1;
}
.tier-features li {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}
.tier-features li:last-child { border-bottom: none; }
.tier-features li::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 3px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
}

.tier-exclude li::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23A1A1AA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='18' y1='6' x2='6' y2='18'/><line x1='6' y1='6' x2='18' y2='18'/></svg>");
}
.tier-exclude li {
  color: var(--ink-4);
}

/* ═══════════════════════════════════════════════════════════
   ZIG-ZAG — 2 col alternating layout (taste-skill anti-3-col)
   ═══════════════════════════════════════════════════════════ */

.zig {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  padding: 3rem 0;
}
@media (min-width: 900px) {
  .zig { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .zig-reverse .zig-content { order: 2; }
  .zig-reverse .zig-visual { order: 1; }
}
.zig-content > .eyebrow { margin-bottom: 1rem; }
.zig-visual {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.75rem;
  padding: 2rem;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
}

/* ═══════════════════════════════════════════════════════════
   MOBILE MENU
   ═══════════════════════════════════════════════════════════ */

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
@media (min-width: 768px) { .menu-btn { display: none; } }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--bg);
  padding: 2rem 1.5rem;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 3rem 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.mobile-menu a {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color 0.3s var(--ease);
}
.mobile-menu a:hover { color: var(--accent); }

/* ═══════════════════════════════════════════════════════════
   ACCESSIBILITY + MOTION
   ═══════════════════════════════════════════════════════════ */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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