/* ═══════════════════════════════════════════════════════
   BRIEFS DESIGN SYSTEM  —  briefs.css
   -------------------------------------------------------
   A reusable token-first stylesheet for all Briefs pages.

   USAGE: Import this file first, then a page-specific
   stylesheet (e.g. landing-page.css, pricing.css) that
   only adds page-level layout and unique components.

   TABLE OF CONTENTS
   ─────────────────
   1.  Reset & Base
   2.  Design Tokens (CSS Custom Properties)
   3.  Typography Primitives
   4.  Layout Utilities
   5.  Spacing Utilities
   6.  Navigation  (site-nav, hamburger, drawer)
   7.  Buttons & CTAs
   8.  Badges, Pills & Tags
   9.  Section Shells (eyebrow, section headers)
   10. Cards (generic card shell + variants)
   11. Stat Block
   12. Avatar Stack (social proof)
   13. Feature Tag Cloud
   14. Video Modal
   15. Forms & Inputs
   16. Animations & Keyframes
   17. Responsive Breakpoints
═══════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════
   1. RESET & BASE
═══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--warm-white);
  color: var(--ink);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; cursor: pointer; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }


/* ═══════════════════════════════════════════════════════
   2. DESIGN TOKENS
═══════════════════════════════════════════════════════ */
:root {
  /* ── Palette ── */
  --cream:          #F5F0E8;
  --warm-white:     #FDFAF4;
  --ink:            #1A1410;
  --muted:          #7A6E65;
  --accent:         #C8451A;
  --accent-light:   #E8C4B4;
  --accent-hover:   #A83512;       /* darker accent for pressed states */
  --rule:           rgba(26,20,16,0.12);
  --rule-light:     rgba(245,240,232,0.10); /* rules on dark bg */

  /* ── Typography ── */
  --serif:  'Playfair Display', Georgia, serif;
  --sans:   'DM Sans', system-ui, sans-serif;
  --mono:   'DM Mono', monospace;

  /* ── Spacing scale ── */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 80px;
  --space-10: 120px;

  /* ── Layout ── */
  --nav-h:         64px;
  --page-gutter:   6vw;          /* left/right padding for all sections */
  --content-max:   1400px;       /* optional max-width for centred layouts */

  /* ── Radii ── */
  --radius-sm:  2px;
  --radius-md:  3px;
  --radius-lg:  6px;
  --radius-xl:  12px;
  --radius-full: 9999px;

  /* ── Shadows ── */
  --shadow-sm:  0 2px 8px rgba(26,20,16,0.08);
  --shadow-md:  0 8px 32px rgba(26,20,16,0.12);
  --shadow-lg:  0 24px 80px rgba(26,20,16,0.18), 0 4px 16px rgba(26,20,16,0.10);
  --shadow-modal: 0 0 0 1px rgba(245,240,232,0.08),
                  0 40px 120px rgba(0,0,0,0.80),
                  0 8px 32px rgba(0,0,0,0.60);

  /* ── Transitions ── */
  --ease-fast:   0.15s ease;
  --ease-base:   0.2s ease;
  --ease-smooth: 0.3s ease;
  --ease-spring: cubic-bezier(0.23, 1, 0.32, 1);
}


/* ═══════════════════════════════════════════════════════
   3. TYPOGRAPHY PRIMITIVES
   Use these classes anywhere; they carry the Briefs voice.
═══════════════════════════════════════════════════════ */

/* Eyebrow label — small caps mono above a headline */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}
/* Muted variant — for sections on light bg */
.eyebrow--muted { color: var(--muted); }
.eyebrow--muted::before { background: var(--muted); }
/* Dark bg variant */
.eyebrow--light { color: rgba(245,240,232,0.5); }
.eyebrow--light::before { background: rgba(245,240,232,0.3); }

/* Headline sizes */
.headline-xl {
  font-family: var(--serif);
  font-size: clamp(42px, 7.5vw, 110px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.headline-lg {
  font-family: var(--serif);
  font-size: clamp(32px, 4.5vw, 64px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.headline-md {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.headline-sm {
  font-family: var(--serif);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

/* Shared italic accent */
.headline-xl em,
.headline-lg em,
.headline-md em,
.headline-sm em { font-style: italic; color: var(--accent); }

/* Light-bg italic accent (cream text on dark bg) */
.headline--on-dark em { color: rgba(245,240,232,0.5); }

/* Body / lead text */
.lead {
  font-family: var(--sans);
  font-size: clamp(15px, 1.5vw, 19px);
  font-weight: 300;
  color: var(--muted);
  line-height: 1.6;
}
.body-text {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
}
.body-text--on-dark { color: rgba(245,240,232,0.65); }

/* Mono label — general purpose small mono string */
.mono-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
}
.mono-label--accent { color: var(--accent); }
.mono-label--on-dark { color: rgba(245,240,232,0.4); }


/* ═══════════════════════════════════════════════════════
   4. LAYOUT UTILITIES
═══════════════════════════════════════════════════════ */

/* Standard page section shell */
.section {
  padding: var(--space-10) var(--page-gutter);
  position: relative;
}
.section--sm  { padding-top: var(--space-9); padding-bottom: var(--space-9); }
.section--lg  { padding-top: 160px; padding-bottom: 160px; }

/* Background variants */
.bg-cream      { background: var(--cream); }
.bg-warm-white { background: var(--warm-white); }
.bg-ink        { background: var(--ink); color: var(--cream); }

/* Horizontal hairline rule at top of section */
.section-rule::before {
  content: '';
  position: absolute;
  top: 0; left: var(--page-gutter); right: var(--page-gutter);
  height: 1px;
  background: var(--rule);
}
/* Also bottom rule */
.section-rule-bottom::after {
  content: '';
  position: absolute;
  bottom: 0; left: var(--page-gutter); right: var(--page-gutter);
  height: 1px;
  background: var(--rule);
}

/* Page max-width wrapper (optional) */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
}

/* Standard two-column section header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-8);
  gap: var(--space-5);
}
.section-header__left { flex: 1; }
.section-header__right {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--muted);
  max-width: 34ch;
  line-height: 1.6;
  text-align: right;
}

/* Generic two-column split (50/50 by default) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: center;
}
.split--60-40 { grid-template-columns: 3fr 2fr; }
.split--40-60 { grid-template-columns: 2fr 3fr; }

/* Centred text block */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }


/* ═══════════════════════════════════════════════════════
   5. SPACING UTILITIES  (mt-*, mb-*, gap-*)
═══════════════════════════════════════════════════════ */
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); }
.mt-8 { margin-top: var(--space-8); }
.mt-9 { margin-top: var(--space-9); }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-7 { margin-bottom: var(--space-7); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-9 { margin-bottom: var(--space-9); }


/* ═══════════════════════════════════════════════════════
   6. NAVIGATION
═══════════════════════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-gutter);
  background: rgba(253,250,244,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
  transition: background var(--ease-smooth), box-shadow var(--ease-smooth);
}
.site-nav.scrolled {
  background: rgba(253,250,244,0.97);
  box-shadow: 0 1px 0 var(--rule);
}

/* Logo */
.nav-logo {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.nav-logo-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-bottom: 12px;
  flex-shrink: 0;
}

/* Desktop links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.01em;
  position: relative;
  transition: color var(--ease-base);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

/* Active nav link */
.nav-links a.is-active { color: var(--ink); }
.nav-links a.is-active::after { width: 100%; }

/* Nav right group */
.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-link-login {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
  transition: color var(--ease-base);
}
.nav-link-login:hover { color: var(--ink); }

/* Nav CTA button */
.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-md);
  letter-spacing: 0.04em;
  transition: background var(--ease-base), transform var(--ease-fast);
  white-space: nowrap;
  border: none;
}
.nav-btn:hover { background: var(--accent); transform: translateY(-1px); }

/* Hamburger (hidden on desktop) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  padding: 4px;
  background: none;
  border: none;
  z-index: 8100;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.32s var(--ease-spring),
              opacity var(--ease-base),
              width var(--ease-smooth);
}
.nav-hamburger span:nth-child(1) { width: 24px; }
.nav-hamburger span:nth-child(2) { width: 16px; }
.nav-hamburger span:nth-child(3) { width: 24px; }
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); width: 24px; }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); width: 24px; }

/* Mobile backdrop */
.nav-drawer-backdrop {
  position: fixed; inset: 0;
  z-index: 8040;
  background: rgba(26,20,16,0);
  visibility: hidden;
  pointer-events: none;
}
.nav-drawer-backdrop.is-open { visibility: visible; pointer-events: all; }

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(340px, 88vw);
  background: var(--warm-white);
  border-left: 1px solid var(--rule);
  z-index: 8050;
  display: flex;
  flex-direction: column;
  padding: calc(var(--nav-h) + 32px) 32px 48px;
  visibility: hidden;
}
.nav-drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
  margin-bottom: auto;
}
.nav-drawer-links li { border-bottom: 1px solid var(--rule); }
.nav-drawer-links a {
  display: block;
  padding: 18px 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  transition: color var(--ease-base), padding-left var(--ease-base);
}
.nav-drawer-links a:hover { color: var(--accent); padding-left: 8px; }
.nav-drawer-cta { display: flex; flex-direction: column; gap: 12px; padding-top: 32px; }
.nav-drawer-cta .nav-btn { justify-content: center; padding: 14px; font-size: 14px; }
.nav-drawer-login {
  display: block;
  text-align: center;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
  padding: 10px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  transition: border-color var(--ease-base), color var(--ease-base);
}
.nav-drawer-login:hover { border-color: var(--ink); color: var(--ink); }


/* ═══════════════════════════════════════════════════════
   7. BUTTONS & CTAs
   -------------------------------------------------------
   btn-primary     — dark filled (main action)
   btn-accent      — accent/red filled
   btn-ghost       — outlined, transparent
   btn-ghost-light — outlined on dark bg
   btn-text        — underline text link
   btn-icon        — icon-only circle button
═══════════════════════════════════════════════════════ */

/* Base shared */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 500;
  border-radius: var(--radius-md);
  letter-spacing: 0.04em;
  transition: background var(--ease-base),
              color var(--ease-base),
              border-color var(--ease-base),
              transform var(--ease-fast),
              opacity var(--ease-base);
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  text-decoration: none;
}
.btn svg { flex-shrink: 0; transition: transform var(--ease-base); }

/* Sizes */
.btn--sm  { padding: 9px 20px;  font-size: 13px; }
.btn--md  { padding: 14px 32px; font-size: 14px; } /* default */
.btn--lg  { padding: 18px 44px; font-size: 16px; }

/* Variants */
.btn-primary {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.btn-primary:hover svg { transform: translateX(4px); }

.btn-accent {
  background: var(--accent);
  color: var(--cream);
  border-color: var(--accent);
}
.btn-accent:hover { opacity: 0.85; transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--rule);
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

.btn-ghost-light {
  background: transparent;
  color: rgba(245,240,232,0.7);
  border-color: rgba(245,240,232,0.2);
}
.btn-ghost-light:hover {
  color: var(--cream);
  border-color: rgba(245,240,232,0.6);
}

.btn-text {
  background: transparent;
  border: none;
  padding: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  padding-bottom: 2px;
  gap: 8px;
}
.btn-text:hover { color: var(--ink); border-color: var(--ink); }

.btn-icon {
  width: 40px; height: 40px;
  padding: 0;
  background: var(--ink);
  color: var(--cream);
  border-radius: 50%;
  font-size: 16px;
}
.btn-icon:hover { background: var(--accent); transform: scale(1.05); }
.btn-icon.is-disabled,
.btn-icon:disabled { opacity: 0.25; pointer-events: none; }

/* Convenience shorthand aliases (matching existing landing page classes) */
.btn-primary { /* already above */ }


/* ═══════════════════════════════════════════════════════
   8. BADGES, PILLS & TAGS
═══════════════════════════════════════════════════════ */

/* Pill — inline feature callout  */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: var(--warm-white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: border-color var(--ease-base), color var(--ease-base);
}
.pill:hover { border-color: var(--accent); color: var(--ink); }
.pill svg { opacity: 0.5; flex-shrink: 0; }

/* Tag — feature checklist item */
.feature-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 8px 16px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  transition: all var(--ease-base);
}
.feature-tag:hover { border-color: var(--ink); color: var(--ink); background: var(--cream); }

/* Feature tags row */
.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: var(--space-6);
  border-top: 1px solid var(--rule);
  margin-top: var(--space-8);
}

/* Screenshot / panel label tag */
.panel-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
}
.panel-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Status / badge dot */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.badge--default  { background: var(--cream); color: var(--muted); border: 1px solid var(--rule); }
.badge--accent   { background: var(--accent); color: var(--cream); }
.badge--ink      { background: var(--ink);    color: var(--cream); }
.badge--success  { background: #2D6A4F; color: #fff; }
.badge--warning  { background: #E76F51; color: #fff; }


/* ═══════════════════════════════════════════════════════
   9. SECTION SHELLS
   Generic reusable structures that appear on multiple pages.
═══════════════════════════════════════════════════════ */

/* "How it Works" / 3-step grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

/* Generic 3-col grid (cards, briefs, pricing, etc.) */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

/* Social proof centred block */
.section-proof {
  padding: var(--space-9) var(--page-gutter);
  background: var(--cream);
  position: relative;
  text-align: center;
}
.section-proof::before,
.section-proof::after {
  content: '';
  position: absolute;
  left: var(--page-gutter); right: var(--page-gutter);
  height: 1px;
  background: var(--rule);
}
.section-proof::before { top: 0; }
.section-proof::after  { bottom: 0; }

/* Final CTA banner */
.section-final-cta {
  padding: var(--space-10) var(--page-gutter);
  background: var(--cream);
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
}
.section-final-cta::before {
  content: '';
  position: absolute;
  top: 0; left: var(--page-gutter); right: var(--page-gutter);
  height: 1px;
  background: var(--rule);
}
.final-cta-headline {
  font-family: var(--serif);
  font-size: clamp(32px, 4.5vw, 64px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--ink);
  max-width: 14ch;
}
.final-cta-headline em { font-style: italic; color: var(--accent); }
.final-cta-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-5);
}
.final-cta-note {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}


/* ═══════════════════════════════════════════════════════
   10. CARDS
═══════════════════════════════════════════════════════ */

/* Generic card base */
.card {
  background: var(--warm-white);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: background var(--ease-base);
}
.card:hover { background: var(--cream); }

/* Card on cream bg shows warm-white on hover instead */
.bg-cream .card:hover { background: rgba(26,20,16,0.04); }

/* Card on dark bg */
.card--dark {
  background: rgba(245,240,232,0.04);
  color: var(--cream);
  border: 1px solid var(--rule-light);
}
.card--dark:hover { background: rgba(245,240,232,0.08); }

/* Step card (numbered) */
.step-card {
  background: var(--warm-white);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  transition: background var(--ease-smooth);
}
.step-card:hover { background: var(--cream); }

.step-card__num {
  font-family: var(--serif);
  font-size: 80px;
  font-weight: 900;
  color: var(--rule);
  line-height: 1;
  margin-bottom: -16px;
  display: block;
  transition: color var(--ease-smooth);
}
.step-card:hover .step-card__num { color: var(--accent-light); }

.step-card__title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--space-4);
}

.step-card__img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
  filter: grayscale(0.1);
  transition: filter var(--ease-smooth);
}
.step-card:hover .step-card__img { filter: none; }

.step-card__body {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

/* Brief / content card */
.brief-card {
  background: var(--warm-white);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: background var(--ease-base);
}
.brief-card:hover { background: var(--cream); }

.brief-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brief-card__author {
  display: flex;
  align-items: center;
  gap: 8px;
}
.brief-card__avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  object-fit: cover;
}
.brief-card__username {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.brief-card__views {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.brief-card__title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.brief-card__excerpt {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}
.brief-card__time {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(26,20,16,0.3);
  text-transform: uppercase;
}

/* Pricing card */
.pricing-card {
  background: var(--warm-white);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  position: relative;
}
.pricing-card--featured {
  background: var(--ink);
  color: var(--cream);
}
.pricing-card__plan {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.pricing-card--featured .pricing-card__plan { color: rgba(245,240,232,0.5); }

.pricing-card__price {
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 900;
  line-height: 0.9;
  color: var(--ink);
}
.pricing-card--featured .pricing-card__price { color: var(--cream); }
.pricing-card__price sup {
  font-size: 0.3em;
  vertical-align: top;
  margin-top: 0.4em;
  color: var(--accent);
}
.pricing-card__period {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 8px;
}
.pricing-card--featured .pricing-card__period { color: rgba(245,240,232,0.4); }
.pricing-card__divider {
  height: 1px;
  background: var(--rule);
  margin: var(--space-2) 0;
}
.pricing-card--featured .pricing-card__divider { background: var(--rule-light); }
.pricing-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pricing-card__feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.pricing-card--featured .pricing-card__feature { color: rgba(245,240,232,0.65); }
.pricing-card__feature::before {
  content: '✓';
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}
.pricing-card__feature--unavailable { opacity: 0.35; }
.pricing-card__feature--unavailable::before { content: '–'; color: var(--muted); }

/* Comparison / FAQ accordion card */
.accordion-item {
  border-bottom: 1px solid var(--rule);
}
.accordion-item__trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  background: none;
  border: none;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  gap: 16px;
  cursor: pointer;
  transition: color var(--ease-base);
}
.accordion-item__trigger:hover { color: var(--accent); }
.accordion-item__icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--muted);
  transition: transform var(--ease-base), background var(--ease-base);
}
.accordion-item.is-open .accordion-item__icon {
  transform: rotate(45deg);
  background: var(--accent);
  border-color: var(--accent);
  color: var(--cream);
}
.accordion-item__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.accordion-item__body-inner {
  padding-bottom: 24px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}


/* ═══════════════════════════════════════════════════════
   11. STAT BLOCK
═══════════════════════════════════════════════════════ */
.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat__num {
  font-family: var(--serif);
  font-size: clamp(56px, 8vw, 110px);
  font-weight: 900;
  line-height: 0.9;
  color: var(--ink);
}
.stat__num--on-dark { color: var(--cream); }
.stat__num sup {
  font-size: 0.3em;
  vertical-align: top;
  margin-top: 0.3em;
  color: var(--accent);
}
.stat__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat__label--on-dark { color: rgba(245,240,232,0.4); }


/* ═══════════════════════════════════════════════════════
   12. AVATAR STACK (social proof)
═══════════════════════════════════════════════════════ */
.avatar-stack {
  display: flex;
  justify-content: center;
  align-items: center;
}
.avatar-stack__img {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 3px solid var(--cream);
  margin-left: -12px;
  object-fit: cover;
  transition: transform var(--ease-base);
  position: relative;
}
.avatar-stack__img:first-child { margin-left: 0; }
.avatar-stack__img:hover { transform: scale(1.15) translateY(-4px); z-index: 10; }
.avatar-stack__more {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 3px solid var(--cream);
  margin-left: -12px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Proof block (centred) */
.proof-headline {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: var(--space-4);
}
.proof-headline em { font-style: italic; color: var(--accent); }
.proof-sub {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--muted);
  margin-bottom: var(--space-7);
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}


/* ═══════════════════════════════════════════════════════
   13. TAG CLOUD
═══════════════════════════════════════════════════════ */
.section-tagcloud {
  background: var(--ink);
  padding: var(--space-9) var(--page-gutter);
  text-align: center;
  overflow: hidden;
}
.section-tagcloud-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.4);
  margin-bottom: var(--space-7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.section-tagcloud-label::before,
.section-tagcloud-label::after {
  content: '';
  width: 40px; height: 1px;
  background: rgba(245,240,232,0.2);
  display: block;
}
.tagcloud-wrapper { margin-top: -60px; }
.tagcloud-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 20px 0;
}
.tagcloud-control-button input { display: none; }
.tagcloud-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  list-style: none;
}
.tagcloud-tag a {
  font-family: var(--mono);
  font-size: 13px;
  color: rgba(245,240,232,0.5);
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border: 1px solid rgba(245,240,232,0.1);
  border-radius: var(--radius-sm);
  transition: all var(--ease-base);
  display: block;
}
.tagcloud-tag a:hover {
  color: var(--cream);
  border-color: rgba(245,240,232,0.4);
  background: rgba(245,240,232,0.05);
}


/* ═══════════════════════════════════════════════════════
   14. VIDEO MODAL
═══════════════════════════════════════════════════════ */
.video-modal-backdrop {
  position: fixed; inset: 0;
  z-index: 9000;
  background: rgba(10,8,6,0);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  visibility: hidden;
}
.video-modal-backdrop.is-open { pointer-events: all; visibility: visible; }
.video-modal-shell {
  position: relative;
  width: min(92vw, 1160px);
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-modal);
  will-change: transform, opacity;
}
.video-modal-shell::before,
.video-modal-shell::after {
  content: '';
  position: absolute;
  width: 24px; height: 24px;
  border-color: var(--accent);
  border-style: solid;
  z-index: 10;
  pointer-events: none;
}
.video-modal-shell::before { top: 12px; left: 12px; border-width: 2px 0 0 2px; }
.video-modal-shell::after  { bottom: 12px; right: 12px; border-width: 0 2px 2px 0; }
.video-modal-shell iframe,
.video-modal-shell video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-modal-close {
  position: absolute;
  top: -52px; right: 0;
  width: 40px; height: 40px;
  background: rgba(245,240,232,0.1);
  border: 1px solid rgba(245,240,232,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--cream);
  transition: background var(--ease-base), border-color var(--ease-base);
  will-change: transform, opacity;
}
.video-modal-close:hover { background: var(--accent); border-color: var(--accent); }
.video-modal-close svg { pointer-events: none; }
.video-modal-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 12px 20px;
  background: linear-gradient(transparent, rgba(10,8,6,0.7));
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--ease-smooth);
}
.video-modal-shell:hover .video-modal-label { opacity: 1; }
.video-modal-label-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 1.8s ease-in-out infinite;
}
.video-modal-label span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.7);
}


/* ═══════════════════════════════════════════════════════
   15. FORMS & INPUTS
═══════════════════════════════════════════════════════ */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.field__input,
.field__select,
.field__textarea {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--warm-white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  width: 100%;
  transition: border-color var(--ease-base), box-shadow var(--ease-base);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.field__input:focus,
.field__select:focus,
.field__textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(26,20,16,0.06);
}
.field__input::placeholder,
.field__textarea::placeholder { color: rgba(122,110,101,0.5); }
.field__textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.field__hint {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.field__error {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--accent);
}
.field__input.has-error,
.field__select.has-error { border-color: var(--accent); }

/* Toggle / switch */
.toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.toggle__track {
  width: 40px; height: 22px;
  background: var(--rule);
  border-radius: var(--radius-full);
  position: relative;
  transition: background var(--ease-base);
}
.toggle__thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--ease-base);
  box-shadow: var(--shadow-sm);
}
.toggle input:checked ~ .toggle__track { background: var(--ink); }
.toggle input:checked ~ .toggle__track .toggle__thumb { transform: translateX(18px); }
.toggle input { display: none; }
.toggle__label {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
}


/* ═══════════════════════════════════════════════════════
   16. ANIMATIONS & KEYFRAMES
═══════════════════════════════════════════════════════ */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Utility animation classes */
.anim-fade-in-up { animation: fade-in-up 0.6s var(--ease-spring) forwards; }
.anim-fade-in    { animation: fade-in    0.4s ease forwards; }


/* ═══════════════════════════════════════════════════════
   17. RESPONSIVE BREAKPOINTS
═══════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  /* Nav: hide desktop links, show hamburger */
  .nav-links,
  .nav-link-login,
  .nav-cta-group .nav-btn { display: none; }
  .nav-hamburger { display: flex; }

  /* Layouts */
  .split,
  .split--60-40,
  .split--40-60 { grid-template-columns: 1fr; }

  .grid-3,
  .steps-grid { grid-template-columns: 1fr; }

  .grid-2 { grid-template-columns: 1fr; }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .section-header__right { text-align: left; }

  .section-final-cta { flex-direction: column; align-items: flex-start; }
  .final-cta-right   { align-items: flex-start; }
}

@media (max-width: 600px) {
  :root { --page-gutter: 5vw; }

  .btn--lg { padding: 15px 28px; font-size: 15px; }
  .btn--md { padding: 12px 24px; font-size: 14px; }

  .card,
  .brief-card    { padding: 28px 20px; }
  .pricing-card,
  .step-card     { padding: 32px 24px; }

  .section       { padding-top: var(--space-9); padding-bottom: var(--space-9); }
  .section-final-cta { padding-top: var(--space-9); padding-bottom: var(--space-9); }
}


/* ── Site Footer ── */
.site-footer {
    background: var(--cream);
    border-top: 1px solid var(--rule);
    padding: 20px 0;
}
.site-footer__inner {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--page-gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.site-footer__left {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.site-footer__link {
    font-family: var(--sans);
    font-size: 13px;
    color: var(--muted);
    transition: color 0.2s;
    text-decoration: none;
}
.site-footer__link:hover { color: var(--ink); }
.site-footer__copy {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--muted);
    white-space: nowrap;
}

@media (max-width: 600px) {
    .site-footer__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}