/* Hallmark · Letter/Trust macrostructure · CardioScan brand-locked · cold-traffic lead page · see tokens.css for stamp */
@import "tokens.css";

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: var(--w-regular);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  color: var(--color-fg-2);
  background: var(--color-bg-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-display); color: var(--color-fg-1); margin: 0; overflow-wrap: anywhere; min-width: 0; }
h1 { font-weight: var(--w-bold); font-size: var(--text-display); line-height: var(--lh-tight); letter-spacing: var(--ls-tight); }
h2 { font-weight: var(--w-bold); font-size: var(--text-h2); line-height: var(--lh-display); letter-spacing: var(--ls-tight); }
h3 { font-weight: var(--w-bold); font-size: var(--text-h3); line-height: var(--lh-snug); }
p { margin: 0; }

.eyebrow { display: inline-block; font-weight: var(--w-bold); font-size: var(--text-cat); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--color-accent); margin-bottom: var(--space-4); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
section { padding-block: var(--section-y); }
.section-head { max-width: 24ch; margin-bottom: var(--space-12); }
.section-head h2 { max-width: 20ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: 16px 28px; border-radius: var(--radius-btn);
  font-family: var(--font-body); font-weight: var(--w-bold);
  font-size: var(--text-cat); line-height: 1.15;
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none; text-align: center;
  transition: background-color var(--dur-decelerate) var(--ease-decelerate),
              color var(--dur-decelerate) var(--ease-decelerate),
              transform 80ms var(--ease-accelerate),
              box-shadow var(--dur-decelerate) var(--ease-decelerate);
}
.btn--lg { padding: 19px 34px; }
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: none; box-shadow: var(--shadow-focus-ring); }
.btn--primary { background: var(--color-accent); color: var(--color-accent-fg); border-color: var(--color-accent); box-shadow: 0 14px 30px -14px rgba(0,47,255,0.55); }
.btn--primary:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); }
.btn--primary:active { background: var(--color-accent-press); border-color: var(--color-accent-press); }
.btn--on-dark { background: var(--cs-bg-0); color: var(--cs-graphic-900); border-color: var(--cs-bg-0); box-shadow: 0 14px 30px -14px rgba(0,0,0,0.5); }
.btn--on-dark:hover { background: var(--cs-graphic-100); }

/* CTA block + note */
.cta-block { margin-top: var(--space-8); }
.cta-note { display: block; margin-top: var(--space-3); font-size: var(--text-sm); color: var(--color-fg-3); }
.cta-note::before { content: "✓ "; color: var(--color-mint); font-weight: var(--w-bold); }
.cta-note.on-dark { color: rgba(255,255,255,0.85); }
.cta-note.on-dark::before { color: var(--color-mint); }

/* ---------- Top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: 12px var(--gutter);
  background: rgba(255,255,255,0.85);
  -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-decelerate) var(--ease-out), box-shadow var(--dur-decelerate) var(--ease-out);
}
.nav.is-stuck { border-bottom-color: var(--color-border-card); box-shadow: 0 6px 20px -16px rgba(12,28,51,0.5); }
.nav__logo { height: 26px; width: auto; }
.nav__cta { display: none; font-size: var(--text-sm); padding: 12px 18px; }
@media (min-width: 820px) { .nav__cta { display: inline-flex; } .nav__logo { height: 30px; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--cs-gradient-hero);
  padding-block: clamp(40px, 9vw, 92px) clamp(8px, 4vw, 48px);
  border-bottom-left-radius: var(--radius-hero); border-bottom-right-radius: var(--radius-hero);
}
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 72%;
  background: radial-gradient(60% 80% at 70% 10%, rgba(150,205,255,0.45), transparent 70%);
  pointer-events: none; animation: glow 9s var(--ease-in-out) infinite alternate;
}
@keyframes glow { from { transform: translate3d(-3%, -2%, 0); opacity: 0.8; } to { transform: translate3d(4%, 3%, 0); opacity: 1; } }
.hero__inner { position: relative; }
.eyebrow-badge {
  display: inline-block; padding: 8px 16px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.4);
  font-size: var(--text-sm); font-weight: var(--w-bold); letter-spacing: var(--ls-wide);
  text-transform: uppercase; color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero h1 { color: #fff; margin-top: var(--space-6); max-width: 15ch; }
.hero h1 .accent { color: var(--cs-graphic-100); }
.hero__sub { margin-top: var(--space-5); font-size: var(--text-lead); line-height: 1.4; color: rgba(255,255,255,0.93); max-width: 40ch; }
.hero__trust { margin-top: var(--space-8); font-size: var(--text-sm); color: rgba(255,255,255,0.82); }
.hero__media { margin-top: var(--space-10); }
.hero__media img { width: 100%; border-radius: var(--radius-card-lg); box-shadow: 0 30px 60px -24px rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.25); }
.img-note { margin-top: var(--space-3); font-size: 0.8125rem; color: rgba(255,255,255,0.6); text-align: center; }
@media (min-width: 880px) {
  .hero__grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,0.95fr); gap: clamp(32px,5vw,72px); align-items: center; }
  .hero__media { margin-top: 0; }
  .hero h1 { margin-top: var(--space-8); }
}

/* ---------- 2 · Why now ---------- */
.why { background: var(--color-bg-1); }
.why-blocks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-6); }
.why-block { display: flex; gap: var(--space-5); align-items: flex-start; padding: var(--space-6) 0; border-top: 1px solid var(--color-divider); }
.why-block:first-child { border-top: none; padding-top: 0; }
.why-block__n { font-family: var(--font-display); font-weight: var(--w-bold); font-size: clamp(1.6rem,5vw,2.2rem); color: var(--cs-graphic-100); line-height: 1; flex: none; min-width: 1.8em; }
.why-block h3 { margin-bottom: var(--space-2); }
.why-block p { color: var(--color-fg-2); }
.reassure { margin-top: var(--space-12); padding: var(--space-6); background: var(--color-bg-2); border-radius: var(--radius-card); border-left: 4px solid var(--color-mint); color: var(--color-fg-1); font-size: var(--text-body); }
.dated { margin-top: var(--space-3); font-size: var(--text-sm); color: var(--color-fg-3); }

/* ---------- 3 · Against online ---------- */
.online { background: var(--color-bg-2); }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); max-width: 60ch; }
.check-list li { display: flex; gap: var(--space-4); align-items: flex-start; font-size: var(--text-lead); font-weight: var(--w-bold); color: var(--color-fg-1); line-height: 1.3; }
.check-list svg { color: var(--color-accent); flex: none; margin-top: 2px; }
.online__close { margin-top: var(--space-10); font-family: var(--font-display); font-weight: var(--w-bold); font-size: var(--text-h3); color: var(--color-accent); max-width: 28ch; }

/* ---------- 4 · For whom ---------- */
.forwho { background: var(--color-bg-1); }
.split { display: grid; gap: var(--space-4); grid-template-columns: minmax(0,1fr); }
@media (min-width: 760px) { .split { grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--space-5); } }
.fw-card { border-radius: var(--radius-card); padding: var(--space-8); border: 1px solid var(--color-border-card); }
.fw-card--yes { background: var(--color-bg-2); border-color: rgba(94,208,181,0.5); }
.fw-card--no { background: var(--color-bg-1); }
.fw-card h3 { margin-bottom: var(--space-5); }
.fw-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.fw-card li { display: flex; gap: var(--space-3); align-items: flex-start; color: var(--color-fg-2); }
.fw-ic { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; }
.fw-ic--yes { background: var(--color-mint); color: var(--cs-graphic-900); }
.fw-ic--no { background: var(--color-bg-3); color: var(--color-fg-3); }

/* ---------- 5 · Mid CTA ---------- */
.midcta { background: var(--color-bg-2); }
.midcta__inner { text-align: center; max-width: 36ch; margin-inline: auto; }
.midcta__bridge { font-family: var(--font-display); font-weight: var(--w-bold); font-size: var(--text-h3); color: var(--color-fg-1); line-height: var(--lh-snug); }
.midcta .cta-block { display: flex; flex-direction: column; align-items: center; }

/* ---------- 6 · About ---------- */
.about { background: var(--color-bg-1); }
.about__grid { display: grid; gap: clamp(28px,5vw,56px); grid-template-columns: minmax(0,1fr); align-items: center; }
@media (min-width: 880px) { .about__grid { grid-template-columns: minmax(0,1fr) minmax(0,0.9fr); } }
.about__teaser { font-size: var(--text-lead); line-height: 1.45; color: var(--color-fg-1); max-width: 48ch; }
.about__media img { width: 100%; border-radius: var(--radius-card-lg); box-shadow: var(--shadow-card); }

/* ---------- 7 · FAQ ---------- */
.faq { background: var(--color-bg-2); }
.faq__list { display: grid; gap: var(--space-3); max-width: 760px; }
.faq-item { background: var(--color-bg-1); border: 1px solid var(--color-border-card); border-radius: var(--radius-card); overflow: hidden; transition: box-shadow var(--dur-decelerate) var(--ease-out); }
.faq-item[open] { box-shadow: var(--shadow-card); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: var(--space-6); padding-right: calc(var(--space-6) + 28px);
  position: relative; font-family: var(--font-display); font-weight: var(--w-bold);
  font-size: var(--text-body); color: var(--color-fg-1); line-height: var(--lh-snug);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: none; box-shadow: inset var(--shadow-focus-ring); border-radius: var(--radius-card); }
.faq-item summary::after {
  content: ""; position: absolute; right: var(--space-6); top: calc(var(--space-6) + 0.2em);
  width: 14px; height: 14px; flex: none;
  background: var(--color-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' stroke='black' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' stroke='black' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform var(--dur-decelerate) var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(135deg); }
.faq-item__body { padding: 0 var(--space-6) var(--space-6); }
.faq-item__body p { color: var(--color-fg-2); }

/* ---------- 8 · Final CTA ---------- */
.cta-final { background: var(--cs-gradient-hero); color: #fff; text-align: center; position: relative; overflow: hidden; }
.cta-final::before { content: ""; position: absolute; inset: -40% -10% auto -10%; height: 80%; background: radial-gradient(50% 70% at 50% 0%, rgba(150,205,255,0.4), transparent 70%); }
.cta-final .inner { position: relative; max-width: 32ch; margin-inline: auto; }
.cta-final h2 { color: #fff; }
.cta-final p { color: rgba(255,255,255,0.9); margin-top: var(--space-4); font-size: var(--text-lead); }
.cta-final .cta-block { display: flex; flex-direction: column; align-items: center; }
.cta-final .proof { margin-top: var(--space-8); font-size: var(--text-sm); color: rgba(255,255,255,0.78); }

/* ---------- 9 · Footer ---------- */
.footer { background: var(--cs-graphic-950); color: rgba(255,255,255,0.7); padding-block: var(--section-y); }
.footer__statement { font-family: var(--font-display); font-weight: var(--w-bold); font-size: var(--text-h2); color: #fff; line-height: var(--lh-snug); letter-spacing: var(--ls-tight); max-width: 16ch; }
.footer__statement .accent { color: var(--cs-graphic-100); }
.footer img { height: 26px; width: auto; margin-top: var(--space-8); }
.footer__meta { margin-top: var(--space-6); font-size: var(--text-sm); line-height: 1.7; }
.footer__meta a { color: var(--cs-graphic-100); text-decoration: none; }
.footer__meta a:hover { text-decoration: underline; }
.footer__links { margin-top: var(--space-4); display: flex; gap: var(--space-5); }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,0.93);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border-card); box-shadow: var(--shadow-float);
  transform: translateY(120%); transition: transform 360ms var(--ease-emphasized);
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta__row { display: flex; align-items: center; gap: var(--space-4); max-width: var(--maxw); margin-inline: auto; }
.sticky-cta__txt { flex: 1; min-width: 0; }
.sticky-cta__txt b { color: var(--color-fg-1); font-weight: var(--w-bold); font-size: var(--text-sm); line-height: 1.2; }
.sticky-cta .btn { padding: 14px 18px; font-size: var(--text-sm); white-space: nowrap; }
@media (min-width: 820px) { .sticky-cta { display: none; } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 640ms var(--ease-out), transform 640ms var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 80ms; }
.reveal.d2 { transition-delay: 160ms; }
.reveal.d3 { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .sticky-cta, .faq-item summary::after { transition: none; }
}
