/* ================================================================
   Ivy shared platform CSS
   Tokens, reset, ambient canvas, navigation, reveal, footer, buttons.
   Page-specific rules stay inline in each page's <style> block.
   ================================================================ */

:root {
  --bg: #FFFFFF;
  --bg2: #F8F9FA;
  --bg3: #FFFFFF;
  --ivy: #0296A4;
  --ivy-soft: #0AB4C4;
  --ivy-dim: rgba(2,150,164,0.10);
  --ivy-glow: rgba(2,150,164,0.06);
  --text: #1A2228;
  /* Contrast tokens (WCAG AA on white):
     --text-dim:    body/secondary copy, ~6:1 AAA
     --text-faint:  non-essential meta (dates, captions), ~4.5:1 AA
     Never use --text-faint for critical body text. */
  --text-dim: rgba(26,34,40,0.78);
  --text-faint: rgba(26,34,40,0.65);
  --text-ghost: rgba(26,34,40,0.06);
  --border: rgba(26,34,40,0.08);
  --border-ivy: rgba(2,150,164,0.25);
  --focus-ring: var(--ivy);
  --warn: #E8943A;
  --warn-dim: rgba(232,148,58,0.12);
  --purple: rgba(155,120,235,1);
  --peach: rgba(245,175,130,1);
  --shadow-sm: 0 1px 3px rgba(26,34,40,0.05);
  --shadow-md: 0 4px 16px rgba(26,34,40,0.06);
  --shadow-lg: 0 8px 32px rgba(26,34,40,0.08);
  /* Section vertical rhythm tokens.
     --space-section:    standard section. Use on .section.
     --space-section-lg: emphasized sections (CTA blocks). Use on .cta-section.
     --space-section-sm: tight sections (dense stacks, legal). */
  --space-section: 120px;
  --space-section-lg: 140px;
  --space-section-sm: 80px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html { overflow-x: hidden; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); overflow-x: hidden; }

/* ── IVY STROKE ──
   Animated conic-gradient gradient border for high-prominence cards and chips.
   Uses the element's own border-radius via `inherit`. Element must be `position: relative`
   and use a non-transparent background so the stroke reads.

   Apply by adding `.ivy-stroke` to any element (pricing featured card,
   hero-tag, ivy-intervention, dashboard cards, etc). Filled primary buttons
   opt out via the specialized rules below so they keep a clean gradient fill.

   The homepage swaps the keyframe animation for a JS-driven
   per-element angle (scripts/ivy-shared.js cursor tracking). Both share the same
   --gradient-angle custom property, so the same visual works with or without JS. */
@property --gradient-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: true;
}
@keyframes gradient-rotate { to { --gradient-angle: 360deg; } }
.ivy-stroke {
  position: relative;
  --gradient-angle: 0deg;
  animation: gradient-rotate 14s linear infinite;
}
.ivy-stroke::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--gradient-angle),
    rgba(2,150,164,0.95) 0%,
    rgba(10,190,200,0.9) 15%,
    rgba(150,115,240,0.85) 30%,
    rgba(135,95,225,0.8) 42%,
    rgba(245,170,125,0.85) 58%,
    rgba(250,155,115,0.8) 70%,
    rgba(80,140,210,0.7) 82%,
    rgba(2,150,164,0.95) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}
/* Bold modifier for high-prominence cards (featured pricing, ivy-intervention). */
.ivy-stroke.ivy-stroke-bold::before { padding: 2.5px; }
/* Filled primaries opt out so the gradient fill isn't stacked under a stroke. */
.btn-primary.ivy-stroke::before,
.nav-cta.ivy-stroke::before,
.pricing-cta.ivy-stroke::before,
.ii-btn.primary.ivy-stroke::before {
  display: none;
}

/* A11Y — focus rings (keyboard only) and screen-reader-only utility. */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}
a:focus-visible, button:focus-visible, [role="button"]:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 1px;
}
.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;
}
.sr-only-focusable:focus,
.sr-only-focusable:focus-visible {
  position: static;
  width: auto; height: auto;
  padding: 8px 16px; margin: 8px;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--ivy); color: #fff; border-radius: 6px;
}

#ambient-canvas {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; opacity: 0.8;
}

.gradient-text {
  background: linear-gradient(90deg, rgba(2,150,164,1) 0%, rgba(10,190,200,1) 15%, rgba(150,115,240,1) 35%, rgba(245,170,125,1) 55%, rgba(80,140,210,1) 75%, rgba(2,150,164,1) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: gradient-text-flow 6s linear infinite;
}
@keyframes gradient-text-flow { 0% { background-position: 0% 50%; } 100% { background-position: -200% 50%; } }

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--ivy-dim); border-radius: 2px; }

/* CANONICAL PRIMITIVES
   New pages should use .card, .pill, .stat-card. Legacy aliases
   (.feat, .feat-card, .four-card, .hero-tag, .cta-tag, .feat-tag,
   .blog-tag, .phone-tag) are normalized here so they render identically. */

/* .card primitive — one card system for feature grids, about grids, etc. */
.card,
.feat-card,
.four-card,
.features-grid .feat {
  background: rgba(255,255,255,0.95) !important;
  backdrop-filter: blur(8px);
  border: 1px solid var(--border) !important;
  border-radius: 16px !important;
  display: flex; flex-direction: column;
  transition: transform 0.25s ease-out, box-shadow 0.4s ease-out, border-color 0.2s ease-out;
}
.card:hover,
.feat-card:hover,
.four-card:hover,
.features-grid .feat:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(2,150,164,0.06);
  border-color: var(--border-ivy) !important;
}
.card--compact,
.features-grid .feat { padding: 28px !important; }
.card--feature,
.feat-card,
.four-card { padding: 36px !important; }
/* Card sub-elements — align feat-card, four-card, and card--feature typography */
.card-icon,
.feat-card-icon,
.four-card-icon {
  font-size: 28px; margin-bottom: 20px; color: var(--ivy);
  display: inline-flex; align-items: center;
}
.card-icon svg,
.feat-card-icon svg,
.four-card-icon svg { width: 28px; height: 28px; display: block; }
.card-title,
.feat-card-title,
.four-card-title {
  font-size: 18px; font-weight: 700; letter-spacing: -0.3px;
  margin-bottom: 10px; color: var(--text);
}
.card-body,
.feat-card-body,
.four-card-body {
  font-size: 14px; color: var(--text-dim);
  line-height: 1.7; font-weight: 300;
}

/* .pill primitive — one pill/tag system */
.pill,
.hero-tag,
.cta-tag,
.feat-tag,
.blog-tag,
.phone-tag {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  box-sizing: border-box;
}
/* Pill sizes */
.pill--lg,
.hero-tag,
.cta-tag { padding: 7px 16px; font-size: 12px; letter-spacing: 0.3px; }
.pill--md,
.feat-tag { padding: 5px 13px; font-size: 11px; font-weight: 600; letter-spacing: 0.4px; gap: 6px; }
.pill--sm,
.blog-tag,
.phone-tag { padding: 3px 10px; font-size: 11px; font-weight: 600; letter-spacing: 0.3px; gap: 6px; }
/* Pill variants */
.pill--ivy,
.hero-tag,
.cta-tag,
.phone-tag {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-ivy);
  color: var(--ivy);
}
.pill--ivy-solid,
.blog-tag,
.feat-tag {
  background: var(--ivy-dim);
  border: 1px solid var(--border-ivy);
  color: var(--ivy);
}
/* Warn variant — "In Development" etc. Opt-in only via class. */
.pill--warn {
  background: var(--warn-dim);
  border: 1px solid transparent;
  color: var(--warn);
  font-weight: 600; letter-spacing: 0.3px;
  padding: 4px 12px; font-size: 11px;
}
.hero-tag-text,
.cta-tag-text { color: inherit; font: inherit; letter-spacing: inherit; }
.hero-tag-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ivy);
  animation: orb-breathe 2s ease-in-out infinite;
}

/* .stat-card + .stat-num primitive — one stats block */
.stat-card {
  background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
  border: 1px solid var(--border); border-radius: 16px;
  padding: 28px; text-align: center;
}
.stat-num,
.proof-num { font-size: 40px !important; font-weight: 800 !important; color: var(--ivy) !important; letter-spacing: -1.5px !important; }
.stat-label,
.proof-label { font-size: 12px; color: var(--text-faint); margin-top: 4px; font-weight: 400; }
/* Homepage hero inline-flex proof row: teal text, consistent with card stats */
.hero-proof .proof-num { color: var(--text) !important; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 64px; height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(250,251,249,0.75); backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border); transition: all 0.3s;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-icon { width: 32px; height: 32px; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.nav-logo-icon svg { width: 32px; height: 32px; }
.nav-logo-text-group { display: flex; flex-direction: column; line-height: 1; }
.nav-logo-name { font-size: 17px; font-weight: 700; color: var(--text); letter-spacing: -0.3px; }
.nav-logo-sub { font-size: 9px; font-weight: 400; color: var(--text-faint); letter-spacing: 0.3px; margin-top: 1px; }
.nav-links { display: flex; gap: 36px; list-style: none; align-items: center; }
.nav-links a,
.nav-links button.nav-trigger { font-size: 13px; font-weight: 500; color: var(--text-dim); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover,
.nav-links button.nav-trigger:hover { color: var(--text); }
.nav-links li { position: relative; }
.nav-links li.has-dropdown > a,
.nav-links li.has-dropdown > button.nav-trigger {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: none; padding: 0; margin: 0;
  font-family: inherit; cursor: pointer;
}
.nav-links li.has-dropdown > a::after,
.nav-links li.has-dropdown > button.nav-trigger::after {
  content: ''; display: inline-block; width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 4px solid currentColor; transition: transform 0.2s;
}
.nav-links li.has-dropdown:hover > a::after,
.nav-links li.has-dropdown:focus-within > a::after,
.nav-links li.has-dropdown.is-open > a::after,
.nav-links li.has-dropdown:hover > button.nav-trigger::after,
.nav-links li.has-dropdown:focus-within > button.nav-trigger::after,
.nav-links li.has-dropdown.is-open > button.nav-trigger::after {
  transform: rotate(180deg);
}
.nav-dropdown {
  position: absolute; top: 100%; left: -16px; padding-top: 12px;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}
.nav-links li.has-dropdown:hover .nav-dropdown,
.nav-links li.has-dropdown:focus-within .nav-dropdown,
.nav-links li.has-dropdown.is-open .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
}
.nav-dropdown-inner { background: rgba(255,255,255,0.98); backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: 12px; padding: 8px; min-width: 220px; box-shadow: var(--shadow-lg); }
.nav-dropdown a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 8px; font-size: 13px; color: var(--text-dim) !important; transition: background 0.15s, color 0.15s; }
.nav-dropdown a:hover, .nav-dropdown a:focus-visible { background: var(--ivy-dim); color: var(--ivy) !important; }
.nav-dropdown a.active { color: var(--ivy) !important; font-weight: 500; }
.nav-dropdown-icon { flex: 0 0 18px; width: 18px; height: 18px; color: var(--ivy); display: inline-flex; align-items: center; justify-content: center; }
.nav-dropdown-icon svg { width: 100%; height: 100%; display: block; }
.nav-cta { background: var(--ivy); color: #fff; padding: 10px 24px; border-radius: 100px; font-size: 13px; font-weight: 600; text-decoration: none; transition: all 0.2s; display: inline-flex; align-items: center; min-height: 40px; }
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }

/* Mobile nav toggle button — injected by scripts/ivy-shared.js when viewport shrinks. */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: none; padding: 10px;
  cursor: pointer; color: var(--text);
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-cta-mobile { display: none; }

/* HERO H1 TIERS
   Three tiers of hero heading size. Add ONE of these modifier classes to the
   <section class="hero ..."> element:
     .hero.display    88px — home only
     .hero.page       72px — standard marketing pages (pricing, support, blog, coming-soon)
     .hero.condensed  56px — content-heavy pages and split-layout feature pages
                              (about, legal, masked-*, secure-browsing, phishing-protection)
   The .ivy-word accent always uses var(--ivy). Mobile breakpoints scale down one tier. */
.hero h1 { font-weight: 800; color: var(--text); margin-bottom: 28px; }
.hero h1 .ivy-word { color: var(--ivy); }
.hero.display h1 { font-size: 88px; line-height: 1.0; letter-spacing: -4px; }
.hero.page h1 { font-size: 72px; line-height: 1.05; letter-spacing: -3px; }
.hero.condensed h1 { font-size: 56px; line-height: 1.1; letter-spacing: -2.5px; margin-bottom: 24px; }

/* SCROLL REVEAL */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.from-left { transform: translateX(-60px); }
.reveal.from-right { transform: translateX(60px); }
.reveal.visible { opacity: 1; transform: translate(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* BUTTONS */
.btn-primary { background: var(--ivy); color: #fff; padding: 16px 36px; border-radius: 100px; font-size: 15px; font-weight: 500; text-decoration: none; transition: all 0.2s; border: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; }
.btn-primary:hover { opacity: 0.9; transform: translateY(-2px); }
.btn-ghost { border: none; color: var(--text-dim); padding: 16px 32px; border-radius: 100px; font-size: 15px; font-weight: 400; text-decoration: none; transition: all 0.2s; background: rgba(255,255,255,0.95); display: inline-flex; align-items: center; justify-content: center; min-height: 48px; cursor: pointer; }
.btn-ghost:hover { color: var(--text); background: #fff; }

/* ORB BREATHE (used in hero dots, chat pulse, etc.) */
@keyframes orb-breathe {
  0%,100% { box-shadow: 0 2px 12px rgba(2,150,164,0.2), 0 0 24px rgba(2,150,164,0.06); transform: scale(1); }
  50% { box-shadow: 0 2px 18px rgba(2,150,164,0.35), 0 0 36px rgba(2,150,164,0.1); transform: scale(1.05); }
}

/* SECTION BASE — tokenized vertical rhythm.
   Inline page styles that still hardcode 120px / 140px override this with the
   same value, but new pages and updates should use the tokens. */
.section { padding: var(--space-section) 0; position: relative; z-index: 1; }
.section.section-sm { padding: var(--space-section-sm) 0; }
.section.section-lg { padding: var(--space-section-lg) 0; }
.cta-section { padding: var(--space-section-lg) 64px; }

/* IVY CHAT BUBBLE — collapsed pill + expanded chat panel, fixed bottom-right.
   Injected by scripts/ivy-shared.js into every page. */
.ivy-bubble { display: none !important; }
@keyframes bub-dot-bounce {
  0%,80%,100% { transform: translateY(0); }
  40% { transform: translateY(-4px); }
}
@keyframes bub-cursor-blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes ivy-chat-slide { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.ivy-chat {
  position: fixed; right: 32px; bottom: 32px; z-index: 195;
  width: 310px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(0deg, rgba(255,255,255,0.45) 45%, rgba(255,255,255,0.6) 60%),
              linear-gradient(0deg, #0aaf96 0%, #00d2b2 33%, #beffcd 98%);
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  font-family: 'Inter', sans-serif;
  display: none;
}
.ivy-chat.open { display: block; animation: ivy-chat-slide 0.3s ease-out; }
@keyframes ivy-pill-pop { from { opacity: 0; transform: scale(0.88); } to { opacity: 1; transform: scale(1); } }
.ivy-pill {
  position: fixed; right: 32px; bottom: 32px; z-index: 195;
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, rgba(240,255,253,0.97), rgba(230,250,248,0.97));
  border: 1px solid rgba(0,210,178,0.25);
  border-radius: 100px; padding: 8px 18px 8px 8px;
  cursor: pointer; box-shadow: 0 4px 20px rgba(0,48,73,0.14);
  font-family: 'Inter', sans-serif;
  animation: ivy-pill-pop 0.3s ease-out;
  transition: box-shadow 0.2s, transform 0.15s;
  white-space: nowrap;
}
.ivy-pill:hover { box-shadow: 0 6px 28px rgba(0,48,73,0.2); transform: translateY(-1px); }
.ivy-pill.hidden { display: none; }
.ivy-pill-logo {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
}
.ivy-pill-logo svg { width: 100%; height: 100%; display: block; }
.ivy-pill-label { font-size: 13px; font-weight: 600; color: #003049; display: flex; align-items: center; gap: 6px; }
.ivy-pill-sub { font-size: 11px; color: rgba(0,48,73,0.5); }
.ivy-pill-dot { width: 6px; height: 6px; border-radius: 50%; background: #00d2b2; flex-shrink: 0; box-shadow: 0 0 5px rgba(0,210,178,0.5); }
.ivy-chat-close {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0,0,0,0.07); display: flex;
  align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; transition: background 0.15s;
}
.ivy-chat-close:hover { background: rgba(0,0,0,0.12); }
.ivy-chat-close svg { width: 12px; height: 12px; }
.ivy-chat-header { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; }
.ivy-chat-logo {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden;
}
.ivy-chat-logo svg { width: 100%; height: 100%; display: block; }
.ivy-chat-header-text { flex: 1; }
.ivy-chat-header-name { font-size: 16px; font-weight: 600; color: #003049; display: flex; align-items: center; gap: 6px; }
.ivy-chat-header-dot { width: 6px; height: 6px; border-radius: 50%; background: #00d2b2; box-shadow: 0 0 6px rgba(0,210,178,0.5); }
.ivy-chat-header-sub { font-size: 10px; color: rgba(0,48,73,0.5); font-weight: 400; margin-top: 1px; }
.ivy-chat-messages { padding: 8px 14px 14px; min-height: 100px; max-height: 240px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth; }
.ivy-chat-messages::-webkit-scrollbar { width: 2px; }
.ivy-chat-messages::-webkit-scrollbar-thumb { background: rgba(0,48,73,0.15); border-radius: 2px; }
.ivy-chat-msg {
  background: rgba(255,255,255,0.70); backdrop-filter: blur(12px);
  border-radius: 16px; padding: 10px 14px; font-size: 13px; color: #003049;
  line-height: 1.5; max-width: 92%; animation: ivy-chat-slide 0.3s ease-out;
}
.ivy-chat-msg .bub-cursor { display: inline-block; width: 1px; height: 13px; background: #003049; margin-left: 1px; vertical-align: middle; animation: bub-cursor-blink 0.6s step-end infinite; }
.ivy-chat-user {
  background: #f3f3f3; border-radius: 16px; padding: 10px 14px;
  font-size: 13px; color: #003049; line-height: 1.5; max-width: 85%;
  align-self: flex-end; animation: ivy-chat-slide 0.3s ease-out;
}
.ivy-chat-dots { background: rgba(255,255,255,0.70); border-radius: 16px; padding: 8px 14px; width: fit-content; }
.ivy-chat-dots .typing-dots { display: flex; gap: 3px; align-items: center; height: 18px; }
.ivy-chat-dots .typing-dots span { width: 5px; height: 5px; border-radius: 50%; background: #666; display: block; animation: bub-dot-bounce 1.4s ease-in-out infinite; }
.ivy-chat-dots .typing-dots span:nth-child(2) { animation-delay: 0.16s; }
.ivy-chat-dots .typing-dots span:nth-child(3) { animation-delay: 0.32s; }
/* Follow-up suggestion chips. Rendered after Ivy finishes a reply so the
   user can keep the conversation going without thinking of a question. */
.ivy-chat-followups { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 4px; animation: ivy-chat-slide 0.35s ease-out; }
.ivy-chat-followup {
  font-family: inherit; font-size: 11.5px; font-weight: 500; line-height: 1.3;
  padding: 6px 12px; border-radius: 100px;
  background: rgba(2,150,164,0.10);
  border: 1px solid rgba(2,150,164,0.28);
  color: #0296A4;
  cursor: pointer; transition: all 0.15s ease-out;
  text-align: left;
}
.ivy-chat-followup:hover { background: #0296A4; color: #fff; transform: translateY(-1px); }
.ivy-chat-followup:focus-visible { outline: 2px solid #0296A4; outline-offset: 2px; }
.ivy-chat-toolbar { display: flex; gap: 8px; padding: 0 14px 10px; }
.ivy-chat-tb-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 100px;
  border: 1px solid #d9d9d9; background: #fff;
  font-size: 12px; font-weight: 600; color: #003049;
  cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
.ivy-chat-tb-btn:hover { background: #f5f6f6; border-color: #bbb; }
.ivy-chat-tb-btn svg { width: 14px; height: 14px; }
.ivy-chat-input {
  margin: 0 14px 14px; background: #fff; border: 1px solid #d9d9d9; border-radius: 20px;
  padding: 4px 4px 4px 14px; display: flex; align-items: center; gap: 8px;
}
.ivy-chat-input input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 12px; font-family: 'Inter', sans-serif; color: #003049;
  padding: 4px 0;
}
.ivy-chat-input input::placeholder { color: rgba(0,48,73,0.35); }
.ivy-chat-send {
  width: 26px; height: 26px; border-radius: 50%; background: #003049;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; transition: opacity 0.15s;
}
.ivy-chat-send:hover { opacity: 0.8; }
.ivy-chat-send svg { width: 12px; height: 12px; }
.ivy-chat-reset {
  width: 26px; height: 26px; border-radius: 50%; background: none;
  border: 1px solid #d9d9d9; display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; transition: background 0.15s, border-color 0.15s;
}
.ivy-chat-reset:hover { background: #f3f3f3; border-color: #bbb; }
.ivy-chat-reset svg { width: 12px; height: 12px; }
@media (max-width: 768px) {
  .ivy-pill,
  .ivy-chat { right: 16px; bottom: 16px; }
  .ivy-chat { width: calc(100vw - 32px); max-width: 310px; }
}

/* FOOTER */
footer { background: rgba(255,255,255,0.9); backdrop-filter: blur(12px); border-top: 1px solid var(--border); padding: 64px 64px 32px; position: relative; z-index: 1; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-logo-icon { width: 24px; height: 24px; }
.footer-logo-icon svg { width: 24px; height: 24px; }
.footer-logo-text-group { display: flex; flex-direction: column; line-height: 1; }
.footer-logo-name { font-size: 16px; font-weight: 700; color: var(--text); }
.footer-logo-sub { font-size: 8px; font-weight: 400; color: var(--text-faint); margin-top: 1px; }
.footer-tagline { font-size: 13px; color: var(--text-dim); line-height: 1.7; max-width: 220px; font-weight: 300; }
.footer-socials { display: flex; gap: 10px; margin-top: 20px; }
.footer-social {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--bg2); border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-dim); transition: all 0.2s;
}
.footer-social:hover {
  color: var(--ivy); border-color: var(--border-ivy);
  background: rgba(2,150,164,0.06); transform: translateY(-1px);
}
.footer-social:focus-visible { outline: 2px solid var(--ivy); outline-offset: 2px; }
.footer-social svg { width: 18px; height: 18px; }
.footer-col-title { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: var(--text-faint); margin-bottom: 20px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 13px; color: var(--text-dim); text-decoration: none; transition: color 0.2s; display: inline-block; padding: 2px 0; }
.footer-links a:hover { color: var(--text); }
.footer-links-icons a { display: inline-flex; align-items: center; gap: 10px; }
.footer-links-icons svg { width: 16px; height: 16px; color: var(--text-faint); flex-shrink: 0; transition: color 0.2s; }
.footer-links-icons a:hover svg { color: var(--ivy); }
.footer-soc2 { margin-top: 24px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; display: flex; align-items: center; gap: 12px; background: rgba(2,150,164,0.03); }
.footer-soc2 svg { width: 22px; height: 22px; color: var(--ivy); flex-shrink: 0; }
.footer-soc2-title { font-size: 13px; font-weight: 600; color: var(--text); }
.footer-soc2-sub { font-size: 11px; color: var(--text-dim); margin-top: 2px; line-height: 1.4; }
.footer-status { display: flex; align-items: center; gap: 8px; }
.footer-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,0.15); }
.footer-status-text { font-size: 12px; color: var(--text-dim); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer-copy { font-size: 12px; color: var(--text-faint); }
.footer-copy a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-copy a:hover { color: var(--text); }

/* RESPONSIVE — mobile-first breakpoints */

/* Tablet: 1024px — collapse dense grids, tighten padding */
@media (max-width: 1024px) {
  nav { padding: 0 32px !important; }
  .section-inner,
  .hero-inner { padding: 0 40px !important; }
  footer { padding: 64px 40px 32px !important; }

  /* 4-col → 2x2 */
  .stats-row,
  .dark-stats-grid,
  .bottom-stats { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }

  /* Dense 3-col → 2-col */
  .testi-grid,
  .feat-grid,
  .blog-grid,
  .contact-grid,
  .benefit-grid,
  .steps-grid,
  .vuln-grid,
  .trust-row,
  .legal-grid.three-col { grid-template-columns: repeat(2, 1fr) !important; }

  /* Hero type scales down */
  .hero.display h1 { font-size: 64px; letter-spacing: -3px; }
  .hero.page h1 { font-size: 52px; letter-spacing: -2px; }
  .hero.condensed h1 { font-size: 44px; letter-spacing: -1.5px; }
}

/* Legacy 900px block retained for existing consumers */
@media (max-width: 900px) {
  .intro-layout,
  .features-header,
  .privacy-layout,
  .compare-grid { grid-template-columns: 1fr !important; gap: 48px !important; }
}

/* Mobile: 768px — single-column, hamburger, collapsed type */
@media (max-width: 768px) {
  nav { padding: 0 20px; height: 60px; }
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }

  /* Slide-down full-width menu panel. Toggled via .nav-open on <body>. */
  .nav-links {
    display: none;
    position: fixed;
    top: 60px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(255,255,255,0.98); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 20px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    align-items: stretch;
  }
  body.nav-open .nav-links {
    display: flex;
  }
  .nav-links li { width: 100%; }
  .nav-links > li > a,
  .nav-links > li.has-dropdown > button.nav-trigger,
  .nav-links > li.has-dropdown > a {
    display: flex; align-items: center; width: 100%;
    padding: 14px 8px; min-height: 48px;
    font-size: 15px; color: var(--text);
    border-bottom: 1px solid var(--border);
  }
  .nav-links li.has-dropdown > a::after,
  .nav-links li.has-dropdown > button.nav-trigger::after {
    margin-left: auto;
  }
  .nav-dropdown {
    position: static;
    padding-top: 0;
    opacity: 1; visibility: visible; transform: none;
    display: none;
    transition: none;
  }
  .nav-links li.has-dropdown:hover .nav-dropdown,
  .nav-links li.has-dropdown:focus-within .nav-dropdown {
    display: none;
  }
  .nav-links li.has-dropdown.is-open .nav-dropdown {
    display: block;
  }
  .nav-dropdown-inner {
    background: rgba(2,150,164,0.04);
    border: none; box-shadow: none;
    padding: 4px 0 8px 16px; border-radius: 0;
    min-width: 0;
  }
  .nav-dropdown a { padding: 12px 14px; min-height: 44px; font-size: 14px; }

  .nav-cta-mobile {
    display: flex; margin-top: 16px;
    background: var(--ivy); color: #fff !important;
    padding: 14px 24px; border-radius: 100px;
    font-size: 15px; font-weight: 600;
    justify-content: center; min-height: 48px;
    border-bottom: none !important;
  }

  /* Section containers: narrow padding, shorter vertical rhythm */
  .section { padding: 56px 0 !important; }
  .section-inner,
  .hero-inner { padding: 0 20px !important; }
  .hero { padding-top: 100px !important; min-height: auto !important; }

  /* Hide desktop "Log In" on mobile — login lives inside the hamburger menu. */
  .nav-login { display: none !important; }

  /* Hero typography scales down hard */
  .hero.display h1 { font-size: 48px !important; letter-spacing: -2px !important; line-height: 1.05 !important; }
  .hero.page h1 { font-size: 40px !important; letter-spacing: -1.5px !important; line-height: 1.1 !important; }
  .hero.condensed h1 { font-size: 36px !important; letter-spacing: -1.2px !important; line-height: 1.15 !important; }
  .hero-sub { font-size: 17px !important; margin-bottom: 40px !important; }
  .hero-actions { flex-wrap: wrap; gap: 12px !important; }

  /* Section titles scale down */
  .section-title,
  h2.section-title { font-size: 36px !important; letter-spacing: -1.5px !important; }

  /* Every editorial 2-col collapses */
  .intro-layout,
  .features-header,
  .privacy-layout,
  .compare-grid,
  .pricing-grid,
  .cert-grid,
  .ivy-stat-row,
  .browse-stats,
  .demo-actions { grid-template-columns: 1fr !important; gap: 32px !important; }

  /* 3-col and 4-col fully stack */
  .testi-grid,
  .feat-grid,
  .blog-grid,
  .contact-grid,
  .benefit-grid,
  .steps-grid,
  .vuln-grid,
  .trust-row,
  .legal-grid,
  .legal-grid.three-col { grid-template-columns: 1fr !important; }

  /* Stats rows stay 2x2 on mobile (readable, compact) */
  .stats-row,
  .dark-stats-grid,
  .bottom-stats { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }

  /* span-2 and span-3 feature cards reset to single column on mobile.
     Without this, grid-column: span N forces implicit columns that blow out width. */
  .feat.wide { grid-column: auto !important; grid-template-columns: 1fr !important; gap: 20px !important; }
  .feat.feat-full { grid-column: auto !important; }
  /* The feat-full card has an inline style="display:grid;grid-template-columns:1fr 1fr"
     on its first child. Override it for mobile. */
  .feat.feat-full > div { grid-template-columns: 1fr !important; gap: 20px !important; }

  /* Story-step grid (numbered "01 / 02 / 03") collapses to single column. */
  .step { grid-template-columns: 1fr !important; gap: 16px !important; padding: 32px 0 !important; }

  /* Primary feature grid (the one at repeat(3, 1fr)) collapses.
     Use minmax(0, 1fr) so children with min-content larger than viewport are clipped, not expanded. */
  .features-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 14px !important; }
  .features-grid > .feat,
  .features-grid > .feat.wide,
  .features-grid > .feat.feat-full { min-width: 0; }

  /* Buttons are tappable */
  .btn-primary,
  .btn-secondary,
  .btn-ghost { min-height: 48px; }

  /* Hero proof row: 3-column compact grid on mobile (was a wrapping flex that left "4.8" alone). */
  .hero-proof {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
    text-align: center;
  }
  .hero-proof > div { display: flex; flex-direction: column; align-items: center; }
  .proof-num { font-size: 22px !important; letter-spacing: -0.5px !important; }
  .proof-label { font-size: 11px !important; line-height: 1.35; }

  /* Trusted-logos: tighter spacing on mobile to avoid sparse feel. */
  .hero-trusted-label { font-size: 14px !important; margin-bottom: 24px !important; }
  /* Trusted logos row uses display: grid in inline page CSS — override to two columns
     so logos with intrinsic widths don't blow out the viewport. */
  .hero-trusted-logos {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px 12px !important;
    justify-items: center !important;
  }
  .trusted-logo { max-width: 100%; }
  .trusted-logo svg, .trusted-logo img { max-width: 100%; height: auto; }

  footer { padding: 48px 20px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .footer-links a { padding: 8px 0; min-height: 36px; }
}

/* Small mobile: 480px — single column everywhere, compact type */
@media (max-width: 480px) {
  nav { padding: 0 16px; }
  .section { padding: 40px 0 !important; }
  .section-inner,
  .hero-inner { padding: 0 16px !important; }
  .hero { padding-top: 88px !important; }

  .hero.display h1 { font-size: 40px !important; letter-spacing: -1.5px !important; }
  .hero.page h1 { font-size: 34px !important; letter-spacing: -1px !important; }
  .hero.condensed h1 { font-size: 30px !important; letter-spacing: -0.8px !important; }
  .hero-sub { font-size: 16px !important; }
  .section-title,
  h2.section-title { font-size: 30px !important; letter-spacing: -1px !important; }

  /* Stats fully stack when there's no horizontal room */
  .stats-row,
  .dark-stats-grid,
  .bottom-stats { grid-template-columns: 1fr !important; }

  footer { padding: 40px 16px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* NAV UTILITIES */
.nav-actions { display: flex; align-items: center; gap: 24px; }
.nav-login { font-size: 13px; font-weight: 500; color: var(--text-dim); text-decoration: none; transition: color 0.2s; }
.nav-login:hover { color: var(--text); }
.nav-link-active { color: var(--text); }
.section-flush-top { padding-top: 0; }

/* SKIP LINK: visually hidden until focused for keyboard/screen-reader users. */
.skip-link {
  position: absolute; left: 12px; top: -40px; z-index: 1000;
  padding: 10px 16px; border-radius: 8px;
  background: var(--text); color: var(--bg);
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: top 0.15s ease-out;
}
.skip-link:focus { top: 12px; outline: 2px solid var(--ivy); outline-offset: 2px; }

/* ── HERO 2-COL VISUAL (homepage) ────────────────────────────────
   Adds a right-side photo + live "session" timeline panel to the hero.
   Activated by adding .hero-2col to .hero-inner. The left column keeps the
   normal hero stack (eyebrow, h1, sub, CTAs, plus optionally proof stats).
   Below 1024px the grid collapses and the timeline anchors inside the photo. */
.hero-inner.hero-2col {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
}
.hero-inner.hero-2col > .hero-proof,
.hero-inner.hero-2col .hero-trusted { grid-column: 1 / -1; }
.hero-inner.hero-2col > .hero-proof { margin-top: 16px; margin-bottom: 24px; gap: 48px; justify-content: flex-start; }
.hero-inner.hero-2col .hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
.hero-inner.hero-2col .hero-copy h1 { max-width: 100%; }
/* H1 has to scale down for the 2-col split — single-col 88px is too wide for the
   shrunken left column (causes 4-line wrap). Drop one tier (68px) and tighten. */
.hero.display .hero-inner.hero-2col .hero-copy h1 { font-size: 68px; line-height: 1.05; letter-spacing: -3px; margin-bottom: 24px; }
.hero-inner.hero-2col .hero-copy .hero-sub { max-width: 520px; margin-bottom: 36px; }
.hero-inner.hero-2col .hero-copy .hero-actions { margin-bottom: 40px; }
.hero-inner.hero-2col .hero-copy .hero-proof { margin-bottom: 0; gap: 36px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  height: 560px;
  width: 100%;
}
.hero-photo {
  position: absolute;
  inset: 0 0 0 88px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--ivy-dim), rgba(255,255,255,0.6));
  box-shadow: var(--shadow-lg), 0 30px 70px -24px rgba(26,34,40,0.22);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Hide visible alt text on broken/missing image — screen readers still read it. */
  color: transparent;
  font-size: 0;
}

/* Tablet: collapse 2-col hero */
@media (max-width: 1024px) {
  .hero-inner.hero-2col {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-inner.hero-2col .hero-copy { align-items: flex-start; }
  .hero-visual { height: auto; aspect-ratio: 4 / 3; }
  .hero-photo { inset: 0; }
}

/* Phone: full-width photo */
@media (max-width: 768px) {
  .hero-photo {
    position: relative;
    inset: auto;
    aspect-ratio: 4 / 3;
    width: 100%;
  }
}

/* ── IVY LIVE SESSION TIMELINE CARD ────────────────────────────────────────
   Reusable status card showing Ivy actively protecting a session. On the
   homepage hero it absolute-positions over the bottom-left of the photo.
   Used standalone elsewhere by dropping the .ivy-tl element into any flow. */
.ivy-tl {
  --ivy-tl-navy: #111827;
  --ivy-tl-gray: #6B7280;
  --ivy-tl-divider: #E5E7EB;
  --ivy-tl-icon-bg: #ECFEFF;
  --ivy-tl-icon-fg: #009FD3;
  --ivy-tl-success: #00C853;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px 10px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.7) inset,
    0 2px 6px rgba(26,34,40,0.04),
    0 14px 28px -10px rgba(26,34,40,0.18);
  font-family: 'Inter', sans-serif;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 260px;
}

/* Hero overlay placement: anchor to the bottom-left of the photo wrapper. */
.hero-visual > .ivy-tl {
  position: absolute;
  left: 0;
  bottom: 16px;
  z-index: 5;
}

.ivy-tl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}
.ivy-tl-brand { display: flex; align-items: center; gap: 6px; }
.ivy-tl-logo {
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ivy-tl-logo svg { width: 100%; height: 100%; display: block; }
.ivy-tl-name {
  font-size: 14px; font-weight: 800;
  color: var(--ivy-tl-navy);
  letter-spacing: -0.2px;
  line-height: 1;
}

.ivy-tl-status { display: flex; align-items: center; gap: 6px; }
.ivy-tl-status-text {
  font-size: 8.5px; font-weight: 600;
  letter-spacing: 0.9px;
  color: var(--ivy-tl-gray);
  text-transform: uppercase;
}
.ivy-tl-status-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--ivy-tl-success);
  box-shadow: 0 0 0 2px rgba(0,200,83,0.18);
  animation: ivy-tl-pulse 2.2s ease-in-out infinite;
}
@keyframes ivy-tl-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(0,200,83,0.18); }
  50%      { box-shadow: 0 0 0 4px rgba(0,200,83,0.06); }
}

.ivy-tl-rows {
  list-style: none !important;
  display: flex; flex-direction: column;
  gap: 13px;
  margin: 0 !important;
  padding: 0 !important;
}
.ivy-tl-row {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  column-gap: 9px;
  align-items: center;
  margin: 0 !important;
}

.ivy-tl-icon {
  width: 26px; height: 26px;
  border-radius: 6px;
  background: var(--ivy-tl-icon-bg);
  color: var(--ivy-tl-icon-fg);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ivy-tl-icon svg { width: 13px; height: 13px; display: block; }

.ivy-tl-content { min-width: 0; }
.ivy-tl-label {
  font-size: 8px; font-weight: 700;
  letter-spacing: 0.9px;
  color: var(--ivy-tl-gray);
  text-transform: uppercase;
  margin-bottom: 1px;
  line-height: 1.2;
}
.ivy-tl-text {
  font-size: 11px; font-weight: 500;
  color: var(--ivy-tl-navy);
  letter-spacing: -0.05px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ivy-tl-time {
  font-size: 9.5px; font-weight: 500;
  color: var(--ivy-tl-gray);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  align-self: center;
}

.ivy-tl-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--ivy-tl-divider);
  font-size: 10.5px;
}
.ivy-tl-foot-label,
.ivy-tl-foot-value { white-space: nowrap; line-height: 1.2; }

/* Sequential row reveal, looping forever. Each event appears in turn, all
   hold visible together for ~2s, then the whole timeline fades out and the
   cycle restarts. CSS-only — no JS. Total cycle: 6s. */
.ivy-tl-row,
.ivy-tl-foot {
  opacity: 0;
  transform: translateY(6px);
  animation-duration: 6s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
.ivy-tl-row:nth-child(1) { animation-name: ivy-tl-cycle-r1; }
.ivy-tl-row:nth-child(2) { animation-name: ivy-tl-cycle-r2; }
.ivy-tl-row:nth-child(3) { animation-name: ivy-tl-cycle-r3; }
.ivy-tl-row:nth-child(4) { animation-name: ivy-tl-cycle-r4; }
.ivy-tl-foot           { animation-name: ivy-tl-cycle-foot; }

/* Per-row keyframes: each enters at its own delay, all exit together at 80%,
   stay hidden through 100% so the loop pause feels intentional. */
@keyframes ivy-tl-cycle-r1 {
  0%, 6%   { opacity: 0; transform: translateY(6px); }
  16%, 80% { opacity: 1; transform: translateY(0); }
  87%, 100% { opacity: 0; transform: translateY(6px); }
}
@keyframes ivy-tl-cycle-r2 {
  0%, 14%  { opacity: 0; transform: translateY(6px); }
  24%, 80% { opacity: 1; transform: translateY(0); }
  87%, 100% { opacity: 0; transform: translateY(6px); }
}
@keyframes ivy-tl-cycle-r3 {
  0%, 21%  { opacity: 0; transform: translateY(6px); }
  31%, 80% { opacity: 1; transform: translateY(0); }
  87%, 100% { opacity: 0; transform: translateY(6px); }
}
@keyframes ivy-tl-cycle-r4 {
  0%, 29%  { opacity: 0; transform: translateY(6px); }
  39%, 80% { opacity: 1; transform: translateY(0); }
  87%, 100% { opacity: 0; transform: translateY(6px); }
}
@keyframes ivy-tl-cycle-foot {
  0%, 37%  { opacity: 0; transform: translateY(6px); }
  47%, 80% { opacity: 1; transform: translateY(0); }
  87%, 100% { opacity: 0; transform: translateY(6px); }
}

/* Honor reduced-motion preference: skip all animation, leave everything visible. */
@media (prefers-reduced-motion: reduce) {
  .ivy-tl-row,
  .ivy-tl-foot {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .ivy-tl-status-dot { animation: none; }
}
.ivy-tl-foot-label { color: var(--ivy-tl-gray); }
.ivy-tl-foot-value {
  color: var(--ivy-tl-success);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Tablet hero collapse: card flows below the photo, no longer absolute. */
@media (max-width: 1024px) {
  .hero-visual > .ivy-tl {
    position: static;
    margin: -16px auto 0;
    max-width: 260px;
  }
}

/* PRINT: strip ambient background, chrome, and chat bubble for clean legal output. */
@media print {
  #ambient-canvas,
  canvas,
  nav,
  footer,
  .nav-cta,
  .ivy-pill,
  .ivy-chat,
  .hero-grid-lines { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  .hero, section { padding: 24px 0 !important; min-height: auto !important; }
  a { color: #000 !important; text-decoration: underline; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
