/* =========================================================================
   MyLifeGuardian — marketing site
   Design: pine-teal "calm clinical instrument" on warm paper, one amber accent
   reserved for the living "today" pulse. Signature = the Life Timeline band.
   ========================================================================= */

:root {
  /* palette */
  --paper:    #FCFBF8;
  --paper-2:  #F4F2EC;
  --mint:     #EAF3EF;
  --pine:     #0B6E5B;
  --pine-600: #0A6152;
  --pine-800: #074A3F;
  --pine-900: #063a31;
  --ink:      #16231E;
  --ink-soft: #55655F;
  --line:     #E6E7E0;
  --amber:    #E6A552;
  --teal:     #4FA292;
  --slate:    #8492A0;
  --white:    #ffffff;

  /* type */
  --f-display: "Bricolage Grotesque", "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --f-sans:    "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono:    ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  /* metrics */
  --wrap: 1160px;
  --pad: clamp(20px, 5vw, 56px);
  --radius: 18px;
  --shadow: 0 1px 2px rgba(16,35,30,.04), 0 18px 40px -24px rgba(16,35,30,.22);
  --shadow-sm: 0 1px 2px rgba(16,35,30,.05), 0 8px 24px -18px rgba(16,35,30,.20);
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.06; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
em { font-style: normal; color: var(--pine-600); }

.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.sr-only, .skip-link { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 12px; left: 12px; width: auto; height: auto; clip: auto; z-index: 100; background: var(--pine); color: #fff; padding: 10px 16px; border-radius: 10px; }

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

.eyebrow {
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: var(--pine-600);
  margin: 0 0 18px;
}
.eyebrow--light { color: #9ad9c8; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: transparent;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-sans); font-weight: 600; font-size: 15.5px;
  padding: 11px 18px; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1.5px solid var(--btn-bd);
  cursor: pointer; transition: transform .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--solid { --btn-bg: var(--pine); --btn-fg: #fff; box-shadow: 0 10px 22px -12px rgba(11,110,91,.6); }
.btn--solid:hover { --btn-bg: var(--pine-600); box-shadow: 0 14px 26px -12px rgba(11,110,91,.7); }
.btn--ghost { --btn-fg: var(--ink); --btn-bd: var(--line); }
.btn--ghost:hover { --btn-bd: var(--pine); --btn-fg: var(--pine-600); }
.btn--quiet { --btn-fg: var(--pine-600); padding-inline: 6px; }
.btn--quiet:hover { color: var(--pine-800); }
.btn--onDark { --btn-bg: var(--paper); --btn-fg: var(--pine-900); }
.btn--onDark:hover { --btn-bg: #fff; }
.btn--lg { padding: 14px 24px; font-size: 16.5px; }

/* =========================================================================
   NAV
   ========================================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 20px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; color: var(--ink); }
.brand__mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--pine); color: #fff; box-shadow: 0 6px 14px -6px rgba(11,110,91,.7); }
.brand__accent { color: var(--pine); }
.nav__links { display: flex; gap: 28px; margin-left: auto; font-weight: 500; font-size: 15.5px; color: var(--ink-soft); }
.nav__links a { position: relative; padding: 4px 0; white-space: nowrap; }
.nav__links a:hover { color: var(--ink); }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--pine); transition: right .25s ease; }
.nav__links a:hover::after { right: 0; }
.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__toggle { display: none; }

.nav__mobile { display: none; }
.nav__mobile a { padding: 14px 4px; border-top: 1px solid var(--line); font-weight: 600; font-size: 17px; }
.nav__mobile .btn { margin: 14px 0 4px; justify-content: center; }
.nav__mobile .btn + .btn { margin-top: 0; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero { position: relative; padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(16px, 3vw, 36px); overflow: hidden; }
.hero__glow {
  position: absolute; inset: -20% 0 auto 0; height: 620px; pointer-events: none; z-index: 0;
  background:
    radial-gradient(60% 70% at 78% 8%, rgba(230,165,82,.16), transparent 60%),
    radial-gradient(58% 80% at 18% 0%, rgba(11,110,91,.14), transparent 62%),
    radial-gradient(90% 60% at 50% -10%, var(--mint), transparent 70%);
}
.hero__inner { position: relative; z-index: 1; text-align: center; max-width: 900px; margin-inline: auto; }
.hero__title { font-size: clamp(2.5rem, 6.2vw, 4.5rem); font-weight: 600; margin-bottom: 22px; }
.hero__lede { font-size: clamp(1.06rem, 1.6vw, 1.28rem); color: var(--ink-soft); max-width: 640px; margin: 0 auto 30px; }

/* ---- the signature Life Timeline ---- */
.timeline {
  margin: clamp(28px, 5vw, 54px) 0 0;
  padding: clamp(18px, 3vw, 30px) clamp(10px, 2vw, 24px);
  background: linear-gradient(180deg, #fff, var(--paper));
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.timeline__svg { width: 100%; height: auto; }
.tl-years text { font-family: var(--f-mono); font-size: 12px; fill: var(--ink-soft); letter-spacing: .04em; }
.tl-years .tl-years--now { fill: var(--amber); font-weight: 700; }
.tl-stem { stroke: var(--line); stroke-width: 1.5; }
.tl-dot--pine { fill: var(--pine); }
.tl-dot--teal { fill: var(--teal); }
.tl-dot--slate { fill: var(--slate); }
.tl-dot { stroke: #fff; stroke-width: 2.5; }
.tl-chip rect { fill: #fff; stroke: var(--line); stroke-width: 1; filter: drop-shadow(0 6px 14px rgba(16,35,30,.08)); }
.tl-chip text { font-family: var(--f-sans); font-size: 12.5px; font-weight: 600; fill: var(--ink); }
.tl-chip .tl-chip__sub { font-family: var(--f-mono); font-size: 10.5px; font-weight: 400; fill: var(--ink-soft); }
.tl-chipdot { stroke: none; }
.tl-today__glow { fill: var(--amber); opacity: .35; }
.tl-today__dot { fill: var(--amber); stroke: #fff; stroke-width: 3; }

/* timeline entrance animation */
.tl-base { stroke-dasharray: 1030; stroke-dashoffset: 1030; }
.tl-pulse { stroke-dasharray: 250; stroke-dashoffset: 250; }
.tl-ev, .tl-today { opacity: 0; transform: translateY(6px); }
.timeline.is-in .tl-base { animation: draw 1.5s .1s ease forwards; }
.timeline.is-in .tl-pulse { animation: ecg 5.2s 1.1s ease-in-out infinite; }
.timeline.is-in .tl-ev { animation: pop .5s ease forwards; animation-delay: var(--d); }
.timeline.is-in .tl-today { animation: pop .6s ease forwards; animation-delay: var(--d); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; transform: translateY(0); } }
.tl-today__glow { transform-box: fill-box; transform-origin: center; }
.timeline.is-in .tl-today__glow { animation: pulse 2.6s 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: .28; } 50% { opacity: .55; } }
@keyframes ecg {
  0%    { stroke-dashoffset: 250; opacity: 0; }
  6%    { opacity: .85; }
  42%   { stroke-dashoffset: 0; opacity: .85; }
  80%   { stroke-dashoffset: 0; opacity: .85; }
  92%   { stroke-dashoffset: 0; opacity: 0; }
  92.5% { stroke-dashoffset: 220; opacity: 0; }
  100%  { stroke-dashoffset: 220; opacity: 0; }
}


/* ---- hero workflow storyboard: upload -> read & filed -> research -> advice.
   Plays once and holds the finished scene (fill: both). With animations
   disabled (reduced motion) it renders as the static finished diagram. ---- */
.workflow {
  margin: 0;
  padding: clamp(14px, 2.4vw, 24px) clamp(10px, 2vw, 24px);
  background: linear-gradient(180deg, #fff, var(--paper));
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.workflow__svg { width: 100%; height: auto; }
.wf-card { fill: #fff; stroke: var(--line); filter: drop-shadow(0 10px 20px rgba(16,35,30,.06)); }
.wf-step { font-family: var(--f-mono); font-size: 15px; fill: var(--pine-600); letter-spacing: .08em; }
.wf-title { font-family: var(--f-sans); font-size: 18px; font-weight: 600; fill: var(--ink); }
.wf-zone { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 6 6; }
.wf-zoneflash { fill: rgba(11,110,91,.05); stroke: var(--pine); stroke-width: 1.5; stroke-dasharray: 6 6; opacity: 0; }
.wf-doc__card { fill: #fff; stroke: var(--line); filter: drop-shadow(0 6px 14px rgba(16,35,30,.12)); }
.wf-doc__page { fill: var(--mint); stroke: var(--pine); stroke-width: 1.2; }
.wf-doc__ln { stroke: var(--pine); stroke-width: 1.5; stroke-linecap: round; opacity: .55; }
.wf-doc__name { font-family: var(--f-mono); font-size: 14.5px; fill: var(--ink-soft); }
.wf-doc__name--sm { font-size: 13.5px; }
.wf-arrow { fill: none; stroke: var(--pine); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .35; }
.wf-dot { fill: var(--pine); opacity: 0; }
.wf-scan { stroke: var(--amber); stroke-width: 2.5; stroke-linecap: round; opacity: 0; }
.wf-row rect { fill: var(--paper); stroke: var(--line); }
.wf-row text { font-family: var(--f-sans); font-size: 16.5px; font-weight: 600; fill: var(--ink); }
.wf-val--ok { fill: var(--pine); }
.wf-val--warn { fill: var(--amber); }
.wf-filed__c { fill: var(--pine); }
.wf-filed__t { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wf-filed text, .wf-crossed text { font-family: var(--f-sans); font-size: 15.5px; font-weight: 600; fill: var(--pine-600); }
.wf-src rect { fill: var(--paper); stroke: var(--line); }
.wf-src__label { font-family: var(--f-mono); font-size: 12px; fill: var(--pine-600); letter-spacing: .06em; }
.wf-src__value { font-family: var(--f-sans); font-size: 15.5px; font-weight: 600; fill: var(--ink); }
.wf-bubble rect { fill: var(--pine); filter: drop-shadow(0 6px 14px rgba(11,110,91,.3)); }
.wf-bubble__dot { fill: var(--amber); }
.wf-bubble text { font-family: var(--f-sans); font-size: 15.5px; font-weight: 600; fill: #fff; }
.wf-follow rect { fill: #fff; stroke: var(--line); filter: drop-shadow(0 6px 14px rgba(16,35,30,.08)); }
.wf-follow text { font-family: var(--f-sans); font-size: 15px; fill: var(--ink-soft); }
.wf-action rect { fill: var(--mint); }
.wf-action text { font-family: var(--f-sans); font-size: 15.5px; font-weight: 600; fill: var(--pine-800); }

.workflow.is-in .wf-doc       { animation: wf-doc 13s .6s linear both; }
.workflow.is-in .wf-zoneflash { animation: wf-flash 13s .6s linear both; }
.workflow.is-in .wf-dot--1    { animation: wf-dot1 13s .6s linear both; }
.workflow.is-in .wf-chip2     { animation: wf-chip2 13s .6s linear both; }
.workflow.is-in .wf-scan      { animation: wf-scan 13s .6s linear both; }
.workflow.is-in .wf-row--1    { animation: wf-row1 13s .6s linear both; }
.workflow.is-in .wf-row--2    { animation: wf-row2 13s .6s linear both; }
.workflow.is-in .wf-row--3    { animation: wf-row3 13s .6s linear both; }
.workflow.is-in .wf-filed     { animation: wf-filed 13s .6s linear both; }
.workflow.is-in .wf-dot--2    { animation: wf-dot2 13s .6s linear both; }
.workflow.is-in .wf-src--1    { animation: wf-src1 13s .6s linear both; }
.workflow.is-in .wf-src--2    { animation: wf-src2 13s .6s linear both; }
.workflow.is-in .wf-src--3    { animation: wf-src3 13s .6s linear both; }
.workflow.is-in .wf-crossed   { animation: wf-crossed 13s .6s linear both; }
.workflow.is-in .wf-dot--3    { animation: wf-dot3 13s .6s linear both; }
.workflow.is-in .wf-bubble    { animation: wf-bubble 13s .6s linear both; }
.workflow.is-in .wf-follow    { animation: wf-follow 13s .6s linear both; }
.workflow.is-in .wf-action    { animation: wf-action 13s .6s linear both; }

@keyframes wf-doc {
  0%, 2%     { opacity: 0; transform: translateY(-70px); }
  5%         { opacity: 1; transform: translateY(-70px); }
  10%        { transform: translateY(0); }
  100%       { opacity: 1; transform: translateY(0); }
}
@keyframes wf-flash {
  0%, 10%    { opacity: 0; }
  12.5%      { opacity: 1; }
  17%, 100%  { opacity: 0; }
}
@keyframes wf-dot1 {
  0%, 11%    { opacity: 0; transform: translateX(0); }
  12%        { opacity: 1; }
  15%        { opacity: 1; transform: translateX(16px); }
  16%, 100%  { opacity: 0; transform: translateX(16px); }
}
@keyframes wf-chip2 {
  0%, 13%    { opacity: 0; transform: translateY(5px); }
  16%        { opacity: 1; transform: translateY(0); }
  100%       { opacity: 1; transform: translateY(0); }
}
@keyframes wf-scan {
  0%, 16%    { opacity: 0; transform: translateY(2px); }
  17.5%      { opacity: .9; }
  22%        { opacity: .9; transform: translateY(36px); }
  23%, 100%  { opacity: 0; transform: translateY(36px); }
}
@keyframes wf-row1 {
  0%, 18%    { opacity: 0; transform: translateY(5px); }
  21%        { opacity: 1; transform: translateY(0); }
  100%       { opacity: 1; transform: translateY(0); }
}
@keyframes wf-row2 {
  0%, 21%    { opacity: 0; transform: translateY(5px); }
  24%        { opacity: 1; transform: translateY(0); }
  100%       { opacity: 1; transform: translateY(0); }
}
@keyframes wf-row3 {
  0%, 24%    { opacity: 0; transform: translateY(5px); }
  27%        { opacity: 1; transform: translateY(0); }
  100%       { opacity: 1; transform: translateY(0); }
}
@keyframes wf-filed {
  0%, 27.5%  { opacity: 0; transform: translateY(5px); }
  30.5%      { opacity: 1; transform: translateY(0); }
  100%       { opacity: 1; transform: translateY(0); }
}
@keyframes wf-dot2 {
  0%, 30%    { opacity: 0; transform: translateX(0); }
  31%        { opacity: 1; }
  34%        { opacity: 1; transform: translateX(16px); }
  35%, 100%  { opacity: 0; transform: translateX(16px); }
}
@keyframes wf-src1 {
  0%, 35%    { opacity: 0; transform: translateY(5px); }
  38.5%      { opacity: 1; transform: translateY(0); }
  100%       { opacity: 1; transform: translateY(0); }
}
@keyframes wf-src2 {
  0%, 38.5%  { opacity: 0; transform: translateY(5px); }
  42%        { opacity: 1; transform: translateY(0); }
  100%       { opacity: 1; transform: translateY(0); }
}
@keyframes wf-src3 {
  0%, 42%    { opacity: 0; transform: translateY(5px); }
  45.5%      { opacity: 1; transform: translateY(0); }
  100%       { opacity: 1; transform: translateY(0); }
}
@keyframes wf-crossed {
  0%, 46%    { opacity: 0; transform: translateY(5px); }
  49%        { opacity: 1; transform: translateY(0); }
  100%       { opacity: 1; transform: translateY(0); }
}
@keyframes wf-dot3 {
  0%, 49%    { opacity: 0; transform: translateX(0); }
  50%        { opacity: 1; }
  53%        { opacity: 1; transform: translateX(16px); }
  54%, 100%  { opacity: 0; transform: translateX(16px); }
}
@keyframes wf-bubble {
  0%, 54%    { opacity: 0; transform: translateY(5px); }
  57.5%      { opacity: 1; transform: translateY(0); }
  100%       { opacity: 1; transform: translateY(0); }
}
@keyframes wf-follow {
  0%, 57.5%  { opacity: 0; transform: translateY(5px); }
  61%        { opacity: 1; transform: translateY(0); }
  100%       { opacity: 1; transform: translateY(0); }
}
@keyframes wf-action {
  0%, 61%    { opacity: 0; transform: translateY(5px); }
  64%        { opacity: 1; transform: translateY(0); }
  100%       { opacity: 1; transform: translateY(0); }
}

/* ---- timeline event-category pills ---- */
.tlcats { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 28px 0 0; padding: 0; }
.tlcats li { position: relative; padding: 7px 16px 7px 30px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.tlcats li::before { content: ""; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.tlcats li:nth-child(3n)::before { background: var(--slate); }
.tlcats li:nth-child(3n+1)::before { background: var(--pine); }

/* =========================================================================
   TRUST STRIP
   ========================================================================= */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); margin-top: clamp(40px, 7vw, 80px); }
.strip__inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip__item { padding: 26px 26px; border-left: 1px solid var(--line); }
.strip__item:first-child { border-left: 0; padding-left: 0; }
.strip__k { display: block; font-weight: 600; font-size: 15.5px; color: var(--ink); }
.strip__v { display: block; font-size: 13.5px; color: var(--ink-soft); margin-top: 3px; }

/* =========================================================================
   SECTIONS (shared)
   ========================================================================= */
.section { padding-block: clamp(72px, 11vw, 128px); }
.section__head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 68px); text-align: center; }
.section__head--left { text-align: left; margin-inline: 0; }
.section__title { font-size: clamp(1.9rem, 3.6vw, 2.85rem); }
.section__lede { color: var(--ink-soft); font-size: 1.06rem; max-width: 62ch; margin: 16px auto 0; }
.section__head--left .section__lede { margin-inline: 0; }

/* ---- FEATURES ---- */
.lead { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 22px; }
.lead__card { background: linear-gradient(180deg, #fff, var(--paper)); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 3vw, 40px); box-shadow: var(--shadow-sm); }
.lead__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--mint); color: var(--pine); display: grid; place-items: center; margin-bottom: 20px; }
.lead__icon svg { width: 27px; height: 27px; }
.lead__title { font-size: 1.5rem; margin-bottom: 12px; }
.lead__body { color: var(--ink-soft); font-size: 1.02rem; }

/* ---------- DNA / genetics spotlight ---------- */
.dna { background: linear-gradient(180deg, var(--paper), var(--mint)); border-top: 1px solid var(--line); }
.dna__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(36px, 7vw, 96px); }
.dna__copy .section__title { margin-bottom: 16px; }
.dna__lede { color: var(--ink-soft); font-size: 1.06rem; max-width: 56ch; margin: 0 0 24px; }
.dna__list { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 12px; }
.dna__list li { position: relative; padding-left: 28px; color: var(--ink-soft); }
.dna__list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--pine); font-weight: 700; }
.dna__list li strong { color: var(--ink); font-weight: 600; }
.dna__note { margin: 0 0 26px; padding: 12px 16px; border-left: 3px solid var(--amber); background: color-mix(in srgb, var(--amber) 8%, transparent); border-radius: 0 10px 10px 0; font-size: .9rem; color: var(--ink-soft); max-width: 56ch; }
/* Animated double helix: each row's two dots swap sides in antiphase while
   the rung between them compresses, faking a 3D twist. Row phase is staggered
   via --i. The static base transforms below use cos() so a frozen frame
   (prefers-reduced-motion) still reads as a proper helix, not a ladder. */
.dna__art { width: clamp(190px, 22vw, 270px); height: auto; margin-right: clamp(0px, 3vw, 40px); }
.dna-rung {
  stroke: var(--pine); stroke-width: 4; stroke-linecap: round; opacity: .16;
  transform: scaleX(calc(cos(var(--i) * 24deg)));
  animation: dna-rung 3.9s ease-in-out infinite;
  animation-delay: calc(var(--i) * -.26s);
}
.dna-dot { stroke: none; }
.dna-dot--a {
  fill: var(--pine);
  transform: translateX(calc(cos(var(--i) * 24deg) * -34px));
  animation: dna-a 3.9s ease-in-out infinite;
  animation-delay: calc(var(--i) * -.26s);
}
.dna-dot--b {
  fill: var(--teal);
  transform: translateX(calc(cos(var(--i) * 24deg) * 34px));
  animation: dna-b 3.9s ease-in-out infinite;
  animation-delay: calc(var(--i) * -.26s);
}
.dna-pulse { fill: var(--amber); opacity: 0; animation: dna-pulse 5.6s ease-in-out 1.2s infinite; }
@keyframes dna-a {
  0%   { transform: translateX(-34px) scale(1);    opacity: .92; }
  25%  { transform: translateX(0)     scale(1.22); opacity: 1; }
  50%  { transform: translateX(34px)  scale(1);    opacity: .92; }
  75%  { transform: translateX(0)     scale(.72);  opacity: .45; }
  100% { transform: translateX(-34px) scale(1);    opacity: .92; }
}
@keyframes dna-b {
  0%   { transform: translateX(34px)  scale(1);    opacity: .92; }
  25%  { transform: translateX(0)     scale(.72);  opacity: .45; }
  50%  { transform: translateX(-34px) scale(1);    opacity: .92; }
  75%  { transform: translateX(0)     scale(1.22); opacity: 1; }
  100% { transform: translateX(34px)  scale(1);    opacity: .92; }
}
@keyframes dna-rung {
  0%   { transform: scaleX(1);    opacity: .16; }
  25%  { transform: scaleX(.06);  opacity: .05; }
  50%  { transform: scaleX(-1);   opacity: .16; }
  75%  { transform: scaleX(-.06); opacity: .05; }
  100% { transform: scaleX(1);    opacity: .16; }
}
@keyframes dna-pulse {
  0%   { transform: translateY(0);     opacity: 0; }
  10%  { opacity: .95; }
  85%  { opacity: .95; }
  100% { transform: translateY(224px); opacity: 0; }
}



/* The promise's closing stance — full-width beneath the grid, anchored by the brand pulse. */
.privacy__stance { grid-column: 1 / -1; margin-top: clamp(28px, 4vw, 48px); padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid rgba(255,255,255,.14); text-align: center; }
.privacy__stance-mark { display: block; width: 34px; height: 34px; color: var(--amber); margin: 0 auto 12px; }
.privacy__stance p { margin: 0 auto; max-width: 46ch; font-family: var(--f-display); font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; font-size: clamp(1.3rem, 2.4vw, 1.75rem); color: #fff; }

/* ── Sentinel / Library ─────────────────────────────────────────────────── */
.sentinel { border-top: 1px solid var(--line); }
.sentinel__inner { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(36px, 7vw, 96px); }
.sentinel__copy .section__title { margin-bottom: 16px; }
.sentinel__lede { color: var(--ink-soft); font-size: 1.06rem; max-width: 56ch; margin: 0 0 24px; }
.sentinel__list { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 12px; }
.sentinel__list li { position: relative; padding-left: 28px; color: var(--ink-soft); }
.sentinel__list li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--pine); font-weight: 700; }
.sentinel__list li strong { color: var(--ink); font-weight: 600; }
.sentinel__thesis { margin: 0 0 26px; max-width: 52ch; font-family: var(--f-display); font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; font-size: 1.16rem; color: var(--pine-800); }
.sentinel__note { margin: 0 0 26px; padding: 12px 16px; border-left: 3px solid var(--amber); background: color-mix(in srgb, var(--amber) 8%, transparent); border-radius: 0 10px 10px 0; font-size: .9rem; color: var(--ink-soft); max-width: 56ch; }

/* The graded-source card (inline SVG). Text sizes are in SVG user units. */
.sentinel__art { width: clamp(260px, 27vw, 340px); height: auto; margin-left: clamp(0px, 2vw, 28px); }
.sn-link__pill { fill: var(--paper-2); stroke: var(--line); }
.sn-link__icon { fill: none; stroke: var(--slate); stroke-width: 1.6; stroke-linecap: round; }
.sn-link__text { font: 600 12.5px var(--f-mono); fill: var(--ink-soft); }
.sn-drop { stroke: var(--slate); stroke-width: 1.6; stroke-dasharray: 2.5 4.5; stroke-linecap: round; }
.sn-card { fill: var(--white); stroke: var(--line); filter: drop-shadow(0 14px 24px rgba(16,35,30,.10)); }
.sn-card__bar { fill: var(--amber); }
.sn-play { fill: var(--mint); }
.sn-play__tri { fill: var(--pine); }
.sn-line { fill: color-mix(in srgb, var(--ink) 13%, transparent); }
.sn-line--strong { fill: color-mix(in srgb, var(--ink) 22%, transparent); }
.sn-line--faint { fill: color-mix(in srgb, var(--ink) 8%, transparent); }
.sn-rule { stroke: var(--line); }
.sn-pill { stroke-width: 1.5; }
.sn-pill--solid { fill: var(--amber); stroke: none; }
.sn-pill--amber { fill: color-mix(in srgb, var(--amber) 10%, transparent); stroke: var(--amber); }
.sn-pill--red { fill: color-mix(in srgb, #C0564F 8%, transparent); stroke: #C0564F; }
.sn-pill__text { font: 600 12.5px var(--f-sans); }
.sn-pill__text--solid { fill: #fff; }
.sn-pill__text--amber { fill: #8A5A1D; }
.sn-pill__text--red { fill: #A8443D; }
.sn-label { font: 700 9.5px var(--f-sans); letter-spacing: .14em; fill: var(--slate); }
.sn-meter { fill: var(--paper-2); stroke: var(--line); }
.sn-meter__fill { fill: var(--amber); stroke: none; transform-box: fill-box; transform-origin: left center; transform: scaleX(.4); }
.sn-value { font: 700 13px var(--f-sans); fill: var(--ink); }
.sn-value__dim { font-weight: 600; fill: var(--slate); }
.sn-rel__dot { fill: var(--slate); }
.sn-rel { font: 600 12.5px var(--f-sans); fill: var(--ink-soft); }
.sn-books { fill: var(--pine); opacity: .85; }
.sn-filed { font: 600 13px var(--f-sans); fill: var(--pine); }

/* Verdict pills "stamp" in one-by-one once the section scrolls into view. */
.sn-stamp { transform-box: fill-box; transform-origin: center; opacity: 0; }
.sentinel__art.is-in .sn-stamp { animation: sn-stamp .5s cubic-bezier(.2, 1.7, .4, 1) both; animation-delay: calc(.45s + var(--i) * .22s); }
.sentinel__art.is-in .sn-meter__fill { animation: sn-meter .9s cubic-bezier(.2, .7, .2, 1) 1.5s both; }
@keyframes sn-stamp {
  0%   { opacity: 0; transform: scale(.5); }
  62%  { opacity: 1; transform: scale(1.07); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes sn-meter {
  from { transform: scaleX(0); }
  to   { transform: scaleX(.4); }
}

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 2.4vw, 32px); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--pine) 30%, var(--line)); }
.card__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--mint); color: var(--pine); display: grid; place-items: center; margin-bottom: 18px; }
.card__icon svg { width: 24px; height: 24px; }
.card__title { font-size: 1.22rem; margin-bottom: 10px; }
.card__body { color: var(--ink-soft); font-size: .98rem; }

/* ---- HOW ---- */
.how { background: var(--paper-2); }

/* ---- PRIVACY (dark) ---- */
.privacy { position: relative; background: var(--pine-900); color: #EAF3EF; overflow: hidden; }
.privacy__glow { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(50% 60% at 88% 6%, rgba(230,165,82,.16), transparent 60%),
    radial-gradient(60% 70% at 6% 100%, rgba(79,162,146,.20), transparent 60%);
}
.privacy__inner { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.privacy__title { color: #fff; }
.privacy__lede { color: #B8D6CC; margin: 18px 0 28px; font-size: 1.08rem; max-width: 30ch; }
.promises { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.promise { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 18px; border-radius: 14px; transition: background .2s ease; }
.promise:hover { background: rgba(255,255,255,.04); }
.promise__ic { width: 42px; height: 42px; border-radius: 11px; background: rgba(255,255,255,.08); color: #7FE3CC; display: grid; place-items: center; }
.promise__ic svg { width: 22px; height: 22px; }
.promise h3 { font-size: 1.12rem; color: #fff; margin-bottom: 4px; }
.promise p { color: #A9C9BF; font-size: .96rem; line-height: 1.55; }

/* ---- FAQ ---- */
.faq__inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.faq__list { display: grid; gap: 12px; }
.qa { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 4px 22px; transition: border-color .2s ease, box-shadow .2s ease; }
.qa[open] { border-color: color-mix(in srgb, var(--pine) 34%, var(--line)); box-shadow: var(--shadow-sm); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 600; font-size: 1.08rem; color: var(--ink); }
.qa summary::-webkit-details-marker { display: none; }
.qa__mark { position: relative; flex: 0 0 auto; width: 18px; height: 18px; }
.qa__mark::before, .qa__mark::after { content: ""; position: absolute; background: var(--pine); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.qa__mark::before { top: 8px; left: 0; width: 18px; height: 2px; }
.qa__mark::after { top: 0; left: 8px; width: 2px; height: 18px; }
.qa[open] .qa__mark::after { transform: rotate(90deg); opacity: 0; }
.qa p { color: var(--ink-soft); padding: 0 0 20px; margin: 0; max-width: 60ch; }

/* ---- TESTIMONIALS ---- */
.voices { background: var(--paper-2); }
.voices__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.voice { display: flex; flex-direction: column; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 2.6vw, 34px); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.voice:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.voice__stars { display: flex; gap: 3px; color: var(--amber); }
.voice__stars svg { width: 17px; height: 17px; }
.voice__quote { margin: 0; font-size: 1.04rem; line-height: 1.6; color: var(--ink); }
.voice__who { display: flex; align-items: center; gap: 13px; margin-top: auto; padding-top: 4px; }
.voice__avatar { width: 52px; height: 52px; border-radius: 50%; flex: 0 0 auto; object-fit: cover; border: 1px solid var(--line); }
.voice__meta { display: flex; flex-direction: column; line-height: 1.35; }
.voice__name { font-weight: 600; color: var(--ink); font-size: .98rem; }
.voice__loc { font-size: .85rem; color: var(--ink-soft); }

/* ---- ACCESS / CTA ---- */
.access { text-align: center; }
.access__inner {
  max-width: 780px; margin-inline: auto;
  background: linear-gradient(180deg, #fff, var(--mint));
  border: 1px solid var(--line); border-radius: 28px;
  padding: clamp(40px, 6vw, 72px) var(--pad);
  box-shadow: var(--shadow);
}
.access__title { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.access__lede { color: var(--ink-soft); font-size: 1.1rem; max-width: 46ch; margin: 16px auto 30px; }
.access__form { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 500px; margin: 0 auto; }
.access__row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; width: 100%; }
.access__turnstile:empty { display: none; }
.access__form input {
  flex: 1 1 260px; min-width: 0;
  font-family: var(--f-sans); font-size: 16px; color: var(--ink);
  padding: 14px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.access__form input:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 4px rgba(11,110,91,.14); }
.access__fine { font-size: 13px; color: var(--ink-soft); margin-top: 16px; }
.access__fine.is-ok { color: var(--pine-600); font-weight: 600; }

/* =========================================================================
   LEGAL PAGES (privacy.html / terms.html)
   ========================================================================= */
.legal { padding-block: clamp(48px, 7vw, 84px) clamp(72px, 10vw, 120px); }
.legal__inner { max-width: 780px; }
.legal__title { font-size: clamp(2rem, 4.6vw, 3rem); margin-bottom: 12px; }
.legal__meta { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .06em; color: var(--ink-soft); margin: 0 0 26px; }
.legal__lede { color: var(--ink-soft); font-size: 1.06rem; margin-bottom: 8px; }
.legal h2 { font-size: 1.42rem; margin: 46px 0 14px; }
.legal h3 { font-size: 1.1rem; margin: 28px 0 10px; }
.legal p { color: var(--ink-soft); margin: 0 0 14px; }
.legal ul { margin: 0 0 16px; padding-left: 22px; color: var(--ink-soft); display: grid; gap: 8px; }
.legal li::marker { color: var(--pine); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--pine-600); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--pine-800); }
.legal__note { margin: 18px 0 22px; padding: 14px 18px; border-left: 3px solid var(--amber); background: color-mix(in srgb, var(--amber) 8%, transparent); border-radius: 0 10px 10px 0; font-size: .95rem; color: var(--ink-soft); }
.legal__note strong { color: var(--ink); }

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer { background: var(--paper); border-top: 1px solid var(--line); padding-top: 56px; }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; }
.footer__tag { color: var(--ink-soft); font-size: 14.5px; margin-top: 12px; }
.footer__nav { display: flex; gap: 26px; flex-wrap: wrap; font-weight: 500; font-size: 15px; color: var(--ink-soft); }
.footer__nav a:hover, .footer__link:hover { color: var(--pine-600); }
.footer__link { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-block: 24px 40px; font-size: 12.5px; color: var(--ink-soft); }
.footer__note { max-width: 52ch; }
.footer__links { white-space: nowrap; }
.footer__links a { font-weight: 500; }
.footer__links a:hover { color: var(--pine-600); }
.footer__legal { flex-basis: 100%; margin-top: 10px; font-size: 12px; color: color-mix(in srgb, var(--ink-soft) 75%, transparent); }

/* =========================================================================
   COOKIE CONSENT
   ========================================================================= */
.consent { position: fixed; left: 50%; transform: translateX(-50%); bottom: clamp(12px, 3vw, 24px); z-index: 60; width: min(680px, calc(100% - 24px)); animation: consent-in .4s ease both; }
.consent[hidden] { display: none; }
.consent__inner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 16px 18px; }
.consent__text { flex: 1 1 320px; margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }
.consent__actions { display: flex; gap: 10px; flex: 0 0 auto; }
.consent__btn { padding: 10px 20px; }
@keyframes consent-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (max-width: 480px) {
  .consent__actions { width: 100%; }
  .consent__btn { flex: 1; justify-content: center; }
}

/* =========================================================================
   REVEAL ANIMATION
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 11px; background: #fff; cursor: pointer; }
  .nav__toggle span { width: 18px; height: 2px; background: var(--ink); margin-inline: auto; border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav__mobile:not([hidden]) { display: flex; flex-direction: column; padding: 4px var(--pad) 20px; background: var(--paper); border-bottom: 1px solid var(--line); }

  .lead, .grid, .strip__inner, .voices__grid { grid-template-columns: 1fr; }
  .dna__inner { grid-template-columns: 1fr; }
  .dna__art { display: none; }
  .sentinel__inner { grid-template-columns: 1fr; }
  .sentinel__art { margin: 0 auto; width: min(300px, 80vw); }
  .strip__item { border-left: 0; border-top: 1px solid var(--line); padding: 20px 0; }
  .strip__item:first-child { border-top: 0; }
  .privacy__inner, .faq__inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
}

@media (max-width: 700px) {
  /* the storyboard and timeline stay legible and swipe horizontally */
  .workflow, .timeline { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .workflow__svg { min-width: 920px; }
  .timeline__svg { min-width: 760px; }
}

/* =========================================================================
   MOTION / A11Y
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .tl-base, .tl-pulse { stroke-dashoffset: 0; }
  .tl-ev, .tl-today { opacity: 1; transform: none; }
  .sn-stamp { opacity: 1; }
  .sn-meter__fill { transform: scaleX(.4); }
}

/* =========================================================================
   LANGUAGE SWITCHER  (EN / ES / IT segmented control)
   Desktop: sits in the nav CTA cluster. Mobile: repeats inside the drawer.
   Active language is driven by [data-active] set at build time (build-i18n.mjs).
   ========================================================================= */
.langsw {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; border: 1px solid var(--line); border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 70%, transparent);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.04em;
}
.langsw a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; padding: 4px 8px; border-radius: 999px;
  color: var(--ink-soft); line-height: 1;
  transition: color .18s ease, background .18s ease;
}
.langsw a:hover { color: var(--pine-600); }
.langsw[data-active="en"] a[data-lang="en"],
.langsw[data-active="es"] a[data-lang="es"],
.langsw[data-active="it"] a[data-lang="it"] {
  background: var(--pine); color: #fff;
}
.langsw--mobile { margin-top: 16px; align-self: flex-start; }

/* Compact language mini-select (desktop nav). Custom caret so it stays on-brand
   and small; the mobile drawer keeps the segmented .langsw links above. */
.langsel {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.06em;
  color: var(--ink-soft); background-color: transparent;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 26px 7px 12px; line-height: 1; cursor: pointer;
  background-image: 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='%2355655F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center; background-size: 11px;
  transition: border-color .18s ease, color .18s ease;
}
.langsel:hover { border-color: var(--pine); color: var(--pine-600); }
.langsel option { color: var(--ink); }
