/* TruePointSupport — single stylesheet, CSS custom properties */
/* DESIGN V2 (2026-07-01): professional dark blue theme. */
/* Design tokens live in :root below — single source for the whole site. */

:root {
  /* Backgrounds (dark, site-wide) */
  --bg-0: #0A0F1E;          /* page background */
  --bg-1: #0F1729;          /* alternate sections */
  --bg-2: #141E38;          /* elevated */
  --card: #16213D;          /* cards */
  --border: #263457;        /* 1px card borders */
  --border-soft: #1C2A4A;   /* soft rules, nav border */

  /* Blue family */
  --blue: #3B82F6;          /* primary accent (borders, glows, focus) */
  --blue-hover: #2F6FE0;
  --btn-primary: #2563EB;   /* button fill — white text clears AA (5.17:1) */
  --btn-primary-hover: #1D4ED8;
  --sky: #7DB5FF;           /* links, highlights, SVG strokes */
  --cyan: #67E8F9;          /* sparing accent lines / glows */

  /* Text */
  --text: #E8EEF9;          /* body on dark (~16:1 on bg-0) */
  --text-2: #A9B8D4;        /* secondary (>=7:1) */
  --text-3: #7E8DAB;        /* captions (>=4.5:1) */
  --on-blue: #FFFFFF;       /* text on button fill */
  --on-sky: #0A0F1E;        /* text on filled sky pill (badge) */

  /* Feedback */
  --danger: #FCA5A5;
  --danger-bg: rgba(220, 38, 38, 0.14);
  --danger-border: rgba(248, 113, 113, 0.4);

  /* Derived shadows / glows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.55);
  --glow-blue: 0 0 0 1px rgba(59, 130, 246, 0.35), 0 18px 44px rgba(59, 130, 246, 0.16);

  /* Type — display serif for headings, humanist sans for body.
     Latin-Extended coverage on both for Spanish (ñ ¿ ¡). No Inter. */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Public Sans", "Segoe UI", sans-serif;

  /* Layout */
  --maxw: 1120px;
  --radius: 14px;
  --radius-sm: 10px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;      /* 17px */
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Atmosphere — a fixed, very-low-opacity blue hairline grid behind everything,
   so the hero and CTA-band gradients read as one continuous environment.
   3.5% alpha (<=4%); CSS only, sits above --bg-0 and below page content. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(45deg, rgba(59, 130, 246, 0.035) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(-45deg, rgba(59, 130, 246, 0.035) 0 1px, transparent 1px 26px);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);   /* Fraunces; weight 800 clamps to loaded 700 */
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; }

strong { color: var(--text); }

img, svg { max-width: 100%; height: auto; }

ul { margin: 0; padding: 0; }

/* Focus states — visible on dark */
:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--btn-primary);
  color: var(--on-blue);
  padding: 0.75rem 1.25rem;
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* Layout helpers */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 4.5rem 0; }
.section-tight { padding: 3rem 0; }

/* Alternate section background — replaces v1 inline "background: var(--white)" */
.section-alt { background: var(--bg-1); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 42rem;
}

.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  min-height: 44px;              /* tap target */
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--btn-primary);
  color: var(--on-blue);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.34);
}
.btn-primary:hover { background: var(--btn-primary-hover); color: var(--on-blue); box-shadow: 0 12px 30px rgba(37, 99, 235, 0.42); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--blue); color: var(--sky); }

/* Ghost button on dark hero/band surfaces */
.btn-ghost-light {
  background: rgba(125, 181, 255, 0.10);
  color: var(--text);
  border-color: rgba(125, 181, 255, 0.32);
}
.btn-ghost-light:hover { background: rgba(125, 181, 255, 0.18); color: var(--text); border-color: rgba(125, 181, 255, 0.5); }

.btn-lg { padding: 1rem 1.85rem; font-size: 1.05rem; }

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}
/* Fades in on scroll (js adds .is-scrolled); also solid by default as a fallback */
.site-header.is-scrolled {
  background: rgba(10, 15, 30, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: var(--border-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand svg { flex: 0 0 auto; }
.brand span.accent { color: var(--sky); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.96rem;
}
.nav-links a:hover { color: var(--sky); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--sky); }

.nav-cta { display: flex; align-items: center; gap: 0.75rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text);
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 480px at 82% -10%, rgba(59, 130, 246, 0.20), transparent 60%),
    radial-gradient(800px 400px at 0% 120%, rgba(103, 232, 249, 0.08), transparent 55%),
    var(--bg-1);
  color: var(--text);
  padding: 5.5rem 0 5rem;
  border-bottom: 1px solid var(--border-soft);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(125, 181, 255, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.6;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: var(--text); max-width: 15ch; }
.hero p.lead { color: var(--text-2); }
.hero .eyebrow { color: var(--sky); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.75rem;
}

/* Hero with side illustration (index) */
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; display: block; }

/* Animated pulse along hero network lines */
.hero-art .pulse-line {
  stroke-dasharray: 6 10;
  animation: tps-dash 3.6s linear infinite;
}
.hero-art .pulse-line.d2 { animation-duration: 4.8s; }
.hero-art .pulse-line.d3 { animation-duration: 5.6s; }
@keyframes tps-dash { to { stroke-dashoffset: -160; } }

/* Hero load choreography (index) — each child rises in sequence on page load,
   applied directly (no IntersectionObserver). Below-the-fold sections keep .reveal. */
@keyframes tps-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.hero-home .eyebrow,
.hero-home h1,
.hero-home .lead,
.hero-home .hero-actions,
.hero-home .trust,
.hero-home .hero-art {
  animation: tps-rise 500ms var(--ease) both;
}
.hero-home .eyebrow      { animation-delay: 0ms; }
.hero-home h1            { animation-delay: 90ms; }
.hero-home .lead         { animation-delay: 160ms; }
.hero-home .hero-actions { animation-delay: 230ms; }
.hero-home .trust        { animation-delay: 300ms; }
.hero-home .hero-art     { animation-delay: 380ms; }

/* Trust strip */
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-soft);
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
}
.trust-item svg { flex: 0 0 auto; margin-top: 1px; color: var(--sky); }

/* Cards grid */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: var(--glow-blue);
}
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--text-2); }

/* Icon badge — holds an inline line-icon */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.28);
  color: var(--sky);
  margin-bottom: 1rem;
}
.icon-badge svg { width: 24px; height: 24px; }

/* Inline icon default (line language) */
.ico { color: var(--sky); }

/* Pill badges */
.pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.16);
  color: var(--sky);
  border: 1px solid rgba(59, 130, 246, 0.3);
}
/* Featured badge — filled sky pill with dark text (per spec) */
.pill-featured {
  background: var(--sky);
  color: var(--on-sky);
  border-color: var(--sky);
}

/* Service pillars */
.pillar { display: flex; flex-direction: column; height: 100%; }
.pillar ul { list-style: none; margin: 1rem 0 1.5rem; }
.pillar ul li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.6rem;
  color: var(--text-2);
}
.pillar ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
}
.pillar .btn { margin-top: auto; align-self: flex-start; }

/* Pricing cards */
.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s;
}
.tier:hover { transform: translateY(-4px); border-color: rgba(59, 130, 246, 0.5); box-shadow: var(--glow-blue); }
.tier-featured {
  border: 1px solid var(--blue);
  box-shadow: 0 0 0 1px var(--blue), 0 24px 56px rgba(59, 130, 246, 0.22);
}
.tier-featured:hover { box-shadow: 0 0 0 1px var(--blue), 0 28px 64px rgba(59, 130, 246, 0.3); }

/* Break the symmetric 3-up rhythm once: the featured tier gets a wider column
   and a physically larger card, so it stands out beyond badge + border alone.
   Only above 900px, where grid-3 is actually three columns. */
@media (min-width: 901px) {
  .tiers-asymmetric {
    grid-template-columns: 1fr 1.32fr 1fr;
    align-items: center;   /* shorter side cards center against the taller featured one */
  }
  .tiers-asymmetric .tier-featured {
    padding: 2.75rem 2.25rem;
    z-index: 1;
  }
  .tiers-asymmetric .tier-featured .price { font-size: 2.4rem; }
}
.tier-badge {
  position: absolute;
  top: -0.9rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}
.tier-head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.35rem; }
.tier-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.28);
  color: var(--sky);
  flex: 0 0 auto;
}
.tier-icon svg { width: 22px; height: 22px; }
.tier-code {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sky);
}
.tier h3 { margin: 0.35rem 0 0.15rem; font-size: 1.4rem; }
.tier .tagline { color: var(--text-3); font-style: italic; margin-bottom: 1rem; }
.price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}
.price small { font-size: 0.95rem; font-weight: 600; color: var(--text-2); }
.tier .cancel-note { font-size: 0.82rem; font-weight: 600; color: var(--sky); margin: 0 0 0.75rem; }
.tier .note { font-size: 0.9rem; color: var(--text-2); margin-bottom: 1.25rem; }
.tier-services { list-style: none; margin: 0 0 1.5rem; }
.tier-services li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.85rem;
  font-size: 0.96rem;
  color: var(--text-2);
}
.tier-services li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237DB5FF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.tier .btn { margin-top: auto; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--sky);
  margin-bottom: 1rem;
}
.step-num svg { width: 22px; height: 22px; }
.step h3 { color: var(--text); }
.step p { color: var(--text-2); }

/* FAQ */
.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.25rem 1.25rem;
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  padding: 1rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--sky);
  font-weight: 400;
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); margin: 0 0 1rem; }

/* Comparison table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  min-width: 560px;
}
table.compare th,
table.compare td {
  text-align: left;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-size: 0.95rem;
  color: var(--text-2);
}
table.compare thead th {
  background: var(--bg-2);
  color: var(--text);
  font-weight: 700;
}
table.compare tbody th {
  font-weight: 600;
  color: var(--text);
  background: rgba(59, 130, 246, 0.06);
}
table.compare tbody tr:last-child th,
table.compare tbody tr:last-child td { border-bottom: none; }
table.compare .price-cell { font-weight: 800; color: var(--text); }
table.compare .price-cell small { font-weight: 500; color: var(--text-3); }

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 280px at 18% 120%, rgba(59, 130, 246, 0.28), transparent 60%),
    radial-gradient(600px 260px at 90% -20%, rgba(103, 232, 249, 0.10), transparent 55%),
    var(--bg-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
}
.cta-band h2 { color: var(--text); }
.cta-band p { color: var(--text-2); max-width: 40rem; margin: 0 auto 1.5rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }

/* Bundle callout */
.bundle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.32);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
}
.bundle h3 { color: var(--text); }
.bundle p { color: var(--text-2); }
.bundle strong { color: var(--sky); }

/* Forms */
.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 1.15rem; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.field .req { color: var(--sky); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-3); }
.field select { appearance: none; -webkit-appearance: none; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}
.field textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-success { background: rgba(59, 130, 246, 0.14); color: var(--sky); border: 1px solid rgba(59, 130, 246, 0.4); }
.form-status.is-error { background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger-border); }

/* Info aside */
.aside-note {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
  color: var(--text-2);
}
.aside-note a { color: var(--sky); }

/* Contact-method rows (contact.html) */
.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-soft);
}
.contact-method:last-child { border-bottom: none; }
.contact-method .icon-badge { margin-bottom: 0; width: 44px; height: 44px; }
.contact-method h2 { font-size: 1.15rem; margin: 0 0 0.2rem; }
.contact-method p { margin: 0 0 0.5rem; color: var(--text-2); }
.contact-method .phone-link { font-size: 1.25rem; font-weight: 700; color: var(--sky); }

/* Service hours block */
.hours-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.hours-block dl { margin: 0; }
.hours-block dt { font-weight: 700; color: var(--text); margin-top: 0.75rem; }
.hours-block dt:first-child { margin-top: 0; }
.hours-block dd { margin: 0; color: var(--text-2); }

/* Founder block (about) */
.founder {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.founder-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  flex: 0 0 auto;
}
.founder h3 { margin: 0 0 0.15rem; }
.founder .founder-role { color: var(--text-3); font-weight: 600; margin: 0 0 0.75rem; }
.founder p { color: var(--text-2); }
.founder p:last-child { margin-bottom: 0; }

/* Values list */
.values { list-style: none; }
.values li { position: relative; padding-left: 2rem; margin-bottom: 1rem; color: var(--text-2); }
.values li strong { color: var(--text); display: block; }
.values li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid var(--blue);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* Section divider — a monitoring hairline with a pulsing "still-alive" node,
   echoing the hero uptime motif. CSS only; reduced-motion disables the pulse. */
.divider {
  position: relative;
  height: 16px;
  margin: 0 auto;
  max-width: 320px;
  color: var(--border);
}
.divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, var(--border-soft) 22%, var(--border-soft) 78%, transparent);
}
.divider::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(103, 232, 249, 0.45);
  animation: tps-node-pulse 2.8s ease-out infinite;
}
@keyframes tps-node-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(103, 232, 249, 0.45); }
  70%  { box-shadow: 0 0 0 11px rgba(103, 232, 249, 0); }
  100% { box-shadow: 0 0 0 0 rgba(103, 232, 249, 0); }
}
.divider svg { width: 100%; height: 16px; }

/* Legal pages */
.legal { max-width: 46rem; margin: 0 auto; }
.legal > p { color: var(--text-2); }
.legal .meta,
.hero .meta { color: var(--text-3); font-size: 0.95rem; font-weight: 500; margin-top: 0.5rem; }

.toc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
  margin: 2rem 0 2.5rem;
}
.toc h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin: 0 0 1rem;
}
.toc ol { margin: 0; padding-left: 1.4rem; columns: 2; column-gap: 2rem; }
.toc li { margin-bottom: 0.5rem; color: var(--text-2); }
.toc a { color: var(--sky); }

.legal-section {
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border-soft);
  scroll-margin-top: 90px;      /* clear the sticky nav on anchor jump */
}
.legal-section:first-of-type { border-top: none; margin-top: 0; }
.legal-section h2 { font-size: 1.4rem; }
.legal-section p { color: var(--text-2); }
.legal-section .summary {
  background: rgba(59, 130, 246, 0.08);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.75rem 1.1rem;
  margin: 0 0 1rem;
  color: var(--text);
}
.legal-section .summary strong { color: var(--sky); }

/* Footer */
.site-footer {
  background: var(--bg-0);
  color: var(--text-2);
  padding: 3.5rem 0 2rem;
  margin-top: 4rem;
  border-top: 1px solid var(--border-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}
.site-footer h4 {
  color: var(--text);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.site-footer a { color: var(--text-2); }
.site-footer a:hover { color: var(--sky); }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 0.55rem; }
.footer-brand .brand { color: var(--text); margin-bottom: 0.75rem; }
.footer-brand .brand span.accent { color: var(--sky); }
.footer-brand p { font-size: 0.92rem; max-width: 24rem; color: var(--text-2); }

.footer-identity {
  margin-top: 1.25rem;
  font-size: 0.92rem;
  color: var(--text-2);
}
.footer-identity a { color: var(--sky); font-weight: 600; }

.footer-legal { margin-top: 1rem; }
.footer-legal a { color: var(--text-2); }
.footer-legal a:hover { color: var(--sky); }

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-soft);
  font-size: 0.85rem;
  color: var(--text-3);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}
.footer-bottom a { color: var(--text-3); }
.footer-bottom a:hover { color: var(--sky); }

/* 404 */
.notfound {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.notfound .code {
  font-size: clamp(4rem, 14vw, 8rem);
  font-weight: 800;
  color: var(--sky);
  line-height: 1;
  letter-spacing: -0.04em;
  text-shadow: 0 0 40px rgba(59, 130, 246, 0.4);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-art { max-width: 460px; margin: 0 auto; order: -1; }
}

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Collapse the nav to a hamburger before the links + CTAs would overflow (tablet portrait). */
@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10, 15, 30, 0.96);
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: var(--shadow);
    padding: 0.5rem 1.25rem 1rem;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--border-soft); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { display: block; padding: 0.9rem 0; min-height: 44px; }
  /* CTAs collapse into the hamburger menu; the primary CTA still appears in every hero and CTA band. */
  .nav .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr 1fr; }
  .section { padding: 3rem 0; }
  .hero { padding: 3.5rem 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  .founder { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .trust { grid-template-columns: 1fr; }
  .container { padding: 0 1rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .tier:hover { transform: none; }
  .hero-art .pulse-line { animation: none; stroke-dasharray: none; }
  /* Hero load choreography off: show every child in place, no rise */
  .hero-home .eyebrow,
  .hero-home h1,
  .hero-home .lead,
  .hero-home .hero-actions,
  .hero-home .trust,
  .hero-home .hero-art { animation: none; opacity: 1; transform: none; }
  .divider::after { animation: none; box-shadow: none; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
