/* Aivy website V18. Colours from Aivy_BrandIdentityGuidesheet_2026. Montserrat stands in for Articulat CF until the licence arrives. */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("assets/fonts/montserrat-latin-variable.woff2") format("woff2"); }

:root {
  --green: #39b54a; --lime: #8cc63f; --forest: #1c6817; --deep: #0c3a17; --night: #04140a;
  --ink: #232323; --grey: #535353; --line: #dedede; --mist: #f2f2f2; --white: #fff;
  --grad: linear-gradient(90deg, var(--green), var(--lime));
  --font: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --r-btn: 6px; --r-card: 16px; --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--forest); outline-offset: 2px; border-radius: 3px; box-shadow: 0 0 0 2px #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(1280px, 100% - 48px); margin-inline: auto; }
@media (min-width: 900px) { .wrap { width: min(1280px, 100% - 112px); } }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--white); color: var(--ink); padding: 10px 14px; border-radius: var(--r-btn); }
.skip:focus { top: 12px; }

.h2 { font-size: clamp(2.1rem, 4.2vw, 3.5rem); line-height: 1.04; letter-spacing: -0.03em; font-weight: 700; }
.lede { font-size: clamp(1.06rem, 1.35vw, 1.28rem); line-height: 1.5; color: var(--grey); max-width: 52ch; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: var(--r-btn); font: inherit; font-weight: 600; font-size: 1.02rem; text-decoration: none; white-space: nowrap; cursor: pointer; border: 1px solid transparent; transition: scale .16s var(--ease), background-color .2s, color .2s, border-color .2s, filter .2s; }
.btn:active { scale: .96; }
.btn--primary { background: var(--grad); color: #06210d; }
.btn--primary:hover { filter: brightness(1.07) saturate(1.05); }
.btn--line { color: var(--white); border-color: rgba(255, 255, 255, .5); }
.btn--line:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }
.btn--ghost { min-height: 44px; padding: 0 18px; font-size: .95rem; color: var(--white); border-color: rgba(255, 255, 255, .55); }
.btn--ghost:hover { background: var(--white); color: var(--ink); }
.link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; text-decoration: none; color: var(--forest); }
.link span { transition: translate .2s var(--ease); }
.link:hover span { translate: 4px 0; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 40; transition: background-color .25s, box-shadow .25s; }
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav__logo { display: grid; height: 50px; }
.logo { grid-area: 1 / 1; height: 50px; width: auto; transition: opacity .25s; }
.logo--colour { opacity: 0; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a:not(.btn) { color: var(--white); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 14px 0; opacity: .88; transition: opacity .2s, color .2s; }
.nav__links a:not(.btn):hover { opacity: 1; }
.nav__links a[aria-current="page"]:not(.btn) { opacity: 1; box-shadow: inset 0 -2px 0 currentColor; }
.nav__toggle { display: none; }
.nav--scrolled:not(.nav--solid) { background: rgba(4, 20, 10, .72); backdrop-filter: saturate(1.3) blur(14px); -webkit-backdrop-filter: saturate(1.3) blur(14px); }
.nav--solid { background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 rgba(0, 0, 0, .08); }
.nav--solid .logo--white { opacity: 0; }
.nav--solid .logo--colour { opacity: 1; }
.nav--solid .nav__links a:not(.btn) { color: var(--ink); }
.nav--solid .btn--ghost { color: var(--ink); border-color: var(--ink); }
.nav--solid .btn--ghost:hover { background: var(--ink); color: var(--white); }
@media (max-width: 1040px) {
  .nav__toggle { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; font: inherit; font-weight: 600; font-size: .95rem; color: var(--white); background: none; border: 1px solid rgba(255, 255, 255, .55); border-radius: var(--r-btn); cursor: pointer; }
  .nav--solid .nav__toggle, .nav--open .nav__toggle { color: var(--ink); border-color: var(--ink); }
  .nav__links { position: absolute; left: 0; right: 0; top: 76px; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px; background: var(--white); box-shadow: 0 18px 30px rgba(4, 20, 10, .16); opacity: 0; visibility: hidden; translate: 0 -8px; transition: opacity .2s, translate .2s var(--ease), visibility .2s; }
  .nav--open .nav__links { opacity: 1; visibility: visible; translate: 0 0; }
  .nav__links a:not(.btn) { color: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--line); opacity: 1; font-size: 1.05rem; }
  .nav__links .btn--ghost { margin-top: 18px; min-height: 50px; color: var(--ink); border-color: var(--ink); }
  .nav--open { background: var(--white); }
  .nav--open .logo--white { opacity: 0; }
  .nav--open .logo--colour { opacity: 1; }
}

/* Hero */
.hero { position: relative; min-height: min(100dvh, 960px); display: flex; align-items: center; background: var(--night); color: var(--white); overflow: hidden; isolation: isolate; }
.hero__field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(3, 16, 8, .9) 0%, rgba(3, 16, 8, .66) 34%, rgba(3, 16, 8, .15) 64%, rgba(3, 16, 8, .35) 100%), linear-gradient(180deg, rgba(3, 16, 8, .55) 0%, rgba(3, 16, 8, 0) 22%, rgba(3, 16, 8, 0) 70%, rgba(3, 16, 8, .75) 100%); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: center; padding: 130px 0 100px; }
.hero__title { font-size: clamp(2.8rem, 6.2vw, 5.4rem); line-height: 1; letter-spacing: -0.035em; font-weight: 800; max-width: 12ch; }
.hero__lede { margin-top: clamp(22px, 3vw, 34px); max-width: 38ch; font-size: clamp(1.1rem, 1.5vw, 1.4rem); line-height: 1.4; font-weight: 500; color: rgba(255, 255, 255, .92); }
.hero__what { margin-top: 14px; max-width: 46ch; font-size: clamp(.95rem, 1.1vw, 1.05rem); line-height: 1.45; font-weight: 500; color: rgba(255, 255, 255, .66); }
.hero__cta { margin-top: clamp(26px, 3.4vw, 40px); display: flex; flex-wrap: wrap; gap: 14px; }
.js-anim .hero__title, .js-anim .hero__lede, .js-anim .hero__what, .js-anim .hero__cta { animation: rise .9s var(--ease) both; }
.js-anim .hero__what { animation-delay: .2s; }
.js-anim .hero__lede { animation-delay: .14s; }
.js-anim .hero__cta { animation-delay: .26s; }
.settled .hero__title, .settled .hero__lede, .settled .hero__what, .settled .hero__cta, .settled .hero__scene, .settled .ring__fill { animation: none !important; opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* Hero scene: illustrative phone + Aivy */
.hero__scene { position: relative; justify-self: end; width: min(100%, 420px); aspect-ratio: 1 / 1.22; }
.js-anim .hero__scene { animation: rise 1s var(--ease) .3s both; }
.phone { position: absolute; left: 6%; top: 0; width: 56%; aspect-ratio: 9 / 18.6; border-radius: 34px; background: #0b1a10; padding: 10px; box-shadow: 0 40px 80px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .08); transform: rotate(-6deg); }
.phone__screen { height: 100%; border-radius: 26px; background: #fbfdf8; color: var(--ink); padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; font-size: 12px; line-height: 1.35; }
.phone__top { display: flex; justify-content: space-between; align-items: center; font-size: 10px; color: var(--grey); }
.phone__brand { font-weight: 700; color: var(--ink); }
.phone__pill { padding: 3px 8px; border-radius: 999px; background: #eef7e6; color: var(--forest); font-weight: 600; }
.phone__ring { position: relative; width: 118px; margin: 2px auto; }
.phone__ring svg { width: 100%; display: block; transform: rotate(-90deg); }
.ring__track { fill: none; stroke: #e6eee0; stroke-width: 10; }
.ring__fill { fill: none; stroke: url(#ringGrad); stroke: var(--green); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 104.5; }
.js-anim .ring__fill { animation: ring 1.6s var(--ease) .8s both; }
@keyframes ring { from { stroke-dashoffset: 326.7; } to { stroke-dashoffset: 104.5; } }
.ring__label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring__label strong { font-size: 24px; letter-spacing: -0.03em; }
.ring__label span { font-size: 10px; color: var(--grey); }
.phone__plan { display: grid; gap: 6px; font-weight: 500; }
.plan__row { display: flex; align-items: center; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot--store { background: var(--lime); } .dot--use { background: var(--green); } .dot--keep { background: #b2cda7; }
.phone__msg { margin-top: auto; padding: 10px 12px; border-radius: 12px; background: #eef7e6; }
.phone__msg p { font-weight: 600; }
.phone__actions { display: flex; gap: 6px; margin-top: 8px; }
.chip { padding: 5px 10px; border-radius: 999px; border: 1px solid #b2cda7; font-size: 11px; font-weight: 600; }
.chip--yes { background: var(--green); border-color: var(--green); color: #06210d; }
.hero__note { position: absolute; left: 6%; bottom: -30px; font-size: .75rem; color: rgba(255, 255, 255, .6); }
.illus { position: absolute; top: 10px; right: 10px; z-index: 3; font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .88); color: var(--grey); pointer-events: none; }
.illus--dark { background: rgba(0, 0, 0, .45); color: rgba(255, 255, 255, .82); }
.hero__scene .illus { top: -30px; left: 6%; right: auto; }
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 28px; padding: 110px 0 70px; }
  .hero__scene { justify-self: start; width: min(100%, 340px); aspect-ratio: auto; height: 380px; }
  .phone { width: 40%; }
  .mascot--hero { width: 56%; right: -6%; bottom: 0; }
  .hero__note { bottom: -6px; }
}
@media (max-width: 640px) {
  .hero__grid { gap: 44px; }
  .hero__scene { width: min(100%, 360px); height: 440px; }
  .phone { width: 60%; left: 0; }
  .phone__screen { gap: 8px; padding: 14px 14px; }
  .phone__ring { width: 96px; }
  .mascot--hero { width: 52%; right: -8%; }
}

/* Mascot */
.mascot { position: absolute; z-index: 2; padding: 0; margin: 0; border: 0; background: none; color: inherit; font: inherit; }
.mascot__frame { position: relative; display: block; width: 100%; aspect-ratio: 1; }
.mascot__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; opacity: 0; transition: opacity .18s ease-out; pointer-events: none; user-select: none; }
.mascot__img.is-on { opacity: 1; }
.mascot__bubble { position: absolute; left: 50%; bottom: 100%; translate: -50% 6px; white-space: nowrap; pointer-events: none; padding: 9px 15px; border-radius: 999px; background: var(--white); color: var(--ink); font-weight: 600; font-size: .95rem; box-shadow: 0 10px 24px rgba(4, 20, 10, .22); opacity: 0; transition: opacity .2s ease-out, translate .25s var(--ease); }
.mascot__bubble::after { content: ""; position: absolute; left: 50%; top: 100%; width: 12px; height: 12px; background: inherit; translate: -50% -6px; rotate: 45deg; border-radius: 2px; }
.is-talking .mascot__bubble { opacity: 1; translate: -50% -4px; }
.mascot__spark { position: absolute; left: 50%; top: 30%; width: 12px; height: 12px; margin: -6px; background: var(--lime); rotate: 45deg; border-radius: 2px; pointer-events: none; animation: spark .9s var(--ease) both; }
@keyframes spark { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(1); } }
.is-hop .mascot__frame { animation: hop .6s var(--ease); }
@keyframes hop { 0%, 100% { translate: 0 0; } 40% { translate: 0 -18px; } 70% { translate: 0 2px; } }
.mascot--hero { right: -4%; bottom: 2%; width: 52%; cursor: pointer; transform: rotate(var(--tilt, 0deg)); transform-origin: 50% 100%; transition: transform .5s var(--ease); opacity: 0; translate: 0 20px; }
.mascot--hero.is-in { opacity: 1; translate: 0 0; transition: opacity .5s, translate .7s var(--ease), transform .5s var(--ease); }
.mascot--hero .mascot__frame { filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .45)); }
.mascot--hero.is-in .mascot__frame { animation: pop .6s var(--ease); }
@keyframes pop { 0% { scale: .9 1.08; } 45% { scale: 1.04 .96; translate: 0 -10px; } 100% { scale: 1; translate: 0 0; } }
.mascot--buddy { position: fixed; right: 0; bottom: 18px; width: 118px; z-index: 30; translate: 100% 0; transition: translate .5s var(--ease); }
.mascot--buddy.is-shown { translate: 34% 0; }
.mascot--buddy.is-shown:hover, .mascot--buddy.is-shown:focus-within, .mascot--buddy.is-open { translate: -14px 0; }
.mascot--buddy .mascot__frame { rotate: -8deg; transition: rotate .4s var(--ease); }
.mascot--buddy:hover .mascot__frame, .mascot--buddy.is-open .mascot__frame { rotate: 0deg; }
.mascot__hit { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 16px; }
.mascot__card { position: absolute; right: 8px; bottom: calc(100% + 10px); width: 230px; padding: 18px; border-radius: 14px; background: var(--white); color: var(--ink); box-shadow: 0 18px 40px rgba(4, 20, 10, .22); opacity: 0; visibility: hidden; translate: 0 8px; transition: opacity .2s ease-out, translate .25s var(--ease), visibility .2s; }
.mascot__card p { font-weight: 600; font-size: 1.02rem; line-height: 1.35; }
.mascot__card .btn { margin-top: 14px; min-height: 44px; width: 100%; font-size: .95rem; }
.mascot--buddy.is-open .mascot__card { opacity: 1; visibility: visible; translate: 0 0; }
@media (max-width: 899px) { .mascot--buddy { display: none; } }
.mascot--closing { right: clamp(24px, 10vw, 180px); top: 50%; width: clamp(200px, 22vw, 320px); translate: 0 -46%; opacity: 0; transition: opacity .6s ease-out, translate .8s var(--ease); pointer-events: none; }
.mascot--closing.is-in { opacity: 1; translate: 0 -50%; }
.mascot--closing .mascot__frame { filter: drop-shadow(0 0 50px rgba(140, 198, 63, .22)); }
@media (max-width: 860px) { .mascot--closing { display: none; } }

/* Where I can help */
.help { padding: clamp(84px, 11vw, 150px) 0 clamp(60px, 7vw, 100px); }
.cards { margin-top: clamp(32px, 4.5vw, 56px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 340px; padding: 26px; border-radius: var(--r-card); text-decoration: none; overflow: hidden; isolation: isolate; transition: translate .35s var(--ease), box-shadow .35s; }
.card:hover { translate: 0 -4px; box-shadow: 0 24px 50px rgba(4, 20, 10, .16); }
.card__kicker { font-size: .9rem; font-weight: 600; letter-spacing: .01em; opacity: .85; }
.card__kicker em { font-style: normal; font-weight: 500; opacity: .75; }
.card h3 { margin-top: 10px; font-size: clamp(1.3rem, 1.6vw, 1.6rem); line-height: 1.12; letter-spacing: -0.025em; font-weight: 700; max-width: 16ch; }
.card__go { position: absolute; right: 24px; top: 22px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid currentColor; font-size: 1.2rem; opacity: .7; transition: opacity .2s, background-color .2s; }
.card:hover .card__go { opacity: 1; }
/* One card family: deep green, the glow moves a little from card to card. */
.card--ci, .card--st, .card--hm, .card--vpp { background: radial-gradient(120% 120% at var(--gx, 100%) 0%, #1f7a2c 0%, #0c3a17 50%, var(--night) 100%); color: var(--white); }
.card--st { --gx: 70%; } .card--hm { --gx: 40%; } .card--vpp { --gx: 10%; }
.card__art { position: absolute; left: 18px; right: 18px; top: 22px; height: 38%; width: auto; color: currentColor; opacity: .9; transition: translate .5s var(--ease); }
.card:hover .card__art { translate: 0 -4px; }
.help__partners { margin-top: 28px; font-size: 1.05rem; color: var(--grey); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
@media (max-width: 1100px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } .card { min-height: 240px; } }

/* Charge, discharge, keep */
.day { background: var(--mist); padding: clamp(80px, 10vw, 140px) 0; }
.day__head .lede { margin-top: 20px; }
.sim { margin-top: clamp(36px, 5vw, 60px); display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 0 28px; background: #06160b; color: var(--white); border-radius: var(--r-card); padding: clamp(18px, 2.6vw, 28px); box-shadow: 0 30px 80px rgba(4, 20, 10, .25); }
.sim__stage { position: relative; grid-row: 1; height: clamp(220px, 28vw, 340px); border-radius: 12px; overflow: hidden; cursor: ew-resize; touch-action: pan-y; background: linear-gradient(180deg, var(--sky1, #0d2a16) 0%, var(--sky2, #0a1f10) 55%, #07160b 100%); user-select: none; }
.sim__stars circle { fill: #fff; opacity: calc(var(--night, 0) * .9); transition: opacity .4s; }
.sim__moon { position: absolute; left: var(--x, 20%); top: calc(var(--plot-top) + 22px); width: 18px; height: 18px; margin: -9px; border-radius: 50%; background: #e9f1dd; box-shadow: -5px -3px 0 1px #07160b inset, 0 0 24px rgba(233, 241, 221, .35); opacity: 0; transition: opacity .6s; pointer-events: none; }
.sim__toast { position: absolute; left: 50%; bottom: 34px; translate: -50% 0; width: max-content; max-width: calc(100% - 24px); padding: 7px 14px; border-radius: 16px; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: .85rem; font-weight: 600; line-height: 1.3; text-align: center; text-wrap: balance; opacity: 0; pointer-events: none; }
.sim__toast.is-on { animation: toast 2.6s var(--ease) both; }
@keyframes toast { 0% { opacity: 0; translate: -50% 10px; } 12%, 75% { opacity: 1; translate: -50% 0; } 100% { opacity: 0; translate: -50% -6px; } }
.sim__stage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at var(--sx, 50%) 0%, rgba(140, 198, 63, .22), transparent 70%); pointer-events: none; }
.sim__stage { --plot-top: 36px; --plot-bottom: 24px; }
.sim__chart { position: absolute; left: 0; right: 0; top: var(--plot-top); bottom: var(--plot-bottom); width: 100%; height: calc(100% - var(--plot-top) - var(--plot-bottom)); }
.sim__grid line { stroke: rgba(255, 255, 255, .06); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sim__zero { stroke: rgba(255, 255, 255, .28); stroke-width: 1; stroke-dasharray: 3 6; vector-effect: non-scaling-stroke; }
.sim__area { fill: url(#priceFill); }
.sim__line { fill: none; stroke: var(--lime); stroke-width: 2; vector-effect: non-scaling-stroke; }
.sim__socbase { stroke: rgba(255, 255, 255, .12); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sim__soc { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.sim__soc--dumb { stroke: rgba(255, 255, 255, .35); stroke-dasharray: 4 4; }
.sim__soc--aivy { stroke: #fff; }
.sim__cursor { stroke: rgba(255, 255, 255, .7); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sim__dot { fill: #fff; stroke: var(--lime); stroke-width: 3; vector-effect: non-scaling-stroke; }
.sim__sun { position: absolute; left: var(--x, 50%); top: calc(var(--plot-top) + 16px + (1 - var(--alt, 1)) * 50%); width: 28px; height: 28px; margin: -14px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #fff9c4, #f7c948 55%, rgba(247, 201, 72, 0) 72%); box-shadow: 0 0 36px 12px rgba(247, 201, 72, .28); transition: opacity .4s; pointer-events: none; }
.sim__sun span { position: absolute; inset: -14px; border-radius: 50%; background: repeating-conic-gradient(rgba(255, 236, 150, .35) 0 6deg, transparent 6deg 30deg); mask: radial-gradient(circle, transparent 46%, #000 48%, #000 60%, transparent 62%); animation: spin 24s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.sim__sun.is-down { opacity: 0; }
.is-dragging .sim__sun { scale: 1.15; }
.sim__labels { position: absolute; left: 10px; right: 10px; bottom: 6px; height: 1.2em; font-size: .72rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: rgba(255, 255, 255, .45); pointer-events: none; }
.sim__labels span { position: absolute; bottom: 0; translate: -50% 0; white-space: nowrap; }
.sim__labels span:nth-child(1) { left: 0; translate: 0 0; } .sim__labels span:nth-child(2) { left: 25%; } .sim__labels span:nth-child(3) { left: 50%; } .sim__labels span:nth-child(4) { left: 75%; } .sim__labels span:nth-child(5) { left: 100%; translate: -100% 0; }
.sim__legend { position: absolute; left: 12px; top: 10px; display: flex; gap: 14px; font-size: .72rem; color: rgba(255, 255, 255, .7); pointer-events: none; }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.lg::before { content: ""; width: 14px; height: 2px; background: currentColor; }
.lg--price { color: var(--lime); }
.lg--dumb::before { background: repeating-linear-gradient(90deg, rgba(255,255,255,.6) 0 3px, transparent 3px 6px); }
.lg--aivy::before { background: #fff; }
.sim__badge { position: absolute; right: 12px; top: 10px; display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); backdrop-filter: blur(8px); font-weight: 600; font-size: .9rem; font-variant-numeric: tabular-nums; pointer-events: none; }
.sim__badge em { font-style: normal; font-size: .75rem; padding: 4px 10px; border-radius: 999px; background: rgba(140, 198, 63, .25); color: #d9f2b9; }
.sim__badge em[data-state="neg"] { background: rgba(120, 190, 230, .25); color: #cfe9f7; }
.sim__badge em[data-state="peak"] { background: rgba(247, 160, 72, .28); color: #ffe0bd; }
.sim__control { grid-column: 1; margin-top: 10px; }
.sim__control input { width: 100%; height: 28px; accent-color: var(--lime); cursor: ew-resize; opacity: .9; }
.sim__side { grid-column: 2; grid-row: 1 / span 3; display: grid; align-content: center; gap: 18px; padding: 6px 4px; }
.sim__story { font-size: 1.08rem; line-height: 1.45; color: rgba(255, 255, 255, .9); min-height: 4.3em; }
.cells { display: grid; gap: 12px; }
.cell { padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.cell--aivy { background: rgba(140, 198, 63, .10); border-color: rgba(140, 198, 63, .35); }
.cell__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; font-size: .95rem; font-weight: 600; }
.cell__top > span:first-child { white-space: nowrap; }
.cell__soc { display: inline-flex; align-items: center; gap: 10px; flex: none; white-space: nowrap; }
.cell__soc strong { font-size: 1.35rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.cell__soc small { font-size: .72rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
/* Battery-shaped state-of-charge gauge */
.batt { position: relative; display: inline-block; width: 44px; height: 20px; padding: 2px; border: 2px solid rgba(255, 255, 255, .7); border-radius: 5px; }
.batt::after { content: ""; position: absolute; right: -6px; top: 4px; width: 3px; height: 8px; border-radius: 0 2px 2px 0; background: rgba(255, 255, 255, .7); }
.batt i { display: block; height: 100%; width: calc(var(--level, .5) * 100%); border-radius: 2px; background: rgba(255, 255, 255, .5); transition: width .25s linear; }
.cell--aivy .batt { border-color: var(--lime); } .cell--aivy .batt::after { background: var(--lime); } .cell--aivy .batt i { background: var(--grad); }
.cell p { margin-top: 8px; font-size: .88rem; color: rgba(255, 255, 255, .65); }
.cell__flow { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.cell__flow i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); opacity: .25; }
.cell__flow[data-dir="in"] i { animation: flowIn 1s linear infinite; }
.cell__flow[data-dir="out"] i { animation: flowOut 1s linear infinite; }
.cell__flow i:nth-child(3) { animation-delay: .33s !important; } .cell__flow i:nth-child(4) { animation-delay: .66s !important; }
@keyframes flowIn { 0% { opacity: .15; translate: -10px 0; } 50% { opacity: 1; } 100% { opacity: .15; translate: 10px 0; } }
@keyframes flowOut { 0% { opacity: .15; translate: 10px 0; } 50% { opacity: 1; } 100% { opacity: .15; translate: -10px 0; } }
.cell__flow[data-dir="idle"] i { opacity: .15; }
.score--wide { grid-column: 1; grid-row: 3; margin-top: 14px; display: grid; grid-template-columns: auto 1fr 1fr; gap: 10px 18px; align-items: center; }
.score--wide .score__head { flex-direction: column; align-items: flex-start; gap: 2px; }
.score--wide .score__row { margin-top: 0; grid-template-columns: auto 1fr 2.6em; white-space: nowrap; }
.score { padding: 12px 16px 14px; border-radius: 12px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .06); }
.score__head { display: flex; justify-content: space-between; align-items: baseline; font-size: .8rem; font-weight: 600; letter-spacing: .02em; color: rgba(255, 255, 255, .8); }
.score__head em { font-style: normal; font-weight: 400; font-size: .72rem; color: rgba(255, 255, 255, .4); }
.score__row { display: grid; grid-template-columns: 7.5em 1fr 4.5em; align-items: center; gap: 10px; margin-top: 9px; font-size: .82rem; color: rgba(255, 255, 255, .6); }
.score__row strong { text-align: right; font-variant-numeric: tabular-nums; font-size: .85rem; color: rgba(255, 255, 255, .75); }
.score__row--aivy, .score__row--aivy strong { color: #fff; }
.score__bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.score__bar i { display: block; height: 100%; width: calc(var(--level, 0) * 100%); border-radius: inherit; background: rgba(255, 255, 255, .4); transition: width .25s linear; }
.score__row--aivy .score__bar i { background: var(--grad); }
.sim__hint { font-size: .8rem; color: rgba(255, 255, 255, .45); }
.score__head small { display: block; font-size: .72rem; font-weight: 400; color: rgba(255, 255, 255, .55); margin-top: 2px; }
.caps { margin-top: clamp(36px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 12px 36px; font-size: 1.1rem; }
.caps li { display: flex; align-items: center; gap: 12px; }
.caps li::before { content: ""; width: 14px; height: 14px; rotate: 45deg; background: var(--grad); border-radius: 2px; }
.day__fact { margin-top: 18px; color: var(--grey); }
@media (max-width: 960px) { .sim { grid-template-columns: 1fr; } .sim__side { grid-column: 1; grid-row: auto; margin-top: 16px; } .score--wide { grid-row: auto; grid-template-columns: 1fr; gap: 8px; } .sim__legend { left: 8px; top: 8px; flex-wrap: wrap; gap: 4px 12px; max-width: 62%; font-size: .72rem; } }
@media (max-width: 1100px) { .sim__badge { top: calc(var(--plot-top) + 4px); } .sim__sun { top: calc(var(--plot-top) + 52px + (1 - var(--alt, 1)) * 40%); } }
@media (max-width: 640px) {
  .sim__stage { height: 290px; --plot-top: 52px; }
  .sim__legend { left: 10px; right: 10px; top: 10px; max-width: none; gap: 4px 14px; }
  .sim__badge { top: 54px; right: 10px; font-size: .82rem; padding: 4px 4px 4px 10px; }
  .sim__labels span:nth-child(2), .sim__labels span:nth-child(4) { display: none; }
  .sim__toast { bottom: 30px; font-size: .8rem; }
}

/* Vision */
.vision { position: relative; color: var(--white); background: var(--night); overflow: hidden; isolation: isolate; padding: clamp(96px, 12vw, 170px) 0 clamp(60px, 7vw, 90px); }
.vision__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.vision__in { max-width: 820px; position: relative; z-index: 1; text-align: center; display: grid; justify-items: center; }
.vision__eyebrow { font-size: .95rem; font-weight: 500; color: rgba(255, 255, 255, .7); margin-bottom: 18px; }
.vision .h2 { font-size: clamp(2.3rem, 5vw, 4.2rem); }
.vision__lede { margin-top: 22px; margin-inline: auto; color: rgba(255, 255, 255, .82); max-width: 44ch; text-wrap: balance; }
.vision__words { margin-top: clamp(36px, 6vw, 70px); display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; font-size: clamp(1rem, 1.4vw, 1.25rem); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .35); }
.vision__words li { display: flex; align-items: center; gap: 12px; transition: color .8s; }
.vision__words li::before { content: ""; width: 10px; height: 10px; rotate: 45deg; background: currentColor; border-radius: 1px; }
.vision__words li.is-on { color: var(--lime); }
.stages { position: relative; z-index: 1; margin-top: clamp(120px, 22vw, 300px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .14); }
.vision::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 340px; background: linear-gradient(180deg, rgba(4, 20, 10, 0), rgba(4, 20, 10, .92) 55%); z-index: 0; pointer-events: none; }
.stage__leaf { display: block; width: 28px; height: 28px; margin-bottom: 12px; background: var(--grad); border-radius: 0 60% 0 60%; rotate: -10deg; }
.stage h3 { font-size: 1.05rem; font-weight: 700; }
.stage p { margin-top: 6px; color: rgba(255, 255, 255, .62); font-size: .92rem; }
@media (max-width: 960px) { .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .stages { grid-template-columns: 1fr; } }

/* Closing: light, centred, calm after the dark vision scene */
.closing { background: var(--white); color: var(--ink); padding: clamp(96px, 12vw, 170px) 0; border-top: 1px solid var(--line); }
.closing__in { max-width: 720px; text-align: center; display: grid; justify-items: center; }
.closing__mark { width: 56px; height: 56px; margin-bottom: 26px; }
.closing .lede { margin-top: 20px; }
.closing .btn { margin-top: 34px; }

/* Footer */
.footer { background: #020b05; color: rgba(255, 255, 255, .8); padding: 36px 0 22px; }
.footer__in { display: flex; align-items: center; justify-content: space-between; gap: 20px 24px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 14px; flex: none; }
.footer__logo { height: 44px; width: auto; }
.footer__slogan { margin: 0; padding: 4px 0 4px 16px; border-left: 1px solid rgba(255, 255, 255, .3); font-size: .95rem; font-weight: 700; letter-spacing: -0.005em; line-height: 1.25; color: #fff; text-wrap: nowrap; }
.footer__links { display: flex; flex: 1 1 0; flex-wrap: wrap; justify-content: flex-end; gap: 4px 24px; }
.footer__links a { text-decoration: none; font-weight: 500; font-size: .92rem; padding: 8px 0; transition: color .2s; }
.footer__links a:hover { color: var(--lime); }
@media (max-width: 900px) { .footer__links { flex-basis: 100%; justify-content: flex-start; } }
@media (max-width: 360px) { .footer__brand { flex-direction: column; align-items: flex-start; gap: 10px; } .footer__slogan { padding-left: 0; border-left: 0; } }
.footer__base { margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; color: rgba(255, 255, 255, .55); }
.footer__base a { color: inherit; text-decoration: none; }
.footer__base a:hover { color: var(--lime); }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .cards .card:nth-child(2) { transition-delay: .08s; } .js .cards .card:nth-child(3) { transition-delay: .16s; } .js .cards .card:nth-child(4) { transition-delay: .24s; }

html.shot *, html.shot *::before, html.shot *::after { animation: none !important; transition: none !important; }
html.shot .reveal, html.shot .mascot--hero, html.shot .mascot--closing { opacity: 1 !important; transform: none !important; translate: 0 0 !important; }
html.shot .mascot--buddy { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .mascot--hero, .mascot--closing { opacity: 1; transform: none; translate: 0 0; }
}

.cells { grid-template-columns: 1fr; }
