/* ============================================================
   ENROLL LANDING — STYLESHEET
   ------------------------------------------------------------
   1.  RESET & TOKENS         — globals, custom properties
   2.  NAV                    — fixed top nav
   3.  HERO                   — title + rotator + CTA
   4.  SCREENSHOT             — product mockup
   5.  PROBLEM                — full-bleed green band, word reveal
   6.  BENEFITS               — 4 cards w/ orb visuals
   7.  PRODUCT SECTION        — accordion + animated cards
        7a. Accordion
        7b. Card 1 motion — Auto-resolve (DM with Enroll)
        7c. Card 2 motion — Accelerate (inline assistant)
        7d. Card 3 motion — Learn (chat → KB capture)
   8.  RECIPES                — horizontal scroll cards (recipe carousel)
   9.  INTEGRATIONS           — full-bleed grid of branded cards
   9b. SECURITY               — compliance badges
   10. CTA                    — full-bleed black band
   11. FOOTER
   12. WORD REVEAL            — scroll-linked greying
   13. RESPONSIVE             — 1440 / 1280 / 1024 / 640
   ============================================================ */

/* ── 1. RESET & TOKENS ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Manrope', sans-serif; color: #212121; background: #fff; -webkit-font-smoothing: antialiased; max-width: 1280px; margin: 0 auto; }

/* Accessibility — skip link + global focus ring */
.skip-link {
  position: absolute; left: 16px; top: -40px;
  padding: 8px 14px; background: #212121; color: #fff;
  font-weight: 600; text-decoration: none; border-radius: 6px;
  z-index: 1000; transition: top 0.15s ease;
}
.skip-link:focus { top: 16px; outline: 2px solid #C4FFC8; outline-offset: 2px; }
:focus-visible { outline: 2px solid #212121; outline-offset: 2px; border-radius: 2px; }
a:focus:not(:focus-visible), button:focus:not(:focus-visible) { outline: none; }

:root {
  --black:        #212121;
  --ink:          #0B0B0B;
  --ink-soft:     #555;
  --celadon:      #C4FFC8;
  --surface-soft: #F3FFF4;
  --lin:          #FBF7F1;
  --lin-mid:      #F6EDDE;
  --lin-dark:     #E8DDCA;
  --grey:         #F2F2F2;
  --muted:        #888;
  --line:         #f0ede5;
  --border:       #e8e8e8;
  --gutter:       80px;
  --max-width:    1280px;
  --section-pad:  110px;
}

/* ── 2. NAV ────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: #fff; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter); border-bottom: 1px solid var(--border);
}
.nav-logo { font-size: 20px; font-weight: 800; color: var(--black); text-decoration: none; letter-spacing: -0.5px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: #aaa; text-decoration: none; font-size: 14px; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--black); }
.nav-links a.nav-cta { background: var(--black); color: #fff; padding: 8px 18px; border-radius: 6px; font-size: 14px; font-weight: 700; text-decoration: none; transition: background .15s, color .15s; cursor: pointer; border: none; font-family: inherit; }
.nav-links a.nav-cta:hover { background: #000; color: #fff; opacity: 1; }

/* ── 3. HERO ───────────────────────────────────────────────── */
.hero-section { background: #fff; padding: 0 48px; text-align: center; }
.hero-copy {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 0; /* clear the fixed nav + breathing room */
}
.hero-badge { display: inline-flex; align-items: center; gap: 7px; background: var(--celadon); color: var(--black); padding: 5px 14px 5px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; margin-bottom: 32px; }
.hero-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--black); }
.hero-section h1 { font-family: 'DM Serif Display', serif; font-size: clamp(48px, 6.5vw, 76px); font-weight: 400; line-height: 1.0; letter-spacing: -2px; color: var(--black); margin-bottom: 44px; max-width: 780px; margin-left: auto; margin-right: auto; }
.hero-section p { font-size: 17px; color: var(--muted); font-weight: 400; max-width: 520px; margin: 0 auto 0; line-height: 1.6; }
.hero-sub { max-width: 640px !important; }
.hero-rotator {
  position: relative;
  width: 100%;
  height: 28px;
  margin: 0 auto 36px;
  overflow: hidden;
  text-align: center;
}
.hero-rotator-word {
  display: block;
  position: absolute;
  top: 0;
  left: 0; right: 0;
  font-size: 17px;
  color: var(--black);
  font-weight: 600;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.hero-rotator-word.active {
  opacity: 1;
  transform: translateY(0);
}
.hero-rotator-word.exiting {
  opacity: 0;
  transform: translateY(-100%);
}
.hero-cta { display: inline-block; background: var(--black); color: #fff; padding: 14px 30px; border-radius: 8px; font-size: 15px; font-weight: 700; text-decoration: none; transition: opacity .15s; }
.hero-cta:hover { opacity: .8; }

/* ── 4. SCREENSHOT (Enroll app preview) ─────────────────────── */
.screenshot-outer { max-width: var(--max-width); margin: 0 auto 80px; padding: 0 var(--gutter); display: flex; justify-content: center; }
.enroll-demo-iframe {
  width: 100%;
  max-width: 1180px;
  height: 500px;
  border: none;
  display: block;
  border-radius: 18px;
  background: transparent;
  box-shadow: 0 12px 48px rgba(11,11,11,0.08), 0 2px 8px rgba(11,11,11,0.04);
}
@media (max-width: 900px) {
  .enroll-demo-iframe { height: 420px; }
}

/* ── 5. PROBLEM ────────────────────────────────────────────── */
.problem-wrap {
  background: var(--surface-soft);
  box-shadow: 0 0 0 100vmax var(--surface-soft);
  clip-path: inset(0 -100vmax);
}
.problem-section { max-width: 780px; margin: 0 auto; padding: var(--section-pad) 48px; }
.problem-section h2 { font-family: 'DM Serif Display', serif; font-size: 40px; font-weight: 400; letter-spacing: -1px; line-height: 1.15; margin-bottom: 28px; }
.problem-section p { font-size: 26px; color: var(--muted); line-height: 1.5; margin-bottom: 28px; }
.problem-section p strong { color: var(--black); font-weight: 600; }
.problem-punchline { font-size: 26px; font-weight: 700; color: var(--black); margin-top: 40px; margin-bottom: 0; }

/* ── 6. BENEFITS ───────────────────────────────────────────── */
.benefits-section { background: #fff; padding: var(--section-pad) 0; }
.benefits-header { text-align: center; margin-bottom: 64px; padding: 0 var(--gutter); }
.benefits-header h2 { font-family: 'DM Serif Display', serif; font-size: 44px; font-weight: 400; letter-spacing: -1px; line-height: 1.15; max-width: 700px; margin: 0 auto 16px; }
.benefits-header p { font-size: 17px; color: var(--muted); max-width: 520px; margin: 0 auto; line-height: 1.6; }
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); box-sizing: border-box; }

.benefit {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.benefit.visible { opacity: 1; transform: translateY(0); }

.benefit-visual {
  width: 100%; aspect-ratio: 1 / 1;
  border-radius: 0; overflow: hidden;
  position: relative; margin-bottom: 6px;
  display: flex; align-items: center; justify-content: center;
}

.orb {
  width: 60%; aspect-ratio: 1 / 1; height: auto; border-radius: 50%;
  position: absolute;
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0);    }
  50%       { transform: translateY(-25%); }
}

.benefit-text { padding: 12px 0 0; }
.benefit-text h3 { font-size: 14px; font-weight: 700; color: var(--black); margin-bottom: 6px; line-height: 1.35; }
.benefit-text p  { font-size: 13px; color: var(--muted); line-height: 1.6; }

.benefits-cta { text-align: center; margin-top: 56px; }
.benefits-cta a { display: inline-block; background: var(--black); color: #fff; padding: 13px 28px; border-radius: 8px; font-size: 14px; font-weight: 700; text-decoration: none; transition: opacity .15s; }
.benefits-cta a:hover { opacity: .8; }

/* ── 6b. ALL BENEFITS — Shared teal frame + motion variables ──
   Cards 1, 2 and 4 use the ejection (b2-eject) chassis; card 3
   has its own orbital motion. All four share the frame styling
   and the b3-* CSS variables defined here. */
.benefit-1 .benefit-visual,
.benefit-2 .benefit-visual,
.benefit-3 .benefit-visual,
.benefit-4 .benefit-visual {
  --b3-big-size: 78%;
  --b3-mid-size: 58%;    /* relative to big */
  --b3-small-size: 64%;  /* relative to mid */

  --b3-orbit-speed: 6.8s;
  --b3-spin-mid-speed: 6.8s;
  --b3-spin-small-speed: 6.8s;

  /* Pale green frame — matches Problem section background and
     Product section accents for a unified page palette. */
  --b3-bg-a: var(--surface-soft);
  --b3-bg-b: var(--surface-soft);

  /* Brand celadon spheres with subtle vertical gradient for
     3D shading. Slightly more saturated than the frame so the
     sphere shapes remain clearly visible. */
  --b3-big-a: #C4FFC8;
  --b3-big-b: #9EDBA5;

  --b3-mid-a: #C4FFC8;
  --b3-mid-b: #9EDBA5;

  --b3-small-a: #C4FFC8;
  --b3-small-b: #9EDBA5;

  /* White inner highlight reads cleaner on light celadon spheres
     than the previous yellow-green tint. */
  --b3-glow: rgba(255, 255, 255, 0.45);
  --b3-glow-soft: rgba(255, 255, 255, 0.20);

  background:
    radial-gradient(circle at 50% 40%, rgba(170, 195, 150, 0.10), transparent 24%),
    radial-gradient(circle at 50% 58%, rgba(175, 192, 135, 0.12), transparent 40%),
    linear-gradient(135deg, var(--b3-bg-a), var(--b3-bg-b));
}

.b3-orb-stage {
  width: 78%;
  aspect-ratio: 1;
  position: relative;
}

.b3-orb-big {
  position: absolute;
  left: 50%;
  top: 54%;
  width: var(--b3-big-size);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 54%, var(--b3-glow) 0%, var(--b3-glow-soft) 18%, transparent 46%),
    linear-gradient(180deg, var(--b3-big-a) 0%, var(--b3-big-b) 100%);
  filter: saturate(0.96);
}

.b3-locked-orbit {
  position: absolute;
  inset: 0;
  animation: b3-orbit var(--b3-orbit-speed) linear infinite;
  transform-origin: 50% 50%;
}

.b3-orb-mid {
  position: absolute;
  left: 50%;
  top: 0;
  width: var(--b3-mid-size);
  aspect-ratio: 1;
  transform: translateX(-50%);
}

.b3-orb-mid-skin {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 64%, var(--b3-glow) 0%, var(--b3-glow-soft) 20%, transparent 42%),
    linear-gradient(180deg, var(--b3-mid-a) 0%, var(--b3-mid-b) 100%);
  animation: b3-spin-mid var(--b3-spin-mid-speed) linear infinite;
  transform-origin: 50% 50%;
}

.b3-orb-small {
  position: absolute;
  left: 50%;
  top: 0;
  width: var(--b3-small-size);
  aspect-ratio: 1;
  transform: translateX(-50%);
}

.b3-orb-small-skin {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 68%, rgba(175, 192, 135, 0.30) 0%, rgba(175, 192, 135, 0.16) 18%, transparent 40%),
    linear-gradient(180deg, var(--b3-small-a) 0%, var(--b3-small-b) 100%);
  animation: b3-spin-small var(--b3-spin-small-speed) linear infinite;
  transform-origin: 50% 50%;
}

.b3-orb-mid-skin::before,
.b3-orb-small-skin::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8%;
  transform: translateX(-50%);
  border-radius: 50%;
  pointer-events: none;
}
.b3-orb-mid-skin::before {
  width: 15%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.04) 45%, transparent 72%);
  opacity: 0.8;
}
.b3-orb-small-skin::before {
  width: 18%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.05) 45%, transparent 74%);
  opacity: 0.9;
}

@keyframes b3-orbit {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes b3-spin-mid {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes b3-spin-small {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}


/* ── 6c. BENEFITS 2 & 4 — Goo-merge motion (shared chassis) ──
   Card 2 ejects one sphere outward (b2-eject). Card 4 absorbs
   three spheres inward (b4-arrive-*). They share the big sphere,
   the goo filter wrapper, and the stage frame — only the small-
   sphere behaviour differs. */
.benefit-2 .b2-stage,
.benefit-4 .b2-stage {
  width: 78%;
  aspect-ratio: 1;
  position: relative;
}

/* Inline SVG holding the goo filter — zero-footprint.
   Hoisted to the section level so cards 2 and 4 can both reference it. */
.b2-goo-defs {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Wrapper that the goo filter is applied to. Holds both spheres so
   they can visually merge / form a neck while close, and break apart
   organically as the projectile pulls away. */
.benefit-2 .b2-goo-layer,
.benefit-4 .b2-goo-layer {
  position: absolute;
  inset: 0;
  filter: url(#b2-goo);
}

.benefit-2 .b2-orb-big,
.benefit-4 .b2-orb-big {
  position: absolute;
  left: 50%;
  top: 54%;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 54%, var(--b3-glow) 0%, var(--b3-glow-soft) 18%, transparent 46%),
    linear-gradient(180deg, var(--b3-big-a) 0%, var(--b3-big-b) 100%);
  filter: saturate(0.96);
  transform: translate(-50%, -50%);
  transform-origin: 50% 50%;
  animation: b2-big-shake 2s ease-out infinite;
}

/* Wrapper holds centering; inner element does the animation. */
.benefit-2 .b2-projectile-wrap {
  position: absolute;
  left: 50%;
  top: 54%;
  width: 18%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.benefit-2 .b2-projectile {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 68%, rgba(175, 192, 135, 0.30) 0%, rgba(175, 192, 135, 0.16) 18%, transparent 40%),
    linear-gradient(180deg, var(--b3-big-a) 0%, var(--b3-big-b) 100%);
  transform-origin: 50% 50%;
  opacity: 0;
  animation: b2-eject 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  will-change: transform, opacity;
}

@keyframes b2-big-shake {
  /* Calm */
  0%, 30%   { transform: translate(-50%, -50%) scale(1, 1); }
  /* Sticky bulge starting (small sphere mid-emergence) */
  42%       { transform: translate(-48%, -50%) scale(1.06, 0.95); }
  /* Stronger stretch as small sphere reaches the edge */
  52%       { transform: translate(-45%, -50%) scale(1.12, 0.91); }
  /* Sustained max stretch — neck is fully formed and pulling */
  60%       { transform: translate(-43%, -50%) scale(1.15, 0.88); }
  64%       { transform: translate(-42%, -50%) scale(1.16, 0.87); }
  /* SNAP — neck breaks, big sphere recoils left */
  70%       { transform: translate(-53%, -50%) scale(0.93, 1.06); }
  /* Wobble back toward round */
  76%       { transform: translate(-49%, -50%) scale(1.04, 0.98); }
  82%       { transform: translate(-50.5%, -50%) scale(0.98, 1.01); }
  88%       { transform: translate(-49.7%, -50%) scale(1.01, 0.99); }
  /* Settle */
  92%, 100% { transform: translate(-50%, -50%) scale(1, 1); }
}

@keyframes b2-eject {
  /* Hidden inside the big sphere */
  0%, 22%   { transform: scale(0);                              opacity: 0; }
  /* Growing inside the big sphere — invisible (color matches) */
  32%       { transform: translateX(80%)   scale(0.55, 0.40);   opacity: 1; }
  /* Reaching the right edge, stretched */
  42%       { transform: translateX(150%)  scale(0.85, 0.65);   opacity: 1; }
  /* Just past the edge, neck starts to form */
  52%       { transform: translateX(200%)  scale(1.00, 0.85);   opacity: 1; }
  /* Goo neck visible — projectile rounds up, neck stretches */
  58%       { transform: translateX(230%)  scale(1.00, 1.00);   opacity: 1; }
  64%       { transform: translateX(255%)  scale(1.00, 1.00);   opacity: 1; }
  /* SNAP — neck breaks */
  70%       { transform: translateX(295%)  scale(1.00, 1.00);   opacity: 1; }
  /* Flying with motion stretch */
  80%       { transform: translateX(580%)  scale(1.05, 0.97);   opacity: 1; }
  90%       { transform: translateX(920%)  scale(1.05, 0.97);   opacity: 0.5; }
  /* Off-screen */
  95%, 100% { transform: translateX(1150%) scale(1.00, 1.00);   opacity: 0; }
}


/* ── 6d. BENEFIT 4 — Inverse ejection (knowledge flowing in) ─
   Three small spheres arrive on straight-line trajectories from
   three different angles, color-matched to the big sphere so they
   become invisible once absorbed. Goo filter creates the merging
   neck on approach (mirroring b2-eject). 3× slower than b2. */

/* Big sphere highlights briefly each time a projectile is absorbed.
   Three peaks per 6s cycle align with the three projectiles arriving
   at the surface (timed at ~60% of each one's individual lifecycle,
   which lands at 26.7%, 60%, and 93.3% of the master 6s cycle). The
   peak intensity (scale 1.18 + brightness 1.20) matches the rolling-
   chain highlight from card 1, so all four cards share one visual
   language for "moment of focus". */
.benefit-4 .b2-orb-big {
  animation: b4-big-pulse 6s linear infinite;
}

@keyframes b4-big-pulse {
  /* 1st absorption — right sphere arrives at 1.6s = 26.7% */
  0%        { transform: translate(-50%, -50%) scale(1);    filter: saturate(0.96) brightness(1); }
  21.7%     { transform: translate(-50%, -50%) scale(1);    filter: saturate(0.96) brightness(1); }
  26.7%     { transform: translate(-50%, -50%) scale(1.18); filter: saturate(0.96) brightness(1.20); }
  31.7%     { transform: translate(-50%, -50%) scale(1);    filter: saturate(0.96) brightness(1); }
  /* 2nd absorption — top sphere arrives at 3.6s = 60% */
  55%       { transform: translate(-50%, -50%) scale(1);    filter: saturate(0.96) brightness(1); }
  60%       { transform: translate(-50%, -50%) scale(1.18); filter: saturate(0.96) brightness(1.20); }
  65%       { transform: translate(-50%, -50%) scale(1);    filter: saturate(0.96) brightness(1); }
  /* 3rd absorption — bl sphere arrives at 5.6s = 93.3% */
  88.3%     { transform: translate(-50%, -50%) scale(1);    filter: saturate(0.96) brightness(1); }
  93.3%     { transform: translate(-50%, -50%) scale(1.18); filter: saturate(0.96) brightness(1.20); }
  98.3%     { transform: translate(-50%, -50%) scale(1);    filter: saturate(0.96) brightness(1); }
  100%      { transform: translate(-50%, -50%) scale(1);    filter: saturate(0.96) brightness(1); }
}

/* Each projectile is anchored at the big sphere's centre and the
   inner element does the travel via translate. */
.benefit-4 .b4-projectile-wrap {
  position: absolute;
  left: 50%;
  top: 54%;
  width: 18%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.benefit-4 .b4-projectile {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 68%, rgba(175, 192, 135, 0.30) 0%, rgba(175, 192, 135, 0.16) 18%, transparent 40%),
    linear-gradient(180deg, var(--b3-big-a) 0%, var(--b3-big-b) 100%);
  transform-origin: 50% 50%;
  opacity: 0;
  will-change: transform, opacity;
}

/* Per-direction animation assignment, staggered so all three
   trajectories overlap rather than fire in unison.
   Linear easing keeps velocity perfectly uniform across the whole
   approach — no acceleration/deceleration the eye can read as jerk. */
.benefit-4 .b4-from-top   .b4-projectile {
  animation: b4-arrive-top   6s linear infinite;
}
.benefit-4 .b4-from-right .b4-projectile {
  animation: b4-arrive-right 6s linear infinite;
  animation-delay: -2s;
}
.benefit-4 .b4-from-bl    .b4-projectile {
  animation: b4-arrive-bl    6s linear infinite;
  animation-delay: -4s;
}

/* Each keyframe block uses the same 4-stop structure:
     0%        — off-stage, invisible
     10%       — entered frame, fully opaque
     60%       — about to cross the big sphere's surface
                  (only opacity here, so transform stays linear 10%→63%)
     63%,100%  — projectile fully inside the big sphere, opacity 0
   The projectile's opaque travel is one continuous linear segment;
   opacity fades 1→0 precisely while the projectile crosses from
   "centre on surface" to "edge on surface from inside" (d_center
   38% → 30%), so it vanishes the instant it's fully absorbed. */

/* From above — straight down */
@keyframes b4-arrive-top {
  0%        { transform: translate(0, -1100%); opacity: 0; }
  10%       { transform: translate(0, -1000%); opacity: 1; }
  60%       { opacity: 1; }
  63%, 100% { transform: translate(0, -167%);  opacity: 0; }
}

/* From the right — straight in */
@keyframes b4-arrive-right {
  0%        { transform: translate(1100%, 0); opacity: 0; }
  10%       { transform: translate(1000%, 0); opacity: 1; }
  60%       { opacity: 1; }
  63%, 100% { transform: translate(167%, 0);  opacity: 0; }
}

/* From the lower-left — diagonal up-right (axis values scaled by
   1/√2 so total path length matches the straight directions). */
@keyframes b4-arrive-bl {
  0%        { transform: translate(-780%, 780%);   opacity: 0; }
  10%       { transform: translate(-707%, 707%);   opacity: 1; }
  60%       { opacity: 1; }
  63%, 100% { transform: translate(-118%, 118%);   opacity: 0; }
}


/* ── 6e. BENEFIT 1 — Rolling chain (centralized requests) ────
   A chain of medium spheres rolls left-to-right at constant
   velocity. Each sphere highlights (scale + brightness) as it
   passes through the centre of the frame. Five sphere instances
   share one keyframe and stagger via animation-delay, so all of
   them move at identical speed but at different phases. */
.benefit-1 .b1-stage {
  width: 78%;
  aspect-ratio: 1;
  position: relative;
}

.benefit-1 .b1-sphere {
  position: absolute;
  /* Sphere is 22% of stage; left/top offsets put its centre on
     the stage's optical centre (50%, 54%) without needing a
     transform-based centring (transform is reserved for animation). */
  left: 39%;
  top: 43%;
  width: 22%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 64%, var(--b3-glow) 0%, var(--b3-glow-soft) 20%, transparent 42%),
    linear-gradient(180deg, var(--b3-mid-a) 0%, var(--b3-mid-b) 100%);
  animation: b1-roll 5s linear infinite;
  will-change: transform, filter;
}

/* Stagger by 1s each: at any moment one sphere is mid-cycle (= at
   centre, highlighted) while the others are spread along the path. */
.benefit-1 .b1-sphere:nth-child(1) { animation-delay:  0s; }
.benefit-1 .b1-sphere:nth-child(2) { animation-delay: -1s; }
.benefit-1 .b1-sphere:nth-child(3) { animation-delay: -2s; }
.benefit-1 .b1-sphere:nth-child(4) { animation-delay: -3s; }
.benefit-1 .b1-sphere:nth-child(5) { animation-delay: -4s; }

/* Translate is linear across all five keyframes (every 10% of
   cycle = 60% of sphere-width). Scale + brightness pulse in
   the 35%–65% window so the highlight only fires near centre. */
@keyframes b1-roll {
  0%   { transform: translateX(-300%) scale(1);    filter: brightness(1); }
  35%  { transform: translateX(-90%)  scale(1);    filter: brightness(1); }
  50%  { transform: translateX(0%)    scale(1.18); filter: brightness(1.20); }
  65%  { transform: translateX(90%)   scale(1);    filter: brightness(1); }
  100% { transform: translateX(300%)  scale(1);    filter: brightness(1); }
}


/* ── 9b. SECURITY ─────────────────────────────────────────── */
.security-section { background: #fff; padding: 80px 0 100px; }
.security-inner { max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter); }
.security-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 20px;
  text-align: center;
}
.security-title {
  font-family: 'DM Serif Display', serif;
  font-size: 44px;
  font-weight: 400;
  letter-spacing: -1px;
  line-height: 1.15;
  color: var(--black);
  margin: 0 auto 18px;
  max-width: 600px;
  text-align: center;
}
.security-sub {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 80px;
  text-align: center;
}
.security-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: center;
  justify-items: center;
  padding: 0 40px;
  max-width: 600px;
  margin: 0 auto;
}
.security-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  cursor: default;
}
.security-badge svg {
  width: 96px;
  height: 96px;
  display: block;
  opacity: 0.55;
  filter: none;
  transition: opacity .35s ease, filter .35s ease;
}
.security-badge-img {
  width: 96px;
  height: 96px;
  display: block;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity .35s ease;
}
.security-badge:hover .security-badge-img {
  opacity: 1;
}
.security-badge:hover svg {
  opacity: 1;
  /* Grey strokes/fills (#7a7a7a) → black via brightness(0). Keeps the
     mark crisp without rewriting every stroke value. */
  filter: brightness(0);
}
.security-badge-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: 0.2px;
  opacity: 1;
  transition: opacity .35s ease;
}
.security-badge:hover .security-badge-label {
  opacity: 1;
}

/* In-progress pill — sits under each badge to signal that compliance
   work is underway (not yet certified). Always visible so the status
   reads at a glance without requiring hover. */
.security-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 10px;
  border-radius: 20px;
  background: var(--grey);
  color: var(--muted);
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.security-badge-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  position: relative;
  flex-shrink: 0;
}
.security-badge-status-dot::before,
.security-badge-status-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--muted);
}
.security-badge-status-dot::before {
  animation: status-pulse 1.8s ease-out infinite;
}
.security-badge-status-dot::after {
  animation: status-pulse 1.8s ease-out infinite 0.9s;
}
@keyframes status-pulse {
  0%   { transform: scale(1);   opacity: 0.55; }
  100% { transform: scale(2.6); opacity: 0; }
}


/* ── 10. CTA ───────────────────────────────────────────────── */
.cta-section {
  background: var(--black);
  padding: var(--section-pad) 48px;
  text-align: center;
  box-shadow: 0 0 0 100vmax var(--black);
  clip-path: inset(0 -100vmax);
}
.cta-section h2 { font-family: 'DM Serif Display', serif; font-size: 44px; font-weight: 400; color: #fff; letter-spacing: -1px; line-height: 1.15; margin-bottom: 16px; max-width: 700px; margin-left: auto; margin-right: auto; }
.cta-section p { font-size: 17px; color: #666; margin-bottom: 36px; }
.cta-section a { display: inline-block; background: #fff; color: var(--black); padding: 14px 32px; border-radius: 8px; font-size: 15px; font-weight: 700; text-decoration: none; transition: opacity .15s; }
.cta-section a:hover { opacity: .85; }

/* ── 11. FOOTER ────────────────────────────────────────────── */
footer {
  background: var(--black);
  border-top: 1px solid #2e2e2e;
  padding: 0 var(--gutter) 28px;
  box-shadow: 0 0 0 100vmax var(--black);
  clip-path: inset(0 -100vmax);
  display: flex;
  flex-direction: column;
}
.footer-logo { color: #fff; text-decoration: none; }
.footer-top {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-cta { background: #fff; color: var(--black) !important; padding: 8px 18px; border-radius: 6px; font-size: 14px; font-weight: 700; text-decoration: none !important; transition: opacity .15s; cursor: pointer; }
.footer-cta:hover { opacity: .85; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; margin-top: 32px; }
.footer-links a { font-size: 14px; color: #888; text-decoration: none; font-weight: 500; transition: color .15s; }
.footer-links a:hover { color: #ccc; }
.footer-legal { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.footer-legal a { font-size: 13px; color: var(--ink-soft); text-decoration: none; font-weight: 500; transition: color .15s; }
.footer-legal a:hover { color: #888; }
.footer-copy { font-size: 12px; color: #444; text-align: center; margin-top: 14px; }

hr.divider { border: none; border-top: 1px solid var(--border); }

/* ── 7. PRODUCT SECTION ────────────────────────────────────── */
.product-section { background: #fff; }

/* ── 7a. Accordion ─────────────────────────────── */
.product-intro {
  display: grid;
  grid-template-columns: 3fr 4fr;
  min-height: 12vh;
  position: relative;
  padding-right: var(--gutter);
}
.product-intro-left {
  padding: 80px var(--gutter) 80px;
  display: flex;
  flex-direction: column;
}
.product-intro-label { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #bbb; margin-bottom: 20px; }
.product-intro-title { font-family: 'DM Serif Display', serif; font-size: 44px; font-weight: 400; letter-spacing: -1px; line-height: 1.15; color: var(--black); margin-bottom: 32px; }
.product-accordion { display: flex; flex-direction: column; margin-top: auto; }
.accordion-item { padding: 20px 0; cursor: pointer; position: relative; }
.accordion-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--border);
}
.accordion-item::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  height: 1px;
  width: 0%;
  background: var(--black);
  transition: width 0.1s linear;
}
.accordion-item.active::after { width: var(--progress, 0%); }
.accordion-header { display: flex; align-items: center; justify-content: space-between; }
.accordion-name { font-size: 17px; font-weight: 700; color: var(--muted); letter-spacing: -.3px; transition: color .3s; }
.accordion-item.active .accordion-name { color: var(--black); }
.accordion-icon { font-size: 22px; font-weight: 300; color: var(--muted); transition: transform .3s, color .3s; line-height: 1; cursor: pointer; padding: 4px 8px; margin: -4px -8px; user-select: none; }
.accordion-item.active .accordion-icon { transform: rotate(45deg); color: var(--black); }
.accordion-body { font-size: 13px; color: var(--muted); line-height: 1.7; max-height: 0; overflow: hidden; transition: max-height .4s cubic-bezier(0.16,1,0.3,1), margin-top .3s; margin-top: 0; }
.accordion-item.active .accordion-body { max-height: 200px; margin-top: 10px; }

/* ── Stacked cards right side ──────────────────── */
.product-intro-right {
  background: #EFEFEC;
  position: relative;
  overflow: hidden;
  height: 420px;
  align-self: center;
  margin: 40px 0;
  border-radius: 16px;   /* soften corners */
}
.cards-scene {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 24px;
}

/* ── 7b. PRODUCT CARDS — extracted to assets/cards.css ────── */

/* ── 8. RECIPES ────────────────────────────────────────────── */
.product-features { padding: var(--section-pad) 0 var(--section-pad) var(--gutter); overflow: hidden; }
.features-top { display: flex; align-items: flex-end; justify-content: space-between; padding-right: var(--gutter); margin-bottom: 56px; gap: 24px; }
.features-title { font-family: 'DM Serif Display', serif; font-size: 44px; font-weight: 400; letter-spacing: -1px; line-height: 1.15; color: var(--black); max-width: 700px; margin-bottom: 16px; }
.features-subtitle { font-size: 17px; font-weight: 400; line-height: 1.6; color: var(--muted); max-width: 640px; }
.features-title-block { display: flex; flex-direction: column; }
.carousel-controls { display: flex; gap: 10px; flex-shrink: 0; }
.carousel-btn { width: 44px; height: 44px; border-radius: 10px; background: var(--grey); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--black); transition: background .15s, opacity .15s; }
.carousel-btn:hover { background: #e0e0e0; }
.carousel-btn:disabled { opacity: .35; cursor: default; }
.carousel-btn svg { width: 18px; height: 18px; }

.carousel-viewport { overflow: hidden; }
.carousel-track { display: flex; gap: 16px; transition: transform 0.5s cubic-bezier(0.16,1,0.3,1); }
.feat-card {
  flex: 0 0 calc((100% - var(--gutter) - 48px) / 4);
  min-width: 280px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.feat-tile {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  align-self: flex-start;
}
.feat-tile svg { width: 22px; height: 22px; color: #fff; opacity: 0.95; }
.tile-amber { background: linear-gradient(135deg, #d9b38c 0%, #e9cfa8 45%, #f5e4c8 100%); }
.tile-green { background: linear-gradient(135deg, #6b8c6f 0%, #8baa8f 45%, #b8cfba 100%); }
.tile-darkgreen { background: linear-gradient(135deg, #4d6b50 0%, #789a7c 45%, #a5bfa8 100%); }
.tile-blue { background: linear-gradient(135deg, #7a8fb8 0%, #a4b4d0 45%, #cdd7e8 100%); }
.tile-stone { background: linear-gradient(135deg, #8a8a8a 0%, #aaa 45%, #cfcfcf 100%); }
.tile-rose { background: linear-gradient(135deg, #b88a94 0%, #d1a8ae 45%, #e5c5c8 100%); }
.tile-teal { background: linear-gradient(135deg, #5f8a88 0%, #8aaead 45%, #b8cecd 100%); }
.tile-cream { background: linear-gradient(135deg, #c9b58e 0%, #ddc9a6 45%, #efddc1 100%); }
.tile-sage { background: linear-gradient(135deg, #8a9b7b 0%, #a8b699 45%, #c9d2bd 100%); }

.feat-card h4 { font-size: 17px; font-weight: 700; color: var(--black); margin-bottom: 10px; letter-spacing: -.3px; line-height: 1.3; }
.feat-card p { font-size: 14px; color: var(--muted); line-height: 1.65; }

.carousel-progress { margin: 40px auto 0; width: 200px; height: 2px; background: var(--grey); border-radius: 2px; overflow: hidden; position: relative; }
.carousel-progress-bar { position: absolute; top: 0; left: 0; height: 100%; background: var(--black); border-radius: 2px; transition: transform 0.5s cubic-bezier(0.16,1,0.3,1), width 0.3s; transform-origin: left; }

/* ── 9. INTEGRATIONS ───────────────────────────────────────── */
.product-integrations {
  padding: var(--section-pad) var(--gutter);
  background: #EFEFEC;
  text-align: center;
  box-shadow: 0 0 0 100vmax #EFEFEC;
  clip-path: inset(0 -100vmax);
  scroll-margin-top: 60px;
}
.product-integrations h3 { font-family: 'DM Serif Display', serif; font-size: 44px; font-weight: 400; letter-spacing: -1px; margin-bottom: 16px; line-height: 1.15; }
.product-integrations-sub { font-size: 17px; color: var(--muted); margin: 0 auto 40px; max-width: 520px; line-height: 1.6; text-align: center; }
.int-filters {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 auto 56px;
  padding: 0 var(--gutter);
  max-width: 1100px;
}
.int-filter {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
  white-space: nowrap;
  letter-spacing: -.1px;
}
.int-filter:hover {
  background: rgba(0, 0, 0, 0.04);
}
.int-filter.active {
  background: var(--grey);
}
.int-filter:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}
.product-integrations-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; max-width: 1400px; margin: 0 auto; }

.int-item { background: #fff; border-radius: 10px; padding: 22px 24px; display: flex; flex-direction: column; gap: 0; }
.int-icon { width: 40px; height: 40px; margin-bottom: 24px; object-fit: contain; border-radius: 8px; }
.int-name { font-size: 15px; font-weight: 700; color: var(--black); margin-bottom: 6px; letter-spacing: -.2px; }
.int-desc { font-size: 13px; color: var(--muted); line-height: 1.55; }

/* ── 12. WORD REVEAL ───────────────────────────────────────── */
.problem-section .word {
  color: #ccc;
  transition: color 0.1s ease;
  display: inline;
}

/* ── 13. RESPONSIVE ───────────────────────────────────────── */

/* 14" laptops (1440px and below) */
@media (max-width: 1440px) {
  :root { --gutter: 64px; --section-pad: 90px; }
  .product-intro { grid-template-columns: 1fr 2fr; }
  .hero-section h1 { font-size: 60px; letter-spacing: -2px; }
}

/* 13" laptops and smaller desktops */
@media (max-width: 1280px) {
  :root { --gutter: 48px; --section-pad: 80px; }
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 13px; }
  .product-intro { grid-template-columns: 1fr 2fr; }
  .product-intro-title { font-size: 28px; }
  .product-features-label,
  .product-integrations h3 { font-size: 26px; }
  .product-features-grid { gap: 36px 28px; }
  .section-head h2,
  .pillars-header h2 { font-size: 36px; }
  .hero-section h1 { font-size: 52px; }
  .stack-card { width: 180px; padding: 16px; }
  .stack-card-title { font-size: 16px; }
  .stack-card:nth-child(1) { transform: translate(-80px,  -40px); }
  .stack-card:nth-child(2) { transform: translate(-25px,  -12px); }
  .stack-card:nth-child(3) { transform: translate( 30px,   15px); }
  .stack-card:nth-child(4) { transform: translate( 85px,   45px); }
}

/* Tablets */
@media (max-width: 1024px) {
  :root { --gutter: 32px; }
  .nav { padding: 0 32px; }
  .product-intro { grid-template-columns: 1fr; padding-right: 0; }
  .product-intro-left { padding: 60px 32px 40px; }
  .product-intro-right { height: 360px; margin: 0 32px 60px; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .product-features-grid { grid-template-columns: repeat(2, 1fr); }
  .product-integrations-grid { grid-template-columns: repeat(2, 1fr); }
  .security-badges { gap: 28px; padding: 0; }
  .security-title { font-size: 36px; }
  .tab-grid { grid-template-columns: 1fr; }
  .hero-section h1 { font-size: 44px; }
}

/* Phones */
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .nav { padding: 0 20px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero-section { padding: 0 20px; }
  .hero-section h1 { font-size: 36px; letter-spacing: -1.5px; }
  .problem-section { padding: 120px 20px; }
  .problem-section p { font-size: 20px; }
  .benefits-grid { grid-template-columns: 1fr; }
  .product-features-grid { grid-template-columns: 1fr; }
  .product-integrations-grid { grid-template-columns: 1fr; }
  .security-section { padding: 80px 0 90px; }
  .security-badges { grid-template-columns: 1fr; gap: 32px; }
  .security-title { font-size: 28px; }
  .security-sub { margin-bottom: 56px; }
  .section-head h2,
  .pillars-header h2,
  .product-intro-title,
  .cta-section h2 { font-size: 28px; }
  footer { flex-direction: column; align-items: flex-start; }
}
