/* ==========================================================================
   everconnected — Framer-style redesign
   Design system: light, vibrant, motion-rich. Brand font: Nunito.
   ========================================================================== */

/* ----- Tokens ----------------------------------------------------------- */
:root {
  color-scheme: light;     /* render as designed; opt out of browser auto/forced dark mode */
  /* brand color */
  --ink: #0f0e3d;          /* deep indigo, headings */
  --ink-soft: #2f2e63;
  --body: #56577a;         /* muted body text */
  --body-2: #767891;
  --blurple: #5765f2;      /* primary */
  --blurple-d: #404bd6;
  --sky: #1cb0f6;
  --green: #46cf7c;
  --pink: #ff7fb5;
  --amber: #ffc24b;
  --lilac: #a99dff;

  --white: #ffffff;
  --bg: #ffffff;
  --cream: #fbfbff;
  --mist: #f3f4fd;         /* blurple-tinted soft surface */
  --mist-2: #eef0fe;
  --line: #ebebfa;
  --line-2: #e3e3f6;

  /* gradients */
  --g-brand: linear-gradient(118deg, #5765f2 0%, #1cb0f6 100%);
  --g-aurora: linear-gradient(118deg, #5765f2 0%, #a99dff 45%, #1cb0f6 100%);
  --g-sunset: linear-gradient(118deg, #ff7fb5 0%, #ffc24b 100%);
  --g-text: linear-gradient(100deg, #5765f2, #b06bff 45%, #1cb0f6);

  /* radius */
  --r-sm: 14px;
  --r: 20px;
  --r-lg: 30px;
  --r-xl: 40px;
  --pill: 999px;

  /* shadow */
  --sh-sm: 0 4px 14px -6px rgba(15, 14, 61, .14);
  --sh: 0 18px 48px -20px rgba(15, 14, 61, .22);
  --sh-lg: 0 40px 90px -30px rgba(15, 14, 61, .30);
  --sh-color: 0 18px 40px -14px rgba(87, 101, 242, .55);

  /* layout */
  --container: 1180px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(64px, 9vw, 116px);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ----- Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  font-size: clamp(1rem, .96rem + .2vw, 1.12rem);
  line-height: 1.7;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--blurple); outline-offset: 3px; border-radius: 6px; }

/* ----- Typography ------------------------------------------------------- */
h1, h2, h3, h4 { color: var(--ink); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; }
.h-display { font-size: clamp(2.6rem, 1.3rem + 5.6vw, 5.1rem); font-weight: 900; letter-spacing: -.035em; line-height: 1.02; }
.h1 { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 3.6rem); font-weight: 900; letter-spacing: -.03em; }
.h2 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.9rem); }
.h3 { font-size: clamp(1.2rem, 1.05rem + .8vw, 1.5rem); }
.lead { font-size: clamp(1.1rem, 1rem + .55vw, 1.4rem); color: var(--body); font-weight: 500; line-height: 1.6; }
.grad-text {
  background: var(--g-text); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: hue 7s linear infinite;
}
@keyframes hue { to { background-position: 200% center; } }
@media (prefers-reduced-motion: reduce) { .grad-text { animation: none; } }

/* ----- Layout ----------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(48px, 7vw, 90px); }
.section--soft { background: var(--cream); }
.section--mist { background: linear-gradient(180deg, var(--mist) 0%, var(--cream) 100%); }
.center { text-align: center; }
.measure { max-width: 720px; }
.center .measure { margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 800; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--blurple-d);
  background: var(--mist-2); border: 1px solid var(--line-2);
  padding: .5em 1em; border-radius: var(--pill);
}
.eyebrow svg { width: 1.1em; height: 1.1em; flex: none; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.center .section-head { margin-inline: auto; }
.section-head .lead { margin-top: 1rem; }
.stack > * + * { margin-top: 1.1rem; }

/* ----- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-weight: 800; font-size: 1.02rem; letter-spacing: -.01em;
  padding: .9em 1.6em; border-radius: var(--pill);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
  will-change: transform; white-space: normal; text-align: center;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-primary { background: var(--g-brand); color: #fff; box-shadow: var(--sh-color); position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 26px 50px -16px rgba(87,101,242,.7); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line-2); box-shadow: var(--sh-sm); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--blurple); color: var(--blurple-d); box-shadow: var(--sh); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-3px); background: var(--ink-soft); box-shadow: var(--sh); }
.btn-lg { padding: 1.05em 2em; font-size: 1.1rem; }
.btn-block { width: 100%; white-space: normal; }

.store-badges { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.store-badges a { transition: transform .3s var(--ease), filter .3s var(--ease); display: block; }
.store-badges img { height: 52px; width: auto; border-radius: 12px; }
.store-badges a:hover { transform: translateY(-3px); filter: drop-shadow(0 12px 18px rgba(15,14,61,.25)); }

/* ----- Header / nav ----------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s;
}
.site-header.scrolled {
  background: rgba(255,255,255,.78); backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -22px rgba(15,14,61,.4);
}
.nav { display: flex; align-items: center; gap: 24px; height: 76px; }
.nav__logo { display: flex; align-items: center; }
.nav__logo img.brandmark { height: 27px; width: auto; display: block; }
@media (max-width: 760px) { .nav__logo img.brandmark { height: 23px; } }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark { width: 38px; height: 38px; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__text b { font-weight: 900; font-size: 1.32rem; letter-spacing: -.035em; color: var(--ink); }
.logo__text i { font-style: normal; font-weight: 800; font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; color: var(--blurple); margin-top: 3px; }
.logo--light .logo__text b { color: #fff; }
.logo--light .logo__text i { color: #b9b4ff; }
.nav__menu { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nav__link {
  position: relative; font-weight: 700; color: var(--ink-soft); font-size: 1rem;
  padding: .55em .85em; border-radius: 12px; transition: color .25s, background .25s;
  display: inline-flex; align-items: center; gap: .35em;
}
.nav__link:hover { color: var(--blurple-d); background: var(--mist); }
.nav__link[aria-current="page"] { color: var(--blurple-d); background: rgba(87,101,242,.12); box-shadow: inset 0 0 0 1.5px rgba(87,101,242,.26); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__cta-mobile { display: none; }
.nav__login { font-weight: 700; color: var(--ink-soft); padding: .55em .6em; transition: color .25s; }
.nav__login:hover { color: var(--blurple-d); }

/* dropdown */
.nav__item--has { position: relative; }
.nav__dd {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px);
  min-width: 230px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r);
  box-shadow: var(--sh); padding: 10px; opacity: 0; visibility: hidden; transition: all .28s var(--ease);
}
.nav__item--has:hover .nav__dd,
.nav__item--has:focus-within .nav__dd { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__dd a { display: flex; flex-direction: column; gap: 2px; padding: 11px 14px; border-radius: 12px; transition: background .2s; }
.nav__dd a:hover { background: var(--mist); }
.nav__dd a b { color: var(--ink); font-weight: 800; }
.nav__dd a span { font-size: .85rem; color: var(--body-2); }
.nav__chev { width: 16px; height: 16px; transition: transform .3s; }
.nav__item--has:hover .nav__chev { transform: rotate(180deg); }

.nav__burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background:#fff; }
.nav__burger span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; transition: .3s var(--ease); }
.nav.open .nav__burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.open .nav__burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ----- Hero shared ------------------------------------------------------ */
.hero { position: relative; padding-top: clamp(120px, 16vh, 180px); padding-bottom: var(--section-y); overflow: clip; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; will-change: transform; }
.blob--1 { width: 560px; height: 560px; background: radial-gradient(circle, #9aa6ff, transparent 70%); top: -180px; right: -120px; }
.blob--2 { width: 480px; height: 480px; background: radial-gradient(circle, #9be8ff, transparent 70%); top: 120px; left: -160px; }
.blob--3 { width: 420px; height: 420px; background: radial-gradient(circle, #ffc6e4, transparent 70%); bottom: -160px; left: 30%; opacity: .5; }
@keyframes float-y { 50% { transform: translateY(-26px); } }
@keyframes float-y2 { 50% { transform: translateY(22px) translateX(10px); } }
.floaty { animation: float-y 7s var(--ease) infinite; }
.floaty-2 { animation: float-y2 9s var(--ease) infinite; }
@media (prefers-reduced-motion: reduce) { .floaty, .floaty-2, .blob { animation: none !important; } }

/* Hero A — split */
.heroA__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.heroA__copy .h-display { margin: .35em 0 .5rem; }
.heroA__copy .lead { max-width: 30ch; }
.heroA__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 1.8rem; }
.heroA__trust { display: flex; align-items: center; gap: 12px; margin-top: 1.6rem; color: var(--body-2); font-weight: 600; font-size: .95rem; }
.avatars { display: flex; }
.avatars span { width: 34px; height: 34px; border-radius: 50%; border: 2.5px solid #fff; margin-left: -10px; box-shadow: var(--sh-sm); }
.avatars span:first-child { margin-left: 0; }
.heroA__art { position: relative; }
.heroA__art > img { width: 100%; filter: drop-shadow(0 30px 50px rgba(15,14,61,.18)); }
.heroA__art .halo { position: absolute; inset: 6% 4%; z-index: -1; background: var(--g-aurora); border-radius: 46% 54% 58% 42%/ 50% 44% 56% 50%; filter: blur(40px); opacity: .35; }
.chip-bubble {
  position: absolute; background: #fff; border: 1px solid var(--line-2); box-shadow: var(--sh);
  border-radius: 16px; padding: 10px 14px; font-weight: 800; color: var(--ink); font-size: .92rem;
  display: flex; align-items: center; gap: 8px;
}
.chip-bubble i { font-style: normal; font-size: 1.1rem; }
.chip-bubble--a { top: 8%; left: -4%; }
.chip-bubble--b { bottom: 14%; right: -6%; }
.chip-bubble--c { top: 46%; right: 2%; }

/* Hero B — centered showcase */
.heroB { text-align: center; }
.heroB .h-display { margin: .5rem auto .7rem; max-width: 16ch; }
.heroB .lead { margin: 0 auto; max-width: 46ch; }
.heroB__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 1.9rem; }
.heroB__showcase {
  margin-top: clamp(40px, 6vw, 72px); position: relative;
  border-radius: var(--r-xl); padding: clamp(14px, 2vw, 22px);
  background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,.3));
  border: 1px solid #fff; box-shadow: var(--sh-lg);
}
.heroB__showcase::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; z-index: -1;
  background: var(--g-aurora); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: .6;
}
.heroB__showcase img { width: 100%; border-radius: calc(var(--r-xl) - 14px); }
.marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); margin-top: 2rem; }
.marquee__track { display: flex; gap: 14px; width: max-content; animation: scroll-x 26s linear infinite; }
.marquee__track .tag { background: #fff; border: 1px solid var(--line-2); color: var(--ink-soft); font-weight: 800; padding: .6em 1.1em; border-radius: var(--pill); box-shadow: var(--sh-sm); }
@keyframes scroll-x { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ----- Stat strip ------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { text-align: center; padding: 22px; }
.stat b { display: block; font-size: clamp(2rem, 1.4rem + 2.2vw, 3.1rem); font-weight: 900; letter-spacing: -.03em;
  background: var(--g-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--body-2); font-weight: 700; }

/* ----- Feature rows (alternating) -------------------------------------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.feature + .feature { margin-top: clamp(64px, 9vw, 120px); }
.feature--rev .feature__media { order: 2; }
.feature__media { position: relative; }
.feature__media img { width: 100%; }
.feature__media .glow { position: absolute; inset: 10%; z-index: -1; border-radius: 50%; filter: blur(50px); opacity: .4; }

/* ----- Video embed (click-to-play YouTube facade) ---------------------- */
.video-embed-wrap { margin: 0; width: 100%; }
.video-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 22px;
  overflow: hidden; background: #0c0b22; box-shadow: var(--sh); }
.video-embed__btn { all: unset; display: block; box-sizing: border-box; width: 100%; height: 100%;
  position: relative; cursor: pointer; }
.video-embed__btn:focus-visible { outline: 3px solid var(--blurple); outline-offset: 3px; }
.video-embed__poster { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s var(--ease); }
.video-embed__btn:hover .video-embed__poster { transform: scale(1.04); }
.video-embed__play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px;
  display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.94);
  color: var(--blurple); box-shadow: 0 14px 36px -10px rgba(0,0,0,.55);
  transition: transform .25s var(--ease), background .25s; }
.video-embed__play svg { width: 30px; height: 30px; margin-left: 4px; }
.video-embed__btn:hover .video-embed__play { transform: scale(1.09); background: #fff; }
/* posters that already include a play glyph (e.g. Container.png): no overlay, soft hover veil */
.video-embed--bare .video-embed__btn::after { content: ""; position: absolute; inset: 0;
  background: rgba(12,11,34,0); transition: background .3s var(--ease); }
.video-embed--bare .video-embed__btn:hover::after { background: rgba(12,11,34,.14); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.video-embed__cap { margin: 14px 2px 0; font-weight: 700; color: var(--ink); font-size: 1.02rem; }
.video-row { display: grid; grid-template-columns: 1fr; gap: clamp(22px, 4vw, 34px);
  max-width: 760px; margin: 34px auto 0; }
.video-row--two { max-width: 1040px; grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .video-row--two { grid-template-columns: 1fr; } }
.feature__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; color: #fff; box-shadow: var(--sh); margin-bottom: 1.1rem; }

/* ----- Bento cards ------------------------------------------------------ */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--sh-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
  position: relative;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sh); border-color: var(--line-2); }
.card__icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-size: 1.5rem; color: #fff; margin-bottom: 1.1rem; box-shadow: var(--sh-sm); }
.card__icon svg, .feature__icon svg { width: 1.12em; height: 1.12em; }   /* glyph centred in the tile (was filling edge-to-edge / clipped by the corners) */
.card h3 { margin-bottom: .5rem; }
.card p { font-size: 1rem; }
.card--span3 { grid-column: span 3; }
.card--span2 { grid-column: span 2; }
.card--span6 { grid-column: span 6; }
.card--feature { background: var(--ink); color: #cfd0ee; display: grid; align-content: center; overflow: hidden; }
.card--feature h3 { color: #fff; }
.card--feature::after { content:""; position:absolute; width: 280px; height: 280px; right:-60px; bottom:-100px; background: var(--g-brand); filter: blur(50px); opacity:.5; }

/* color fills for icons */
.fill-brand { background: var(--g-brand); } .fill-sunset { background: var(--g-sunset); }
.fill-sky { background: linear-gradient(120deg,#1cb0f6,#7ad6ff); } .fill-green { background: linear-gradient(120deg,#46cf7c,#a6f0c2); }
.fill-pink { background: linear-gradient(120deg,#ff7fb5,#ffb3d6); } .fill-lilac { background: linear-gradient(120deg,#a99dff,#cdc6ff); }
.fill-amber { background: linear-gradient(120deg,#ffc24b,#ffe2a1); }

/* ----- Steps ------------------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { background:#fff; border:1px solid var(--line); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--sh-sm); }
.step__n { counter-increment: step; width: 46px; height: 46px; border-radius: 14px; background: var(--mist-2); color: var(--blurple-d);
  font-weight: 900; display: grid; place-items: center; font-size: 1.2rem; margin-bottom: 1rem; }
.step__n::before { content: "0" counter(step); }

/* ----- FAQ -------------------------------------------------------------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 14px; }
.qa { background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.qa[open] { box-shadow: var(--sh); border-color: transparent; }
.qa summary { list-style: none; cursor: pointer; padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-weight: 800; color: var(--ink); font-size: clamp(1.02rem,1rem + .3vw,1.18rem); }
.qa summary::-webkit-details-marker { display: none; }
.qa__plus { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--mist-2); color: var(--blurple-d); display: grid; place-items: center; position: relative; transition: transform .3s var(--ease), background .3s; }
.qa__plus::before, .qa__plus::after { content:""; position:absolute; width: 13px; height: 2.4px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease); }
.qa__plus::after { transform: rotate(90deg); }
.qa[open] .qa__plus { background: var(--g-brand); color: #fff; }
.qa[open] .qa__plus::after { transform: rotate(0); }
.qa__body { padding: 0 26px 24px; color: var(--body); }
.qa__body p { max-width: 64ch; }

/* ----- CTA band --------------------------------------------------------- */
.cta-band { position: relative; border-radius: var(--r-xl); padding: clamp(44px, 7vw, 90px); text-align: center; overflow: hidden;
  background: var(--g-aurora); color: #fff; box-shadow: var(--sh-lg); }
.cta-band::before { content:""; position:absolute; inset:0; background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.35), transparent 40%), radial-gradient(circle at 80% 80%, rgba(255,255,255,.25), transparent 45%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: rgba(255,255,255,.92); margin: 1rem auto 1.8rem; max-width: 46ch; }
.cta-band .btn-ghost { background: #fff; border-color: #fff; color: var(--blurple-d); }
.cta-band .btn-ghost:hover { color: var(--ink); }

/* ----- Footer ----------------------------------------------------------- */
.footer { background: var(--ink); color: #b9bbe4; padding-block: clamp(56px, 8vw, 90px) 32px; position: relative; overflow: hidden; }
.footer::before { content:""; position:absolute; top:-140px; left:50%; transform:translateX(-50%); width:680px; height:300px; background: var(--g-brand); filter: blur(90px); opacity:.25; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 36px; position: relative; }
.footer__brand img { height: 26px; margin-bottom: 1.2rem; }
.footer__brand p { color: #9698ca; max-width: 30ch; }
.footer__social { display: flex; gap: 12px; margin-top: 1.3rem; }
.footer__social a { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.07); display: grid; place-items: center; color: #cfd0f0; transition: .3s var(--ease); }
.footer__social a:hover { background: var(--g-brand); color: #fff; transform: translateY(-3px); }
.footer__social svg { width: 19px; height: 19px; }
.footer__col h4 { color: #fff; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer__col a, .footer__col li { display: block; color: #a6a8d4; padding: .32em 0; transition: color .2s; font-weight: 600; }
.footer__col a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1); color: #8082b4; font-size: .9rem; position: relative; }
.footer__badges { margin: 1.4rem 0 .3rem; }
.footer__badges img { height: 44px; }
.footer__legal-mini { display: flex; gap: 10px; align-items: center; color: #6b6da6; font-size: .9rem; }
.footer__legal-mini a { color: #a6a8d4; padding: 0; }
.footer__legal-mini a:hover { color: #fff; }
@media (max-width: 620px) { .footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; } }

/* ----- Page hero (inner pages) ----------------------------------------- */
.phero { position: relative; padding-top: clamp(120px, 16vh, 170px); padding-bottom: clamp(40px, 6vw, 72px); overflow: clip; }
.phero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.phero--center { text-align: center; }
.phero--center .phero__grid { display: block; max-width: 820px; margin-inline: auto; }
.phero__art img { width: 100%; filter: drop-shadow(0 24px 44px rgba(15,14,61,.16)); }
.prose p { margin-top: 1rem; max-width: 68ch; }
.prose .center & { margin-inline: auto; }

/* tabs (about) */
.subtabs { display: inline-flex; gap: 6px; background: var(--mist); border: 1px solid var(--line-2); padding: 6px; border-radius: var(--pill); }
.subtabs a { padding: .5em 1.2em; border-radius: var(--pill); font-weight: 800; color: var(--ink-soft); transition: .25s; }
.subtabs a[aria-current="page"] { background: #fff; color: var(--blurple-d); box-shadow: var(--sh-sm); }

/* embedded form card */
.form-card { background:#fff; border:1px solid var(--line-2); border-radius: var(--r-lg); padding: clamp(28px,4vw,48px); box-shadow: var(--sh); }
.checklist { display: grid; gap: 14px; margin: 1.4rem 0; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); font-weight: 600; }
.checklist svg { flex: none; width: 24px; height: 24px; color: var(--green); margin-top: 2px; }

/* ----- Research / evidence (science page) ------------------------------ */
.pillar { border-top: 1px solid var(--line); }
.pillar__head { display: flex; align-items: flex-start; gap: 18px; max-width: 900px; margin-bottom: 30px; }
.pillar__num { flex: none; font-weight: 900; font-size: 1.05rem; color: var(--blurple-d); background: var(--mist-2); border: 1px solid var(--line-2); width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; }
.pillar__head .card__icon { flex: none; margin: 0; }
.pillar__intro .eyebrow { margin-bottom: 10px; }
.pillar__intro h2 { margin-bottom: .4rem; }
.studies { display: grid; gap: 16px; }
.study { background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); padding: clamp(20px, 2.4vw, 28px); box-shadow: var(--sh-sm); transition: box-shadow .3s var(--ease), border-color .3s, transform .3s var(--ease); }
.study:hover { box-shadow: var(--sh); transform: translateY(-2px); }
.study__cite { color: var(--ink); font-size: 1.02rem; line-height: 1.55; }
.study__cite b { font-weight: 800; }
.study__cite i { color: var(--body); font-style: italic; }
.study__row { display: flex; gap: 12px; margin-top: 13px; font-size: .98rem; line-height: 1.55; align-items: flex-start; }
.study__tag { flex: none; font-weight: 800; font-size: .64rem; letter-spacing: .05em; text-transform: uppercase; color: var(--blurple-d); background: var(--mist-2); border-radius: var(--pill); padding: .4em .8em; margin-top: 3px; min-width: 92px; text-align: center; }
.study__tag--alt { color: #a85800; background: #fff3df; }
.study__access { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; font-weight: 800; color: var(--blurple-d); transition: gap .25s var(--ease); }
.study__access:hover { gap: 14px; }
.study__access svg { width: 16px; height: 16px; }
.study__access--none { color: var(--body-2); cursor: default; }
.pill { font-size: .64rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: .4em .7em; border-radius: var(--pill); white-space: nowrap; }
.pill--open { background: linear-gradient(120deg, #46cf7c, #a6f0c2); color: #0b5e2e; }
.pill--doi { background: var(--mist-2); color: var(--blurple-d); border: 1px solid var(--line-2); }
@media (max-width: 620px) {
  .pillar__head { flex-wrap: wrap; gap: 12px; }
  .study__row { flex-direction: column; gap: 6px; }
  .study__tag { min-width: 0; }
}

/* hero A/B switcher (review aid) */
.heroswitch { position: fixed; z-index: 200; left: 50%; bottom: 22px; transform: translateX(-50%);
  background: rgba(15,14,61,.9); backdrop-filter: blur(10px); border-radius: var(--pill); padding: 6px; display: flex; gap: 4px; box-shadow: var(--sh-lg); }
.heroswitch a { color: #c9caf2; font-weight: 800; padding: .5em 1.1em; border-radius: var(--pill); font-size: .9rem; transition: .25s; }
.heroswitch a[aria-current="page"] { background: var(--g-brand); color: #fff; }
.heroswitch b { color:#6b6da6; font-size:.75rem; padding:.5em .4em; letter-spacing:.05em; }

/* ----- Reveal animation ------------------------------------------------- */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
/* Above-the-fold heroes show instantly (no entrance flash); scroll-reveal is for below the fold */
html.js .hero .reveal, html.js .phero .reveal,
html.js .hero [data-stagger] > *, html.js .phero [data-stagger] > * { opacity: 1; transform: none; }
html.js [data-stagger] > * { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js [data-stagger].in > * { opacity: 1; transform: none; }
[data-stagger].in > *:nth-child(2){transition-delay:.08s}
[data-stagger].in > *:nth-child(3){transition-delay:.16s}
[data-stagger].in > *:nth-child(4){transition-delay:.24s}
[data-stagger].in > *:nth-child(5){transition-delay:.32s}
[data-stagger].in > *:nth-child(6){transition-delay:.40s}
@media (prefers-reduced-motion: reduce) {
  .reveal, [data-stagger] > * { opacity: 1 !important; transform: none !important; }
}

/* demo hero — original scene (characters baked into landscape), full-bleed & scales on wide screens */
.hero.hero--scene { position: relative; overflow: hidden; min-height: clamp(560px, 46vw, 720px);
  display: flex; align-items: center; background: none; }
.hero--scene::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 1240px; z-index: 0; pointer-events: none;
  background-image: url("/assets/img/hero-scene-full.svg"); background-repeat: no-repeat;
  background-size: min(56%, 720px) auto;
  background-position: right center; }
.hero--scene .container { position: relative; z-index: 2; width: 100%; }
.hero--scene .heroA__copy { max-width: 540px; }
@media (max-width: 920px) {
  .hero.hero--scene { display: block; min-height: 0; padding-top: 116px; padding-bottom: 86vw; }
  .hero--scene::after { background-size: 100% auto; background-position: center bottom; -webkit-mask-image: none; mask-image: none; }
  .hero--scene .heroA__copy { max-width: 100%; }
}

/* ----- Refinements / polish -------------------------------------------- */
/* soft brand wash + faint grain give the flat light bg some depth */
.hero, .phero { background: radial-gradient(130% 90% at 50% -10%, rgba(87,101,242,.085), transparent 55%); }
.hero-bg::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* gradient hairline + colored glow on card hover */
.card:not(.card--feature)::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: var(--g-aurora); opacity: 0; transition: opacity .4s var(--ease);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.card:not(.card--feature):hover::after { opacity: .6; }
.card:not(.card--feature):hover { box-shadow: var(--sh), 0 16px 38px -22px rgba(87,101,242,.55); }
/* footer gradient accent line */
.footer::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--g-aurora); }

/* ----- Legal / policy pages -------------------------------------------- */
.legal-meta { color: var(--body-2); font-size: .92rem; font-weight: 600; margin-top: 1rem !important; }
.legal-prose { text-align: left; }
.legal-prose h2 { margin-top: 2.1rem; color: var(--ink); }
.legal-prose h2:first-child { margin-top: 0; }
.legal-prose p, .legal-prose li { color: var(--body); line-height: 1.7; }
.legal-prose a { color: var(--blurple); font-weight: 700; }
.legal-prose a:hover { text-decoration: underline; }
.legal-list { margin: 0; padding-left: 1.25em; }
.legal-list > * + * { margin-top: .5rem; }
/* ----- SEO guides / articles ------------------------------------------- */
.guide-quote { margin: 1.7rem 0; padding: .35rem 0 .35rem 1.4rem; border-left: 3px solid var(--blurple); font-size: 1.15rem; line-height: 1.55; color: var(--ink-soft); font-style: italic; }
.guide-quote p { margin: 0; color: var(--ink-soft) !important; }
.guide-quote cite { display: block; margin-top: .55rem; font-style: normal; font-weight: 700; font-size: .82rem; letter-spacing: .02em; color: var(--body-2); }
.guide-faq { border-top: 1px solid var(--line-2); }
.guide-faq__item { border-bottom: 1px solid var(--line-2); }
.guide-faq__q { cursor: pointer; list-style: none; padding: 1.15rem 2.2rem 1.15rem 0; font-weight: 800; color: var(--ink); position: relative; }
.guide-faq__q::-webkit-details-marker { display: none; }
.guide-faq__q::after { content: "+"; position: absolute; right: .1rem; top: .95rem; font-size: 1.5rem; line-height: 1; color: var(--blurple); }
.guide-faq__item[open] .guide-faq__q::after { content: "\2013"; }
.guide-faq__a { padding: 0 0 1.25rem; }
.guide-faq__a p { margin: 0; color: var(--body); line-height: 1.7; }
.related { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.related__card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: var(--r); font-weight: 700; color: var(--ink); background: #fff; transition: .25s var(--ease); }
.related__card:hover { border-color: transparent; box-shadow: var(--sh); transform: translateY(-3px); color: var(--blurple-d); }
.related__card svg { width: 18px; height: 18px; flex: none; }
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.guide-card { display: flex; flex-direction: column; gap: .55rem; padding: 28px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; transition: .3s var(--ease); }
.guide-card:hover { box-shadow: var(--sh); transform: translateY(-4px); border-color: transparent; }
.guide-card h3 { margin: .1rem 0; }
.guide-card p { color: var(--body); line-height: 1.6; margin: 0; }
.guide-card .eyebrow { margin: 0; }
.guide-card__more { margin-top: auto; color: var(--blurple-d); font-weight: 800; display: inline-flex; align-items: center; gap: .4rem; }
.guide-card__more svg { width: 18px; height: 18px; }
.heroA__trust--proof { text-decoration: none; color: var(--body); font-weight: 600; }
.heroA__trust--proof:hover { color: var(--blurple-d); }
.heroA__trust--proof b { color: var(--ink); }
.heroA__trust .trust-ic { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--mist-2); color: var(--blurple); margin-right: 11px; }
.heroA__trust .trust-ic svg { width: 19px; height: 19px; }
@media (max-width: 600px){ .related, .guide-grid { grid-template-columns: 1fr; } }

/* ----- Theme toggle ----------------------------------------------------- */
.theme-toggle { width: 42px; height: 42px; flex: none; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; display: grid; place-items: center; color: var(--ink); transition: background .25s var(--ease), color .25s, border-color .25s, transform .25s var(--ease); }
.theme-toggle:hover { background: var(--mist); transform: translateY(-2px); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle__sun { display: none; }
:root[data-theme="dark"] .theme-toggle__moon { display: none; }
:root[data-theme="dark"] .theme-toggle__sun { display: block; }
/* header logo swaps to the light wordmark in dark mode */
.nav__logo img.brandmark--light { display: none; }
:root[data-theme="dark"] .nav__logo img.brandmark--dark { display: none; }
:root[data-theme="dark"] .nav__logo img.brandmark--light { display: block; }

/* ----- Dark theme ------------------------------------------------------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f2f2fb; --ink-soft: #cccdf0; --body: #abadd6; --body-2: #8e90ba;
  --bg: #0a0918; --cream: #100f24; --mist: #15142d; --mist-2: #1e1d3d;
  --line: rgba(255,255,255,.10); --line-2: rgba(255,255,255,.16);
  --sh-sm: 0 4px 14px -6px rgba(0,0,0,.55);
  --sh: 0 18px 48px -22px rgba(0,0,0,.70);
  --sh-lg: 0 40px 90px -34px rgba(0,0,0,.85);
}
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .step,
:root[data-theme="dark"] .qa,
:root[data-theme="dark"] .form-card,
:root[data-theme="dark"] .study,
:root[data-theme="dark"] .related__card,
:root[data-theme="dark"] .guide-card,
:root[data-theme="dark"] .marquee__track .tag,
:root[data-theme="dark"] .btn-ghost,
:root[data-theme="dark"] .nav__dd,
:root[data-theme="dark"] .nav__burger,
:root[data-theme="dark"] .nav__menu.show,
:root[data-theme="dark"] .subtabs a[aria-current="page"] { background: #16152e; }
:root[data-theme="dark"] .cta-band .btn-ghost { background: #fff; border-color: #fff; color: var(--blurple-d); }
:root[data-theme="dark"] .site-header { background: rgba(10,9,24,.74); border-bottom: 1px solid rgba(255,255,255,.06); }
:root[data-theme="dark"] .footer { background: #070613; }
:root[data-theme="dark"] .card--feature { background: #1b1a38; color: #cfd0ee; }
:root[data-theme="dark"] .btn-dark { background: var(--blurple); color: #fff; }
:root[data-theme="dark"] .btn-dark:hover { background: var(--blurple-d); }
:root[data-theme="dark"] .eyebrow,
:root[data-theme="dark"] .qa__plus,
:root[data-theme="dark"] .step__n,
:root[data-theme="dark"] .nav__link:hover,
:root[data-theme="dark"] .nav__link[aria-current="page"],
:root[data-theme="dark"] .guide-card__more,
:root[data-theme="dark"] .subtabs a[aria-current="page"] { color: #9aa6ff; }
:root[data-theme="dark"] .study__tag--alt { background: #3a2a12; color: #ffce8a; }

/* dark mode: melt the hero scene into the dark canvas instead of a hard cut */
:root[data-theme="dark"] .hero--scene { background: radial-gradient(120% 120% at 78% 34%, rgba(87,101,242,.16), transparent 58%); }
:root[data-theme="dark"] .hero--scene::after {
  filter: saturate(.9) brightness(.9);
  -webkit-mask-image:
    linear-gradient(90deg, transparent 28%, #000 56%),
    linear-gradient(0deg, transparent 1%, #000 26%);
  mask-image:
    linear-gradient(90deg, transparent 28%, #000 56%),
    linear-gradient(0deg, transparent 1%, #000 26%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
@media (max-width: 920px) {
  :root[data-theme="dark"] .hero--scene::after {
    -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 22%, #000 88%, transparent 100%);
    mask-image: linear-gradient(0deg, transparent 0%, #000 22%, #000 88%, transparent 100%);
  }
}

/* dark mode: soulie illustrations are black line-art on transparent, which goes
   muddy/invisible on the dark canvas — sit them on a clean light plate */
:root[data-theme="dark"] .feature__media > img,
:root[data-theme="dark"] .phero__art img {
  background: #f4f4fb;
  border-radius: 26px;
  padding: clamp(16px, 2.4vw, 30px);
  box-shadow: 0 22px 52px -26px rgba(0,0,0,.7);
}

/* ----- Responsive ------------------------------------------------------- */
@media (max-width: 980px) {
  .heroA__grid, .feature, .phero__grid { grid-template-columns: 1fr; }
  .feature--rev .feature__media { order: 0; }
  .feature__media { max-width: 520px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card--span3, .card--span2, .card--span6 { grid-column: span 2; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav__menu, .nav__login { display: none; }
  .nav__actions .btn-primary { display: none; }
  .nav__burger { display: block; }
  .nav__menu.show {
    display: flex; flex-direction: column; align-items: stretch; gap: 6px;
    position: absolute; top: 76px; left: var(--gutter); right: var(--gutter);
    background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); padding: 14px; box-shadow: var(--sh-lg); margin: 0;
  }
  .nav__menu.show .nav__link { font-size: 1.05rem; padding: .7em .9em; }
  .nav__menu.show .nav__cta-mobile { display: block; margin-top: 8px; }
  .nav__dd { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 2px 0 2px 14px; min-width: 0; margin-left: 4px; border-left: 2px solid var(--line-2); }
  .nav__item--has:hover .nav__dd,
  .nav__item--has:focus-within .nav__dd { transform: none; left: auto; }
  .nav__item--has .nav__chev { display: none; }
  .stats { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .card--span3, .card--span2, .card--span6 { grid-column: span 1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .chip-bubble--a { left: 0; } .chip-bubble--b { right: 0; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 26px 20px; }
  .footer__col h4 { margin-bottom: .7rem; }
  .footer__col a, .footer__col li { padding: .26em 0; }
  .store-badges img { height: 44px; }
}


/* brand domain tag + beta badge next to the wordmark */
.brand-meta { display: inline-flex; align-items: center; gap: 7px; margin-left: 10px; padding-left: 11px; border-left: 1px solid var(--line-2); }
.brand-meta__dom { font-size: 13px; font-weight: 700; color: var(--body); letter-spacing: .005em; }
.brand-meta__beta { font-size: 9.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #fff; background: linear-gradient(118deg, #5765f2, #8a7bf3); border-radius: 999px; padding: 3px 7px; line-height: 1; }
@media (max-width: 760px) { .brand-meta { display: none; } }
