/* ==========================================================================
   SIYA — Marketing site styles. Built on the Siya Design System tokens.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { text-decoration: none; }
:focus-visible { outline: none; box-shadow: var(--shadow-glow-lavender); border-radius: var(--radius-sm); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 32px; }
.wrap-narrow { max-width: 920px; }
section { position: relative; }
.sec { padding-block: clamp(72px, 9vw, 132px); }
.sec-tight { padding-block: clamp(56px, 6vw, 88px); }
.bg-soft { background: var(--primary-50); }
.bg-dawn {
  background:
    radial-gradient(120% 90% at 15% 0%, #F7D9EE55 0%, transparent 55%),
    radial-gradient(120% 90% at 90% 30%, #FADCA855 0%, transparent 50%),
    var(--primary-50);
}

/* ---------- Type helpers ---------- */
.campaign {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
  color: var(--fg);
  margin: 0;
}
.t-xxl { font-size: clamp(40px, 6.2vw, 76px); }
.t-xl  { font-size: clamp(34px, 4.6vw, 58px); }
.t-lg  { font-size: clamp(28px, 3.4vw, 46px); }
.ui {
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
  color: var(--fg);
  margin: 0;
}
.lead {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.6;
  color: var(--fg-muted);
  text-wrap: pretty;
  margin: 0;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-ui);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary-700);
  margin: 0 0 18px;
}
.eyebrow::before { content: "✦"; font-size: 13px; color: var(--secondary-600); letter-spacing: 0; }
.eyebrow.on-dark { color: var(--primary-300); }
.grad-word { color: var(--primary-600); }
.teal-word { color: var(--secondary-700); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-ui); font-weight: 600; font-size: 16px;
  letter-spacing: 0.005em;
  border-radius: var(--radius-pill);
  padding: 15px 26px;
  transition: transform var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
  will-change: transform;
}
.btn .arr { transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .arr { transform: translateX(4px); }
.btn-primary { background: var(--primary-500); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--primary-600); color: #fff; box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.btn-primary:active { background: var(--primary-700); transform: translateY(0); }
.btn-ghost { background: #fff; color: var(--primary-700); box-shadow: inset 0 0 0 1.5px var(--primary-200); }
.btn-ghost:hover { background: var(--primary-50); color: var(--primary-800); box-shadow: inset 0 0 0 1.5px var(--primary-300); transform: translateY(-2px); }
.btn-on-dark { background: #fff; color: var(--gray-800); }
.btn-on-dark:hover { background: var(--primary-100); color: var(--primary-900); transform: translateY(-2px); }
.btn-lg { font-size: 17px; padding: 18px 32px; }
.btn-ghost.on-dark { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.3); }
.btn-ghost.on-dark:hover { background: rgba(255,255,255,0.08); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.55); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom-color: var(--border-soft);
  box-shadow: var(--shadow-sm);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.nav-logo { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-link {
  font-family: var(--font-ui); font-weight: 500; font-size: 15px;
  color: var(--fg-secondary); position: relative; padding: 4px 0;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-link::after {
  content:""; position:absolute; left:0; bottom:-2px; height:2px; width:0;
  background: var(--primary-500); border-radius: 2px;
  transition: width var(--dur-base) var(--ease-out);
}
.nav-link:hover { color: var(--primary-700); }
.nav-link:hover::after { width: 100%; }
.nav-cta { display: inline-flex; }
.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-burger span { width: 22px; height: 2px; background: var(--fg); border-radius: 2px; transition: var(--dur-base); }

/* ---------- Decorative glow orbs ---------- */
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; pointer-events: none; z-index: 0; }
.orb-pink { background: var(--siya-pink); }
.orb-teal { background: var(--secondary-200); }
.orb-lav { background: var(--primary-200); }
.orb-champ { background: var(--siya-champagne); }

/* ---------- Hero ---------- */
.hero { padding-top: 150px; padding-bottom: clamp(60px, 8vw, 110px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { margin: 0 0 24px; }
.hero .lead { max-width: 33ch; margin-bottom: 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { display: flex; align-items: center; gap: 18px; margin-top: 28px; flex-wrap: wrap; }
.hero-note-item { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--fg-muted); font-family: var(--font-ui); font-weight: 500; }
.hero-note-item .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--secondary-500); box-shadow: 0 0 0 4px var(--secondary-100); }

.hero-visual { position: relative; display: grid; place-items: center; }
.hero-mascot { width: min(78%, 360px); filter: drop-shadow(0 30px 50px rgba(75,44,135,0.28)); position: relative; z-index: 2; }
.float { animation: float 6s var(--ease-in-out) infinite; }
@keyframes float { 0%,100%{ transform: translateY(0) rotate(-1deg);} 50%{ transform: translateY(-16px) rotate(1deg);} }
.float-slow { animation: float 8s var(--ease-in-out) infinite; }

/* floating chips around mascot */
.chip {
  position: absolute; z-index: 3;
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 12px 15px; display: flex; align-items: center; gap: 11px;
  border: 1px solid var(--border-soft);
}
.chip .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.chip .k { font-family: var(--font-ui); font-weight: 700; font-size: 17px; color: var(--fg); line-height: 1; }
.chip .l { font-size: 11px; color: var(--fg-muted); font-family: var(--font-ui); font-weight: 600; letter-spacing: 0.02em; margin-top: 3px; }
.chip-1 { top: 6%; left: -4%; }
.chip-2 { top: 40%; right: -6%; }
.chip-3 { bottom: 4%; left: 2%; }

/* ---------- Trust band ---------- */
.band { background: var(--gray-800); color: #fff; }
.band-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.band-item { text-align: center; padding: 6px; }
.band-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 4vw, 48px); line-height: 1; color: #fff; letter-spacing: -0.02em; }
.band-num .u { color: var(--primary-300); }
.band-lbl { margin-top: 10px; font-family: var(--font-ui); font-weight: 500; font-size: 14px; color: rgba(255,255,255,0.62); letter-spacing: 0.02em; }

/* ---------- Section heading block ---------- */
.head-block { max-width: 760px; }
.head-block.center { margin-inline: auto; text-align: center; }
.head-block .lead { margin-top: 20px; }
.head-block.center .lead { margin-inline: auto; }

/* ---------- Generic cards ---------- */
.card {
  background: var(--surface); border-radius: var(--radius-2xl);
  border: 1px solid var(--border-soft); box-shadow: var(--shadow-md);
  padding: 32px;
}
.card-pad-lg { padding: 40px; }

/* ---------- Device / product mockup frame ---------- */
.device {
  background: #fff; border-radius: var(--radius-2xl);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-xl);
  overflow: hidden; position: relative; z-index: 2;
}
.device-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--border-soft); background: var(--primary-50); }
.device-bar .dots { display: flex; gap: 6px; }
.device-bar .dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.device-bar .title { margin-left: 8px; font-family: var(--font-ui); font-weight: 600; font-size: 13px; color: var(--fg-muted); display: flex; align-items: center; gap: 8px; }
.pill-live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-ui); font-weight: 600; font-size: 12px; color: var(--secondary-700); background: var(--secondary-50); padding: 5px 11px; border-radius: var(--radius-pill); }
.pill-live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--secondary-500); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100%{ box-shadow: 0 0 0 0 var(--secondary-300);} 50%{ box-shadow: 0 0 0 5px transparent;} }

/* ---------- Report mockup internals ---------- */
.rep { padding: 26px; display: grid; gap: 18px; }
.rep-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.rep-stat-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.rep-stat { background: var(--primary-50); border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 12px; text-align: center; }
.rep-stat .n { font-family: var(--font-ui); font-weight: 800; font-size: 22px; color: var(--primary-700); line-height: 1; }
.rep-stat.teal .n { color: var(--secondary-700); }
.rep-stat .t { font-size: 11px; color: var(--fg-muted); margin-top: 5px; font-family: var(--font-ui); font-weight: 600; }
.subj { border: 1px solid var(--border-soft); border-radius: var(--radius-lg); overflow: hidden; }
.subj-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--primary-50); }
.subj-head .nm { font-family: var(--font-ui); font-weight: 700; font-size: 15px; color: var(--fg); }
.subj-head .meta { font-size: 12px; color: var(--fg-muted); margin-top: 2px; }
.subj-head .score { font-family: var(--font-ui); font-weight: 800; font-size: 20px; }
.gap-row { padding: 14px 16px; border-top: 1px solid var(--border-soft); display: grid; gap: 8px; }
.gap-top { display: flex; align-items: center; gap: 10px; }
.gap-name { font-family: var(--font-ui); font-weight: 600; font-size: 14px; color: var(--fg); }
.gap-score { margin-left: auto; font-family: var(--font-ui); font-weight: 700; font-size: 13px; color: var(--fg-muted); }
.gap-desc { font-size: 13px; color: var(--fg-muted); line-height: 1.5; }
.gap-action { display: flex; gap: 9px; align-items: flex-start; background: var(--secondary-50); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13px; color: var(--secondary-900); line-height: 1.45; }
.gap-action b { font-family: var(--font-ui); }

/* tags */
.tag { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-ui); font-weight: 600; font-size: 11px; letter-spacing: 0.04em; padding: 4px 9px; border-radius: var(--radius-pill); white-space: nowrap; }
.tag-crit { background: var(--tag-error-bg); color: var(--tag-error-fg); }
.tag-mod { background: var(--tag-warn-bg); color: var(--tag-warn-fg); }
.tag-con { background: var(--primary-100); color: var(--primary-800); }
.tag-ok  { background: var(--tag-success-bg); color: var(--tag-success-fg); }
.tag-info{ background: var(--tag-info-bg); color: var(--tag-info-fg); }

/* progress bar */
.bar { height: 8px; border-radius: 99px; background: var(--gray-200); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: var(--primary-500); width: 0; transition: width 1.1s var(--ease-out); }
.bar > i.teal { background: var(--secondary-500); }

/* ---------- Transformation compare ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.lane { border-radius: var(--radius-2xl); padding: 30px; border: 1px solid var(--border-soft); display: flex; flex-direction: column; gap: 14px; }
.lane-without { background: var(--gray-200); }
.lane-with { background: linear-gradient(170deg, var(--primary-50), #fff); box-shadow: var(--shadow-lg); border-color: var(--primary-200); }
.lane-tag { align-self: flex-start; }
.step-item { display: flex; gap: 14px; align-items: flex-start; }
.step-item .si-num { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-ui); font-weight: 700; font-size: 13px; }
.lane-without .si-num { background: #fff; color: var(--gray-500); border: 1px solid var(--border); }
.lane-with .si-num { background: var(--primary-500); color: #fff; }
.step-item .si-t { font-family: var(--font-ui); font-weight: 700; font-size: 15px; color: var(--fg); }
.step-item .si-d { font-size: 13.5px; color: var(--fg-muted); line-height: 1.5; margin-top: 2px; }
.lane-foot { margin-top: auto; padding-top: 16px; font-family: var(--font-ui); font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 9px; }
.lane-without .lane-foot { color: var(--gray-500); }
.lane-with .lane-foot { color: var(--secondary-700); }

/* ---------- Stat grid ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.stat-card { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-xl); padding: 28px 24px; box-shadow: var(--shadow-sm); }
.stat-card .n { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px,3.6vw,46px); color: var(--primary-600); line-height: 1; letter-spacing: -0.02em; }
.stat-card.teal .n { color: var(--secondary-600); }
.stat-card .l { margin-top: 12px; font-size: 14.5px; color: var(--fg-muted); line-height: 1.5; }

/* ---------- Quote feature ---------- */
.quote-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.quote-big { font-family: var(--font-ui); font-weight: 600; font-size: clamp(22px, 2.6vw, 34px); line-height: 1.32; letter-spacing: -0.015em; color: var(--fg); text-wrap: balance; }
.quote-mark { font-family: var(--font-display); font-size: 80px; line-height: 0.6; color: var(--primary-300); height: 44px; display: block; }
.quote-by { margin-top: 26px; display: flex; align-items: center; gap: 14px; }
.quote-av { width: 52px; height: 52px; border-radius: 50%; background: var(--gradient-lavender-soft); display: grid; place-items: center; font-family: var(--font-ui); font-weight: 700; color: var(--primary-800); flex: none; }
.quote-by .who { font-family: var(--font-ui); font-weight: 700; font-size: 16px; color: var(--fg); }
.quote-by .role { font-size: 13.5px; color: var(--fg-muted); margin-top: 2px; }

/* ---------- Bloom dark ---------- */
.dark { background: var(--gradient-hero-dark); color: #fff; }
.dark .ui, .dark .campaign { color: #fff; }
.dark .lead { color: rgba(255,255,255,0.66); }
.bloom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.bloom-levels { display: grid; gap: 10px; }
.bloom-row { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 16px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09); border-radius: var(--radius-md); padding: 13px 16px; }
.bloom-row .lvl { font-family: var(--font-ui); font-weight: 800; font-size: 13px; color: var(--primary-300); }
.bloom-row .nm { font-family: var(--font-ui); font-weight: 700; font-size: 15px; color: #fff; }
.bloom-row .nm small { display: block; font-weight: 500; font-size: 11.5px; color: rgba(255,255,255,0.5); margin-top: 2px; letter-spacing: 0.02em; }
.bloom-row .pct { font-family: var(--font-ui); font-weight: 800; font-size: 16px; }
.bloom-track { position: relative; height: 6px; border-radius: 99px; background: rgba(255,255,255,0.1); margin-top: 8px; grid-column: 1 / -1; }
.bloom-track > i { position:absolute; inset:0 auto 0 0; height:100%; border-radius:99px; width:0; transition: width 1.2s var(--ease-out); }
.bloom-note { display: flex; gap: 14px; align-items: flex-start; margin-top: 26px; background: rgba(160,132,232,0.14); border: 1px solid rgba(160,132,232,0.3); border-radius: var(--radius-lg); padding: 18px 20px; }

/* ---------- Reveal cards (4 up) ---------- */
.reveal-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.reveal-card { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-xl); padding: 28px; transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
.reveal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.reveal-card .ic { width: 50px; height: 50px; border-radius: 14px; background: var(--primary-100); display: grid; place-items: center; color: var(--primary-700); margin-bottom: 18px; }
.reveal-card h3 { font-family: var(--font-ui); font-weight: 700; font-size: 19px; color: var(--fg); margin: 0 0 8px; }
.reveal-card p { font-size: 15px; color: var(--fg-muted); line-height: 1.55; }

/* ---------- Audience cards ---------- */
.aud-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.aud-card { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-2xl); padding: 30px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
.aud-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.aud-mascot { width: 92px; height: 92px; object-fit: contain; margin-bottom: 12px; filter: drop-shadow(0 12px 18px rgba(75,44,135,0.18)); }
.aud-card h3 { font-family: var(--font-ui); font-weight: 700; font-size: 21px; margin: 0 0 8px; color: var(--fg); }
.aud-card .sub { font-size: 14.5px; color: var(--fg-muted); line-height: 1.5; margin-bottom: 20px; }
.aud-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.aud-mini .m { background: var(--primary-50); border-radius: var(--radius-md); padding: 12px; }
.aud-mini .m .v { font-family: var(--font-ui); font-weight: 800; font-size: 18px; color: var(--primary-700); }
.aud-mini .m.teal .v { color: var(--secondary-700); }
.aud-mini .m .k { font-size: 11.5px; color: var(--fg-muted); margin-top: 3px; font-weight: 600; font-family: var(--font-ui); }
.aud-list { list-style: none; padding: 0; margin: 0 0 4px; display: grid; gap: 11px; }
.aud-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--fg-secondary); line-height: 1.45; }
.aud-list .ck { flex: none; color: var(--secondary-600); margin-top: 1px; }

/* ---------- Steps (how it works) ---------- */
.how-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; counter-reset: s; margin-bottom: 56px; }
.how-step { position: relative; padding-top: 8px; }
.how-step .sn { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--primary-500); letter-spacing: 0.1em; margin-bottom: 14px; display: inline-flex; align-items:center; gap:10px; }
.how-step .sn::before { content:""; width: 34px; height: 2px; background: var(--primary-200); }
.how-step h3 { font-family: var(--font-ui); font-weight: 700; font-size: 20px; margin: 0 0 10px; color: var(--fg); }
.how-step p { font-size: 15px; color: var(--fg-muted); line-height: 1.55; }

/* upload demo */
.upload-demo { display: grid; grid-template-columns: 1fr 1fr; }
.ud-left { padding: 28px; border-right: 1px solid var(--border-soft); display: grid; gap: 16px; align-content: start; }
.ud-drop { border: 2px dashed var(--primary-300); border-radius: var(--radius-lg); padding: 26px; text-align: center; background: var(--primary-50); }
.ud-drop .ic { width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 13px; background: #fff; display: grid; place-items: center; color: var(--primary-600); box-shadow: var(--shadow-sm); }
.ud-drop .t { font-family: var(--font-ui); font-weight: 700; font-size: 15px; color: var(--fg); }
.ud-drop .s { font-size: 12.5px; color: var(--fg-muted); margin-top: 5px; }
.ud-file { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 12px 14px; }
.ud-file .fi { width: 36px; height: 36px; border-radius: 9px; background: var(--primary-100); display: grid; place-items: center; color: var(--primary-700); flex: none; }
.ud-file .fn { font-family: var(--font-ui); font-weight: 600; font-size: 13.5px; color: var(--fg); }
.ud-file .fm { font-size: 11.5px; color: var(--fg-muted); margin-top: 2px; }
.ud-right { padding: 28px; display: grid; gap: 14px; align-content: start; background: var(--primary-50); }
.ud-bloom { display: grid; gap: 9px; }
.ud-bloom-row { display: grid; grid-template-columns: 78px 1fr 38px; align-items: center; gap: 10px; font-family: var(--font-ui); font-weight: 600; font-size: 12.5px; color: var(--fg-secondary); }
.ud-insight { display: flex; gap: 11px; background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 14px; align-items: flex-start; }
.ud-insight .it { font-size: 13px; color: var(--fg-secondary); line-height: 1.5; }

/* ---------- Experience flow ---------- */
.flow { display: grid; gap: 18px; }
.flow-step { display: grid; grid-template-columns: 64px 1fr; gap: 22px; align-items: start; }
.flow-num { width: 64px; height: 64px; border-radius: 20px; background: var(--gradient-lavender-soft); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 24px; color: var(--primary-800); box-shadow: var(--shadow-md); position: relative; }
.flow-body { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-xl); padding: 24px 26px; box-shadow: var(--shadow-sm); }
.flow-body h3 { font-family: var(--font-ui); font-weight: 700; font-size: 19px; margin: 0 0 6px; color: var(--fg); }
.flow-body p { font-size: 14.5px; color: var(--fg-muted); line-height: 1.55; }
.flow-line { grid-column: 1; justify-self: center; width: 2px; background: var(--primary-200); height: 18px; }
.chatline { margin-top: 14px; background: var(--primary-50); border-radius: var(--radius-md); padding: 13px 15px; font-size: 14px; color: var(--fg-secondary); line-height: 1.5; border-left: 3px solid var(--primary-400); }

/* ---------- Community ---------- */
.comm-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.comm-card { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-2xl); padding: 36px 32px; text-align: center; box-shadow: var(--shadow-sm); }
.comm-card .ic { width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 16px; background: var(--primary-100); color: var(--primary-700); display: grid; place-items: center; }
.comm-card .n { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px,3.4vw,44px); color: var(--primary-600); line-height: 1; letter-spacing: -0.02em; }
.comm-card .h { font-family: var(--font-ui); font-weight: 700; font-size: 17px; margin: 14px 0 8px; color: var(--fg); }
.comm-card .p { font-size: 14px; color: var(--fg-muted); line-height: 1.55; }

/* ---------- Testimonials ---------- */
.test-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.test-card { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-2xl); padding: 30px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.stars { color: var(--siya-orange); letter-spacing: 2px; font-size: 15px; margin-bottom: 16px; }
.test-card .q { font-size: 15.5px; color: var(--fg-secondary); line-height: 1.6; flex: 1; }
.test-by { margin-top: 22px; display: flex; align-items: center; gap: 13px; }
.test-av { width: 46px; height: 46px; border-radius: 50%; background: var(--primary-100); display: grid; place-items: center; font-family: var(--font-ui); font-weight: 700; font-size: 15px; color: var(--primary-800); flex: none; }
.test-by .who { font-family: var(--font-ui); font-weight: 700; font-size: 15px; color: var(--fg); }
.test-by .role { font-size: 12.5px; color: var(--fg-muted); margin-top: 2px; }
.test-feature { grid-column: 1 / -1; background: var(--gradient-lavender-soft); border: none; }
.test-feature .q { color: var(--primary-900); font-size: clamp(18px,2vw,24px); font-family: var(--font-ui); font-weight: 600; line-height: 1.4; }

/* ---------- Principals ---------- */
.princ-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.insight-card { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-2xl); box-shadow: var(--shadow-xl); overflow: hidden; }
.ic-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; background: var(--gradient-lavender-soft); }
.ic-head .av { width: 40px; height: 40px; border-radius: 12px; background: #fff; display: grid; place-items: center; }
.ic-head .nm { font-family: var(--font-ui); font-weight: 700; font-size: 15px; color: var(--primary-900); }
.ic-head .rl { font-size: 12px; color: var(--primary-800); opacity: 0.8; }
.ic-row { padding: 18px 22px; border-bottom: 1px solid var(--border-soft); display: flex; gap: 13px; align-items: flex-start; }
.ic-row:last-child { border-bottom: none; }
.ic-row .ric { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; }
.ic-row .rt { font-family: var(--font-ui); font-weight: 700; font-size: 14.5px; color: var(--fg); }
.ic-row .rd { font-size: 13px; color: var(--fg-muted); line-height: 1.45; margin-top: 2px; }

/* ---------- Final CTA ---------- */
.cta { position: relative; overflow: hidden; }
.cta-card {
  position: relative; z-index: 2; border-radius: var(--radius-3xl);
  background: var(--gradient-hero-dark); color: #fff;
  padding: clamp(48px, 6vw, 86px); overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.cta-card .campaign { color: #fff; }
.cta-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; position: relative; z-index: 2; }
.cta-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 13px; }
.cta-list li { display: flex; gap: 11px; align-items: center; font-size: 16px; color: rgba(255,255,255,0.85); font-family: var(--font-ui); font-weight: 500; }
.cta-list .ck { color: var(--secondary-400); flex: none; }
.cta-mascot { width: min(90%, 280px); margin: 0 auto; filter: drop-shadow(0 24px 40px rgba(0,0,0,0.4)); }

/* ---------- Footer ---------- */
.foot { background: var(--gray-800); color: rgba(255,255,255,0.6); padding-block: 64px 40px; }
.foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.foot-logo { height: 30px; margin-bottom: 18px; }
.foot-tag { font-size: 14.5px; line-height: 1.6; max-width: 32ch; color: rgba(255,255,255,0.55); }
.foot-col h4 { font-family: var(--font-ui); font-weight: 700; font-size: 14px; color: #fff; margin: 0 0 16px; letter-spacing: 0.02em; }
.foot-col a { display: block; color: rgba(255,255,255,0.6); font-size: 14.5px; margin-bottom: 11px; transition: color var(--dur-fast) var(--ease-out); }
.foot-col a:hover { color: var(--primary-300); }
.foot-bot { padding-top: 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 13.5px; }

/* ---------- Scroll reveal (transition-based: REPLAYS every time it enters view) ----------
   Base = hidden resting state; .in (toggled by the scroll engine) = settled state.
   Removing .in lets the element ease back out, so scrolling up then down re-animates it. */
.r {
  opacity: 0;
  transform: translateY(48px);
  will-change: transform, opacity, filter;
  transition:
    opacity 0.85s var(--ease-out),
    transform 0.95s var(--ease-out),
    filter 0.95s var(--ease-out);
}
.r.r-left  { transform: translateX(-54px); }
.r.r-right { transform: translateX(54px); }
.r.r-scale { transform: scale(0.9); }
.r.r-blur  { filter: blur(16px); transform: translateY(22px); }
.r.in { opacity: 1; transform: none; filter: none; }
/* stagger only on the way IN; exit stays quick & in unison */
.r.in.r-d1 { transition-delay: 0.07s; }
.r.in.r-d2 { transition-delay: 0.14s; }
.r.in.r-d3 { transition-delay: 0.21s; }
.r.in.r-d4 { transition-delay: 0.30s; }
.r.in.r-d5 { transition-delay: 0.40s; }
.r.in.r-d6 { transition-delay: 0.50s; }
@media (prefers-reduced-motion: reduce) {
  .r { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .float, .float-slow { animation: none !important; }
}

/* ==========================================================================
   CINEMATIC SYSTEM — progress, scenes/pin, parallax, scrub, scroll cue, tilt
   ========================================================================== */

/* scroll progress bar */
#progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--primary-500), var(--secondary-500)); z-index: 200; will-change: transform; }

/* parallax/hero layers */
[data-depth], [data-hs] { will-change: transform; }

/* scene scaffolding */
.scene { position: relative; }
.pin { position: sticky; top: 0; height: 100vh; min-height: 640px; display: grid; align-items: center; overflow: hidden; }
.pin > .wrap { width: 100%; }

/* aurora hero background */
.aurora {
  position: absolute; inset: -25% -12%; z-index: 0; pointer-events: none;
  filter: blur(58px); opacity: 0.72;
  background:
    radial-gradient(38% 48% at 18% 28%, var(--siya-pink) 0%, transparent 62%),
    radial-gradient(42% 52% at 82% 18%, var(--siya-champagne) 0%, transparent 62%),
    radial-gradient(48% 58% at 68% 74%, var(--primary-200) 0%, transparent 62%),
    radial-gradient(40% 50% at 28% 82%, var(--secondary-100) 0%, transparent 62%);
  background-size: 180% 180%;
  animation: auroraDrift 22s var(--ease-in-out) infinite alternate;
}
@keyframes auroraDrift { 0% { background-position: 0% 0%; } 100% { background-position: 100% 100%; } }

/* scroll cue */
.cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 9px; font: 700 10px/1 var(--font-ui); letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-subtle); }
.cue .mouse { width: 24px; height: 38px; border-radius: 14px; border: 2px solid var(--primary-400); position: relative; }
.cue .mouse::before { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 7px; border-radius: 2px; background: var(--primary-500); transform: translateX(-50%); animation: wheel 1.7s var(--ease-out) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 13px); } }

/* device rise-in */
.device-rise { transform-origin: 50% 100%; }
.device-rise.in { animation: deviceRise 1.1s var(--ease-out) forwards; }
@keyframes deviceRise { from { opacity: 0; transform: perspective(1400px) rotateX(14deg) translateY(60px) scale(0.94); } to { opacity: 1; transform: perspective(1400px) rotateX(0) translateY(0) scale(1); } }

/* ---- Transformation pinned scene ---- */
.xf-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 56px; align-items: center; }
.xf-steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 8px; }
.xf-steps li { padding: 15px 18px; border-radius: var(--radius-md); border: 1px solid transparent; display: grid; gap: 4px; opacity: 0.42; transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), background .5s var(--ease-out), border-color .5s var(--ease-out); }
.xf-steps li b { font: 700 17px/1.25 var(--font-ui); color: var(--fg); }
.xf-steps li span { font-size: 14px; color: var(--fg-muted); line-height: 1.5; }
.xf[data-step="0"] .xf-steps li[data-s="0"],
.xf[data-step="1"] .xf-steps li[data-s="1"],
.xf[data-step="2"] .xf-steps li[data-s="2"] { opacity: 1; background: #fff; border-color: var(--primary-200); box-shadow: var(--shadow-md); transform: translateX(6px); }

.xf-visual { position: relative; perspective: 1200px; }
.xf-paper { position: relative; background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); padding: 22px 22px 24px; overflow: hidden; transition: transform .6s var(--ease-out); }
.xf[data-step="2"] .xf-paper { transform: translateY(-26px) scale(0.97); }
.xf-ph { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--border-soft); margin-bottom: 14px; }
.xf-ph .av { width: 38px; height: 38px; border-radius: 11px; background: var(--primary-100); color: var(--primary-700); display: grid; place-items: center; flex: none; }
.xf-ans { display: grid; gap: 9px; }
.xf-a { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); font-size: 13px; color: var(--fg-secondary); background: #fff; transition: border-color .4s var(--ease-out); }
.xf-a .q { flex: 1; }
.xf-a .bch { margin-left: auto; opacity: 0; transform: translateX(8px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.xf:not([data-step="0"]) .xf-a .bch { opacity: 1; transform: none; }
.xf:not([data-step="0"]) .xf-a.gap { border-color: var(--tag-error-bg); background: #FFF6F6; }
.xf-stamp { position: absolute; top: 16px; right: 14px; font: 800 26px/1 var(--font-display); color: #991B1B; border: 3px solid #991B1B; border-radius: 10px; padding: 7px 12px; transform: rotate(7deg); opacity: 0.9; transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); }
.xf:not([data-step="0"]) .xf-stamp { opacity: 0; transform: rotate(7deg) scale(0.7); }
.xf-scan { position: absolute; left: 0; right: 0; top: 0; height: 38%; background: linear-gradient(180deg, transparent, rgba(160,132,232,0.22)); border-bottom: 2px solid var(--primary-500); opacity: 0; transform: translateY(calc(var(--p, 0) * 230%)); pointer-events: none; }
.xf[data-step="1"] .xf-scan { opacity: 1; }
.xf-insight { position: absolute; left: 8%; right: 8%; bottom: -6%; background: #fff; border: 1px solid var(--primary-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); padding: 18px 20px; opacity: 0; transform: translateY(46px) scale(0.96); transition: opacity .55s var(--ease-out), transform .55s var(--ease-out); }
.xf[data-step="2"] .xf-insight { opacity: 1; transform: none; }
.xf-insight .h { display: flex; align-items: center; gap: 9px; font: 700 14px/1.2 var(--font-ui); color: var(--primary-800); margin-bottom: 6px; }
.xf-insight p { font-size: 13px; color: var(--fg-muted); line-height: 1.5; }

/* ---- Bloom scrubbed bars (drive width with --p) ---- */
.bloom-track > i.scrub { width: calc(clamp(0, calc((var(--p, 0) - var(--start, 0)) / 0.16), 1) * var(--tw, 50) * 1%); transition: none; }

/* ---- How-it-works sticky stepper ---- */
.how2-grid { display: grid; grid-template-columns: 0.78fr 1.22fr; gap: 52px; align-items: center; }
.how2-demo { position: relative; min-height: 420px; }
.how2-demo .hp { position: absolute; inset: 0; opacity: 0; transform: translateY(22px) scale(0.985); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); pointer-events: none; }
.how2[data-step="0"] .hp-0, .how2[data-step="1"] .hp-1, .how2[data-step="2"] .hp-2 { opacity: 1; transform: none; pointer-events: auto; }

/* ---- Experience flow scrub ---- */
.exp-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 52px; align-items: start; }
.exp-aside { position: sticky; top: 16vh; align-self: start; }
.exp-list { display: grid; gap: 18px; }
.exp-list .flow-step { opacity: 0.5; transform: scale(0.985); transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); }
.exp-list .flow-step .flow-body { transition: box-shadow .45s var(--ease-out), border-color .45s var(--ease-out); }
.exp[data-step="0"] [data-s="0"], .exp[data-step="1"] [data-s="1"], .exp[data-step="2"] [data-s="2"], .exp[data-step="3"] [data-s="3"], .exp[data-step="4"] [data-s="4"] { opacity: 1; transform: scale(1); }
.exp[data-step="0"] [data-s="0"] .flow-body, .exp[data-step="1"] [data-s="1"] .flow-body, .exp[data-step="2"] [data-s="2"] .flow-body, .exp[data-step="3"] [data-s="3"] .flow-body, .exp[data-step="4"] [data-s="4"] .flow-body { box-shadow: var(--shadow-lg); border-color: var(--primary-200); }

/* tilt wrapper */
[data-tilt] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .aurora, .cue .mouse::before { animation: none; }
  .device-rise.in { animation: none; opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid, .bloom-grid, .quote-wrap, .princ-grid, .cta-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .aud-grid, .how-grid, .comm-grid, .test-grid { grid-template-columns: 1fr; }
  .stat-grid, .band-grid { grid-template-columns: 1fr 1fr; }
  .upload-demo { grid-template-columns: 1fr; }
  .ud-left { border-right: none; border-bottom: 1px solid var(--border-soft); }
  .test-feature { grid-column: auto; }

  /* Unpin cinematic scenes on tablet/mobile — show the full story inline */
  .scene { height: auto !important; }
  .pin { position: static; height: auto; min-height: 0; overflow: visible; padding-block: clamp(56px, 8vw, 88px); }
  .xf-grid, .how2-grid, .exp-grid { grid-template-columns: 1fr; gap: 36px; }
  .xf-steps li { opacity: 1 !important; background: #fff; border-color: var(--primary-100); }
  .xf-paper { transform: none !important; }
  .xf-stamp { opacity: 0.9 !important; transform: rotate(7deg) !important; }
  .xf-scan { display: none; }
  .xf-a .bch { opacity: 1 !important; transform: none !important; }
  .xf-insight { position: static; opacity: 1 !important; transform: none !important; margin-top: 16px; left: auto; right: auto; }
  .how2-demo { min-height: 0; }
  .how2-demo .hp { position: static; opacity: 1 !important; transform: none !important; }
  .how2-demo .hp + .hp { margin-top: 16px; }
  .exp-aside { position: static; }
  .exp-list .flow-step { opacity: 1 !important; transform: none !important; }
  .bloom-track > i.scrub { width: calc(var(--tw, 50) * 1%); }
}
@media (max-width: 760px) {
  .wrap { padding-inline: 20px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav.open .nav-links { display: flex; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; background: #fff; padding: 24px; gap: 20px; box-shadow: var(--shadow-lg); border-bottom: 1px solid var(--border-soft); }
  .nav.open .nav-cta { display: none; }
  .compare { grid-template-columns: 1fr; }
  .rep-stat-row { grid-template-columns: 1fr 1fr; }
  .hero-mascot { width: min(64%, 280px); }
  .chip { padding: 9px 11px; }
  .chip .k { font-size: 14px; }
}
@media (max-width: 480px) {
  .stat-grid, .band-grid { grid-template-columns: 1fr; }
  .band-grid { gap: 28px; }
}

/* ==========================================================================
   CINEMATIC LAYER v2 — intro, chapter rail, scene step controls,
   card focus lightbox, word reveals, magnetic CTAs, amplified motion
   ========================================================================== */

/* ---- amplified scroll reveals (richer resting offsets; transition-based) ---- */
.r            { transform: translateY(56px) scale(0.985); }
.r.r-left     { transform: translateX(-66px); }
.r.r-right    { transform: translateX(66px); }
.r.r-scale    { transform: scale(0.86); }
.r.r-blur     { filter: blur(22px); transform: translateY(30px) scale(0.97); }
.r.in         { transform: none; filter: none; }

/* offset so anchored sections clear the fixed nav */
section[id] { scroll-margin-top: 86px; }

/* ---- Word-by-word headline reveal ---- */
.reveal-words { --rw-base: 0s; }
.reveal-words .wln { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.reveal-words .wln > span { display: inline-block; transform: translateY(118%) rotate(3deg); opacity: 0; transition: transform 0.92s var(--ease-out), opacity 0.7s var(--ease-out); transition-delay: var(--wd, 0s); }
.reveal-words.in .wln > span { transform: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .reveal-words .wln > span { transform: none !important; opacity: 1 !important; transition: none !important; }
}

/* =====================  CHAPTER RAIL  ===================== */
/* Subtle by design: dims to a whisper at rest, gently surfaces on hover. */
.chapter-rail {
  position: fixed; right: 16px; top: 50%; transform: translateY(-50%);
  z-index: 95; display: flex; flex-direction: column; gap: 2px;
  padding: 6px 4px; opacity: 0; pointer-events: none;
  transition: opacity 0.6s var(--ease-out);
}
.chapter-rail.ready { opacity: 0.4; pointer-events: auto; }
.chapter-rail.ready:hover { opacity: 1; }
.crl {
  position: relative; display: flex; align-items: center; justify-content: flex-end;
  gap: 10px; padding: 6px 5px; background: none; color: inherit;
}
.crl-dot {
  width: 6px; height: 6px; border-radius: 50%; flex: none;
  background: var(--gray-300);
  transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), transform 0.4s var(--ease-spring);
}
.crl-label {
  font-family: var(--font-ui); font-weight: 600; font-size: 11px; letter-spacing: 0.01em;
  color: var(--fg-muted); white-space: nowrap; background: none; border: none; box-shadow: none;
  padding: 1px 2px; border-radius: 0;
  opacity: 0; transform: translateX(6px); transform-origin: right center;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), color 0.3s var(--ease-out);
  pointer-events: none;
}
.crl:hover .crl-dot { background: var(--primary-400); transform: scale(1.4); }
.crl:hover .crl-label { opacity: 1; transform: translateX(0); color: var(--primary-700); }
.crl.active .crl-dot { background: var(--primary-500); transform: scale(1.4); }
.crl.active .crl-label { opacity: 1; transform: translateX(0); color: var(--primary-700); }
/* dark-section variant */
.chapter-rail.on-dark .crl-dot { background: rgba(255,255,255,0.35); }
.chapter-rail.on-dark .crl:hover .crl-dot,
.chapter-rail.on-dark .crl.active .crl-dot { background: var(--primary-300); }
.chapter-rail.on-dark .crl-label { color: rgba(255,255,255,0.55); }
.chapter-rail.on-dark .crl:hover .crl-label,
.chapter-rail.on-dark .crl.active .crl-label { color: #fff; }

/* progress spine behind the dots */
.chapter-rail .crl-spine { position: absolute; right: 12px; top: 12px; bottom: 12px; width: 1.5px; background: var(--gray-200); border-radius: 2px; z-index: -1; overflow: hidden; }
.chapter-rail.on-dark .crl-spine { background: rgba(255,255,255,0.12); }
.chapter-rail .crl-spine > i { position: absolute; left: 0; right: 0; top: 0; height: 0; background: linear-gradient(var(--primary-400), var(--secondary-400)); border-radius: 2px; transition: height 0.2s linear; }

@media (max-width: 1100px) { .chapter-rail { display: none; } }

/* =====================  SCENE STEP CONTROLS  ===================== */
.scene-steps {
  position: absolute; left: 50%; bottom: 26px; transform: transl(-50%,0) translateX(-50%);
  z-index: 30; display: flex; align-items: center; gap: 6px;
  transform: translateX(-50%);
  padding: 7px 9px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-soft); box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s var(--ease-out);
}
.scene.pinned .scene-steps { opacity: 1; pointer-events: auto; }
.scene.dark .scene-steps { background: rgba(28,29,31,0.74); border-color: rgba(255,255,255,0.14); }
.ss-arrow {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  color: var(--primary-700); background: var(--primary-50);
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.ss-arrow svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ss-arrow:hover { background: var(--primary-100); transform: scale(1.08); }
.ss-arrow:disabled { opacity: 0.35; cursor: default; transform: none; }
.scene.dark .ss-arrow { color: var(--primary-200); background: rgba(255,255,255,0.08); }
.scene.dark .ss-arrow:hover { background: rgba(255,255,255,0.16); }
.ss-pips { display: flex; align-items: center; gap: 4px; padding-inline: 2px; }
.ss-pip {
  position: relative; height: 34px; min-width: 34px; padding: 0 6px; border-radius: var(--radius-pill);
  font-family: var(--font-ui); font-weight: 700; font-size: 12px; letter-spacing: 0.04em;
  color: var(--fg-muted); display: grid; place-items: center;
  transition: color 0.25s var(--ease-out), background 0.25s var(--ease-out), min-width 0.3s var(--ease-out);
}
.ss-pip:hover { color: var(--primary-700); background: var(--primary-50); }
.scene.dark .ss-pip { color: rgba(255,255,255,0.55); }
.scene.dark .ss-pip:hover { color: #fff; background: rgba(255,255,255,0.1); }
/* active pip per data-step */
.scene[data-step="0"] .ss-pip[data-i="0"],
.scene[data-step="1"] .ss-pip[data-i="1"],
.scene[data-step="2"] .ss-pip[data-i="2"],
.scene[data-step="3"] .ss-pip[data-i="3"],
.scene[data-step="4"] .ss-pip[data-i="4"] {
  color: #fff; background: var(--primary-500); min-width: 52px; box-shadow: var(--shadow-sm);
}
.scene.dark[data-step="0"] .ss-pip[data-i="0"],
.scene.dark[data-step="1"] .ss-pip[data-i="1"],
.scene.dark[data-step="2"] .ss-pip[data-i="2"] { background: var(--primary-400); color: #1B1D1E; }
.ss-label { font-family: var(--font-ui); font-weight: 600; font-size: 11px; color: var(--fg-subtle); letter-spacing: 0.1em; text-transform: uppercase; padding-left: 6px; padding-right: 4px; }
.scene.dark .ss-label { color: rgba(255,255,255,0.45); }
@media (max-width: 1000px) { .scene-steps { display: none; } }

/* =====================  CARD FOCUS LIGHTBOX  ===================== */
.focusable { cursor: zoom-in; position: relative; }
.fo-badge {
  position: absolute; top: 12px; right: 12px; z-index: 5;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--border-soft); box-shadow: var(--shadow-sm); color: var(--primary-700);
  opacity: 0; transform: scale(0.8); pointer-events: none;
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-spring);
}
.fo-badge svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.focusable:hover .fo-badge, .focusable:focus-visible .fo-badge { opacity: 1; transform: scale(1); }
.test-feature .fo-badge, .insight-card .fo-badge { background: #fff; }

.focus-overlay {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  padding: clamp(20px, 5vw, 60px);
  background: rgba(26,20,40,0); backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s var(--ease-out), background 0.4s var(--ease-out), backdrop-filter 0.4s var(--ease-out);
}
.focus-overlay.open { opacity: 1; pointer-events: auto; background: rgba(26,20,40,0.66); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.fo-stage {
  position: relative; width: min(960px, 100%); max-height: 86vh; overflow: auto;
  transform: scale(0.9) translateY(24px); opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.4s var(--ease-out);
  border-radius: var(--radius-2xl);
  -ms-overflow-style: none; scrollbar-width: thin;
}
.focus-overlay.open .fo-stage { transform: none; opacity: 1; }
.fo-stage > * { margin: 0 !important; width: 100% !important; max-width: none !important; box-shadow: var(--shadow-xl) !important; }
.fo-stage .r { opacity: 1 !important; animation: none !important; transform: none !important; }
.fo-stage [data-tilt] { transform: none !important; }
.fo-close, .fo-nav {
  position: fixed; z-index: 310; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.fo-close svg, .fo-nav svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fo-close:hover, .fo-nav:hover { background: rgba(255,255,255,0.24); transform: scale(1.08); }
.fo-close { top: 24px; right: 24px; }
.fo-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.fo-next { right: 24px; top: 50%; transform: translateY(-50%); }
.fo-prev:hover { transform: translateY(-50%) scale(1.08); }
.fo-next:hover { transform: translateY(-50%) scale(1.08); }
.fo-nav.hidden { display: none; }
.fo-hint {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  font-family: var(--font-ui); font-weight: 600; font-size: 12px; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.7); display: flex; gap: 14px; align-items: center;
}
.fo-hint kbd { font-family: var(--font-ui); font-size: 11px; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.2); border-radius: 6px; padding: 2px 7px; }
html.fo-lock { overflow: hidden; }
@media (max-width: 760px) {
  .fo-prev { left: 12px; } .fo-next { right: 12px; } .fo-close { top: 14px; right: 14px; }
  .fo-nav, .fo-close { width: 42px; height: 42px; }
}

/* =====================  CINEMATIC INTRO  ===================== */
.intro {
  position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(120% 90% at 18% 8%, #F7D9EE 0%, transparent 55%),
    radial-gradient(120% 90% at 88% 26%, #FADCA8 0%, transparent 52%),
    radial-gradient(120% 100% at 60% 100%, var(--primary-100) 0%, transparent 60%),
    #fff;
  transition: transform 0.9s var(--ease-out), opacity 0.7s var(--ease-out);
}
.intro.lift { transform: translateY(-101%); opacity: 0.6; }
.intro-inner { display: grid; place-items: center; gap: 22px; text-align: center; transform: translateY(0); transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out); }
.intro.lift .intro-inner { opacity: 0; transform: translateY(-30px); }
.intro-mascot { width: clamp(120px, 18vw, 184px); filter: drop-shadow(0 24px 40px rgba(75,44,135,0.28)); animation: introPop 0.9s var(--ease-spring) both; }
.intro-logo { height: 34px; width: auto; opacity: 0; animation: introFade 0.7s var(--ease-out) 0.35s both; }
.intro-tag {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(15px, 1.7vw, 19px);
  letter-spacing: 0.02em; color: var(--primary-800); opacity: 0;
  animation: introFade 0.7s var(--ease-out) 0.6s both;
}
@keyframes introPop { from { opacity: 0; transform: translateY(20px) scale(0.7); } to { opacity: 1; transform: none; } }
@keyframes introFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.intro-skip {
  position: absolute; bottom: 26px; right: 28px; font-family: var(--font-ui); font-weight: 600;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-subtle);
  display: flex; align-items: center; gap: 7px;
}
.intro-skip:hover { color: var(--primary-700); }
@media (prefers-reduced-motion: reduce) { .intro { display: none !important; } }

/* magnetic CTAs use JS transform; smooth the return */
.magnetic { transition: transform 0.3s var(--ease-out), background var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
