/* ============================================================
   Kinetic Change — Design System
   ------------------------------------------------------------
   1. Tokens          — colors, fonts (single source of truth)
   2. Reset + base    — box model, body, typography defaults
   3. Site primitives — nav, hero, page sections, cards, CTAs
   4. Sheet system    — 816px print-style artifacts (01–07)
   5. Responsive      — mobile collapses for site primitives
   ============================================================ */


/* ── 1. TOKENS ─────────────────────────────────────────────── */
/* Palette philosophy: warm + restrained. Three accents with distinct jobs:
   teal = brand & action · sand = peripheral warmth · brick = voice (sparingly).
   Saturation is deliberately low — restraint, not absence, signals "less hype." */
:root {
  /* Action/brand accent (teal) — used for CTAs, links, eyebrow, headline em */
  --kc-coral:     #3F8479;        /* primary teal — "coral" name retained for stable token API */
  --kc-coral-dk:  #2D6F65;
  --kc-royal:     #3F8479;        /* royal aliased to teal (active links, tags) */
  --kc-royal-lt:  #6BAEA3;        /* lighter teal for use on dark surfaces */
  --kc-royal-dk:  #2D6F65;

  /* Peripheral warmth (sand) — used for eyebrow dots, gradient stops, badges */
  --kc-gold:      #D4A574;
  --kc-gold-dk:   #B8895A;

  /* Voice (brick) — pull quotes only. Use sparingly. */
  --kc-brick:     #A03232;

  /* Surface & text */
  --kc-deep:      #2A2520;        /* warm dark brown — dark surfaces (CTA, footer, sheet-header) */
  --kc-deep-lt:   #38312B;        /* slightly warmer/lighter — right-end of dark-surface gradients */
  --kc-bg:        #F6F5F1;        /* soft warm white — page background */
  --kc-paper:     #FFFDF9;        /* card/sheet surface */
  --kc-strip:     #EEEAE3;        /* footer strip, subtle warm tone */
  --kc-mist:      #DDD7CC;        /* hairlines, muted dividers */
  --kc-mid:       #5C5853;        /* warm body gray */

  /* Hairlines */
  --kc-border:    rgba(26, 26, 26, 0.10);
  --kc-border-dk: rgba(26, 26, 26, 0.20);

  /* Type stacks — single-sans system: Source Sans 3 for everything except italic pulls */
  --kc-sans:      'Source Sans 3', sans-serif;
  --kc-outfit:    'Source Sans 3', sans-serif;   /* alias retained; display = heavier Source Sans */
  --kc-fraunces:  'Fraunces', serif;
  --kc-epilogue:  'Source Sans 3', sans-serif;   /* alias retained */
}


/* ── 2. RESET + BASE ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--kc-sans);
  background: var(--kc-bg);
  color: var(--kc-deep);
  line-height: 1.65;
}


/* ── 3. SITE PRIMITIVES ────────────────────────────────────── */

/* Nav */
.nav {
  background: var(--kc-paper);
  border-bottom: 0.5px solid var(--kc-border);
  padding: 16px 48px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--kc-outfit); font-weight: 700; font-size: 1.05rem;
  letter-spacing: -0.005em; color: var(--kc-deep); text-decoration: none;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link { font-size: 0.8rem; font-weight: 500; color: var(--kc-mid); text-decoration: none; }
.nav-link.active { color: var(--kc-royal); }
.nav-cta {
  font-size: 0.78rem; font-weight: 600; padding: 8px 18px; border-radius: 2px;
  background: var(--kc-coral); color: #fff; text-decoration: none;
}

/* Nav dropdown — JS-driven via nav.js. Trigger is a real <button>
   styled to match .nav-link exactly so Services reads as the same
   nav-item type as About. Hairline dividers separate menu items. */
.nav-dropdown { position: relative; }

.nav-dropdown-trigger {
  /* Match .nav-link */
  font-family: inherit;
  font-size: 0.8rem; font-weight: 500;
  color: var(--kc-mid);
  text-decoration: none;
  /* Reset button user-agent styles */
  background: none; border: none; padding: 0; margin: 0;
  line-height: inherit;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-dropdown-trigger:hover,
.nav-dropdown-trigger:focus-visible { color: var(--kc-deep); outline: none; }
.nav-dropdown.open .nav-dropdown-trigger,
.nav-dropdown-trigger.active { color: var(--kc-coral); }

/* Tiny chevron — the only affordance signaling dropdown-ness */
.nav-dropdown-trigger::after {
  content: '';
  width: 5px; height: 5px;
  border-right: 1.2px solid currentColor;
  border-bottom: 1.2px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  transition: transform 0.15s ease;
}
.nav-dropdown.open .nav-dropdown-trigger::after {
  transform: translateY(1px) rotate(-135deg);
}

/* Panel */
.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 320px;
  background: var(--kc-paper);
  border: 0.5px solid var(--kc-border);
  border-radius: 2px;
  box-shadow: 0 10px 28px rgba(26, 26, 26, 0.08);
  padding: 0;
  z-index: 10;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
}
.nav-dropdown.open .nav-dropdown-panel {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear;
}

/* Menu items — hairline dividers between rows for clear separation */
.nav-dropdown-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
  padding: 13px 22px;
  font-size: 0.84rem; font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  border-bottom: 0.5px solid var(--kc-mist);
}
.nav-dropdown-item:last-child { border-bottom: none; }

a.nav-dropdown-item {
  color: var(--kc-deep);
  transition: background 0.1s ease, color 0.1s ease;
}
a.nav-dropdown-item:hover,
a.nav-dropdown-item:focus-visible {
  background: var(--kc-bg);
  color: var(--kc-coral);
  outline: none;
}
a.nav-dropdown-item.active { color: var(--kc-coral); }

/* Coming-soon items — non-actionable spans, sand badge */
.nav-dropdown-item-soon { color: var(--kc-mid); cursor: default; }
.nav-dropdown-item-soon::after {
  content: 'Soon';
  font-size: 0.55rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--kc-gold-dk);
  padding: 2px 6px;
  border: 0.5px solid rgba(212, 165, 116, 0.4);
  border-radius: 2px;
  background: rgba(212, 165, 116, 0.10);
  flex-shrink: 0;
}

/* Hero — light surface (dark color appears as punctuation only via CTA/footer) */
.hero {
  background: var(--kc-bg); padding: 80px 48px 60px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; top: 0; right: 60px;
  width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--kc-coral), var(--kc-gold));
  opacity: 0.85;
}
.hero-accent {
  height: 3px;
  background: linear-gradient(90deg, var(--kc-coral), var(--kc-gold), transparent);
}
.hero h1 {
  font-family: var(--kc-outfit); font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 0.98; letter-spacing: -0.015em;
  color: var(--kc-deep); margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--kc-coral); }
.hero-sub {
  font-family: var(--kc-fraunces); font-style: italic;
  font-size: 1.15rem; line-height: 1.5;
  color: var(--kc-mid); max-width: 560px; margin-bottom: 32px;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 600; padding: 12px 24px; border-radius: 2px;
  background: var(--kc-coral); color: #fff; text-decoration: none;
}

/* Eyebrow (site) — subtle uppercase label with leading rule.
   Color is primary teal because eyebrow appears on light surfaces (hero, brand spec). */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--kc-coral);
  margin-bottom: 20px;
}
.eyebrow::before { content: ''; width: 20px; height: 1px; background: currentColor; display: block; }
.eyebrow .dot { color: var(--kc-gold); font-size: 12px; margin: 0 1px; }

/* Page wrapper + section */
.page { max-width: 1000px; margin: 0 auto; padding: 64px 48px 80px; }
.section { margin-bottom: 64px; }

/* Section label — thin uppercase divider that fills its row */
.slabel {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--kc-mid);
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.slabel::after { content: ''; flex: 1; height: 1px; background: var(--kc-mist); }

/* Headings + body */
h2 {
  font-family: var(--kc-outfit); font-weight: 700;
  font-size: 1.8rem; letter-spacing: -0.01em;
  color: var(--kc-deep); margin-bottom: 12px; line-height: 1.15;
}
h2 em { font-style: normal; color: var(--kc-coral); }
p.body {
  font-size: 0.95rem; line-height: 1.75;
  color: var(--kc-mid); margin-bottom: 12px; max-width: 660px;
}
p.body strong { font-weight: 600; color: var(--kc-deep); }

/* Pull quote (italic Fraunces, brick rule — the only place brick appears) */
.pull {
  font-family: var(--kc-fraunces); font-style: italic;
  font-size: 1.15rem; line-height: 1.5;
  color: var(--kc-deep);
  border-left: 3px solid var(--kc-brick); padding-left: 18px;
  margin: 24px 0;
}

/* Card (default = site sizing; sheet overrides below) */
.card {
  background: var(--kc-paper);
  border: 0.5px solid var(--kc-border); border-radius: 2px;
  padding: 20px 22px;
}
.card-title { font-size: 0.85rem; font-weight: 700; color: var(--kc-deep); margin-bottom: 7px; }
.card-body  { font-size: 0.82rem; line-height: 1.65; color: var(--kc-mid); }

/* Grids */
.two-col   { display: grid; grid-template-columns: 1fr 1fr;     gap: 20px; }
.three-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

/* Tags */
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0; }
.tag {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px; border-radius: 2px;
  background: rgba(63, 132, 121, 0.07);
  color: var(--kc-royal);
  border: 0.5px solid rgba(63, 132, 121, 0.20);
}

/* Numbered steps (vertical thread of circle + connector + content) */
.steps { display: flex; flex-direction: column; margin: 20px 0; }
.step  { display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.step:not(:last-child) { padding-bottom: 20px; }
.snc { display: flex; flex-direction: column; align-items: center; }
.sn {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--kc-royal); background: var(--kc-paper);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700; color: var(--kc-royal); flex-shrink: 0;
}
.sl { width: 1px; flex: 1; background: var(--kc-mist); min-height: 20px; margin-top: 6px; }
.sc { padding-top: 4px; }
.st { font-size: 0.95rem; font-weight: 600; color: var(--kc-deep); margin-bottom: 4px; }
.sd { font-size: 0.85rem; color: var(--kc-mid); line-height: 1.65; }

/* CTA block (deep navy w/ coral+gold edge) */
.cta-block {
  background: linear-gradient(90deg, var(--kc-deep), var(--kc-deep-lt));
  border-radius: 2px;
  padding: 40px 48px; margin-top: 48px;
  position: relative; overflow: hidden;
}
.cta-block::after {
  content: ''; position: absolute; top: 0; right: 40px;
  width: 2px; height: 100%;
  background: linear-gradient(180deg, var(--kc-coral), var(--kc-gold));
}
.cta-ew {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--kc-royal-lt); margin-bottom: 12px;
}
.cta-ew::before { content: ''; width: 16px; height: 1px; background: currentColor; display: block; }
.cta-ew .dot { color: var(--kc-gold); }
.cta-title {
  font-family: var(--kc-outfit); font-weight: 700;
  font-size: 1.8rem; letter-spacing: -0.01em;
  color: var(--kc-bg); margin-bottom: 10px;
}
.cta-title em { font-style: normal; color: var(--kc-coral); }
.cta-body {
  font-family: var(--kc-fraunces); font-style: italic;
  font-size: 1rem; line-height: 1.6;
  color: rgba(246, 245, 241, 0.72); max-width: 500px; margin-bottom: 24px;
}
.cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 600; padding: 12px 26px; border-radius: 2px;
  background: var(--kc-coral); color: #fff; text-decoration: none;
}

/* Site footer */
.site-footer {
  background: linear-gradient(90deg, var(--kc-deep), var(--kc-deep-lt));
  padding: 32px 48px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.sf-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--kc-outfit); font-weight: 700; font-size: 0.95rem;
  color: rgba(246, 245, 241, 0.6);
}
.sf-note { font-size: 0.72rem; color: rgba(246, 245, 241, 0.35); }


/* ── 4. SHEET SYSTEM (816×1056 print-style artifacts) ──────── */

/* Frame */
.sheet {
  width: 816px; min-height: 1056px;
  background: var(--kc-paper); margin: 32px auto;
  display: flex; flex-direction: column; overflow: hidden;
}
.accent-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--kc-coral), var(--kc-gold), transparent);
  flex-shrink: 0;
}

/* Header (deep navy, vertical coral+gold edge on right) */
.sheet-header {
  background: linear-gradient(90deg, var(--kc-deep), var(--kc-deep-lt));
  padding: 28px 40px 24px;
  position: relative; flex-shrink: 0;
}
.sheet-header::after {
  content: ''; position: absolute; top: 0; right: 48px;
  width: 2px; height: 100%;
  background: linear-gradient(180deg, var(--kc-coral), var(--kc-gold));
}
.sheet-title {
  font-family: var(--kc-outfit); font-weight: 700;
  font-size: 2.4rem; line-height: 1; letter-spacing: -0.015em;
  color: var(--kc-bg); margin-bottom: 10px;
}
.sheet-title em { font-style: normal; color: var(--kc-coral); }
.sheet-sub {
  font-family: var(--kc-fraunces); font-style: italic;
  font-size: 0.9rem; line-height: 1.45;
  color: rgba(246, 245, 241, 0.72); max-width: 500px;
}

/* Eyebrow (sheet variant — slightly smaller than site .eyebrow) */
.ew {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--kc-royal-lt);
  margin-bottom: 14px;
}
.ew::before { content: ''; width: 16px; height: 1px; background: currentColor; display: block; }
.ew .dot { color: var(--kc-gold); font-size: 11px; margin: 0 1px; }

/* Tier badge — gold tint by default; royal modifier for governance/pulse sheets */
.tier-badge {
  position: absolute; top: 28px; right: 72px;
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 2px;
  background: rgba(212, 165, 116, 0.18);
  color: var(--kc-gold);
  border: 0.5px solid rgba(212, 165, 116, 0.40);
}
.tier-badge--royal {
  background: rgba(63, 132, 121, 0.15);
  color: var(--kc-royal-lt);
  border-color: rgba(63, 132, 121, 0.30);
}

/* Body region between header and price band */
.body-wrap {
  padding: 32px 40px 20px; flex: 1;
  display: flex; flex-direction: column; gap: 22px;
}

/* Price band (deep navy strip above footer) */
.price-band {
  background: linear-gradient(90deg, var(--kc-deep), var(--kc-deep-lt));
  padding: 18px 40px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-shrink: 0;
}
.price-band .pl {
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--kc-royal-lt); margin-bottom: 3px;
}
.price-band .pv {
  font-family: var(--kc-outfit); font-weight: 700;
  font-size: 1.5rem; letter-spacing: -0.01em; color: var(--kc-bg);
}
.price-band .pv em { font-style: normal; color: var(--kc-gold); }
.price-band .pt { font-size: 0.72rem; color: rgba(246, 245, 241, 0.6); margin-top: 2px; }
.pcta {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--kc-sans); font-size: 0.78rem; font-weight: 600;
  padding: 10px 22px; border-radius: 2px;
  background: var(--kc-coral); color: #fff; text-decoration: none;
}

/* Sheet footer */
.sheet-footer {
  background: var(--kc-strip); padding: 10px 40px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 0.5px solid var(--kc-border); flex-shrink: 0;
}
.fb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--kc-mid);
}
.fu { font-size: 0.62rem; color: var(--kc-royal); }

/* Sheet-scoped overrides for shared classes (denser sizing) */
.sheet .slabel       { font-size: 0.58rem; gap: 10px; margin-bottom: 12px; }
.sheet .slabel::after{ background: var(--kc-border); }
.sheet p.body        { font-size: 0.85rem; line-height: 1.72; max-width: none; margin-bottom: 0; }
.sheet .pull         { font-size: 1.05rem; padding-left: 14px; margin: 4px 0; }
.sheet .card         { background: var(--kc-bg); padding: 16px 18px; }
.sheet .card-title   {
  font-family: var(--kc-outfit); font-size: 0.82rem; letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.sheet .card-body    { font-size: 0.78rem; line-height: 1.6; }
.sheet .two-col      { gap: 18px; }
.sheet .three-col    { gap: 14px; }
.sheet .tag-row      { gap: 6px; margin-top: 10px; margin-bottom: 0; }
.sheet .tag          { font-size: 0.58rem; padding: 3px 8px; }

/* Sheet step thread is denser than the site's */
.sheet .steps        { margin: 0; }
.sheet .step         { grid-template-columns: 28px 1fr; gap: 12px; }
.sheet .step:not(:last-child) { padding-bottom: 14px; }
.sheet .sn {
  width: 26px; height: 26px; border-width: 1px;
  font-size: 0.65rem;
}
.sheet .sl           { background: var(--kc-border); min-height: 14px; margin-top: 4px; }
.sheet .sc           { padding-top: 3px; }
.sheet .st           { font-size: 0.82rem; margin-bottom: 2px; }
.sheet .sd           { font-size: 0.76rem; line-height: 1.55; }


/* ── 5. RESPONSIVE (site primitives only — sheets are fixed) ── */
@media (max-width: 700px) {
  .nav { padding: 14px 20px; }
  .hero { padding: 48px 24px 40px; }
  .page { padding: 40px 24px 60px; }
  .two-col, .three-col { grid-template-columns: 1fr; }
  .cta-block { padding: 28px 24px; }
}
