/* Theme lab: design directions and mix-and-match options.
   Applied with attributes on <html>:
     data-theme   midnight (default, = site.css :root) | paper | swiss | dusk | blueprint
     data-fonts   studio (default) | editorial | grotesk | bricolage
     data-corners soft (default) | sharp | round
     data-cards   glass (default) | outline | solid
     data-accent  theme (default) | green | blue | orange | gold
     data-hero    mockup (default) | showcase | type
   Once the user picks, the chosen values get folded into site.css and this
   file is dropped from production. */

/* ===================== Themes ===================== */
:root[data-theme="paper"] {
  --ground: #f3efe6;
  --ground-2: #ebe6da;
  --panel: rgba(255, 255, 255, 0.55);
  --panel-2: rgba(255, 255, 255, 0.85);
  --panel-solid: #fbf8f1;
  --line: rgba(30, 40, 35, 0.1);
  --line-2: rgba(30, 40, 35, 0.18);
  --tint-1: rgba(30, 40, 35, 0.025);
  --tint-2: rgba(30, 40, 35, 0.045);
  --tint-3: rgba(30, 40, 35, 0.07);
  --tint-4: rgba(30, 40, 35, 0.1);
  --ink: #1c2723;
  --ink-2: #3c4a44;
  --muted: #69746d;
  --faint: #9aa39c;
  --accent: #2f6b5a;
  --accent-2: #3d6a8f;
  --accent-3: #a8742f;
  --accent-soft: rgba(47, 107, 90, 0.1);
  --accent-line: rgba(47, 107, 90, 0.28);
  --accent-2-soft: rgba(61, 106, 143, 0.1);
  --accent-3-soft: rgba(168, 116, 47, 0.12);
  --glow-1: rgba(47, 107, 90, 0.06);
  --glow-2: rgba(168, 116, 47, 0.05);
  --selection: rgba(47, 107, 90, 0.2);
  --header-bg: rgba(243, 239, 230, 0.82);
  --header-solid: rgba(243, 239, 230, 0.98);
  --menu-bg: rgba(251, 248, 241, 0.97);
  --shadow-color: rgba(60, 50, 30, 0.16);
  --btn-bg: #1c2723;
  --btn-ink: #f3efe6;
  --btn-hover: #2f6b5a;
  --mark-bg: #1c2723;
  --mark-ink: #f3efe6;
  --mock-bg: #fffdf8;
  --mock-bar: #f4efe5;
  --mock-dot: #ddd6c8;
  --mock-chip: #e6dfcf;
  --device: #1b1d1f;
  --device-edge: rgba(0, 0, 0, 0.25);
  --screen-bg: linear-gradient(180deg, #fffdf8, #f2ede2);
  --field-bg: rgba(255, 255, 255, 0.75);
  --field-bg-focus: #ffffff;
  --error-bg: rgba(170, 60, 40, 0.08);
  --error-line: rgba(170, 60, 40, 0.3);
  --error-ink: #8a2d1d;
  --em-color: var(--accent);
  color-scheme: light;
}

:root[data-theme="swiss"] {
  --ground: #f6f6f4;
  --ground-2: #eeeeeb;
  --panel: #ffffff;
  --panel-2: #f1f1ee;
  --panel-solid: #ffffff;
  --line: rgba(0, 0, 0, 0.12);
  --line-2: rgba(0, 0, 0, 0.24);
  --tint-1: rgba(0, 0, 0, 0.02);
  --tint-2: rgba(0, 0, 0, 0.04);
  --tint-3: rgba(0, 0, 0, 0.06);
  --tint-4: rgba(0, 0, 0, 0.09);
  --ink: #0b0b0b;
  --ink-2: #2a2a2a;
  --muted: #666666;
  --faint: #a3a3a3;
  --accent: #e4572e;
  --accent-2: #2350d8;
  --accent-3: #0b0b0b;
  --accent-soft: rgba(228, 87, 46, 0.1);
  --accent-line: rgba(228, 87, 46, 0.35);
  --accent-2-soft: rgba(35, 80, 216, 0.08);
  --accent-3-soft: rgba(0, 0, 0, 0.06);
  --glow-1: transparent;
  --glow-2: transparent;
  --selection: rgba(228, 87, 46, 0.25);
  --header-bg: rgba(246, 246, 244, 0.9);
  --header-solid: rgba(246, 246, 244, 0.99);
  --menu-bg: #ffffff;
  --shadow-color: rgba(0, 0, 0, 0.12);
  --btn-bg: #0b0b0b;
  --btn-ink: #ffffff;
  --btn-hover: #e4572e;
  --mark-bg: #0b0b0b;
  --mark-ink: #ffffff;
  --mock-bg: #ffffff;
  --mock-bar: #f3f3f1;
  --mock-dot: #d6d6d2;
  --mock-chip: #ececea;
  --device: #111111;
  --device-edge: rgba(0, 0, 0, 0.3);
  --screen-bg: #ffffff;
  --field-bg: #ffffff;
  --field-bg-focus: #ffffff;
  --error-bg: rgba(200, 40, 20, 0.07);
  --error-line: rgba(200, 40, 20, 0.35);
  --error-ink: #9c2410;
  --page-pattern: linear-gradient(90deg, rgba(0, 0, 0, 0.045) 1px, transparent 1px) 0 0 / calc(100% / 12) 100%;
  --panel-blur: 0px;
  --em-color: var(--accent);
  color-scheme: light;
}

:root[data-theme="dusk"] {
  --ground: #15100d;
  --ground-2: #1c1612;
  --panel: rgba(255, 238, 220, 0.04);
  --panel-2: rgba(255, 238, 220, 0.07);
  --panel-solid: #221b16;
  --line: rgba(255, 232, 210, 0.09);
  --line-2: rgba(255, 232, 210, 0.16);
  --tint-1: rgba(255, 232, 210, 0.02);
  --tint-2: rgba(255, 232, 210, 0.05);
  --tint-3: rgba(255, 232, 210, 0.07);
  --tint-4: rgba(255, 232, 210, 0.1);
  --ink: #f4eadf;
  --ink-2: #d6c8b8;
  --muted: #a39180;
  --faint: #6f6153;
  --accent: #e3ab6e;
  --accent-2: #cf8f7d;
  --accent-3: #b8c49f;
  --accent-soft: rgba(227, 171, 110, 0.12);
  --accent-line: rgba(227, 171, 110, 0.3);
  --accent-2-soft: rgba(207, 143, 125, 0.12);
  --accent-3-soft: rgba(184, 196, 159, 0.12);
  --glow-1: rgba(227, 171, 110, 0.1);
  --glow-2: rgba(207, 143, 125, 0.07);
  --selection: rgba(227, 171, 110, 0.3);
  --header-bg: rgba(21, 16, 13, 0.76);
  --header-solid: rgba(21, 16, 13, 0.98);
  --menu-bg: rgba(34, 27, 22, 0.96);
  --shadow-color: rgba(0, 0, 0, 0.55);
  --btn-bg: #f4eadf;
  --btn-ink: #15100d;
  --btn-hover: #fff6ec;
  --mark-bg: linear-gradient(150deg, #3d2c21, #251b15);
  --mark-ink: #f4eadf;
  --mock-bg: #1c1612;
  --mock-bar: #18120f;
  --mock-dot: #3b2f26;
  --mock-chip: #3b2d23;
  --device: #0a0705;
  --device-edge: rgba(255, 232, 210, 0.16);
  --screen-bg: linear-gradient(180deg, #241c16, #1a1410);
  --em-color: var(--accent);
}

:root[data-theme="blueprint"] {
  --ground: #0a1626;
  --ground-2: #0d1b2e;
  --panel: rgba(140, 190, 255, 0.04);
  --panel-2: rgba(140, 190, 255, 0.08);
  --panel-solid: #0f2036;
  --line: rgba(140, 190, 255, 0.14);
  --line-2: rgba(140, 190, 255, 0.26);
  --tint-1: rgba(140, 190, 255, 0.03);
  --tint-2: rgba(140, 190, 255, 0.06);
  --tint-3: rgba(140, 190, 255, 0.09);
  --tint-4: rgba(140, 190, 255, 0.13);
  --ink: #e6f0fb;
  --ink-2: #b6c9de;
  --muted: #7d95b1;
  --faint: #4d6582;
  --accent: #7cc8e8;
  --accent-2: #8fb3ff;
  --accent-3: #f0c36a;
  --accent-soft: rgba(124, 200, 232, 0.12);
  --accent-line: rgba(124, 200, 232, 0.32);
  --accent-2-soft: rgba(143, 179, 255, 0.12);
  --accent-3-soft: rgba(240, 195, 106, 0.12);
  --glow-1: rgba(124, 200, 232, 0.1);
  --glow-2: rgba(143, 179, 255, 0.06);
  --selection: rgba(124, 200, 232, 0.3);
  --header-bg: rgba(10, 22, 38, 0.78);
  --header-solid: rgba(10, 22, 38, 0.98);
  --menu-bg: rgba(15, 32, 54, 0.97);
  --btn-bg: #7cc8e8;
  --btn-ink: #061120;
  --btn-hover: #a6dcf2;
  --mark-bg: #12284a;
  --mark-ink: #e6f0fb;
  --mock-bg: #0d1d33;
  --mock-bar: #0b192c;
  --mock-dot: #1f3656;
  --mock-chip: #1d3a60;
  --device: #050b14;
  --device-edge: rgba(140, 190, 255, 0.22);
  --screen-bg: linear-gradient(180deg, #11243d, #0c1a2d);
  --page-pattern: linear-gradient(rgba(140, 190, 255, 0.05) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(140, 190, 255, 0.05) 1px, transparent 1px) 0 0 / 44px 44px;
  --em-color: var(--accent);
}

/* ===================== Type pairings ===================== */
:root[data-fonts="editorial"] {
  --display: "Fraunces", Georgia, serif;
  --display-weight: 500;
  --display-tracking: -0.025em;
  --em-font: "Fraunces", Georgia, serif;
  --em-style: italic;
  --em-weight: 400;
}
:root[data-fonts="grotesk"] {
  --sans: "Inter", system-ui, Arial, sans-serif;
  --display: "Space Grotesk", system-ui, sans-serif;
  --display-weight: 600;
  --display-tracking: -0.045em;
  --em-font: "Space Grotesk", system-ui, sans-serif;
  --em-style: normal;
  --em-weight: 600;
  --mono: "Space Mono", ui-monospace, monospace;
}
:root[data-fonts="bricolage"] {
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --display-weight: 700;
  --display-tracking: -0.045em;
  --em-font: "Instrument Serif", Georgia, serif;
  --em-style: italic;
  --em-weight: 400;
}
:root[data-fonts="grotesk"] em,
:root[data-fonts="bricolage"] .hero h1 em {
  letter-spacing: inherit;
}

/* ===================== Corners ===================== */
:root[data-corners="sharp"] {
  --radius: 2px;
  --radius-win: 2px;
  --radius-btn: 0px;
  --radius-field: 0px;
}
:root[data-corners="round"] {
  --radius: 28px;
  --radius-win: 22px;
  --radius-btn: 999px;
  --radius-field: 16px;
}
:root[data-corners="round"] .button,
:root[data-corners="round"] .checks label {
  padding-inline: 24px;
}

/* ===================== Card style ===================== */
:root[data-cards="outline"] .panel {
  background: transparent;
  border-color: var(--line-2);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
:root[data-cards="solid"] .panel {
  background: var(--panel-solid);
  border-color: transparent;
  box-shadow: 0 18px 40px -24px var(--shadow-color);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ===================== Accent override ===================== */
:root[data-accent="green"] {
  --accent: #3f9c7f;
  --accent-soft: rgba(63, 156, 127, 0.12);
  --accent-line: rgba(63, 156, 127, 0.32);
}
:root[data-accent="blue"] {
  --accent: #4b8fd8;
  --accent-soft: rgba(75, 143, 216, 0.12);
  --accent-line: rgba(75, 143, 216, 0.32);
}
:root[data-accent="orange"] {
  --accent: #e2733a;
  --accent-soft: rgba(226, 115, 58, 0.12);
  --accent-line: rgba(226, 115, 58, 0.32);
}
:root[data-accent="gold"] {
  --accent: #cfa43a;
  --accent-soft: rgba(207, 164, 58, 0.13);
  --accent-line: rgba(207, 164, 58, 0.34);
}
:root[data-accent]:not([data-accent="theme"]) {
  --em-color: var(--accent);
}

/* ===================== Hero layouts ===================== */
.hero-showcase {
  display: none;
}
:root[data-hero="showcase"] .hero .stage {
  display: none;
}
:root[data-hero="showcase"] .hero-showcase {
  display: block;
}
:root[data-hero="type"] .hero .stage,
:root[data-hero="type"] .hero-showcase {
  display: none;
}
:root[data-hero="type"] .hero-inner {
  grid-template-columns: 1fr;
  text-align: left;
}
:root[data-hero="type"] .hero {
  padding: 120px 0 88px;
}
:root[data-hero="type"] .hero h1 {
  font-size: clamp(48px, 8.4vw, 124px);
  max-width: 13ch;
}
:root[data-hero="type"] .hero-description {
  font-size: 21px;
  max-width: 640px;
}
@media (max-width: 860px) {
  :root[data-hero="type"] .hero {
    padding: 56px 0 40px;
  }
}

/* ===================== Hero copy + CTA (lab axes) ===================== */
.copy-v,
.cta-v {
  display: none;
}
:root:not([data-copy]) .copy-frontdoor,
:root[data-copy="frontdoor"] .copy-frontdoor,
:root[data-copy="proof"] .copy-proof,
:root[data-copy="own"] .copy-own,
:root[data-copy="original"] .copy-original {
  display: block;
}
:root:not([data-cta]) form.cta-idea,
:root[data-cta="idea"] form.cta-idea {
  display: block;
}
:root:not([data-cta]) a.cta-idea,
:root[data-cta="idea"] a.cta-idea {
  display: inline-flex;
}
:root[data-cta="buttons"] div.cta-buttons {
  display: flex;
}
:root[data-cta="buttons"] p.cta-buttons {
  display: block;
}

/* ===================== Hero: "live" (centered copy over the product; markup in tools/suite_hero.py, styles in suite.css) ===================== */
.hero .live {
  display: none;
}
:root[data-hero="live"] .hero .stage,
:root[data-hero="live"] .hero-showcase {
  display: none;
}
:root[data-hero="live"] .hero {
  padding-top: 72px;
  padding-bottom: 0;
  overflow: hidden;
}
:root[data-hero="live"] .hero-inner {
  grid-template-columns: 1fr;
  gap: 40px;
  justify-items: center;
  text-align: center;
}
:root[data-hero="live"] .hero-copy {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
:root[data-hero="live"] .hero h1 {
  font-size: clamp(42px, 6vw, 80px);
}
:root[data-hero="live"] .hero-description {
  margin-inline: auto;
  max-width: 600px;
}
:root[data-hero="live"] .idea {
  width: min(100%, 580px);
  text-align: left;
}
:root[data-hero="live"] .hero-actions,
:root[data-hero="live"] .platform-line {
  justify-content: center;
}
:root[data-hero="live"] .platform-line {
  margin-top: 0;
}
:root[data-hero="live"] .proof {
  text-align: left;
}
:root[data-hero="live"] .hero .live {
  display: block;
  position: relative;
  width: min(100%, 1080px);
  margin-top: 8px;
  padding-bottom: 34px;
}
.live figcaption {
  position: absolute;
  right: 0;
  bottom: 8px;
  font-size: 12px;
  color: var(--faint);
}
.live-steps {
  list-style: none;
  margin: 0;
  padding: 4px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  gap: 2px;
  border-radius: 999px;
  background: var(--tint-2);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
}
.live-steps li {
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  transition:
    background 0.35s,
    color 0.35s;
}
.live-steps li.on {
  background: var(--ink);
  color: var(--ground);
}
@media (max-width: 600px) {
  .live figcaption {
    right: 50%;
    translate: 50% 0;
    white-space: nowrap;
  }
}

/* ===================== Type: "inter" (one bold grotesque) ===================== */
:root[data-fonts="inter"] {
  --sans: "Inter", system-ui, Arial, sans-serif;
  --display: "Inter", system-ui, sans-serif;
  --display-weight: 700;
  --display-tracking: -0.035em;
  --em-font: "Inter", system-ui, sans-serif;
  --em-style: normal;
  --em-weight: 700;
  --em-color: inherit;
  --mono: "Inter", system-ui, sans-serif;
}
:root[data-fonts="inter"] .hero-description {
  font-weight: 450;
}

/* ===================== Theme: "flight" (white + dark tinted bands) ===================== */
:root[data-theme="flight"] {
  --ground: #ffffff;
  --ground-2: #f5f5f7;
  --panel: #f5f5f7;
  --panel-2: #ececef;
  --panel-solid: #f5f5f7;
  --line: rgba(0, 0, 0, 0.07);
  --line-2: rgba(0, 0, 0, 0.13);
  --tint-1: rgba(0, 0, 0, 0.025);
  --tint-2: rgba(0, 0, 0, 0.045);
  --tint-3: rgba(0, 0, 0, 0.07);
  --tint-4: rgba(0, 0, 0, 0.1);
  --ink: #0b0b0d;
  --ink-2: rgba(11, 11, 13, 0.72);
  --muted: rgba(11, 11, 13, 0.55);
  --faint: rgba(11, 11, 13, 0.38);
  --accent: #d99a00;
  --accent-2: #3d6df2;
  --accent-3: #d99a00;
  --accent-soft: rgba(242, 183, 5, 0.18);
  --accent-line: rgba(217, 154, 0, 0.4);
  --accent-2-soft: rgba(61, 109, 242, 0.1);
  --accent-3-soft: rgba(242, 183, 5, 0.15);
  --glow-1: transparent;
  --glow-2: transparent;
  --selection: rgba(242, 183, 5, 0.35);
  --header-bg: rgba(255, 255, 255, 0.8);
  --header-solid: rgba(255, 255, 255, 0.98);
  --menu-bg: rgba(255, 255, 255, 0.97);
  --shadow-color: rgba(0, 0, 0, 0.18);
  --btn-bg: #0b0b0d;
  --btn-ink: #ffffff;
  --btn-hover: #2a2a30;
  --mark-bg: #0b0b0d;
  --mark-ink: #ffffff;
  --mock-bg: #ffffff;
  --mock-bar: #f5f5f7;
  --mock-dot: #dcdce0;
  --mock-chip: #e8e8ec;
  --device: #0a0a0c;
  --device-edge: rgba(0, 0, 0, 0.3);
  --screen-bg: #f6f6f7;
  --field-bg: #f5f5f7;
  --field-bg-focus: #ffffff;
  --error-bg: rgba(200, 50, 40, 0.07);
  --error-line: rgba(200, 50, 40, 0.3);
  --error-ink: #a1261b;
  --em-color: inherit;
  --panel-blur: 0px;
  --live-signal: #f2b705;
  color-scheme: light;
}
/* Dark bands: same components, re-tokened per section. */
:root[data-theme="flight"] #services,
:root[data-theme="flight"] #why,
:root[data-theme="flight"] #contact {
  --ground: #07080c;
  --panel: rgba(255, 255, 255, 0.05);
  --panel-2: rgba(255, 255, 255, 0.09);
  --panel-solid: #12141b;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --tint-1: rgba(255, 255, 255, 0.03);
  --tint-2: rgba(255, 255, 255, 0.06);
  --tint-3: rgba(255, 255, 255, 0.08);
  --tint-4: rgba(255, 255, 255, 0.12);
  --ink: #f5f5f7;
  --ink-2: rgba(245, 245, 247, 0.75);
  --muted: rgba(245, 245, 247, 0.55);
  --faint: rgba(245, 245, 247, 0.35);
  --accent: #f2b705;
  --btn-bg: #ffffff;
  --btn-ink: #0b0b0d;
  --btn-hover: #e6e6ea;
  --field-bg: rgba(255, 255, 255, 0.06);
  --field-bg-focus: rgba(255, 255, 255, 0.1);
  --error-bg: rgba(240, 120, 110, 0.12);
  --error-line: rgba(240, 120, 110, 0.35);
  --error-ink: #f6c3bd;
  --shadow-color: rgba(0, 0, 0, 0.6);
  color-scheme: dark;
  background: var(--ground);
  color: var(--ink);
}
:root[data-theme="flight"] .section {
  padding: 136px 0;
}
:root[data-theme="flight"] .section + .section {
  border-top: 0;
}
:root[data-theme="flight"] .panel {
  border-color: transparent;
}
/* Each service card gets its own tint, like subject-colored night scenes. */
:root[data-theme="flight"] #services .service:nth-child(1) {
  background: linear-gradient(160deg, #0f1d3d, #0a1226);
}
:root[data-theme="flight"] #services .service:nth-child(2) {
  background: linear-gradient(160deg, #26123a, #150a22);
}
:root[data-theme="flight"] #services .service:nth-child(3) {
  background: linear-gradient(160deg, #0f2a20, #091a13);
}
:root[data-theme="flight"] #services .service:nth-child(4) {
  background: linear-gradient(160deg, #3a2406, #1d1204);
}
:root[data-theme="flight"] #why .panel,
:root[data-theme="flight"] #why [class*="why"] > * {
  border-color: transparent;
}
/* No small uppercase labels anywhere. */
:root[data-theme="flight"] .eyebrow {
  display: none;
}
:root[data-theme="flight"] .platform-line {
  font: 500 15px var(--sans);
  letter-spacing: -0.01em;
  text-transform: none;
  border-top: 0;
}
:root[data-theme="flight"] .brand small {
  display: none;
}
:root[data-theme="flight"] .brand-mark {
  font: 700 18px/1 var(--display);
  letter-spacing: -0.04em;
  padding-bottom: 0;
  border: 0;
  border-radius: 11px;
}
:root[data-theme="flight"] .brand-mark span {
  color: var(--live-signal);
}
/* Floating pill nav. */
:root[data-theme="flight"] .site-header {
  top: 14px;
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  pointer-events: none;
  margin-top: 14px;
}
:root[data-theme="flight"] .nav-inner {
  pointer-events: auto;
  width: min(900px, calc(100% - 32px));
  height: 60px;
  padding: 0 8px 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 12px 32px -14px rgba(0, 0, 0, 0.22);
}
:root[data-theme="flight"] .nav-links > a,
:root[data-theme="flight"] .nav-drop > button {
  border-radius: 999px;
  font-weight: 500;
}
:root[data-theme="flight"] .hero h1 {
  margin-top: 0;
}
:root[data-theme="flight"] .hero-copy > .copy-v h1 {
  margin-top: 0;
}

:root[data-theme="flight"][data-corners="soft"] {
  --radius: 22px;
  --radius-win: 18px;
  --radius-btn: 999px;
  --radius-field: 14px;
}
:root[data-theme="flight"][data-cards="solid"] .panel {
  box-shadow: none;
}
:root[data-hero="live"] .proof {
  text-align: left;
}
:root[data-hero="live"] .platform-line {
  margin-top: 0;
}
@media (max-width: 860px) {
  :root[data-theme="flight"] .idea-box {
    border-radius: 26px;
  }
}
