/* ==========================================================================
   ALT TAB · base styles shared by every page
   Identity: Option C "Rota segura" · navy (approved 19/10/2026)
   ========================================================================== */
@font-face { font-family: "Sora"; src: url("../assets/fonts/sora-var-latin.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/inter-var-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../assets/fonts/geistmono-var-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  /* navy family */
  --navy: #0C1F44;          /* dark background (white 16.2:1) */
  --navy-surface: #152B55;  /* cards on navy */
  --navy-line: #24407A;     /* borders on navy (decorative) */
  --ink: #12275A;           /* text on white (14.4:1) */
  --ink-2: #4A5878;         /* secondary text on white (7.1:1) */
  --on-dark: #F5F7FB;       /* text on navy */
  --on-dark-2: #A3B1CC;     /* secondary text on navy (7.5:1) */
  --bg: #FFFFFF;
  --bg-alt: #F5F7FB;
  --line: #DCE3EE;
  /* brand */
  --violet: #6B4EFF;        /* brand on light (5.1:1) */
  --violet-l: #A794FF;      /* brand on navy (6.4:1) */
  --teal: #2DD4BF;          /* internal server / protected / success, on navy (8.7:1) */
  --teal-ink: #0B7468;      /* teal for text on white (5.7:1) */
  /* reserved colors */
  --demo: #FF6B1A;          /* ONLY the main call-to-action button */
  --demo-ink: #0C1F44;      /* text on the demo button (5.7:1) */
  --risk: #C62828;          /* ONLY the risk band */
  /* type */
  --f-head: "Sora", ui-sans-serif, system-ui, sans-serif;
  --f-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  /* misc */
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 64px;
  --pad: 20px;
  --section-y: 72px;
}
@media (min-width: 768px) { :root { --pad: 32px; --section-y: 104px; --header-h: 72px; } }
@media (min-width: 1200px) { :root { --section-y: 120px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font-family: var(--f-body); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--violet); }
button { font: inherit; color: inherit; cursor: pointer; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--violet-l); outline-offset: 3px; border-radius: 6px; }
.light :focus-visible, .pains :focus-visible, .pillars :focus-visible, .trust :focus-visible { outline-color: var(--violet); }
.ic { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--pad); }
.container.narrow { max-width: 820px; }
section { padding: var(--section-y) 0; }
.dark { background: var(--navy); color: var(--on-dark); }
.light { background: var(--bg-alt); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--on-dark); color: var(--ink); padding: 10px 14px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- typography helpers ---------- */
.eyebrow { display: inline-block; font: 600 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--violet-l); padding: 7px 10px; border: 1px solid var(--navy-line); background: var(--navy-surface); border-radius: 8px; margin-bottom: 18px; }
.eyebrow-ink { color: var(--violet); background: #fff; border-color: var(--line); }
.light .eyebrow-ink { background: #fff; }
.section-title { font-size: clamp(28px, 7.4vw, 48px); max-width: 18ch; }
.section-sub { margin-top: 14px; font-size: clamp(16px, 2.2vw, 19px); color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }
.dark .section-sub { color: var(--on-dark-2); }
.small { font-size: 14px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; font: 700 16px/1 var(--f-body); text-decoration: none; border: 0; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease; }
.btn-demo { background: var(--demo); color: var(--demo-ink); box-shadow: 0 8px 24px -10px rgba(255, 107, 26, .7); }
.btn-demo:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -10px rgba(255, 107, 26, .85); }
.btn-demo:focus-visible { outline-color: #fff; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14.5px; border-radius: 10px; }
.header-demo .lbl-full { display: none; }
@media (min-width: 1024px) { .header-demo .lbl-short { display: none; } .header-demo .lbl-full { display: inline; } }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 17px; }
.btn-ghost { color: var(--on-dark); background: transparent; box-shadow: inset 0 0 0 1.5px var(--navy-line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--violet-l); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(12, 31, 68, .94); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--navy-line); }
.header-inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.brand { display: flex; align-items: center; margin-right: auto; border-radius: 8px; }
.brand img { height: 30px; width: auto; }
.main-nav { display: none; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; background: transparent; border: 1px solid var(--navy-line); color: var(--on-dark); }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
.nav-open .main-nav { display: block; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--navy); border-bottom: 1px solid var(--navy-line); padding: 8px var(--pad) 18px; }
.nav-open .main-nav ul { display: grid; }
.nav-link { display: block; padding: 13px 4px; color: var(--on-dark); text-decoration: none; font-weight: 500; font-size: 17px; border-bottom: 1px solid var(--navy-surface); }
.nav-link[aria-current="page"] { color: var(--violet-l); }
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .main-nav { display: block; margin-right: 8px; }
  .main-nav ul { display: flex; gap: 4px; }
  .nav-link { padding: 8px 12px; border: 0; font-size: 15px; color: var(--on-dark-2); border-radius: 8px; }
  .nav-link:hover { color: var(--on-dark); background: var(--navy-surface); }
  .nav-link[aria-current="page"] { color: var(--on-dark); box-shadow: inset 0 -2px 0 var(--violet-l); border-radius: 0; }
  .brand img { height: 34px; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: var(--on-dark-2); border-top: 1px solid var(--navy-line); padding: 48px 0 40px; font-size: 14.5px; }
.footer-inner { display: grid; gap: 28px; }
.footer-brand img { height: 30px; width: auto; margin-bottom: 12px; }
.footer-brand p { max-width: 34ch; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.footer-link { color: var(--on-dark); text-decoration: none; }
.footer-link:hover { text-decoration: underline; }
.footer-meta { display: grid; gap: 12px; }
.footer-legal-note { font-size: 12.5px; line-height: 1.45; color: var(--on-dark-2); max-width: 62ch; }
.footer-legal { display: grid; gap: 10px; }
.footer-legal li { display: flex; align-items: center; gap: 8px; }
.footer-link.is-reserved { color: var(--on-dark-2); text-decoration: underline dashed; text-underline-offset: 3px; pointer-events: none; }
.footer-legal .ph-tag { font-size: 9.5px; padding: 4px 6px; }
@media (min-width: 900px) { .footer-inner { grid-template-columns: 1.2fr 1.4fr 1fr; align-items: start; } }

/* ---------- placeholders (visible on purpose: must be filled before launch) ---------- */
.ph-tag { display: inline-block; font: 700 11px/1 var(--f-mono); letter-spacing: .1em; padding: 5px 7px; border-radius: 5px; background: var(--ink); color: #fff; vertical-align: middle; }
.dark .ph-tag { background: var(--on-dark); color: var(--navy); }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- animated figure shell + pause button (WCAG 2.2.2) ---------- */
.anim { position: relative; margin: 0; }
/* Pause sits in the top-right of .anim; figure headers must keep ≥48px clear on the right. */
.anim-toggle { position: absolute; z-index: 3; top: 10px; right: 10px; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: rgba(12, 31, 68, .7); border: 1px solid var(--navy-line); color: var(--on-dark); }
.anim-toggle:hover { border-color: var(--violet-l); }
.anim-toggle .ic { width: 16px; height: 16px; }
.anim-toggle .i-play { display: none; fill: currentColor; }
.anim.is-paused .anim-toggle .i-pause { display: none; }
.anim.is-paused .anim-toggle .i-play { display: block; }
.anim.is-paused *, .anim.is-paused *::before, .anim.is-paused *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { .anim-toggle { display: none; } }

/* ---------- stub pages ---------- */
.stub { min-height: 60vh; display: flex; align-items: center; }
.stub .section-sub a { color: var(--violet-l); }
.site-footer .ph-tag { background: var(--on-dark); color: var(--navy); }
