/* ============================================================
   AF DEVS — common styles shared across secondary pages
   (team.html, subscribe.html, contact.html, legal.html).
   index.html keeps its own inline styles because the hero
   has a much larger surface (constellation, scroll-scrub, etc).
   ============================================================ */

:root {
  /* ── THEME TOKENS — values swap under [data-theme="light"] below.
       Every var(--obsidian)/var(--ivory)/var(--hairline) usage across
       the site auto-themes because only these values change. ── */
  --obsidian:      #0A0A0A;                  /* page background */
  --obsidian-2:    #1A1A1A;                  /* raised surface (brand-book Surface) */
  --ivory:         #FAFAF9;                  /* primary text */
  --ivory-dim:     rgba(250,250,249,0.62);   /* secondary text (was 0.55 — bumped for AA) */
  --ivory-faint:   rgba(250,250,249,0.58);   /* tertiary text (was 0.50 — failed AA at <12px) */
  --hairline:      rgba(250,250,249,0.10);   /* borders / dividers */
  --hairline-soft: rgba(250,250,249,0.05);   /* faint dividers */
  --surface-tint:  rgba(255,255,255,0.03);   /* subtle raised fill */
  --hero-glow-p:   rgba(107,63,212,0.18);    /* page-hero purple radial */
  --hero-glow-m:   rgba(226,77,208,0.10);    /* page-hero magenta radial */

  /* ── BRAND TOKENS — constant across both themes ── */
  --purple:        #6B3FD4;
  --purple-2:      #9B5CFF;
  --purple-3:      #C07BFF;                   /* links/eyebrows — darkened in light mode */
  --magenta:       #E24DD0;
  --teal:          #2DD4BF;                   /* signature strip */
  --teal-dim:      #14B8A6;

  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, monospace;

  color-scheme: dark;
}

/* ── LIGHT THEME — opt-in via [data-theme="light"] on <html> ── */
:root[data-theme="light"] {
  --obsidian:      #F7F6F4;                   /* warm ivory page bg */
  --obsidian-2:    #FFFFFF;                   /* white raised surface */
  --ivory:         #14110F;                   /* near-black primary text */
  --ivory-dim:     rgba(20,17,15,0.66);
  --ivory-faint:   rgba(20,17,15,0.56);
  --hairline:      rgba(20,17,15,0.12);
  --hairline-soft: rgba(20,17,15,0.07);
  --surface-tint:  rgba(20,17,15,0.03);
  --hero-glow-p:   rgba(107,63,212,0.10);
  --hero-glow-m:   rgba(226,77,208,0.07);
  --purple-3:      #5A2FC0;                   /* darker purple for links/eyebrows on light */
  --magenta:       #B83A9E;                   /* darker magenta for contrast on light */
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--obsidian); color: var(--ivory); font-family: var(--sans); transition: background 320ms ease, color 320ms ease; }
body { min-height: 100vh; }

a { color: inherit; }
img { display: block; max-width: 100%; }

/* ——— Persistent top nav (same as index.html) ——— */
.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
  background: rgba(10,10,10,0.75);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid rgba(250,250,249,0.06);
  transition: padding 240ms ease, background 240ms ease;
}
.topnav-logo img {
  height: 36px; width: auto;
  filter:
    drop-shadow(0 0 10px rgba(155,92,255,0.35))
    drop-shadow(0 0 22px rgba(226,77,208,0.18));
}
.topnav-nav { display: flex; gap: 28px; align-items: center; }
.topnav-nav a {
  color: var(--ivory-dim);
  font-family: var(--sans); font-size: 13px;
  letter-spacing: 0.01em; text-decoration: none; font-weight: 500;
  position: relative; padding: 6px 2px;
  transition: color 140ms ease;
}
.topnav-nav a::after {
  content: "";
  position: absolute; left: 2px; right: 2px; bottom: 0;
  height: 1.5px;
  background: linear-gradient(90deg, var(--purple-2), var(--magenta));
  transform: scaleX(0); transform-origin: left center;
  transition: transform 180ms cubic-bezier(.2,.8,.2,1);
  border-radius: 2px;
}
.topnav-nav a:hover, .topnav-nav a.active { color: var(--ivory); }
.topnav-nav a:hover::after, .topnav-nav a.active::after { transform: scaleX(1); }
.topnav-actions { display: flex; align-items: center; gap: 16px; }
.lang-toggle { display: inline-flex; gap: 0; }
.lang-toggle button {
  background: transparent; border: none;
  color: var(--ivory-faint); padding: 7px 12px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  cursor: pointer; border-radius: 999px;
  transition: background 200ms ease, color 200ms ease, transform 160ms cubic-bezier(0.23,1,0.32,1);
}
.lang-toggle button:active { transform: scale(0.95); transition-duration: 100ms; }
.lang-toggle button.on { background: var(--purple); color: #FAFAF9; }
.lang-toggle button:hover:not(.on) { color: var(--ivory); }
.topnav-actions > a {
  color: var(--ivory-dim); font-family: var(--sans); font-size: 13px;
  text-decoration: none; font-weight: 500;
  transition: color 200ms ease;
}
.topnav-actions > a:hover { color: var(--ivory); }
.topnav-actions > a.subscribe-link { color: var(--purple-3); }
.topnav-actions > a.subscribe-link:hover { color: var(--magenta); }
.topnav-cta {
  background: linear-gradient(90deg, var(--purple-2), var(--magenta));
  color: var(--ivory) !important;
  padding: 11px 22px;
  font-family: var(--sans); font-size: 13px;
  font-weight: 600; letter-spacing: 0.01em;
  border-radius: 999px;
  text-decoration: none;
  transition: filter 180ms ease, transform 160ms cubic-bezier(0.23,1,0.32,1);
  box-shadow: 0 8px 24px rgba(107,63,212,0.30);
}
@media (hover: hover) and (pointer: fine) {
  .topnav-cta:hover { filter: brightness(1.18); transform: translateY(-1px); }
}
.topnav-cta:active { transform: scale(0.97); transition-duration: 100ms; }
@media (max-width: 1180px) { .topnav { padding: 12px 22px; } .topnav-nav { gap: 20px; } .topnav-nav a { font-size: 12px; } .topnav-actions { gap: 12px; } .topnav-actions > a { font-size: 12px; } }
.topnav-mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid rgba(250,250,249,0.14);
  border-radius: 50%;
  background: rgba(10,10,10,0.58);
  color: #FAFAF9;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 102;
  transition: transform 160ms cubic-bezier(0.23,1,0.32,1);
}
.topnav-mobile-toggle:active { transform: scale(0.94); transition-duration: 100ms; }
.topnav-mobile-bar {
  display: block;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 240ms ease, opacity 180ms ease;
}
body.menu-open .topnav-mobile-toggle .topnav-mobile-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.menu-open .topnav-mobile-toggle .topnav-mobile-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
body.menu-open .topnav-mobile-toggle .topnav-mobile-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 980px) {
  .topnav { padding: 10px 18px; }
  .topnav-mobile-toggle { display: flex; margin-left: auto; }
  .topnav > .topnav-nav,
  .topnav > .topnav-actions { display: none; }
  body.menu-open .topnav-nav {
    display: flex !important;
    position: fixed;
    inset: 64px 0 0;
    z-index: 101;
    min-height: calc(100dvh - 64px);
    padding: 36px 28px max(28px, env(safe-area-inset-bottom));
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(10,10,10,0.98);
    backdrop-filter: blur(22px) saturate(125%);
    -webkit-backdrop-filter: blur(22px) saturate(125%);
    animation: topnav-menu-in 320ms cubic-bezier(0.16,1,0.3,1);
  }
  body.menu-open .topnav-nav > a {
    display: block;
    width: min(360px, 86vw);
    padding: 12px 8px;
    color: rgba(250,250,249,0.82);
    font-family: var(--serif);
    font-size: clamp(25px, 8vw, 36px);
    line-height: 1.05;
    text-align: center;
  }
  body.menu-open .topnav-nav > a::after { display: none; }
  body.menu-open .topnav-nav > a.active { color: var(--teal); }
  body.menu-open .topnav-actions {
    display: flex !important;
    margin-top: 20px;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  body.menu-open .topnav-actions .lang-toggle { display: flex !important; gap: 8px; }
  body.menu-open .topnav-actions > a { display: inline-flex !important; }
  body.menu-open .topnav-cta { padding: 13px 22px; }
  body.menu-open { overflow: hidden !important; }
}
@media (max-width: 700px) {
  .topnav-logo img { height: 30px; }
}
@keyframes topnav-menu-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

/* ——— Page wrapper (accounts for fixed topnav) ——— */
.page { padding-top: 96px; }

/* ——— Section pattern ——— */
.section {
  position: relative;
  background: var(--obsidian);
  padding: 120px 28px 100px;
}
.section + .section { border-top: 1px solid rgba(250,250,249,0.04); }
.section-intro { max-width: 900px; margin: 0 auto 64px; text-align: center; }
.section-eyebrow {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--ivory-faint); margin-bottom: 18px;
}
.section-title {
  font-family: var(--serif); font-weight: 400;
  font-size: 42px; line-height: 1.15;
  color: var(--ivory); letter-spacing: -0.01em; margin: 0;
}
.section-title em {
  font-style: italic;
  background: linear-gradient(120deg, var(--purple-3), var(--magenta));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-lead {
  font-family: var(--sans); font-size: 16px;
  color: var(--ivory-dim); line-height: 1.6;
  margin: 22px 0 0;
}

/* ——— Page hero band ——— */
.page-hero {
  position: relative;
  padding: 180px 28px 100px;
  background:
    radial-gradient(1000px 500px at 20% 10%, var(--hero-glow-p), transparent 60%),
    radial-gradient(800px 400px at 85% 30%, var(--hero-glow-m), transparent 60%),
    var(--obsidian);
  border-bottom: 1px solid var(--hairline-soft);
  text-align: center;
}
.page-hero .section-eyebrow { margin-bottom: 22px; }
.page-hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: 56px; line-height: 1.1;
  color: var(--ivory); letter-spacing: -0.02em;
  margin: 0 auto; max-width: 900px;
}
.page-hero h1 em {
  font-style: italic;
  background: linear-gradient(120deg, var(--purple-3), var(--magenta));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-hero .subline {
  max-width: 640px; margin: 22px auto 0;
  font-family: var(--sans); font-size: 16px;
  color: var(--ivory-dim); line-height: 1.6;
}

/* ——— Founder / Team ——— */
.founder-wrap {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: 280px 1fr;
  gap: 56px; align-items: center;
}
.founder-avatar {
  aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(ellipse at 35% 35%, rgba(192,123,255,0.45), rgba(226,77,208,0.18) 55%, var(--obsidian) 100%);
  border: 1px solid rgba(192,123,255,0.30);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 78px; font-weight: 500;
  color: var(--ivory); letter-spacing: -0.03em;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(10,10,10,0.9),
    0 0 22px rgba(107,63,212,0.18),
    0 8px 24px -10px rgba(0,0,0,0.55);
  transition: border-color 420ms ease, box-shadow 420ms ease, transform 420ms ease;
  cursor: pointer;
}
/* Founder avatar using <img> for GPU-accelerated transform (matches .team-portrait pattern) */
.founder-avatar.has-photo {
  background: transparent;
  font-size: 0;
  color: transparent;
}
.founder-avatar.has-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
  transition: transform 1.4s cubic-bezier(0.22, 0.68, 0.21, 1.01),
              filter 900ms ease;
  filter: saturate(0.96) contrast(1.02);
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  .founder-avatar:hover {
    border-color: rgba(192,123,255,0.70);
    box-shadow:
      0 0 0 1px rgba(10,10,10,0.9),
      0 0 34px rgba(107,63,212,0.55),
      0 0 70px rgba(107,63,212,0.28),
      0 12px 32px -12px rgba(0,0,0,0.6);
    transform: translateY(-2px);
  }
  .founder-avatar.has-photo:hover img {
    transform: scale(1.10);
    filter: saturate(1.10) contrast(1.06) brightness(1.04);
  }
}
.founder-name { font-family: var(--serif); font-weight: 500; font-size: 30px; color: var(--ivory); margin: 0 0 4px; letter-spacing: -0.01em; }
.founder-title { font-family: var(--mono); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--purple-3); margin-bottom: 22px; }
.founder-bio { font-family: var(--sans); font-size: 15px; line-height: 1.65; color: var(--ivory-dim); margin: 0 0 22px; }
.founder-creds { font-family: var(--mono); font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ivory-faint); }

/* ——— Team roster — org chart with glowing connector trunk ——— */
.team-roster {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0 0;
}
/* Vertical trunk line down the center of the roster — glowing purple-to-teal gradient */
.team-roster::before {
  content: '';
  position: absolute;
  left: 50%; top: 30px; bottom: 30px;
  width: 1px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(192,123,255,0.55) 6%,
    rgba(192,123,255,0.35) 30%,
    rgba(45,212,191,0.35) 60%,
    rgba(192,123,255,0.35) 90%,
    transparent 100%);
  box-shadow:
    0 0 8px rgba(192,123,255,0.45),
    0 0 24px rgba(192,123,255,0.20);
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
}

.team-segment {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto 56px;
  padding-top: 32px;
}
.team-segment:first-child { padding-top: 0; }
.team-segment:last-child { margin-bottom: 0; }

/* Glowing node at top of each segment (except the first) — marks the connection point */
.team-segment:not(:first-child)::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192,123,255,0.95) 0%, rgba(192,123,255,0.4) 40%, transparent 70%);
  box-shadow: 0 0 12px rgba(192,123,255,0.7), 0 0 24px rgba(192,123,255,0.35);
  transform: translateX(-50%);
  z-index: 2;
}

.team-segment-title {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--ivory-faint);
  margin: 0 0 32px;
  display: flex; align-items: center; gap: 18px;
  position: relative; z-index: 2;
  background: var(--obsidian);
  padding: 6px 0;
}
.team-segment-title span {
  white-space: nowrap;
  padding: 0 16px;
  background: var(--obsidian);
  position: relative;
  z-index: 3;
}
.team-segment-title::before,
.team-segment-title::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(250,250,249,0) 0%, rgba(250,250,249,0.14) 50%, rgba(250,250,249,0) 100%);
}

/* ——— Team grid (hierarchical) ——— */
.team-grid {
  display: grid;
  gap: 28px;
  margin: 0 auto;
  justify-content: center;
  position: relative;
  z-index: 1;
}
/* Tier-scoped layouts */
.team-grid--solo   { grid-template-columns: 1fr; max-width: 280px; }
.team-grid--pair   { grid-template-columns: 1fr 1fr; max-width: 480px; gap: 40px; }
.team-grid--qc     { grid-template-columns: 1fr; max-width: 200px; margin-top: 28px; }
.team-grid--field  { grid-template-columns: repeat(4, 1fr); max-width: 660px; gap: 20px; }
.team-grid--2      { grid-template-columns: repeat(2, 1fr); gap: 40px; max-width: 880px; margin: 0 auto; }

.team-member {
  padding: 0;
  border: none;
  background: transparent;
  transition: transform 240ms cubic-bezier(0.23,1,0.32,1);
  text-align: center;
  position: relative;
}
@media (hover: hover) and (pointer: fine) {
  .team-member:hover { transform: translateY(-3px); }
}

/* ——— Circular portrait thumbs (matches the founder avatar style) ——— */
.team-portrait {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: var(--tier-size, 100px);
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(192,123,255,0.30);
  box-shadow:
    0 0 0 1px rgba(10,10,10,0.9),
    0 0 18px rgba(107,63,212,0.12),
    0 6px 20px -8px rgba(0,0,0,0.5);
  background: radial-gradient(ellipse at 35% 35%, rgba(192,123,255,0.18), rgba(10,10,10,1) 75%);
  transition: border-color 420ms ease, box-shadow 420ms ease, transform 420ms ease;
}
.team-portrait img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
  transition: transform 1.4s cubic-bezier(0.22, 0.68, 0.21, 1.01),
              filter 900ms ease;
  filter: saturate(0.96) contrast(1.02);
}
@media (hover: hover) and (pointer: fine) {
  .team-member:hover .team-portrait {
    border-color: rgba(192,123,255,0.65);
    box-shadow:
      0 0 0 1px rgba(10,10,10,0.9),
      0 0 30px rgba(107,63,212,0.50),
      0 0 60px rgba(107,63,212,0.25),
      0 10px 28px -10px rgba(0,0,0,0.6);
  }
  .team-member:hover .team-portrait img {
    transform: scale(1.10);
    filter: saturate(1.10) contrast(1.06) brightness(1.04);
  }
}

/* Per-tier circle diameters (hierarchical sizing) */
.team-member--tier-1 { --tier-size: 200px; }
.team-member--tier-2 { --tier-size: 160px; }
.team-member--tier-3 { --tier-size: 130px; }
.team-member--tier-4 { --tier-size: 96px; }

/* Placeholder portrait (letter avatar) */
.team-portrait--placeholder {
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 35% 35%, rgba(192,123,255,0.38), rgba(226,77,208,0.14) 55%, var(--obsidian) 100%);
  color: var(--ivory);
  font-family: var(--serif); font-weight: 500;
  font-size: calc(var(--tier-size, 100px) * 0.42);
  letter-spacing: -0.02em;
}

/* Card text block (baseline = tier-4 small) */
.team-member .team-name { font-family: var(--serif); font-weight: 500; font-size: 14px; color: var(--ivory); margin: 14px 14px 3px; line-height: 1.2; }
.team-member .team-role { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--purple-3); margin: 0 14px 12px; }
.team-member .team-bio  { font-family: var(--sans); font-size: 11.5px; color: var(--ivory-dim); line-height: 1.55; margin: 0 14px 18px; }

/* Hierarchical sizing */
.team-member--tier-1 .team-name { font-size: 22px; margin-top: 20px; }
.team-member--tier-1 .team-role { font-size: 10px; margin-bottom: 14px; }
.team-member--tier-1 .team-bio  { font-size: 13px; line-height: 1.6; margin: 0 20px 22px; }

.team-member--tier-2 .team-name { font-size: 18px; margin-top: 18px; }
.team-member--tier-2 .team-role { font-size: 9.5px; margin-bottom: 12px; }
.team-member--tier-2 .team-bio  { font-size: 12.5px; line-height: 1.55; margin: 0 18px 20px; }

.team-member--tier-3 .team-name { font-size: 16px; margin-top: 16px; }
.team-member--tier-3 .team-role { font-size: 9px; margin-bottom: 11px; }
.team-member--tier-3 .team-bio  { font-size: 12px; line-height: 1.55; margin: 0 16px 18px; }

/* tier-4 uses the baseline (no bio rendered in HTML) */
.team-member--tier-4 .team-portrait { }
.team-member--tier-4 .team-bio { display: none; }

/* Legacy */
.team-member--large .team-name { font-size: 24px; margin-top: 26px; }
.team-member--large .team-bio { font-size: 14px; }

/* Legacy avatar styles kept for backwards compat on non-team pages */
.team-avatar.has-photo,
.founder-avatar.has-photo {
  background-size: cover;
  background-position: center top;
  color: transparent;
  font-size: 0;
  background-color: transparent;
}
.founder-avatar.has-photo::after { display: none; }
.team-avatar {
  width: 88px; height: 88px;
  margin: 4px auto 18px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 35% 35%, rgba(192,123,255,0.45), rgba(226,77,208,0.18) 55%, var(--obsidian) 100%);
  border: 1px solid rgba(192,123,255,0.30);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 28px;
  color: var(--ivory); font-weight: 500; letter-spacing: -0.02em;
}

/* ——— Subscribe tiers ——— */
.tiers-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tier {
  padding: 34px 26px 28px;
  border: 1px solid rgba(250,250,249,0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(107,63,212,0.04), rgba(107,63,212,0));
  transition: border-color 240ms ease, transform 240ms cubic-bezier(0.23,1,0.32,1);
  display: flex; flex-direction: column;
  position: relative;
}
@media (hover: hover) and (pointer: fine) {
  .tier:hover { border-color: rgba(192,123,255,0.45); transform: translateY(-3px); }
}
.tier.featured {
  border-color: rgba(226,77,208,0.45);
  background: linear-gradient(180deg, rgba(226,77,208,0.10), rgba(107,63,212,0.04));
}
.tier .badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(90deg, var(--purple-2), var(--magenta));
  color: var(--ivory);
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.34em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; white-space: nowrap;
}
.tier-eyebrow { font-family: var(--mono); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ivory-faint); margin-bottom: 8px; }
.tier-name { font-family: var(--serif); font-weight: 500; font-size: 22px; color: var(--ivory); margin: 0 0 12px; line-height: 1.15; }
.tier-tag { font-family: var(--sans); font-size: 12px; color: var(--ivory-dim); line-height: 1.5; margin: 0 0 22px; }
.tier-price { font-family: var(--serif); font-weight: 500; font-size: 36px; color: var(--ivory); line-height: 1; letter-spacing: -0.02em; }
.tier-price-period { font-family: var(--mono); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ivory-faint); margin-top: 6px; }
.tier-features { list-style: none; padding: 22px 0; margin: 22px 0 0; border-top: 1px solid rgba(250,250,249,0.06); flex: 1; }
.tier-features li { font-family: var(--sans); font-size: 12px; color: var(--ivory-dim); line-height: 1.5; padding: 6px 0 6px 18px; position: relative; }
.tier-features li::before { content: "→"; position: absolute; left: 0; top: 6px; color: var(--purple-3); font-family: var(--mono); }
.tier-cta {
  background: linear-gradient(90deg, var(--purple-2), var(--magenta));
  color: var(--ivory); padding: 12px 18px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.3em; text-transform: uppercase;
  border-radius: 999px; border: none;
  text-decoration: none; text-align: center;
  cursor: pointer; transition: filter 180ms ease, transform 160ms cubic-bezier(0.23,1,0.32,1); font-weight: 600;
}
.tier-cta:hover { filter: brightness(1.18); }
.tier-cta:active { transform: scale(0.97); transition-duration: 100ms; }

/* ——— Contact ——— */
.contact-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.contact-form label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ivory-faint); margin-bottom: 6px; display: block; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; background: var(--surface-tint);
  border: 1px solid var(--hairline);
  border-radius: 10px; padding: 12px 14px;
  color: var(--ivory); font-family: var(--sans); font-size: 14px;
  transition: border-color 200ms ease, background 200ms ease;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--purple-3); background: var(--surface-tint);
}
.contact-form textarea { min-height: 110px; resize: vertical; }
.contact-submit {
  background: linear-gradient(90deg, var(--purple-2), var(--magenta));
  color: var(--ivory); padding: 14px 28px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.3em; text-transform: uppercase;
  border-radius: 999px; border: none; cursor: pointer;
  transition: filter 180ms ease, transform 180ms ease;
  font-weight: 600; align-self: flex-start; margin-top: 8px;
}
@media (hover: hover) and (pointer: fine) {
  .contact-submit:hover { filter: brightness(1.18); transform: translateY(-1px); }
}
.contact-submit:active { transform: scale(0.97); transition-duration: 100ms; }
.contact-info {
  padding: 32px 28px;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: var(--surface-tint);
}
.contact-info h4 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ivory-faint); margin: 0 0 12px; font-weight: 500; }
.contact-info h4:not(:first-child) { margin-top: 22px; }
.contact-info p, .contact-info a { font-family: var(--sans); font-size: 14px; color: var(--ivory); line-height: 1.6; text-decoration: none; display: block; margin: 0; }
.contact-info a:hover { color: var(--purple-3); }

/* ——— Legal / policies ——— */
.legal-wrap { max-width: 820px; margin: 0 auto; }
.legal-wrap h2 { font-family: var(--serif); font-weight: 500; font-size: 26px; color: var(--ivory); margin: 40px 0 14px; letter-spacing: -0.01em; }
.legal-wrap h2:first-child { margin-top: 0; }
.legal-wrap p, .legal-wrap li { font-family: var(--sans); font-size: 14px; color: var(--ivory-dim); line-height: 1.65; }
.legal-wrap ul { padding-left: 22px; }

/* ——— Footer ——— */
.site-footer {
  background: var(--obsidian);
  border-top: 1px solid rgba(250,250,249,0.05);
  padding: 72px 28px 36px;
  position: relative;
}
.footer-grid { max-width: 1200px; margin: 0 auto 56px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; }
.footer-brand .wordmark-f { font-family: var(--serif); font-weight: 500; font-size: 22px; color: var(--ivory); letter-spacing: 0.02em; margin: 0 0 16px; display: block; }
.footer-tag { font-family: var(--sans); font-size: 13px; color: var(--ivory-dim); line-height: 1.55; max-width: 320px; margin: 0; }
.footer-col h4 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ivory-faint); margin: 0 0 16px; font-weight: 500; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; font-family: var(--sans); font-size: 13px; color: var(--ivory-dim); line-height: 1.4; }
.footer-col a { color: var(--ivory-dim); text-decoration: none; transition: color 180ms ease; }
.footer-col a:hover { color: var(--ivory); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  padding-top: 28px; border-top: 1px solid rgba(250,250,249,0.05);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ivory-faint);
}
.footer-bottom a { color: var(--ivory-faint); text-decoration: none; }
.footer-bottom a:hover { color: var(--ivory-dim); }

/* ——— Trust & payment badge strip (above copyright row) ——— */
.trust-row {
  max-width: 1200px; margin: 0 auto 28px;
  padding-top: 32px;
  border-top: 1px solid rgba(250,250,249,0.05);
}
.trust-badges {
  display: flex; flex-wrap: wrap; justify-content: center;
  align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.trust-badge {
  background: #fff; border-radius: 8px;
  padding: 8px 14px;
  display: flex; align-items: center;
  height: 40px;
}
.trust-badge svg { height: 22px; width: auto; display: block; }
.trust-badge.text-badge { gap: 8px; padding: 6px 10px; }
.trust-badge.text-badge svg { height: 20px; width: 20px; }
.trust-badge-label { font-family: var(--sans); font-size: 9px; line-height: 1.15; text-align: left; }
.trust-badge-label div:first-child { font-weight: 700; letter-spacing: 0.02em; }
.trust-badge-label strong { font-weight: 700; }
.trust-badge.verified-visa svg { color: #1A1F71; fill: #1A1F71; }
.trust-badge.verified-visa .trust-badge-label { color: #1A1F71; }
.trust-badge.id-check svg { color: #EB6C0B; fill: #EB6C0B; }
.trust-badge.id-check .trust-badge-label { color: #111; }
.trust-badge.id-check .trust-badge-label div:first-child { color: #333; font-weight: 600; }

.trust-compliance {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px; margin-bottom: 18px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ivory-faint);
}
.trust-compliance span { padding: 5px 10px; border: 1px solid rgba(250,250,249,0.08); border-radius: 999px; }
.trust-compliance strong { color: var(--ivory-dim); font-weight: 500; margin-right: 6px; }

.trust-links {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px;
  font-family: var(--sans); font-size: 12px;
  color: var(--ivory-faint);
}
.trust-links a { color: var(--ivory-faint); text-decoration: none; transition: color 180ms ease; }
.trust-links a:hover { color: var(--ivory); }
.trust-links .divider { color: rgba(250,250,249,0.18); }

/* ——— Responsive ——— */
@media (max-width: 900px) {
  .section { padding: 96px 22px 80px; }
  .section-title { font-size: 28px; }
  .page-hero { padding: 140px 22px 72px; }
  .page-hero h1 { font-size: 36px; }
  .team-grid, .tiers-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .founder-wrap { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .founder-avatar { margin: 0 auto; max-width: 200px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ============================================================
   CUSTOM CURSOR SYSTEM
   Mirrors index.html. Opt-in via body.has-custom-cursor (set by
   common.js only on hover-capable devices). System cursor stays
   default if JS fails or on touch — no broken state.
   ============================================================ */
body.has-custom-cursor,
body.has-custom-cursor a,
body.has-custom-cursor button,
body.has-custom-cursor .cta,
body.has-custom-cursor *::before,
body.has-custom-cursor *::after { cursor: none !important; }

.cursor, .cursor-ring, .cursor-label {
  position: fixed; z-index: 9999;
  pointer-events: none;
  left: 0; top: 0;
  will-change: transform;
}
.cursor {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ivory);
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: width 120ms ease, height 120ms ease,
              box-shadow 120ms ease, background 120ms ease;
}
.cursor-ring {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid color-mix(in oklab, var(--purple-2) 60%, transparent);
  transform: translate(-50%, -50%);
  transition:
    width  130ms cubic-bezier(.2,.8,.2,1),
    height 130ms cubic-bezier(.2,.8,.2,1),
    border-color 130ms ease,
    background   130ms ease,
    opacity      120ms ease;
  will-change: transform, width, height;
}
body[data-hover].has-custom-cursor .cursor {
  width: 12px; height: 12px;
  mix-blend-mode: normal;
  background: var(--ivory);
  box-shadow:
    0 0 0 2px rgba(10,10,10,0.55),
    0 0 14px rgba(250,250,249,0.75),
    0 0 28px rgba(226,77,208,0.55);
}
body[data-hover].has-custom-cursor .cursor-ring {
  width: 56px; height: 56px;
  border-width: 2px;
  border-color: color-mix(in oklab, var(--magenta) 95%, transparent);
  background: color-mix(in oklab, var(--purple-2) 16%, transparent);
  box-shadow:
    0 0 26px color-mix(in oklab, var(--magenta) 45%, transparent),
    inset 0 0 10px color-mix(in oklab, var(--purple-3) 20%, transparent);
}

/* Cursor label pill — appears when hovering [data-cursor-label] */
.cursor-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--obsidian);
  background: var(--ivory);
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 180ms ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45), 0 0 0 1px rgba(10,10,10,0.6);
}
body[data-cursor-label].has-custom-cursor .cursor-label { opacity: 1; }
body[data-cursor-label].has-custom-cursor .cursor-ring  { opacity: 0; transform: translate(-50%,-50%) scale(0); }
body[data-cursor-label].has-custom-cursor .cursor       { width: 4px; height: 4px; }

/* ============================================================
   LANGUAGE TOGGLE — paired-span visibility.
   Translatable text uses:
     <span data-lang="en">English</span><span data-lang="es">Español</span>
   Default state (no body class set yet): EN visible, ES hidden.
   On lang switch, common.js flips body.lang-en / body.lang-es.
   !important so brand-specific styles never accidentally override.
   ============================================================ */
[data-lang="es"] { display: none !important; }
body.lang-es [data-lang="es"] { display: revert !important; }
body.lang-es [data-lang="en"] { display: none !important; }

/* ============================================================
   THEME TOGGLE (sun/moon) + light-mode component overrides
   + global focus-visible. Added 2026-05-24 UI audit pass.
   ============================================================ */

/* Sun/moon toggle button — injected into .topnav-actions by common.js */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--ivory-dim);
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 160ms cubic-bezier(0.23,1,0.32,1);
  padding: 0;
}
@media (hover: hover) and (pointer: fine) {
  .theme-toggle:hover { color: var(--ivory); border-color: var(--purple-3); transform: translateY(-1px); }
}
.theme-toggle:active { transform: scale(0.92); transition-duration: 100ms; }
.theme-toggle svg { width: 16px; height: 16px; display: block; }
/* Show moon in dark mode (offer light), sun in light mode (offer dark) */
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* Light-mode: topnav glass flips from dark to light */
:root[data-theme="light"] .topnav {
  background: rgba(247,246,244,0.78);
  border-bottom: 1px solid var(--hairline);
}
/* Light-mode: logo glow is too strong on white — soften */
:root[data-theme="light"] .topnav-logo img {
  filter: drop-shadow(0 0 8px rgba(107,63,212,0.20));
}
/* Light-mode: faint section dividers need to be visible on light */
:root[data-theme="light"] .section + .section { border-top: 1px solid var(--hairline-soft); }

/* Global keyboard focus ring (was missing site-wide — a11y fix) */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--purple-2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* === Design-craft pass 2026-08-23 (apple-design / emil-design-eng) === */
/* Accessibility signals for the translucent chrome + mobile menu */
@media (prefers-reduced-transparency: reduce) {
  .topnav, body.menu-open .topnav-nav {
    backdrop-filter: none; -webkit-backdrop-filter: none;
    background: rgba(10,10,10,0.97);
  }
  :root[data-theme="light"] .topnav { background: rgba(247,246,244,0.98); }
}
@media (prefers-contrast: more) {
  .topnav { background: #0A0A0A; border-bottom: 1px solid rgba(250,250,249,0.5); }
  :root[data-theme="light"] .topnav { background: #F7F6F4; border-bottom: 1px solid rgba(20,17,15,0.5); }
  .theme-toggle, .tier, .contact-info { border-color: currentColor; }
}
@media (prefers-reduced-motion: reduce) {
  body.menu-open .topnav-nav { animation: none; }
  .topnav-mobile-bar { transition: opacity 120ms ease; }
  .founder-avatar, .team-member, .team-portrait, .tier { transition: border-color 200ms ease, box-shadow 200ms ease; transform: none !important; }
  .founder-avatar.has-photo img, .team-portrait img { transition: filter 200ms ease; transform: none !important; }
}

/* ——— /contact form → CCOS intake (contact-form.js) ——— */
.contact-form .cf-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .cf-consent { font-family: var(--sans); font-size: 12px; line-height: 1.55; color: var(--ivory-faint); margin: 0; }
.contact-form .cf-consent a { color: inherit; text-decoration: underline; }
.contact-form .cf-status { font-family: var(--sans); font-size: 13px; line-height: 1.55; color: var(--ivory-dim); margin: 0; min-height: 1em; }
.contact-form .cf-status.is-ok { color: var(--teal, #2DD4BF); }
.contact-form .cf-status.is-error { color: var(--magenta); }
.contact-form .cf-status a { color: inherit; text-decoration: underline; }
.contact-submit[disabled] { opacity: 0.6; cursor: progress; }

/* Illustrated portrait (team.html — Willy Gómez) */
.team-portrait--robot svg { width: 100%; height: 100%; display: block; }

/* Keep language and appearance within reach on phones, outside the menu. */
@media(max-width:980px){
 .topnav-actions .lang-toggle{display:inline-flex!important;gap:0!important;position:static!important}
 .topnav-actions .lang-toggle button{min-width:32px;min-height:40px;padding:5px;font-size:10px}
 .topnav-actions{gap:7px!important}
 .topnav-actions>.subscribe-link{display:none!important}
 .topnav-mobile-toggle{order:3;flex:none}
 .topnav-logo{margin-right:auto}
 body.menu-open .topnav-actions{position:static;inset:auto;transform:none;width:auto;flex-direction:row}
}
@media(max-width:980px){.topnav>.topnav-actions{display:flex!important}.topnav-actions .lang-toggle button{min-height:44px}}
