/* =========================================================
   Tender Trackers — Animated landing page
   Libraries: GSAP + ScrollTrigger + SplitText, Lenis, Lucide
   ========================================================= */
:root {
  --ink: #0a1230;
  --ink-2: #111a3d;
  --ink-3: #1a2551;
  --cream: #f6f2ea;
  --cream-2: #ede6d9;
  --paper: #fffdf9;
  --text: #4f525c;
  --muted: #8a8d96;
  --line: #e4ddd0;
  --line-dark: rgba(255,255,255,.09);

  --gold: #d4a853;
  --gold-2: #f0d28c;
  --gold-soft: #f5ecd7;
  --gold-deep: #94681a;
  --gold-grad: linear-gradient(135deg, #b8862f, #e6c272 45%, #c9973f);
  --aveno: #ff5b1f;
  --aveno-2: #ff8a3d;
  --blue: #1f3a8f;
  --blue-soft: #e6eaff;
  --green: #14a86a;
  --amber: #e98a00;
  --red: #e5483b;

  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --radius: 22px;
  --wrap: 1240px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  font-family: var(--body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, h5 { font-family: var(--display); color: var(--ink); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; }
h2 { font-size: clamp(2.2rem, 5vw, 4.2rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
em { font-style: normal; color: var(--gold-deep); }
.hero em, .pcard em, .bx--big em { color: var(--gold); }
.aveno em { color: var(--aveno); }
svg.lucide { width: 1.1em; height: 1.1em; stroke-width: 2; flex-shrink: 0; }
::selection { background: var(--gold); color: var(--ink); }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.muted { opacity: .65; }

/* ---------- Tags & chips ---------- */
.tag { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 600; letter-spacing: .02em; padding: .42rem .9rem; border-radius: 99px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); }
.tag--dark { background: rgba(255,255,255,.06); border-color: var(--line-dark); color: #e9e6df; }
.tag--light { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.25); color: #fff; }
.live { width: 8px; height: 8px; border-radius: 50%; background: #2bd47d; box-shadow: 0 0 0 0 rgba(43,212,125,.6); animation: live 2s infinite; display: inline-block; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(43,212,125,0); } 100% { box-shadow: 0 0 0 0 rgba(43,212,125,0); } }
.chip { font-size: .72rem; font-weight: 700; padding: .3rem .65rem; border-radius: 99px; white-space: nowrap; }
.chip--green { background: #e3f6ec; color: var(--green); }
.chip--amber { background: #fff1da; color: var(--amber); }
.chip--blue { background: var(--blue-soft); color: var(--blue); }
.chip--red { background: #fde6e3; color: var(--red); }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; font-weight: 600; font-size: .95rem; padding: .85rem 1.45rem; border-radius: 99px; border: 1px solid transparent; overflow: hidden; isolation: isolate; transition: color .35s var(--ease), border-color .35s; white-space: nowrap; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: translateY(101%); transition: transform .45s var(--ease); }
.btn:hover::before { transform: translateY(0); }
.btn--sm { padding: .6rem 1.1rem; font-size: .86rem; }
.btn--lg { padding: 1.05rem 1.75rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--gold { background: var(--gold-grad); color: var(--ink); }
.btn--gold:hover { color: #fff; }
.btn--gold::before { background: var(--ink); }
.btn--glass { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #fff; backdrop-filter: blur(8px); }
.btn--glass::before { background: #fff; }
.btn--glass:hover { color: var(--ink); }
.btn--white { background: #fff; color: var(--ink); }
.btn--white::before { background: var(--ink); }
.btn--white:hover { color: #fff; }

/* ---------- Preloader ---------- */
.loader { position: fixed; inset: 0; z-index: 1000; background: var(--ink); color: #fff; display: grid; place-items: center; animation: loaderFallback .01s 6s forwards; }
@keyframes loaderFallback { to { opacity: 0; visibility: hidden; } }
.loader__inner { display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.loader__brand { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 6vw, 4rem); letter-spacing: -.04em; overflow: hidden; }
.loader__brand span { color: var(--gold); }
.loader__count { font-family: var(--display); font-size: 1rem; color: #8b8f99; font-variant-numeric: tabular-nums; }
.loader__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.08); }
.loader__bar i { display: block; height: 100%; width: 0; background: var(--gold); }

/* ---------- Cursor & progress ---------- */
.cursor, .cursor-dot { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 999; border-radius: 50%; opacity: 0; mix-blend-mode: difference; }
.cursor { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1.5px solid #fff; transition: width .3s, height .3s, margin .3s, background .3s; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; }
.cursor.is-hover { width: 70px; height: 70px; margin: -35px 0 0 -35px; background: #fff; }
.has-cursor .cursor, .has-cursor .cursor-dot { opacity: 1; }
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); z-index: 120; }

/* ---------- Header ---------- */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 1.1rem 0; transition: transform .5s var(--ease), background .4s, color .4s, padding .4s; color: #fff; }
.header__inner { display: flex; align-items: center; justify-content: space-between; }
.header.is-light { color: var(--ink); background: rgba(246,242,234,.82); backdrop-filter: blur(14px); padding: .75rem 0; border-bottom: 1px solid var(--line); }
.header.is-hidden { transform: translateY(-110%); }
.logo { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 600; font-size: 1.25rem; letter-spacing: -.03em; }
.logo__text b { color: var(--gold); font-weight: 700; }
.header.is-light .logo__text b { color: var(--gold-deep); }
.logo__mark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--gold); color: #fff; font-size: 1.1rem; }
.logo__mark.sm { width: 26px; height: 26px; border-radius: 8px; font-size: .8rem; }
.header__right { display: flex; align-items: center; gap: 1.2rem; }
.header__status { display: inline-flex; align-items: center; gap: .55rem; font-size: .85rem; font-weight: 500; opacity: .85; }

/* ---------- Pill nav (bottom) ---------- */
.pill-nav { position: fixed; left: 50%; bottom: 1.4rem; transform: translateX(-50%); z-index: 110; display: flex; align-items: center; gap: .3rem; padding: .4rem; border-radius: 99px; background: rgba(18,20,27,.86); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.08); box-shadow: 0 20px 40px -12px rgba(0,0,0,.45); color: #d9d6cf; }
.pill-nav__logo { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.07); color: var(--gold); }
.pill-nav__links { display: flex; }
.pill-nav__links a { font-size: .86rem; font-weight: 500; padding: .55rem .9rem; border-radius: 99px; transition: background .25s, color .25s; }
.pill-nav__links a:hover, .pill-nav__links a.is-active { background: rgba(255,255,255,.09); color: #fff; }
.pill-nav__cta { display: inline-flex; align-items: center; gap: .35rem; background: var(--gold-grad); color: var(--ink); font-weight: 600; font-size: .86rem; padding: .62rem 1.05rem; border-radius: 99px; transition: background .3s; }
.pill-nav__cta:hover { background: var(--gold-2); }
.pill-nav__menu { display: none; width: 40px; height: 40px; border-radius: 50%; place-items: center; color: #fff; }
.menu { position: fixed; inset: 0; z-index: 105; background: var(--ink); display: flex; flex-direction: column; justify-content: center; padding: 2rem; gap: .4rem; clip-path: circle(0% at 50% 100%); transition: clip-path .7s var(--ease); }
.menu.is-open { clip-path: circle(150% at 50% 100%); }
.menu a { font-family: var(--display); font-size: 2.6rem; font-weight: 600; color: #fff; letter-spacing: -.03em; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: #c9c6be; padding: 10rem 0 0; overflow: hidden; }
.hero__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 80%); -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 80%); }
.hero__glow { position: absolute; width: 640px; height: 640px; left: 0; top: 0; border-radius: 50%; background: radial-gradient(circle, rgba(212,168,83,.18), transparent 60%); pointer-events: none; transform: translate(-50%, -50%); opacity: 0; transition: opacity .6s; }
.hero:hover .hero__glow { opacity: 1; }
.hero__orb { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.hero__orb--1 { width: 520px; height: 520px; background: rgba(212,168,83,.28); top: -160px; right: -120px; animation: orb 14s ease-in-out infinite; }
.hero__orb--2 { width: 460px; height: 460px; background: rgba(61,90,254,.22); top: 280px; left: -200px; animation: orb 18s ease-in-out infinite reverse; }
@keyframes orb { 50% { transform: translate(60px, 50px) scale(1.12); } }
.hero__content { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero__title { color: #fff; font-size: clamp(2.8rem, 8vw, 7rem); line-height: .95; letter-spacing: -.05em; margin: 1.6rem 0 1.6rem; font-weight: 700; }
.hero__title .line { display: block; }
.hero__sub { max-width: 40rem; font-size: clamp(1rem, 1.4vw, 1.15rem); color: #a7a59f; }
.hero__sub b { color: #fff; font-weight: 600; }
.hero__ctas { display: flex; gap: .8rem; margin-top: 2.2rem; flex-wrap: wrap; justify-content: center; }

.hero__stage { position: relative; margin-top: 5rem; perspective: 1400px; padding-bottom: 6rem; }
.hero__stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(transparent, var(--ink)); pointer-events: none; }
.app { position: relative; max-width: 1080px; margin-inline: auto; background: #fff; border-radius: 20px; box-shadow: 0 60px 120px -30px rgba(212,168,83,.35), 0 30px 60px -20px rgba(0,0,0,.6); transform-origin: 50% 0; color: var(--text); }
.app__bar { display: flex; align-items: center; gap: 7px; padding: .8rem 1rem; border-bottom: 1px solid #eee9df; }
.app__bar > i { width: 11px; height: 11px; border-radius: 50%; background: #ff6159; }
.app__bar > i:nth-child(2) { background: #ffbd2e; } .app__bar > i:nth-child(3) { background: #28c941; }
.app__url { margin: 0 auto; font-size: .76rem; color: var(--muted); background: #f5f2ec; padding: .3rem 1.4rem; border-radius: 8px; }
.app__body { display: grid; grid-template-columns: 200px 1fr; min-height: 420px; }
.app__side { border-right: 1px solid #eee9df; padding: 1.1rem .8rem; display: flex; flex-direction: column; gap: .2rem; background: #fcfaf6; border-bottom-left-radius: 20px; }
.app__brand { display: flex; align-items: center; gap: .5rem; font-family: var(--display); font-weight: 700; color: var(--ink); margin: 0 .5rem 1rem; }
.app__side a { display: flex; align-items: center; gap: .6rem; font-size: .85rem; font-weight: 500; padding: .55rem .7rem; border-radius: 10px; color: #6f7280; }
.app__side a.active { background: var(--gold-soft); color: var(--gold-deep); font-weight: 600; }
.app__main { padding: 1.4rem; }
.app__head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.1rem; }
.app__head small { color: var(--muted); font-size: .8rem; }
.app__head h4 { font-size: 1.3rem; letter-spacing: -.02em; }
.app__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin-bottom: 1.1rem; }
.stat { border: 1px solid #eee9df; border-radius: 14px; padding: .8rem 1rem; }
.stat small { font-size: .74rem; color: var(--muted); display: block; }
.stat b { font-family: var(--display); font-size: 1.7rem; color: var(--ink); letter-spacing: -.03em; }
.stat svg { width: 100%; height: 38px; margin-top: .2rem; }
.spark { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.app__rows, .panel__list { display: grid; gap: .6rem; }
.row { display: flex; align-items: center; gap: .85rem; padding: .75rem .9rem; border: 1px solid #eee9df; border-radius: 14px; background: #fff; min-width: 0; }
.row > div { flex: 1; min-width: 0; }
.row b { display: block; font-size: .9rem; color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row small { font-size: .76rem; color: var(--muted); }
.row__ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; }
.b { background: var(--blue-soft); color: var(--blue); } .g { background: #e3f6ec; color: var(--green); }
.p { background: #efe9ff; color: #7048e8; } .o { background: var(--gold-soft); color: var(--gold-deep); } .r { background: #fde6e3; color: var(--red); }

.float-card { position: absolute; display: flex; align-items: center; gap: .75rem; background: #fff; padding: .8rem 1rem; border-radius: 16px; box-shadow: 0 24px 50px -16px rgba(0,0,0,.35); border: 1px solid #eee9df; }
.float-card b { display: block; font-size: .85rem; color: var(--ink); }
.float-card small { font-size: .74rem; color: var(--muted); }
.float-card--a { top: 70px; left: -60px; }
.float-card--b { bottom: 50px; right: -60px; }
.fc__ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; }

/* ---------- Marquee ---------- */
.marquee { background: var(--gold-grad); color: var(--ink); padding: 1.3rem 0; overflow: hidden; transform: rotate(-1.5deg); margin: -1.4rem -2% 0; position: relative; z-index: 3; }
.marquee__track { display: flex; width: max-content; }
.marquee__group { display: flex; align-items: center; gap: 2rem; padding-right: 2rem; }
.marquee span { font-family: var(--display); font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 600; letter-spacing: -.03em; white-space: nowrap; }
.marquee i { font-style: normal; opacity: .7; }

/* ---------- Statement ---------- */
.statement { padding: 9rem 0 7rem; }
.statement__text { font-family: var(--display); font-size: clamp(1.9rem, 4.2vw, 3.6rem); line-height: 1.1; letter-spacing: -.035em; color: var(--ink); font-weight: 600; margin-top: 1.6rem; max-width: 22ch; max-width: 1100px; }
.statement__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 5rem; border-top: 1px solid var(--line); }
.statement__stats div { padding-top: 1.6rem; }
.statement__stats b { display: block; font-family: var(--display); font-size: clamp(2.2rem, 4vw, 3.4rem); color: var(--ink); letter-spacing: -.04em; line-height: 1; }
.statement__stats span { font-size: .92rem; }

/* ---------- Section head ---------- */
.sec-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.2rem; margin-bottom: 4rem; }
.sec-head--left { text-align: left; align-items: flex-start; }
.sec-head p a { color: var(--gold-deep); font-weight: 600; }

/* ---------- Products: stacking cards ---------- */
.products { padding: 4rem 0 6rem; }
.stack { display: grid; gap: 30vh; padding-bottom: 4rem; }
.pcard { position: sticky; top: 6.5rem; display: grid; grid-template-columns: 1.05fr 1fr; gap: 2rem; padding: 3.2rem; border-radius: 32px; min-height: 560px; color: rgba(255,255,255,.82); overflow: hidden; transform-origin: 50% 0; box-shadow: 0 -10px 40px -20px rgba(0,0,0,.25); }
.pcard--tt { background: radial-gradient(600px 400px at 100% 0%, rgba(255,255,255,.12), transparent 60%), linear-gradient(135deg, #0b1540, #15296b 55%, #1f3a8f); border: 1px solid rgba(212,168,83,.3); }
.pcard--tt .ticks svg { background: rgba(212,168,83,.25); color: var(--gold-2); }
.pcard--tt .pcard__icon { background: rgba(212,168,83,.18); color: var(--gold); }
.pcard--tt .radar__ring { border-color: rgba(212,168,83,.35); }
.pcard--tt .radar__sweep { background: conic-gradient(from 0deg, rgba(212,168,83,.45), transparent 25%); }
.pcard--tt .radar__blip { background: var(--gold-2); }
.pcard--av { background: radial-gradient(600px 400px at 100% 0%, rgba(255,255,255,.14), transparent 60%), linear-gradient(135deg, #ff4d14, #ff5b1f 50%, #ff8a3d); top: 8rem; }
.pcard h3 { color: #fff; font-size: clamp(2.2rem, 4vw, 3.6rem); margin-top: 1.8rem; }
.pcard__top { display: flex; align-items: center; justify-content: space-between; }
.pcard__icon { width: 58px; height: 58px; border-radius: 16px; background: rgba(255,255,255,.16); display: grid; place-items: center; color: #fff; font-size: 1.5rem; }
.pcard__sub { font-weight: 600; color: #fff; margin: .5rem 0 1rem; font-size: 1.05rem; }
.ticks { list-style: none; display: grid; gap: .6rem; margin: 1.6rem 0 2rem; }
.ticks li { display: flex; align-items: center; gap: .65rem; font-weight: 500; color: #fff; }
.ticks svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: rgba(255,255,255,.2); }
.pcard__art { display: grid; place-items: center; position: relative; }

.radar { position: relative; width: min(100%, 400px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.08), transparent 70%); }
.radar__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); }
.radar__ring:nth-child(2) { inset: 17%; } .radar__ring:nth-child(3) { inset: 34%; }
.radar__sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(255,255,255,.35), transparent 25%); animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.radar__blip { position: absolute; left: var(--x); top: var(--y); width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: blip 2.4s infinite; }
.radar__blip:nth-of-type(2) { animation-delay: .6s; } .radar__blip:nth-of-type(3) { animation-delay: 1.2s; } .radar__blip:nth-of-type(4) { animation-delay: 1.8s; }
@keyframes blip { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); } 100% { box-shadow: 0 0 0 22px rgba(255,255,255,0); } }
.radar__core { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--gold-grad); color: var(--ink); display: grid; place-items: center; font-size: 1.6rem; }

.docs { position: relative; width: min(100%, 320px); aspect-ratio: 3/4; }
.doc { position: absolute; inset: 0; border-radius: 18px; background: #fff; box-shadow: 0 30px 60px -20px rgba(0,0,0,.35); }
.doc--3 { transform: rotate(10deg) translate(30px, 10px); opacity: .45; }
.doc--2 { transform: rotate(5deg) translate(14px, 4px); opacity: .7; }
.doc--1 { padding: 2rem 1.6rem; animation: docFloat 6s ease-in-out infinite; }
@keyframes docFloat { 50% { transform: translateY(-14px) rotate(-1.5deg); } }
.doc__badge { display: inline-block; background: var(--aveno); color: #fff; font-weight: 800; font-size: .8rem; padding: .35rem .6rem; border-radius: 8px; margin-bottom: 1.6rem; }
.doc .l { display: block; height: 10px; border-radius: 6px; background: #eee9df; margin-bottom: 12px; }
.doc .l.hl { background: rgba(255,138,61,.45); width: 80%; }
.doc .l.s { width: 55%; }
.doc__sign { position: absolute; right: 1.4rem; bottom: 1.6rem; font-family: "Segoe Script", "Brush Script MT", cursive; color: var(--blue); font-size: 1.2rem; border-bottom: 2px solid var(--blue); padding: 0 .4rem; }

/* ---------- Story (pinned) ---------- */
.story { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.story__pin { min-height: 100vh; display: flex; align-items: center; padding: 5rem 0 6rem; }
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 2rem; }
.timeline__line { position: absolute; left: 12.5%; right: 12.5%; top: 43px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px); }
.timeline__line i { display: block; height: 100%; width: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); }
.timeline__step { text-align: center; position: relative; padding-bottom: 22px; }
.timeline__step::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line); transition: all .4s var(--ease); }
.timeline__step small { display: block; font-size: .74rem; color: var(--muted); font-style: italic; }
.timeline__step b { font-size: .92rem; color: var(--muted); font-weight: 600; transition: color .3s; }
.timeline__step.is-active b { color: var(--ink); }
.timeline__step.is-active::after { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 6px rgba(212,168,83,.18); }
.story__heads { position: relative; text-align: center; height: 7.6rem; }
.story h2 { font-size: clamp(2rem, 3.8vw, 3.3rem); }
.story__head { position: absolute; inset: 0; opacity: 0; transform: translateY(30px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.story__head.is-active { opacity: 1; transform: none; }
.story__head p { font-size: 1.1rem; margin-top: .8rem; }
.story__frame { position: relative; max-width: 960px; margin: 1.2rem auto 0; height: clamp(300px, 44vh, 380px); }
.panel { position: absolute; inset: 0; padding: 1.4rem; border-radius: 26px; background: var(--cream); border: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(40px) scale(.97); transition: opacity .55s var(--ease), transform .55s var(--ease), visibility .55s; }
.panel.is-active { opacity: 1; visibility: visible; transform: none; }
.panel__grid { display: grid; gap: 1rem; height: 100%; }
.p1 { grid-template-columns: 1fr 1fr; }
.p3 { grid-template-columns: 1fr 1fr; }
.p4 { grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; }
.p4 .chart { grid-row: span 2; }
.card { background: #fff; border: 1px solid #eee9df; border-radius: 18px; padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .6rem; min-width: 0; }
.card > small { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.card > b { color: var(--ink); font-size: 1rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tags span { font-size: .84rem; font-weight: 500; background: var(--gold-soft); color: var(--gold-deep); padding: .35rem .75rem; border-radius: 9px; }
.tags .add { background: transparent; color: var(--muted); border: 1px dashed var(--line); }
.range { position: relative; height: 8px; border-radius: 9px; background: #eee9df; margin-top: .9rem; }
.range__fill { position: absolute; left: 12%; right: 30%; top: 0; bottom: 0; border-radius: 9px; background: var(--gold); }
.range__fill::before, .range__fill::after { content: ""; position: absolute; top: 50%; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--gold); transform: translate(-50%, -50%); }
.range__fill::before { left: 0; } .range__fill::after { left: 100%; }
.range__lbl { display: flex; justify-content: space-between; font-size: .8rem; color: var(--ink); padding: 0 8% 0 8%; margin-top: .4rem; }
.toggles { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: .4rem; }
.toggles label { display: flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 500; color: var(--ink); }
.sw { width: 38px; height: 22px; border-radius: 99px; background: #ddd6c9; position: relative; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.sw.on { background: var(--green); } .sw.on::after { left: 19px; }
.dl .bar { height: 8px; border-radius: 9px; background: #eee9df; overflow: hidden; }
.dl .bar i { display: block; height: 100%; width: var(--w); background: var(--blue); border-radius: 9px; }
.dl .bar i.red { background: var(--red); } .dl .bar i.amber { background: var(--amber); }
.dl .chip { align-self: flex-start; }
.notify { flex-direction: row; align-items: center; gap: .8rem; background: var(--ink); border-color: var(--ink); }
.notify b { color: #fff; display: block; font-size: .92rem; }
.notify small { color: #a7a59f; font-size: .8rem; }
.bars { flex: 1; display: flex; align-items: flex-end; gap: 10px; padding-top: 1rem; }
.bars span { flex: 1; height: var(--h); border-radius: 8px 8px 4px 4px; background: #eee3d3; }
.bars span.hi { background: var(--gold); }
.comp { list-style: none; display: grid; gap: .5rem; }
.comp li { display: flex; justify-content: space-between; font-size: .9rem; padding-bottom: .45rem; border-bottom: 1px dashed #eee9df; }
.comp b { color: var(--ink); }
.win { background: var(--green); border-color: var(--green); color: #e3fff0; justify-content: center; }
.win b { color: #fff; font-size: 1.2rem; font-family: var(--display); }
.win__ic { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.2); display: grid; place-items: center; color: #fff; }

/* ---------- Aveno horizontal ---------- */
.aveno { background: var(--ink); color: #a7a59f; overflow: hidden; }
.aveno__pin { position: relative; min-height: 100vh; display: flex; align-items: center; gap: 6rem; padding: 6rem 0 6rem max(1.25rem, calc((100vw - var(--wrap)) / 2)); }
.aveno__intro { flex: 0 0 400px; display: flex; flex-direction: column; align-items: flex-start; gap: 1.4rem; }
.aveno__intro h2 { color: #fff; }
.aveno__intro p { font-size: 1.05rem; }
.aveno__hint { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: #6f7280; margin-top: 1rem; }
.aveno__track { flex: 0 0 auto; display: flex; gap: 1.4rem; will-change: transform; padding-right: 4rem; }
.tool { position: relative; flex: 0 0 320px; height: 400px; padding: 2rem; border-radius: 26px; background: var(--ink-2); border: 1px solid var(--line-dark); display: flex; flex-direction: column; overflow: hidden; transition: border-color .4s, background .4s; }
.tool::before { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; right: -120px; top: -120px; background: radial-gradient(circle, rgba(255,91,31,.22), transparent 70%); opacity: 0; transition: opacity .5s; }
.tool:hover { border-color: rgba(255,91,31,.5); background: var(--ink-3); }
.tool:hover::before { opacity: 1; }
.tool__ic { width: 64px; height: 64px; border-radius: 18px; background: rgba(255,91,31,.12); color: var(--aveno); display: grid; place-items: center; font-size: 1.7rem; margin-bottom: auto; transition: transform .5s var(--ease); }
.tool:hover .tool__ic { transform: rotate(-8deg) scale(1.08); }
.tool h4 { color: #fff; font-size: 1.8rem; margin-bottom: .6rem; }
.tool p { font-size: .95rem; }
.tool__n { position: absolute; top: 1.6rem; right: 1.8rem; font-family: var(--display); font-weight: 600; color: #3a3f4c; font-size: 1.1rem; }

/* ---------- Why (bento) ---------- */
.why { padding: 9rem 0 7rem; }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(250px, auto); gap: 1.2rem; }
.bx { position: relative; padding: 2rem; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; gap: .7rem; transform-style: preserve-3d; will-change: transform; overflow: hidden; }
.bx h3 { font-size: 1.6rem; }
.bx__ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-deep); font-size: 1.3rem; margin-bottom: auto; }
.bx--big { grid-column: span 2; grid-row: span 2; background: var(--ink); border-color: var(--ink); color: #a7a59f; }
.bx--big h3 { color: #fff; font-size: clamp(2rem, 3.4vw, 3rem); }
.bx--big .bx__ic { background: rgba(212,168,83,.14); color: var(--gold); }
.bx__meter { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line-dark); padding-top: 1.2rem; margin-top: 1rem; }
.bx__meter b { font-family: var(--display); color: #fff; font-size: 3rem; letter-spacing: -.04em; }
.bx--gold { background: var(--gold-grad); border-color: var(--gold); color: #3b2c0c; }
.bx--gold h3 { color: var(--ink); }
.bx--gold .bx__ic { background: rgba(10,18,48,.12); color: var(--ink); }
.bx--dark { background: linear-gradient(135deg, #15296b, #1f3a8f); border-color: #1f3a8f; color: #dfe4ff; }
.bx--dark h3 { color: #fff; }
.bx--dark .bx__ic { background: rgba(255,255,255,.18); color: #fff; }
.bx--wide { grid-column: span 4; grid-row: auto; justify-content: center; }
.aud { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.aud span { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.1rem; border-radius: 99px; background: var(--cream); border: 1px solid var(--line); color: var(--ink); font-weight: 500; transition: background .3s, color .3s, transform .3s; }
.aud span:hover { background: var(--ink); color: #fff; transform: translateY(-3px); }

/* ---------- FAQ ---------- */
.faq { padding: 6rem 0 8rem; }
.faq__wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 5rem; align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; text-align: left; padding: 1.6rem 0; font-family: var(--display); font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 600; color: var(--ink); letter-spacing: -.02em; }
.qa__plus { position: relative; width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line); transition: background .3s, border-color .3s, transform .4s var(--ease); }
.qa__plus::before, .qa__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--ink); transition: background .3s; }
.qa__plus::after { transform: rotate(90deg); }
.qa.is-open .qa__plus { background: var(--gold); border-color: var(--gold); transform: rotate(135deg); }
.qa.is-open .qa__plus::before, .qa.is-open .qa__plus::after { background: var(--ink); }
.qa__a { height: 0; overflow: hidden; }
.qa.is-open .qa__a { height: auto; }
.qa__a p { padding: 0 3rem 1.6rem 0; font-size: 1rem; }

/* ---------- CTA ---------- */
.cta { background: var(--gold-grad); color: var(--ink); padding: 6rem 0 6.5rem; overflow: hidden; }
.cta__marquee { overflow: hidden; }
.cta__track { display: flex; width: max-content; }
.cta__track span { font-family: var(--display); font-weight: 700; font-size: clamp(4rem, 12vw, 11rem); letter-spacing: -.05em; line-height: 1; white-space: nowrap; padding-right: .3em; }
.cta__inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; margin-top: 3rem; flex-wrap: wrap; }
.cta__inner p { font-size: 1.2rem; max-width: 28rem; color: #3b2c0c; }
.cta__btn { display: inline-flex; align-items: center; gap: 1rem; background: var(--ink); color: #fff; padding: 1.3rem 1.3rem 1.3rem 2rem; border-radius: 99px; font-family: var(--display); font-size: 1.3rem; font-weight: 600; transition: background .3s; }
.cta__btn svg { width: 46px; height: 46px; padding: 12px; border-radius: 50%; background: var(--gold); color: var(--ink); transition: transform .4s var(--ease); }
.cta__btn:hover svg { transform: rotate(45deg); }

/* ---------- Contact ---------- */
.contact { padding: 8rem 0; }
.contact__wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 5rem; align-items: start; }
.contact__info { display: flex; flex-direction: column; align-items: flex-start; gap: 1.2rem; }
.contact__info > p { font-size: 1.08rem; max-width: 28rem; }
.cinfo { list-style: none; display: grid; gap: .8rem; width: 100%; margin-top: 1rem; }
.cinfo li > a { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.2rem; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); transition: transform .3s var(--ease), border-color .3s; min-width: 0; }
.cinfo li > a:hover { transform: translateX(6px); border-color: var(--gold); }
.cinfo li > a > div { min-width: 0; overflow-wrap: anywhere; }
.cinfo li > a > span { width: 46px; height: 46px; border-radius: 14px; background: var(--gold-soft); color: var(--gold-deep); display: grid; place-items: center; font-size: 1.15rem; }
.cinfo small { display: block; font-size: .78rem; color: var(--muted); }
.cinfo b { color: var(--ink); font-weight: 600; }
.form { display: grid; gap: 1.1rem; padding: 2.4rem; border-radius: 28px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(60,40,10,.25); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: grid; gap: .45rem; font-size: .85rem; font-weight: 600; color: var(--ink); }
.form input[type=text], .form input[type=tel], .form input[type=email], .form textarea { font: inherit; font-weight: 400; font-size: .97rem; color: var(--ink); padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--cream); transition: border .25s, background .25s, box-shadow .25s; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(212,168,83,.12); }
.form .invalid { border-color: var(--red) !important; }
.choice > span { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: .45rem; }
.choice__opts { display: flex; gap: .5rem; flex-wrap: wrap; }
.choice__opts label { display: block; }
.choice__opts input { position: absolute; opacity: 0; pointer-events: none; }
.choice__opts span { display: inline-block; padding: .65rem 1.1rem; border-radius: 99px; border: 1px solid var(--line); background: var(--cream); font-weight: 500; cursor: pointer; transition: all .25s; }
.choice__opts input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.choice__opts input:focus-visible + span { box-shadow: 0 0 0 3px rgba(212,168,83,.4); }
.form__note { font-size: .92rem; font-weight: 600; text-align: center; min-height: 1.2em; }
.form__note.ok { color: var(--green); } .form__note.err { color: var(--red); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #8b8f99; padding: 5rem 0 7rem; overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer__brand p { max-width: 22rem; font-size: 1rem; color: #b7b4ad; }
.footer h5 { color: #fff; font-family: var(--body); font-size: .9rem; font-weight: 600; letter-spacing: 0; margin-bottom: 1rem; }
.footer__grid a { display: block; font-size: .94rem; margin-bottom: .6rem; transition: color .25s, transform .25s; }
.footer__grid a:hover { color: var(--gold); transform: translateX(4px); }
.footer__word { font-family: var(--display); font-weight: 800; font-size: clamp(3.4rem, 14.5vw, 15rem); line-height: .85; letter-spacing: -.06em; color: #fff; margin: 4rem 0 2rem; white-space: nowrap; text-align: center; }
.footer__word .accent { color: var(--gold); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .84rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); }

/* ---------- Brand logos ---------- */
.logo__img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; box-shadow: 0 0 0 1px rgba(214,170,90,.35), 0 6px 16px -6px rgba(0,0,0,.5); }
.loader__logo { width: 120px; height: 120px; border-radius: 26px; object-fit: cover; margin-bottom: 1rem; box-shadow: 0 0 0 1px rgba(214,170,90,.3), 0 20px 60px -10px rgba(214,170,90,.25); }
.pill-nav__logo { overflow: hidden; padding: 0; }
.pill-nav__logo img { width: 100%; height: 100%; object-fit: cover; }
.pcard__icon--img { padding: 0; background: none; box-shadow: 0 12px 28px -10px rgba(120,30,0,.55); border-radius: 16px; }
img.fc__ic { border-radius: 11px; }
.av-lockup { display: flex; align-items: center; gap: .8rem; }
.av-lockup img { width: 52px; height: 52px; border-radius: 14px; box-shadow: 0 10px 30px -8px rgba(255,91,31,.55); }
.av-lockup b { display: block; font-family: var(--display); font-size: 1.6rem; line-height: 1; color: #fff; letter-spacing: -.03em; }
.av-lockup small { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--aveno); margin-top: .25rem; }
.footer__logo { width: 110px; height: 110px; border-radius: 24px; object-fit: cover; margin-bottom: 1.4rem; box-shadow: 0 0 0 1px rgba(214,170,90,.3); }
.footer__brand p b { color: #fff; font-weight: 600; }
.footer__contact { display: grid; gap: .5rem; margin-top: 1.4rem; font-size: .92rem; }
.footer__contact a, .footer__contact span { display: inline-flex !important; align-items: center; gap: .55rem; margin: 0 !important; color: #b7b4ad; overflow-wrap: anywhere; }
.footer__contact a:hover { color: var(--gold); }
.footer__contact svg { color: var(--gold); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .loader { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .float-card--a { left: -10px; } .float-card--b { right: -10px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bx--wide { grid-column: span 2; }
}
@media (max-width: 900px) {
  .header__status { display: none; }
  .pill-nav__links { display: none; }
  .pill-nav__menu { display: grid; }
  .app__body { grid-template-columns: 1fr; }
  .app__side { display: none; }
  .app__stats { grid-template-columns: repeat(2, 1fr); }
  .float-card { display: none; }
  .statement__stats { grid-template-columns: repeat(2, 1fr); }
  .pcard { grid-template-columns: 1fr; padding: 2.2rem; position: relative; top: auto !important; }
  .pcard__art { max-height: 300px; }
  .radar { width: 260px; }
  .docs { width: 200px; }

  /* Story: no pin — panels stack */
  .story__pin { padding: 5rem 0; }
  .timeline, .story__heads { display: none; }
  .story__frame { height: auto; display: grid; gap: 1.2rem; }
  .panel { position: relative; opacity: 1; visibility: visible; transform: none; }
  .panel::before { content: attr(data-title); display: block; font-family: var(--display); font-size: 1.5rem; font-weight: 700; color: var(--ink); letter-spacing: -.03em; margin-bottom: 1rem; }
  .p1, .p3, .p4 { grid-template-columns: 1fr; grid-template-rows: none; }
  .p4 .chart { grid-row: auto; min-height: 200px; }

  /* Aveno: native swipe */
  .aveno__pin { flex-direction: column; align-items: stretch; padding: 6rem 0; gap: 2.5rem; min-height: 0; }
  .aveno__intro { flex: none; padding: 0 1.25rem; }
  .aveno__hint { display: none; }
  .aveno__track { overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 1.25rem 1rem; -webkit-overflow-scrolling: touch; }
  .tool { flex: 0 0 78%; height: 320px; scroll-snap-align: start; }

  .faq__wrap, .contact__wrap { grid-template-columns: 1fr; gap: 3rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
}
@media (max-width: 600px) {
  .hero { padding-top: 8rem; }
  .hero__stage { margin-top: 3.5rem; }
  .app__head h4 { font-size: 1.05rem; }
  .app__main { padding: 1rem; }
  .row .chip { display: none; }
  .bento { grid-template-columns: 1fr; }
  .bx--big, .bx--wide { grid-column: auto; grid-row: auto; }
  .form__row { grid-template-columns: 1fr; }
  .form { padding: 1.6rem; }
  .pcard { padding: 1.6rem; border-radius: 26px; }
  .cta__btn { font-size: 1.1rem; }
  .pill-nav { bottom: 1rem; }
  .qa__a p { padding-right: 0; }
}
