/* ═══════════════════════════════════════════════════════════════════
   BizKit — style.css
   Design language: a toolkit, rendered flat and geometric like the
   BizKit mark itself. Charcoal + gold, Playfair Display for moments
   that need weight, DM Sans for everything you read, IBM Plex Mono
   for the instrument-panel details (eyebrows, specs, tags).
═══════════════════════════════════════════════════════════════════ */

/* ── TOKENS ──────────────────────────────────────────────────────── */
:root {
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Light (default) */
  --bg: #FAF9F6;
  --surface: #FFFFFF;
  --surface-alt: #F0EEE7;
  --ink: #15171B;
  --text: #15171B;
  --text-muted: #63666E;
  --accent: #B0801F;
  --accent-strong: #8C6620;
  --accent-soft: #E9C572;
  --border: rgba(21, 23, 27, 0.12);
  --border-strong: rgba(21, 23, 27, 0.22);
  --shadow: 0 18px 40px -22px rgba(21, 23, 27, 0.35);
  --header-bg: rgba(250, 249, 246, 0.82);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6.5rem;

  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;
  --max-width: 1180px;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #14161A;
  --surface: #1C1F26;
  --surface-alt: #21252D;
  --ink: #F4F2EA;
  --text: #F4F2EA;
  --text-muted: #9498A3;
  --accent: #D9AE4E;
  --accent-strong: #E9C572;
  --accent-soft: #4A3C1C;
  --border: rgba(244, 242, 234, 0.12);
  --border-strong: rgba(244, 242, 234, 0.22);
  --shadow: 0 20px 45px -20px rgba(0, 0, 0, 0.6);
  --header-bg: rgba(20, 22, 26, 0.78);
  color-scheme: dark;
}

/* ── RESET ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
svg { display: block; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--ink);
  color: var(--bg);
  padding: 0.75em 1.25em;
  z-index: 999;
  border-radius: var(--radius-s);
}
.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--space-3);
}

/* ── LAYOUT HELPERS ──────────────────────────────────────────────── */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-8) var(--space-5);
}
.section__header { max-width: 640px; margin-bottom: var(--space-6); }
.section__header h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }

/* ── BUTTONS ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.5em;
  border-radius: var(--radius-s);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #17140A;
}
:root[data-theme="dark"] .btn--primary { color: #191307; }
.btn--primary:hover { background: var(--accent-strong); }
.btn--ghost {
  border: 1.5px solid var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-strong); }
:root[data-theme="dark"] .btn--ghost:hover { color: var(--accent); }
.btn--outline {
  border: 1.5px solid var(--border-strong);
  color: var(--text-muted);
  padding: 0.6em 1.1em;
  font-size: 0.85rem;
}
.btn--small { padding: 0.55em 1em; }
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn:disabled:hover { border-color: var(--border-strong); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn__arrow { transition: transform 0.15s ease; display: inline-block; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ── HEADER ──────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-3) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-right: auto;
}
.brand-mark { display: block; height: 30px; width: auto; }
.brand-mark__img { height: 30px; width: auto; }
.brand-mark__img--dark { display: none; }
:root[data-theme="dark"] .brand-mark__img--light { display: none; }
:root[data-theme="dark"] .brand-mark__img--dark { display: block; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.site-nav__list { display: flex; align-items: center; gap: var(--space-6); }
.site-nav__item--has-menu { position: relative; }
.site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.4em 0.1em;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.site-nav__link:hover, .site-nav__link.is-active { color: var(--text); border-color: var(--accent); }
.site-nav__caret { transition: transform 0.15s ease; }
.site-nav__item--has-menu:hover .site-nav__caret,
.site-nav__item--has-menu:focus-within .site-nav__caret { transform: rotate(180deg); }

.site-nav__submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow);
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.site-nav__item--has-menu:hover .site-nav__submenu,
.site-nav__item--has-menu:focus-within .site-nav__submenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.site-nav__submenu a {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 0.6em 0.75em;
  border-radius: var(--radius-s);
  font-size: 0.9rem;
  font-weight: 500;
}
.site-nav__submenu a:hover { background: var(--surface-alt); color: var(--accent-strong); }
.site-nav__submenu-hint { color: var(--text-muted); font-weight: 400; }

.site-header__actions { display: flex; align-items: center; gap: var(--space-3); }
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.theme-toggle:hover { border-color: var(--accent); background: var(--surface-alt); }
.theme-toggle__icon--moon { display: none; }
:root[data-theme="dark"] .theme-toggle__icon--sun { display: none; }
:root[data-theme="dark"] .theme-toggle__icon--moon { display: block; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); margin: 0 auto; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--border);
  padding: var(--space-3) var(--space-5) var(--space-5);
}
.mobile-nav__link { padding: 0.85em 0; font-size: 1.05rem; font-weight: 500; border-bottom: 1px solid var(--border); }
.mobile-nav__link--sub { font-size: 0.9rem; color: var(--text-muted); padding-left: 0.5em; }

/* ── HERO ────────────────────────────────────────────────────────── */
.hero { padding: var(--space-8) var(--space-5) var(--space-7); max-width: var(--max-width); margin: 0 auto; }
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: var(--space-7);
  align-items: center;
}
.hero__headline {
  font-size: clamp(2.4rem, 1.7rem + 3vw, 3.6rem);
  line-height: 1.05;
  margin-bottom: var(--space-5);
}
.hero__headline-accent { color: var(--accent); font-style: italic; font-weight: 500; }
.hero__lede { font-size: 1.1rem; color: var(--text-muted); max-width: 46ch; margin-bottom: var(--space-6); }
.hero__actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }

.hero__tool { width: 100%; }
/* The logo artwork carries its own solid backdrop, so frame it as a card */
.hero__logo {
  width: 100%;
  height: auto;
  border-radius: var(--radius-l);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  animation: logo-in 0.7s cubic-bezier(0.22, 0.85, 0.28, 1) both;
}
.hero__logo--dark { display: none; }
:root[data-theme="dark"] .hero__logo--light { display: none; }
:root[data-theme="dark"] .hero__logo--dark { display: block; }
@keyframes logo-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__logo { animation: none; }
}

/* ── ABOUT ───────────────────────────────────────────────────────── */
/* A founder's letter: credentials on the left, the letter on the right,
   closed with an accountant's double rule under "the bottom line". */
.about__header { max-width: 760px; margin-bottom: var(--space-7); }
.about__title {
  font-size: clamp(1.75rem, 1.25rem + 2vw, 2.6rem);
  line-height: 1.15;
  max-width: 22ch;
}

.about__grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: var(--space-8);
  align-items: start;
}

.founder-card {
  position: sticky;
  top: 96px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-m);
  padding: var(--space-6) var(--space-5);
}
.founder-card__monogram {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--accent-soft);
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  margin-bottom: var(--space-4);
}
:root[data-theme="dark"] .founder-card__monogram { color: #191307; background: var(--accent); }
.founder-card__name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
.founder-card__role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: var(--space-1);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--border);
}
.founder-card__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: var(--space-5) 0 var(--space-3);
}
.founder-card__list li {
  position: relative;
  padding: 0.4em 0 0.4em 1.1em;
  font-size: 0.92rem;
}
.founder-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 6px;
  height: 6px;
  background: var(--accent);
}

.about__letter { max-width: 64ch; }
.about__letter p { margin-bottom: var(--space-5); color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; }
.about__letter strong { color: var(--text); font-weight: 600; }
.about__letter .about__lede {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  line-height: 1.45;
  color: var(--text);
  margin-bottom: var(--space-6);
}

.about__insight {
  margin: 0 0 var(--space-6);
  padding: var(--space-2) 0 var(--space-2) var(--space-5);
  border-left: 3px solid var(--accent);
}
.about__letter .about__insight p {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--text);
}

.about__bottom-line {
  margin: var(--space-7) 0 var(--space-6);
  padding-bottom: var(--space-4);
  /* the accountant's double underline beneath a final total */
  border-bottom: 4px double var(--accent);
}
.about__letter .about__bottom-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border);
}
.about__letter .about__bottom-text {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}
.about__bottom-text span { color: var(--accent-strong); }
:root[data-theme="dark"] .about__bottom-text span { color: var(--accent); }

.about__letter .about__signoff { color: var(--text); margin-bottom: var(--space-2); }
.about__letter .about__signature {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--accent-strong);
}
:root[data-theme="dark"] .about__letter .about__signature { color: var(--accent); }

/* ── TOOL CARDS ──────────────────────────────────────────────────── */
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: var(--space-6) var(--space-5);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.tool-card:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
.tool-card--flagship { border-color: var(--accent); background: linear-gradient(165deg, var(--surface) 55%, var(--surface-alt)); }
.tool-card__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}
.tool-card h3 { font-size: 1.25rem; margin-bottom: var(--space-3); }
.tool-card p { color: var(--text-muted); margin-bottom: var(--space-5); flex-grow: 1; }
.tool-card__link { font-weight: 600; color: var(--accent-strong); display: inline-flex; align-items: center; gap: 0.4em; }
:root[data-theme="dark"] .tool-card__link { color: var(--accent); }
.tool-card__link:hover .btn__arrow { transform: translateX(3px); }

/* ── STORIES ─────────────────────────────────────────────────────── */
.stories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.story-card {
  margin: 0;
  padding: var(--space-6) var(--space-5);
  border-radius: var(--radius-m);
  background: var(--surface-alt);
  position: relative;
}
.story-card blockquote {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.45;
}
.story-card blockquote::before { content: "\201C"; color: var(--accent); }
.story-card blockquote::after { content: "\201D"; color: var(--accent); }
.story-card figcaption {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ── NEWSLETTER ──────────────────────────────────────────────────── */
.newsletter-section { padding-bottom: 0; }
.newsletter {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--space-7);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-l);
  padding: var(--space-7);
}
.newsletter h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); line-height: 1.15; margin-bottom: var(--space-4); max-width: 18ch; }
.newsletter__lede { color: var(--text-muted); font-size: 1.05rem; line-height: 1.65; max-width: 48ch; margin-bottom: var(--space-5); }
.newsletter__list li {
  position: relative;
  padding: 0.4em 0 0.4em 1.2em;
  font-size: 0.95rem;
}
.newsletter__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 6px;
  height: 6px;
  background: var(--accent);
}

.newsletter__panel {
  background: var(--surface-alt);
  border-radius: var(--radius-m);
  padding: var(--space-6);
}
.newsletter__form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}
.newsletter__field { display: flex; gap: var(--space-2); margin-bottom: var(--space-3); }
.newsletter__field input {
  flex: 1;
  min-width: 0;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-s);
  padding: 0.8em 0.9em;
}
.newsletter__field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.newsletter__field .btn[disabled] { opacity: 0.6; cursor: progress; }
.newsletter__error { font-size: 0.85rem; color: #C2410C; margin-bottom: var(--space-3); }
:root[data-theme="dark"] .newsletter__error { color: #FB923C; }
.newsletter__fine { font-size: 0.8rem; line-height: 1.55; color: var(--text-muted); }
.newsletter__fine a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 2px; }
:root[data-theme="dark"] .newsletter__fine a { color: var(--accent); }

.newsletter__success { text-align: center; }
.newsletter__success-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-3);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-strong);
}
:root[data-theme="dark"] .newsletter__success-icon { color: var(--accent); }
.newsletter__success-title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; margin-bottom: var(--space-2); }
.newsletter__success p:last-child { color: var(--text-muted); }
.newsletter__success strong { color: var(--text); overflow-wrap: anywhere; }

/* ── FOLLOW ──────────────────────────────────────────────────────── */
.follow-section__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-5);
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-l);
  padding: var(--space-7);
}
.follow-section__inner .eyebrow { color: var(--accent); }
.follow-section__inner h2 { color: var(--bg); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); }
.follow-section__links { display: flex; gap: var(--space-4); }
.social-link {
  display: flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.7em 1.2em;
  border-radius: var(--radius-s);
  border: 1px solid rgba(250, 249, 246, 0.22);
  font-weight: 600;
  font-size: 0.92rem;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.social-link:hover { border-color: var(--accent); background: rgba(250, 249, 246, 0.06); }

/* ── PAGE HERO (secondary pages) ─────────────────────────────────── */
.page-hero { max-width: var(--max-width); margin: 0 auto; padding: var(--space-8) var(--space-5) var(--space-6); }
.page-hero h1 { font-size: clamp(2rem, 1.5rem + 2.2vw, 2.9rem); max-width: 18ch; margin-bottom: var(--space-4); }
.page-hero__lede { color: var(--text-muted); font-size: 1.1rem; max-width: 56ch; }

/* ── APPS PAGE ───────────────────────────────────────────────────── */
.app-feature__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-7);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: var(--space-7);
}
.app-feature h2 { font-size: 2rem; margin: var(--space-2) 0 var(--space-4); }
.app-feature__lede { color: var(--text-muted); margin-bottom: var(--space-5); }
.app-feature__list { margin-bottom: var(--space-6); }
.app-feature__list li { padding: 0.6em 0; border-top: 1px solid var(--border); color: var(--text-muted); }
.app-feature__list li:last-child { border-bottom: 1px solid var(--border); }
.app-feature__list strong { color: var(--text); font-weight: 600; }

/* Foresight app preview — mirrors its real palette (#0f1117 / #c9a84c) */
.app-preview {
  background: #0f1117;
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.08);
}
.app-preview__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #0a0c12;
}
.app-preview__dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.16); }
.app-preview__url {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(232,230,223,0.45);
}
.app-preview__body { display: flex; min-height: 220px; }
.app-preview__sidebar { width: 56px; background: #171b26; border-right: 1px solid rgba(255,255,255,0.06); padding: 16px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.app-preview__side-item { width: 22px; height: 4px; border-radius: 2px; background: rgba(232,230,223,0.14); }
.app-preview__side-item.is-active { background: linear-gradient(135deg, #c9a84c, #e2c97e); width: 26px; }
.app-preview__main { flex-grow: 1; padding: 22px; color: #e8e6df; }
.app-preview__stat-row { display: flex; gap: 22px; margin-bottom: 20px; }
.app-preview__stat-label { display: block; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: #7a7d8a; margin-bottom: 4px; }
.app-preview__stat-value { font-family: var(--font-display); font-size: 1.4rem; color: #e2c97e; }
.app-preview__chart { width: 100%; height: 90px; color: #c9a84c; }

/* ── EMPTY STATE ─────────────────────────────────────────────────── */
.empty-state {
  max-width: var(--max-width);
  margin: 0 auto;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-m);
  padding: var(--space-6);
  text-align: center;
}
.empty-state__title { font-weight: 600; font-size: 1.05rem; margin-bottom: var(--space-2); }
.empty-state__body { color: var(--text-muted); max-width: 52ch; margin: 0 auto; }

/* ── SPREADSHEETS PAGE ───────────────────────────────────────────── */
.spreadsheets-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: var(--space-7);
  align-items: start;
}
.filter-rail { position: sticky; top: 90px; }
.filter-rail__heading {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}
.filter-tabs { display: flex; flex-direction: column; gap: 2px; }
.filter-tab {
  text-align: left;
  padding: 0.65em 0.75em;
  border-radius: var(--radius-s);
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
  border-left: 2px solid transparent;
}
.filter-tab:hover { background: var(--surface-alt); color: var(--text); }
.filter-tab.is-active { color: var(--accent-strong); border-color: var(--accent); background: var(--surface-alt); }
:root[data-theme="dark"] .filter-tab.is-active { color: var(--accent); }

.template-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.template-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: var(--space-5);
  flex-direction: column;
}
.template-card[hidden] { display: none; }
.template-card:not([hidden]) { display: flex; }
.template-card__thumb {
  width: 44px; height: 44px;
  border-radius: var(--radius-s);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-4);
  background: var(--surface-alt);
  color: var(--accent-strong);
}
:root[data-theme="dark"] .template-card__thumb { color: var(--accent); }
.template-card__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}
.template-card h3 { font-size: 1.05rem; margin-bottom: var(--space-2); }
.template-card p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: var(--space-5); flex-grow: 1; }
.template-card__footer { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35em 0.6em;
  border-radius: 4px;
}
.badge--soon { background: var(--surface-alt); color: var(--text-muted); border: 1px solid var(--border); }

/* ── FOOTER ──────────────────────────────────────────────────────── */
.site-footer { background: #15171B; color: #F4F2EA; margin-top: var(--space-8); }
.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-8) var(--space-5) var(--space-6);
  display: flex;
  justify-content: space-between;
  gap: var(--space-7);
  flex-wrap: wrap;
}
.site-footer__wordmark { margin-bottom: var(--space-3); }
.site-footer__tag { color: rgba(244,242,234,0.6); max-width: 32ch; }
.site-footer__links { display: flex; gap: var(--space-8); }
.site-footer__heading {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244,242,234,0.45);
  margin-bottom: var(--space-3);
}
.site-footer__links a { display: block; padding: 0.35em 0; color: rgba(244,242,234,0.8); font-size: 0.92rem; }
.site-footer__links a:hover { color: #D9AE4E; }
.site-footer__base {
  border-top: 1px solid rgba(244,242,234,0.1);
  padding: var(--space-4) var(--space-5);
}
.site-footer__base-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3) var(--space-5);
  flex-wrap: wrap;
  font-size: 0.8rem;
}
.site-footer__base p { color: rgba(244,242,234,0.45); }
.site-footer__legal { display: flex; gap: var(--space-5); flex-wrap: wrap; }
.site-footer__legal a { color: rgba(244,242,234,0.7); }
.site-footer__legal a:hover { color: #D9AE4E; }

/* ── LEGAL PAGES ─────────────────────────────────────────────────── */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--space-5) var(--space-8);
}
.legal__meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding-bottom: var(--space-5);
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--border);
}
.legal h2 {
  font-size: 1.35rem;
  margin: var(--space-7) 0 var(--space-3);
  scroll-margin-top: 90px;
}
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { color: var(--text-muted); margin-bottom: var(--space-3); }
.legal ul { list-style: disc; padding-left: 1.25em; margin-bottom: var(--space-3); }
.legal li { margin-bottom: var(--space-2); }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 2px; }
:root[data-theme="dark"] .legal a { color: var(--accent); }

/* ── DOWNLOAD DIALOG ─────────────────────────────────────────────── */
.download-dialog {
  width: min(440px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}
.download-dialog::backdrop { background: rgba(10, 11, 14, 0.55); backdrop-filter: blur(3px); }
.download-dialog__body { position: relative; padding: var(--space-6); }
.download-dialog__close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 1.3rem;
  line-height: 1;
}
.download-dialog__close:hover { background: var(--surface-alt); color: var(--text); }
.download-dialog h2 { font-size: 1.45rem; margin-bottom: var(--space-2); padding-right: var(--space-6); }
.download-dialog__template { font-weight: 600; color: var(--text); }
.download-dialog__lede { color: var(--text-muted); margin-bottom: var(--space-5); }
.download-dialog label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}
.download-dialog input[type="email"] {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-s);
  padding: 0.8em 0.9em;
  margin-bottom: var(--space-3);
}
.download-dialog input[type="email"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.download-dialog__notice { font-size: 0.85rem; color: var(--text-muted); margin-bottom: var(--space-5); }
.download-dialog__notice a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 2px; }
:root[data-theme="dark"] .download-dialog__notice a { color: var(--accent); }
.download-dialog__error { font-size: 0.85rem; color: #C2410C; margin: calc(-1 * var(--space-1)) 0 var(--space-3); }
:root[data-theme="dark"] .download-dialog__error { color: #FB923C; }
.download-dialog .btn { width: 100%; justify-content: center; }
.download-dialog .btn[disabled] { opacity: 0.6; cursor: progress; }
.download-dialog__success { text-align: center; padding: var(--space-3) 0; }
.download-dialog__success-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto var(--space-4);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-strong);
}
:root[data-theme="dark"] .download-dialog__success-icon { color: var(--accent); }
.download-dialog__success p { color: var(--text-muted); margin-bottom: var(--space-5); }

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__tool { order: -1; max-width: 420px; margin: 0 auto; }
  .tools-grid, .stories-grid, .template-grid { grid-template-columns: repeat(2, 1fr); }
  .app-feature__inner { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .newsletter { grid-template-columns: 1fr; gap: var(--space-6); padding: var(--space-6); }
  .founder-card { position: static; display: grid; grid-template-columns: auto 1fr; column-gap: var(--space-4); align-items: center; }
  .founder-card__monogram { margin-bottom: 0; grid-row: span 2; }
  .founder-card__role { padding-bottom: 0; border-bottom: 0; }
  .founder-card__label, .founder-card__list { grid-column: 1 / -1; }
  .founder-card__label { padding-top: var(--space-4); border-top: 1px solid var(--border); }
  .spreadsheets-layout { grid-template-columns: 1fr; }
  .filter-rail { position: static; }
  .filter-tabs { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 720px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav:not([hidden]) { display: flex; }
  .tools-grid, .stories-grid, .template-grid { grid-template-columns: 1fr; }
  .follow-section__inner { flex-direction: column; align-items: flex-start; }
  .newsletter { padding: var(--space-5); }
  .newsletter__panel { padding: var(--space-5); }
  .newsletter__field { flex-direction: column; }
  .newsletter__field .btn { justify-content: center; }
  .site-footer__inner { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
}
