/* ============================================================
   Birdo — Shared Stylesheet
   "Old-money golf" — forest, ivory, and a single copper accent.
   Design tokens, reset, nav, hero, footer, and page components.
   ============================================================ */

/* === WEBFONTS ===
   Self-hosted from _shared/fonts/ — no CDN dependency.
   Playfair Display (variable) is the high-contrast Didone display face
   used for the wordmark and all headings. Body text uses the system sans. */
@font-face {
  font-family: 'Playfair Display';
  src: url('fonts/PlayfairDisplay.ttf') format('truetype');
  font-weight: 400 900; font-style: normal; font-display: swap;
}

/* === RESET === */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* === SVG ICONS === */
.feature-icon svg, .card-icon svg { display: block; }
.feature-row-icon svg { display: block; margin: 0 auto; }
.summary-icon svg, .platform-icon svg { display: inline-block; vertical-align: -0.15em; }

/* === TOKENS === */
:root {
  /* Brand — old-money golf palette (maps 1:1 to BirdoTheme) */
  --forest:        #1E3A28;
  --forest-deep:   #15291C;
  --fairway:       #3D5A41;
  --copper:        #C0894A;
  --copper-bright: #D29E63;
  --copper-ink:    #92611F;   /* darker copper for text/links on ivory (AA) */
  --ivory:         #EFE9D6;
  --brick:         #8E2D2A;

  /* Accent — copper is the single warm accent, everywhere */
  --accent:        #C0894A;
  --accent-dim:    rgba(192,137,74,0.14);
  --accent-glow:   0 0 22px rgba(192,137,74,0.28);

  /* Light theme grounds — warm ivory paper */
  --bg:            #EFE9D6;
  --bg-card:       #F7F2E4;
  --bg-elevated:   #E7DECA;

  /* Text */
  --text:          #1E3A28;
  --text-sec:      rgba(30,58,40,0.64);
  --text-ter:      rgba(30,58,40,0.42);
  --text-inv:      #EFE9D6;
  --text-inv-sec:  rgba(239,233,214,0.62);

  /* Borders */
  --border:        rgba(30,58,40,0.14);
  --border-strong: rgba(30,58,40,0.22);
  --border-dark:   rgba(239,233,214,0.12);

  /* Semantic */
  --danger:        #8E2D2A;

  /* Dark surfaces (forest — appear even in light mode) */
  --bg-dark:       #1E3A28;
  --bg-dark-deep:  #15291C;
  --bg-dark-card:  #24452F;

  /* Radii */
  --radius:        14px;
  --radius-sm:     9px;
  --radius-lg:     22px;
  --radius-phone:  44px;
  --radius-pill:   999px;

  /* Elevation */
  --shadow-sm:    0 4px 16px rgba(21,41,28,0.10);
  --shadow-md:    0 16px 40px rgba(21,41,28,0.16);
  --shadow-lg:    0 32px 64px rgba(21,41,28,0.22);
  --shadow-phone: 0 40px 80px rgba(10,20,14,0.55), 0 0 0 1px rgba(239,233,214,0.06);
  --glow-accent:  0 0 24px rgba(192,137,74,0.34);

  /* Type families */
  --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Display / heading scale */
  --h1-size: clamp(40px, 5.2vw, 66px);  --h1-weight: 800; --h1-track: -0.5px; --h1-lh: 1.04;
  --h2-size: clamp(28px, 3.6vw, 44px);  --h2-weight: 800; --h2-track: -0.3px; --h2-lh: 1.1;
  --h3-size: clamp(22px, 3vw, 30px);    --h3-weight: 700; --h3-track: -0.2px; --h3-lh: 1.18;
  --h4-size: 18px;                       --h4-weight: 700; --h4-track: 0;      --h4-lh: 1.3;

  /* Body scale */
  --body-lg: 18px; --body-lg-lh: 1.7;
  --body:    16px; --body-lh:    1.75;
  --body-sm: 14px; --body-sm-lh: 1.65;
  --caption: 12px; --caption-lh: 1.5;

  /* Eyebrow / section label */
  --label-size: 11px; --label-track: 2px; --label-weight: 700;
}

/* === BASE === */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* === FOCUS === */
:focus-visible {
  outline: 2px solid var(--copper-ink);
  outline-offset: 3px;
  border-radius: 3px;
}
:focus:not(:focus-visible) { outline: none; }

/* === SKIP LINK === */
.skip-link {
  position: absolute; top: -999px; left: 0;
  background: var(--forest); color: var(--ivory);
  padding: 10px 20px; font-weight: 600;
  z-index: 9999; border-radius: 0 0 8px 0;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* === WORDMARK === */
.wordmark, .footer-wordmark, .hero-wordmark {
  font-family: var(--font-head);
  letter-spacing: -0.5px;
  display: inline-flex; align-items: baseline;
  text-decoration: none;
}
/* The wordmark is a single solid color — the brand reserves copper as an
   accent and the marks are never recolored with it. */
.word-bird, .word-o { font-weight: 800; color: var(--text); }

/* === NAV === */
nav {
  position: sticky; top: 0;
  background: rgba(239,233,214,0.86);
  backdrop-filter: saturate(160%) blur(20px);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.nav-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between; height: 64px;
  padding: 0 32px;
}
.nav-inner .wordmark { font-size: 26px; }
.nav-links { display: flex; gap: 26px; list-style: none; align-items: center; }
.nav-links a {
  font-family: var(--font-body);
  font-size: 14px; font-weight: 500;
  color: var(--text-sec);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--copper-ink); font-weight: 600; }
.nav-cta {
  background: var(--forest) !important;
  color: var(--ivory) !important;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-weight: 600 !important;
  letter-spacing: 0.2px;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--forest-deep) !important; color: var(--ivory) !important; }

.nav-toggle {
  display: none; flex-direction: column;
  justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px; width: 36px; height: 36px; margin-right: -8px;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
nav.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
nav.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === HERO (simple/legal pages) === */
.hero {
  background: var(--bg-dark);
  position: relative; overflow: hidden;
  color: var(--ivory); padding: 80px 24px 72px; text-align: center;
}
.hero::before {
  content: '';
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, rgba(192,137,74,0.16) 0%, transparent 70%);
  pointer-events: none;
}
.hero-wordmark { font-size: 40px; margin-bottom: 16px; }
.hero .word-bird, .hero .word-o { color: var(--ivory); }
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800; letter-spacing: -0.5px;
  color: var(--ivory); line-height: 1.08;
  text-wrap: balance; margin-bottom: 16px;
}
.hero p { font-size: 18px; color: var(--text-inv-sec); max-width: 560px; margin: 0 auto; }
.hero h1 em { font-style: italic; color: var(--copper-bright); }

/* Centered landing hero (home) */
.hero-landing { padding: 84px 24px 96px; }
.hero-landing .app-icon { margin-bottom: 26px; }
.hero-landing .hero-badge { margin-bottom: 22px; }
.hero-landing h1 { font-size: clamp(40px, 5.4vw, 64px); max-width: 17ch; margin: 0 auto 22px; }
.hero-landing p { margin-bottom: 34px; }
.hero-actions-center { justify-content: center; }

/* === BADGE === */
.badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--copper-ink); margin-bottom: 16px;
}

/* === APP ICON === */
.app-icon {
  width: 120px; height: 120px; border-radius: 27px;
  box-shadow: 0 12px 40px rgba(21,41,28,0.30);
  display: block; margin: 0 auto 28px;
}

/* === BUTTONS === */
.btn, .btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  background: var(--copper); color: var(--forest-deep);
  font-family: var(--font-body); font-size: 15px; font-weight: 700;
  border-radius: var(--radius-pill); text-decoration: none;
  box-shadow: var(--glow-accent);
  transition: background 0.15s, transform 0.15s;
}
.btn:hover, .btn-primary:hover { background: var(--copper-bright); transform: translateY(-1px); }
.hero-cta { margin-top: 32px; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-inv-sec);
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  padding: 14px 4px; border-radius: var(--radius-pill);
  text-decoration: none; transition: color 0.15s;
}
.btn-ghost:hover { color: var(--ivory); }
.btn-ghost-dark {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-sec);
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  padding: 14px 4px; text-decoration: none; transition: color 0.15s;
}
.btn-ghost-dark:hover { color: var(--text); }

/* === CONTAINER === */
.container { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.container--page { padding-top: 80px; padding-bottom: 104px; }

/* === PAGE SECTIONS === */
.page-section { padding: 80px 0; }
.page-section + .page-section { border-top: 1px solid var(--border); }

/* === SECTION LABEL === */
.section-label {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--copper-ink);
  display: block; margin-bottom: 10px;
}

/* === HEADINGS (used outside hero) === */
.page-section h2 {
  font-family: var(--font-head);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800; letter-spacing: -0.3px;
  color: var(--text); margin-bottom: 14px; text-wrap: balance;
}
.page-section p { font-family: var(--font-body); color: var(--text-sec); margin-bottom: 16px; line-height: 1.75; }
.page-section h3 { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--text); margin: 28px 0 10px; }
.page-section ul, .page-section ol { padding-left: 20px; color: var(--text-sec); margin-bottom: 16px; }
.page-section li { margin-bottom: 6px; font-size: 16px; }
.page-section li strong { color: var(--text); }

/* === FEATURE GRID === */
.feature-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  padding: 64px 24px; max-width: 960px; margin: 0 auto;
}
.feature-card {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 28px; border: 1px solid var(--border);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: var(--copper);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.feature-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--accent-dim);
  border: 1px solid rgba(192,137,74,0.28);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; color: var(--copper-ink);
}
.feature-title {
  font-family: var(--font-head);
  font-size: 19px; font-weight: 700;
  color: var(--text); margin-bottom: 8px; letter-spacing: -0.2px;
}
.feature-desc { font-family: var(--font-body); font-size: 14px; color: var(--text-sec); line-height: 1.65; }

/* === FEATURE ROWS (features page) === */
.feature-rows { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.feature-row {
  display: flex; gap: 80px; align-items: center;
  padding: 80px 0; border-bottom: 1px solid var(--border);
}
.feature-row:last-child { border-bottom: none; }
.feature-row:nth-child(even) { flex-direction: row-reverse; }
.feature-row-icon {
  width: 150px; height: 150px; border-radius: 28px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--copper-ink); flex-shrink: 0;
}
.feature-row-visual { flex-shrink: 0; }
.feature-row-text { flex: 1; }
.feature-row-text .section-label { margin-bottom: 10px; }
.feature-row-text h2 {
  font-family: var(--font-head);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 800; letter-spacing: -0.4px;
  color: var(--text); margin-bottom: 16px; text-wrap: balance;
}
.feature-row-text p {
  font-family: var(--font-body); font-size: 16px;
  color: var(--text-sec); line-height: 1.75; margin-bottom: 0;
}
.feature-row-text p + p { margin-top: 12px; }

/* === HOME HERO === */
.hero-home { padding: 100px 32px 0; text-align: left; }
.hero-inner {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 64px; align-items: center;
}
.hero-content { padding-bottom: 80px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(192,137,74,0.14);
  border: 1px solid rgba(192,137,74,0.30);
  color: var(--copper-bright);
  font-family: var(--font-body); font-size: 12px; font-weight: 700;
  letter-spacing: 0.8px; text-transform: uppercase;
  padding: 6px 14px; border-radius: var(--radius-pill); margin-bottom: 28px;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--copper-bright);
  box-shadow: 0 0 8px rgba(210,158,99,0.8);
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.hero-home h1 {
  font-family: var(--font-head);
  font-size: clamp(42px, 5.2vw, 68px);
  font-weight: 800; letter-spacing: -0.5px; line-height: 1.04;
  color: var(--ivory); margin-bottom: 24px; text-wrap: balance;
}
.hero-home h1 em { font-style: italic; color: var(--copper-bright); }
.hero-sub {
  font-size: 18px; color: var(--text-inv-sec);
  line-height: 1.7; max-width: 480px; margin-bottom: 44px;
}
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.hero-visual { display: flex; align-items: center; justify-content: center; position: relative; }
.hero-visual svg { width: 100%; max-width: 380px; height: auto; filter: drop-shadow(0 40px 80px rgba(10,20,14,0.5)); }

.home-section { padding: 96px 32px; }
.home-section-inner { max-width: 1120px; margin: 0 auto; }

/* === QUICK FEATURE STRIP === */
.features-quick {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.features-quick .home-section-inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.fq-card { padding: 40px 32px; border-right: 1px solid var(--border); }
.fq-card:last-child { border-right: none; }
.fq-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--accent-dim); border: 1px solid rgba(192,137,74,0.28);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; color: var(--copper-ink);
}
.fq-title {
  font-family: var(--font-head); font-size: 19px; font-weight: 700;
  color: var(--text); margin-bottom: 8px; letter-spacing: -0.2px;
}
.fq-desc { font-size: 14px; color: var(--text-sec); line-height: 1.6; }

/* === HOME FEATURE ROWS === */
.home-feature-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
  padding: 80px 0; border-bottom: 1px solid var(--border);
}
.home-feature-row:last-child { border-bottom: none; }
.home-feature-row.reverse { direction: rtl; }
.home-feature-row.reverse > * { direction: ltr; }
.home-feature-row-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.home-feature-row-visual svg { width: 100%; max-width: 360px; height: auto; }
.home-feature-row-label { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--copper-ink); margin-bottom: 10px; }
.home-feature-row-heading {
  font-family: var(--font-head); font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 800; letter-spacing: -0.4px; line-height: 1.14;
  color: var(--text); margin-bottom: 16px; text-wrap: balance;
}
.home-feature-row-body { font-size: 16px; color: var(--text-sec); line-height: 1.75; }
.home-feature-row-body + .home-feature-row-body { margin-top: 12px; }

/* === DARK BAND (privacy / on-device) === */
.creed-section {
  background: var(--bg-dark);
  padding: 96px 32px; position: relative; overflow: hidden;
}
.creed-section::before {
  content: '';
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 640px; height: 420px;
  background: radial-gradient(ellipse, rgba(192,137,74,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.creed-inner {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.creed-text .section-label { color: var(--copper-bright); }
.creed-text h2 {
  font-family: var(--font-head); font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 800; letter-spacing: -0.4px; line-height: 1.1;
  color: var(--ivory); margin-bottom: 16px; text-wrap: balance;
}
.creed-text p { font-size: 16px; color: var(--text-inv-sec); line-height: 1.75; margin-bottom: 14px; }
.creed-card {
  background: var(--bg-dark-card); border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg); padding: 36px; position: relative; overflow: hidden;
}
.creed-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(192,137,74,0.5), transparent);
}
.creed-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.creed-list li { display: flex; align-items: flex-start; gap: 14px; color: var(--ivory); font-size: 15px; line-height: 1.5; }
.creed-list li span.creed-label { display: block; font-weight: 700; margin-bottom: 1px; }
.creed-list li small { display: block; color: var(--text-inv-sec); font-size: 13px; font-weight: 400; }
.creed-check {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(192,137,74,0.18); border: 1px solid rgba(192,137,74,0.4);
  color: var(--copper-bright);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}

/* === PILLARS (three pillars band) === */
.pillars { background: var(--bg-elevated); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pillar {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px 32px;
}
.pillar-num { font-family: var(--font-head); font-size: 15px; font-weight: 700; color: var(--copper-ink); letter-spacing: 2px; display: block; margin-bottom: 18px; }
.pillar h3 { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 10px; letter-spacing: -0.2px; }
.pillar p { font-size: 14.5px; color: var(--text-sec); line-height: 1.65; }
.pillar-tech { display: inline-block; margin-top: 16px; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--copper-ink); }

/* === SECTION HEADER (centered intro) === */
.section-intro { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-intro .section-label { margin-bottom: 12px; }
.section-heading {
  font-family: var(--font-head); font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 800; letter-spacing: -0.4px; line-height: 1.1;
  color: var(--text); margin-bottom: 14px; text-wrap: balance;
}
.section-sub { font-size: 17px; color: var(--text-sec); line-height: 1.7; }

/* === FAQ === */
.faq-list { max-width: 820px; margin: 0 auto; }
.section-spacer { margin-top: 80px; }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group-label {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--copper-ink);
  display: block; padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; background: none; border: none; cursor: pointer;
  text-align: left; padding: 24px 0;
  font-size: 18px; font-weight: 600; color: var(--text);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-body);
}
.faq-question:hover { color: var(--copper-ink); }
.faq-chevron { font-size: 18px; transition: transform 0.2s; flex-shrink: 0; margin-left: 16px; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer { display: none; padding: 0 0 24px; font-size: 16px; color: var(--text-sec); line-height: 1.7; }
.faq-item.open .faq-answer { display: block; }
.faq-answer a { color: var(--copper-ink); text-decoration: underline; }

/* === CTA STRIP === */
.cta-strip {
  background: var(--bg-dark);
  position: relative; overflow: hidden;
  padding: 100px 32px; text-align: center; color: var(--ivory);
}
.cta-strip::before {
  content: '';
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(192,137,74,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.cta-strip .section-label { color: var(--copper-bright); margin-bottom: 12px; }
.cta-strip h2 {
  font-family: var(--font-head);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800; letter-spacing: -0.5px;
  color: var(--ivory); margin-bottom: 16px; text-wrap: balance;
}
.cta-strip p { font-size: 18px; color: var(--text-inv-sec); margin-bottom: 36px; }
.btn-primary-centered { display: inline-flex; margin: 0 auto; }

/* === PRESS KIT === */
.icon-downloads { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 56px; }
.icon-download {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
}
.icon-download img { width: 100px; height: 100px; border-radius: 22px; box-shadow: var(--shadow-sm); }
.icon-download p { font-size: 14px; color: var(--text-sec); }
.download-link {
  display: inline-block; background: var(--forest); color: var(--ivory);
  font-size: 14px; font-weight: 600; padding: 9px 22px;
  border-radius: var(--radius-pill); text-decoration: none; transition: background 0.15s;
}
.download-link:hover { background: var(--forest-deep); }

.color-swatches { margin-bottom: 48px; }
.color-swatch { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.color-swatch:first-child { border-top: 1px solid var(--border); }
.swatch-dot { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; border: 1px solid var(--border); }
.swatch-name { font-size: 15px; font-weight: 600; color: var(--text); flex: 1; }
.swatch-role { font-size: 13px; color: var(--text-sec); margin-right: 16px; }
.swatch-hex { font-size: 13px; color: var(--text-sec); font-family: ui-monospace, Menlo, monospace; }

.copy-block {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  font-size: 15px; color: var(--text-sec); line-height: 1.7; margin-bottom: 20px;
}
.copy-block strong { display: block; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--copper-ink); margin-bottom: 8px; }

.press-contact, .contact-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 44px; text-align: center;
}
.press-contact h3, .contact-box h3 { font-family: var(--font-head); font-size: 24px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.press-contact p, .contact-box p { color: var(--text-sec); max-width: 440px; margin: 0 auto 24px; }
.icon-note { color: var(--text-sec); margin-bottom: 24px; }
.contact-link {
  display: inline-block; background: var(--forest); color: var(--ivory);
  font-size: 15px; font-weight: 600; padding: 12px 28px;
  border-radius: var(--radius-pill); text-decoration: none; transition: background 0.15s;
}
.contact-link:hover { background: var(--forest-deep); }
.prose-link { color: var(--copper-ink); text-decoration: underline; }
.prose-link:hover { color: var(--text); }

/* === SUMMARY CARDS (privacy) === */
.summary { background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 56px 32px; }
.summary-inner { max-width: 920px; margin: 0 auto; }
.summary > .summary-inner > h2 { font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--copper-ink); margin-bottom: 20px; }
.summary-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.summary-card { background: var(--bg-elevated); border-radius: var(--radius-sm); padding: 20px; display: flex; gap: 12px; align-items: flex-start; }
.summary-icon { color: var(--copper-ink); flex-shrink: 0; margin-top: 1px; }
.summary-label { font-size: 13px; font-weight: 600; color: var(--text); display: block; margin-bottom: 2px; }
.summary-desc { font-size: 12px; color: var(--text-sec); }

/* === LEGAL CONTENT === */
.legal-container { max-width: 920px; margin: 0 auto; padding: 64px 32px 104px; }
.legal-section { padding: 56px 0; }
.legal-section + .legal-section { border-top: 1px solid var(--border); }
.section-number { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--copper-ink); display: block; margin-bottom: 6px; }
.legal-section h2 { font-family: var(--font-head); font-size: 26px; font-weight: 700; color: var(--text); margin-bottom: 16px; }
.legal-section h3 { font-size: 16px; font-weight: 600; color: var(--text); margin: 24px 0 8px; }
.legal-section p { color: var(--text-sec); margin-bottom: 16px; line-height: 1.75; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul, .legal-section ol { padding-left: 20px; color: var(--text-sec); margin-bottom: 16px; }
.legal-section li { margin-bottom: 6px; font-size: 16px; }
.legal-section li strong { color: var(--text); }
.legal-section a { color: var(--copper-ink); text-decoration: underline; }

/* === DATA TABLE === */
.data-table {
  width: 100%; border-collapse: separate; border-spacing: 0; margin: 24px 0; font-size: 14px;
  background: var(--bg-card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
}
.data-table th { background: var(--bg-elevated); color: var(--text); padding: 12px 16px; text-align: left; font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-family: var(--font-body); color: var(--text-sec); vertical-align: top; }
.data-table tr:last-child td { border-bottom: none; }
.data-table td:first-child { color: var(--text); font-weight: 500; }
.data-table a { color: var(--copper-ink); text-decoration: underline; }

/* === PILLS === */
.pill { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 2px 8px; border-radius: 20px; white-space: nowrap; }
.pill-yes { background: var(--accent-dim); color: var(--copper-ink); }
.pill-no  { background: rgba(142,45,42,0.12); color: var(--brick); }

/* === CALLOUT === */
.callout {
  background: var(--accent-dim); border-left: 4px solid var(--copper);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px; margin: 24px 0; font-size: 15px; color: var(--text);
}
.callout strong { display: block; margin-bottom: 4px; }

/* === ACCESSIBILITY / SUPPORTED FEATURES === */
.page-section .section-sub { font-size: 16px; color: var(--text-sec); margin-bottom: 36px; }
.updated { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--text-sec); margin-top: 32px; }
.platform-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.platform-card { background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
.platform-header { background: var(--bg-elevated); color: var(--text); padding: 16px 20px; display: flex; align-items: center; gap: 10px; }
.platform-icon { color: var(--copper-ink); }
.platform-name { font-size: 15px; font-weight: 600; letter-spacing: 0.2px; }
.platform-body { padding: 20px; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.feature-item { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; }
.feature-text strong { color: var(--text); display: block; margin-bottom: 1px; }
.feature-text span { color: var(--text-sec); font-size: 14px; }
.badge-yes     { background: var(--accent-dim); color: var(--copper-ink); }
.badge-no      { background: rgba(142,45,42,0.12); color: var(--brick); }
.badge-partial { background: rgba(61,90,65,0.16); color: var(--fairway); }
.badge-yes, .badge-no, .badge-partial { flex-shrink: 0; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 3px 8px; border-radius: 20px; margin-top: 1px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card-icon { width: 40px; height: 40px; background: var(--accent-dim); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--copper-ink); margin-bottom: 14px; }
.card h3 { font-family: var(--font-head); font-size: 19px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.card p { font-size: 14px; color: var(--text-sec); margin: 0; }
.limitations-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.limitation-item { background: var(--bg-card); border: 1px solid var(--border); border-left: 4px solid var(--copper); border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px; }
.limitation-item strong { display: block; color: var(--text); margin-bottom: 3px; font-size: 15px; }
.limitation-item span { color: var(--text-sec); font-size: 14px; }

/* === FOOTER === */
footer { background: var(--forest-deep); border-top: 1px solid rgba(239,233,214,0.08); padding: 48px 32px; }
.footer-inner { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-wordmark { font-size: 22px; }
.footer-wordmark .word-bird, .footer-wordmark .word-o { color: var(--ivory); }
.footer-links { display: flex; gap: 24px; list-style: none; flex-wrap: wrap; }
.footer-links a { font-family: var(--font-body); font-size: 13px; color: rgba(239,233,214,0.5); text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: rgba(239,233,214,0.9); }
.footer-copy { font-family: var(--font-body); font-size: 12px; color: rgba(239,233,214,0.32); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-inner, .home-feature-row, .creed-inner { grid-template-columns: 1fr; gap: 48px; }
  .home-feature-row.reverse { direction: ltr; }
  .hero-content { text-align: center; padding-bottom: 48px; }
  .hero-sub { max-width: none; margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  .pillars-grid { grid-template-columns: 1fr; }
  .features-quick .home-section-inner { grid-template-columns: 1fr 1fr; }
  .fq-card:nth-child(odd) { border-right: 1px solid var(--border); }
  .fq-card:nth-child(even) { border-right: none; }
}
@media (max-width: 768px) {
  .container, .feature-rows { padding: 0 20px; }
  .container--page { padding-top: 64px; padding-bottom: 84px; }
  .page-section { padding: 64px 0; }
  .summary { padding: 40px 20px; }
  .legal-container { padding: 48px 20px 80px; }
  .legal-section { padding: 44px 0; }
  .contact-box, .press-contact { padding: 32px 24px; }
  .hero-home { padding: 72px 20px 0; }
  .home-section, .creed-section { padding: 72px 20px; }
  .feature-grid { grid-template-columns: 1fr; padding: 40px 20px; }
  .feature-row, .feature-row:nth-child(even) { flex-direction: column; gap: 32px; }
  .feature-row-icon { width: 120px; height: 120px; align-self: center; }
  .feature-row-visual { align-self: center; }
  .icon-downloads, .platform-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; }
  .nav-links { display: none; }
  nav.nav-open .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(239,233,214,0.97);
    backdrop-filter: saturate(160%) blur(20px);
    -webkit-backdrop-filter: saturate(160%) blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 4px 0 12px; z-index: 99;
  }
  nav.nav-open .nav-links li { border-bottom: 1px solid var(--border); }
  nav.nav-open .nav-links a { display: block; padding: 14px 24px; font-size: 16px; color: var(--text); }
  nav.nav-open .nav-cta { margin: 8px 24px 0; text-align: center; }
}
@media (max-width: 600px) {
  .features-quick .home-section-inner { grid-template-columns: 1fr; }
  .fq-card, .fq-card:nth-child(odd) { border-right: none; border-bottom: 1px solid var(--border); }
  .fq-card:last-child { border-bottom: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .hero { padding: 56px 20px 48px; }
  .hero-home { padding: 56px 20px 0; }
  .data-table { overflow-x: auto; display: block; }
}

/* === DARK THEME (prefers forest grounds) === */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:            #15291C;
    --bg-card:       #1E3A28;
    --bg-elevated:   #24452F;
    --text:          #EFE9D6;
    --text-sec:      rgba(239,233,214,0.60);
    --text-ter:      rgba(239,233,214,0.34);
    --border:        rgba(239,233,214,0.12);
    --border-strong: rgba(239,233,214,0.20);
    --copper-ink:    #D29E63;
    --bg-dark:       #0F1F15;
    --bg-dark-deep:  #0B1710;
    --bg-dark-card:  #1E3A28;
  }
  :root:not([data-theme="light"]) .word-bird { color: var(--ivory); }
  :root:not([data-theme="light"]) nav { background: rgba(21,41,28,0.88); }
  :root:not([data-theme="light"]) nav.nav-open .nav-links { background: rgba(21,41,28,0.97); }
  :root:not([data-theme="light"]) .nav-cta { background: var(--copper) !important; color: var(--forest-deep) !important; }
  :root:not([data-theme="light"]) .nav-cta:hover { background: var(--copper-bright) !important; }
  :root:not([data-theme="light"]) footer { background: var(--bg-dark-deep); }
}

/* === SEMANTIC TYPE CLASSES === */
.b-h1 { font-family: var(--font-head); font-size: var(--h1-size); font-weight: var(--h1-weight); letter-spacing: var(--h1-track); line-height: var(--h1-lh); text-wrap: balance; }
.b-h2 { font-family: var(--font-head); font-size: var(--h2-size); font-weight: var(--h2-weight); letter-spacing: var(--h2-track); line-height: var(--h2-lh); text-wrap: balance; }
.b-h3 { font-family: var(--font-head); font-size: var(--h3-size); font-weight: var(--h3-weight); letter-spacing: var(--h3-track); line-height: var(--h3-lh); text-wrap: balance; }
.b-body { font-family: var(--font-body); font-size: var(--body); line-height: var(--body-lh); }
.b-label { font-family: var(--font-body); font-size: var(--label-size); font-weight: var(--label-weight); letter-spacing: var(--label-track); text-transform: uppercase; color: var(--copper-ink); }
