/* ───────────────────────────────────────────────
   Copilot Buddy, landing styles
   Palette grounded in the firmware brand toolkit:
   Copilot blue #54aeff · splash pink #ff80c8 · success green #3fb950
   ─────────────────────────────────────────────── */
:root {
  --bg:        #0a0c10;
  --bg-2:      #0e1117;
  --panel:     #11161f;
  --panel-2:   #161c27;
  --border:    rgba(255,255,255,.08);
  --border-2:  rgba(255,255,255,.14);
  --text:      #e9eef5;
  --muted:     #9aa6b5;
  --faint:     #6b7686;

  --blue:      #54aeff;
  --blue-2:    #2f81f7;
  --blue-soft: #9fd5ff;
  --pink:      #ff80c8;
  --green:     #3fb950;
  --red:       #f85149;
  --amber:     #d29922;

  --grad:      linear-gradient(120deg, #54aeff 0%, #9b8cff 55%, #ff80c8 100%);
  --glow-blue: 0 0 0 1px rgba(84,174,255,.25), 0 18px 60px -18px rgba(84,174,255,.55);

  --maxw: 1120px;
  --radius: 16px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { line-height: 1.1; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
code, pre, kbd { font-family: var(--mono); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--blue); color: #001; padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ───────── buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-weight: 600; font-size: .95rem; padding: .7em 1.2em; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s var(--ease), background .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn--lg { font-size: 1.02rem; padding: .85em 1.5em; }
.btn--primary { background: var(--blue); color: #04121f; box-shadow: var(--glow-blue); }
.btn--primary:hover { background: #6cbcff; transform: translateY(-2px); }
.btn--ghost { background: rgba(255,255,255,.04); color: var(--text); border-color: var(--border-2); }
.btn--ghost:hover { background: rgba(255,255,255,.09); transform: translateY(-2px); }

/* ───────── nav ───────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10,12,16,.66);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--border); background: rgba(10,12,16,.85); }
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 22px;
  display: flex; align-items: center; gap: 22px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.03em; }
.brand__glyph { display: inline-grid; place-items: center; filter: drop-shadow(0 4px 14px rgba(84,174,255,.4)); }
.brand__name { font-size: 1.05rem; }
.nav__links { display: flex; gap: 26px; margin-left: 12px; }
.nav__links a { color: var(--muted); font-size: .92rem; font-weight: 500; transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__cta { margin-left: auto; display: flex; gap: 10px; }
.nav__burger { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__burger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; transition: .25s; }

/* ───────── hero ───────── */
.hero { position: relative; padding: 70px 22px 40px; overflow: hidden; }
.hero__bg {
  position: absolute; inset: -20% -10% auto; height: 720px; z-index: 0;
  background:
    radial-gradient(40% 50% at 22% 18%, rgba(84,174,255,.22), transparent 70%),
    radial-gradient(36% 46% at 82% 8%, rgba(255,128,200,.16), transparent 70%),
    radial-gradient(50% 40% at 60% 60%, rgba(63,185,80,.07), transparent 70%);
  filter: blur(8px); pointer-events: none;
}
.hero__grid {
  position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .82rem; font-weight: 600; color: var(--blue-soft);
  background: rgba(84,174,255,.08); border: 1px solid rgba(84,174,255,.25);
  padding: 6px 13px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 800; }
.lede { color: var(--muted); font-size: 1.1rem; margin: 22px 0 28px; max-width: 36ch; }
.lede strong { color: var(--text); font-weight: 600; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__meta {
  list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px 18px;
  font-size: .82rem; color: var(--faint);
}
.hero__meta li { position: relative; padding-left: 16px; }
.hero__meta li::before { content: "✦"; position: absolute; left: 0; color: var(--blue); }

/* ───────── device demo ───────── */
.hero__device { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.device-wrap { display: grid; justify-items: center; gap: 14px; }
.device {
  position: relative; width: 196px; padding: 16px 16px 22px; border-radius: 26px;
  background: linear-gradient(160deg, #2b3340, #171c24 60%);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.08);
}
.device__led {
  position: absolute; top: 9px; left: 50%; transform: translateX(-46px);
  width: 7px; height: 7px; border-radius: 50%; background: #2a3340; transition: .3s;
}
.device__led.on { background: var(--green); box-shadow: 0 0 12px var(--green); }
.device__led.alert { background: var(--amber); box-shadow: 0 0 12px var(--amber); }
.device__screen {
  background: #05070b; border-radius: 12px; padding: 10px; min-height: 196px;
  border: 1px solid rgba(255,255,255,.06);
  display: flex; flex-direction: column; gap: 6px; overflow: hidden;
  font-family: var(--mono);
}
.screen__status { display: flex; justify-content: space-between; font-size: .58rem; color: var(--faint); letter-spacing: .04em; }
.screen__name { color: var(--blue); font-weight: 700; }
.screen__link { color: var(--green); }
.screen__pet {
  margin: 0; text-align: center; font-size: .62rem; line-height: 1.18; color: var(--blue);
  white-space: pre; transition: color .25s; text-shadow: 0 0 12px rgba(84,174,255,.35);
}
.screen__pet.happy { color: var(--green); text-shadow: 0 0 12px rgba(63,185,80,.4); }
.screen__pet.alert { color: var(--pink); text-shadow: 0 0 12px rgba(255,128,200,.4); }
.screen__pet.deny  { color: var(--red);  text-shadow: 0 0 12px rgba(248,81,73,.35); }
.screen__pet.bump  { animation: bump .4s var(--ease); }
@keyframes bump { 30%{transform:translateY(-6px) scale(1.04)} 60%{transform:translateY(0)} }
.screen__body { flex: 1; font-size: .6rem; color: var(--text); display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; }
.screen__prompt-q { color: var(--faint); }
.screen__prompt-tool { color: var(--text); font-weight: 700; font-size: .82rem; }
.screen__prompt-hint { color: var(--muted); word-break: break-all; }
.screen__keys { display: flex; gap: 8px; margin-top: 4px; }
.screen__keys b { font-weight: 700; }
.screen__keys .k-a { color: var(--green); }
.screen__keys .k-b { color: var(--red); }
.screen__result { font-size: .7rem; font-weight: 700; }
.screen__result.ok { color: var(--green); }
.screen__result.no { color: var(--red); }
.screen__ttl { height: 3px; border-radius: 3px; background: rgba(255,255,255,.07); overflow: hidden; }
.screen__ttl i { display: block; height: 100%; width: 100%; background: var(--blue); transform-origin: left; }
.screen__ttl i.run { animation: ttl 9s linear forwards; }
.screen__ttl i.low { background: var(--red); }
@keyframes ttl { to { transform: scaleX(0); } }

.device__btns { display: flex; gap: 8px; margin-top: 14px; }
.hwbtn {
  flex: 1; font-family: var(--mono); font-size: .62rem; font-weight: 700; letter-spacing: .03em;
  padding: 9px 4px; border-radius: 9px; cursor: pointer; transition: .15s var(--ease);
  border: 1px solid var(--border-2); background: #1d2430; color: var(--muted);
}
.hwbtn--a:hover { border-color: var(--green); color: var(--green); transform: translateY(-1px); }
.hwbtn--b:hover { border-color: var(--red);   color: var(--red);   transform: translateY(-1px); }
.hwbtn:active { transform: translateY(1px) scale(.98); }
.hwbtn.flash-a { background: rgba(63,185,80,.18); border-color: var(--green); color: var(--green); }
.hwbtn.flash-b { background: rgba(248,81,73,.18); border-color: var(--red); color: var(--red); }
.device__usbc {
  position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%);
  width: 34px; height: 5px; border-radius: 4px; background: #0a0d12; border: 1px solid rgba(255,255,255,.07);
}
.device__hint { font-size: .76rem; color: var(--faint); }
.device__hint kbd {
  background: var(--panel-2); border: 1px solid var(--border-2); border-bottom-width: 2px;
  border-radius: 6px; padding: 1px 7px; font-size: .72rem; color: var(--text);
}

.feed { align-self: stretch; min-width: 0; }
.feed__head { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); margin-bottom: 10px; }
.feed__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; font-family: var(--mono); font-size: .74rem; }
.feed__list li {
  display: flex; gap: 8px; align-items: baseline; padding: 7px 10px; border-radius: 9px;
  background: var(--panel); border: 1px solid var(--border);
  animation: feedin .35s var(--ease);
}
@keyframes feedin { from { opacity: 0; transform: translateX(8px); } }
.feed__list .t { color: var(--faint); font-size: .66rem; }
.feed__list .ok { color: var(--green); }
.feed__list .no { color: var(--red); }
.feed__empty { color: var(--faint); font-style: italic; }

/* ───────── trust marquee ───────── */
.trust { border-block: 1px solid var(--border); background: var(--bg-2); overflow: hidden; padding: 14px 0; }
.trust__track { display: flex; gap: 26px; white-space: nowrap; width: max-content; animation: marquee 28s linear infinite; color: var(--faint); font-family: var(--mono); font-size: .82rem; }
.trust__track span { opacity: .8; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ───────── sections ───────── */
.section { max-width: var(--maxw); margin: 0 auto; padding: 92px 22px; }
.section--alt { max-width: none; background: var(--bg-2); border-block: 1px solid var(--border); }
.section--alt > * { max-width: var(--maxw); margin-inline: auto; }
.section__head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.kicker { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.section h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; }
.sub { color: var(--muted); font-size: 1.06rem; margin-top: 16px; }

/* Collector's Edition showcase */
.collector { text-align: center; background: radial-gradient(1100px 460px at 50% -8%, rgba(84,174,255,.10), transparent 60%), var(--bg-2); }
.collector h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.1; margin: 0 0 14px; }
.collector .sub { max-width: 680px; margin: 0 auto 32px; }
.collector__media { max-width: 940px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-2); box-shadow: 0 50px 130px -50px rgba(0,0,0,.9); }
.collector__media img { display: block; width: 100%; height: auto; }
.collector__pillars { max-width: 940px; margin: 30px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: left; }
.collector__pillar { padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.02); display: grid; gap: 5px; }
.collector__pillar b { font-size: .92rem; color: var(--text); }
.collector__pillar span { font-size: .8rem; color: var(--faint); line-height: 1.45; }
.collector__cta { margin-top: 32px; display: grid; justify-items: center; gap: 14px; }
.collector__cta .btn { min-width: 220px; }
.collector__note { font-size: .82rem; color: var(--faint); margin: 0; }
@media (max-width: 720px) {
  .collector__pillars { grid-template-columns: repeat(2, 1fr); }
}
.sub code, .step code, .card code, .fineprint code, .source code { background: rgba(84,174,255,.1); color: var(--blue-soft); padding: .1em .4em; border-radius: 5px; font-size: .9em; }

/* stats row */
.stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.stat { text-align: center; padding: 30px 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--border); }
.stat b { display: block; font-size: 2.1rem; font-weight: 800; }
.stat:nth-child(1) b { color: var(--blue); }
.stat:nth-child(2) b { color: var(--green); }
.stat:nth-child(3) b { color: var(--pink); }
.stat span { color: var(--muted); font-size: .92rem; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.step { padding: 28px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--border); transition: .25s var(--ease); }
.step:hover { border-color: var(--border-2); transform: translateY(-4px); }
.step__n { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; background: var(--grad); color: #04121f; margin-bottom: 16px; }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .95rem; }
.ok { color: var(--green); } .no { color: var(--red); }

.flow { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 44px; font-family: var(--mono); font-size: .85rem; color: var(--muted); }
.flow span { padding: 8px 14px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel); }
.flow i { color: var(--faint); font-style: normal; }
.flow__ble { color: var(--blue) !important; border-color: rgba(84,174,255,.4) !important; }
.flow__dev { color: var(--pink) !important; border-color: rgba(255,128,200,.4) !important; }
.flow__back { width: 100%; text-align: center; color: var(--green); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.card { padding: 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--border); transition: .25s var(--ease); position: relative; overflow: hidden; }
.card::after { content:""; position:absolute; inset:0; border-radius: inherit; padding:1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .25s; }
.card:hover { transform: translateY(-5px); background: var(--panel-2); }
.card:hover::after { opacity: .55; }
.card__ico { font-size: 1.6rem; margin-bottom: 12px; }
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .93rem; }

/* desk pet split */
.pet-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.pet-split h2 { font-size: clamp(1.7rem,3vw,2.4rem); margin-bottom: 16px; }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 30px; color: var(--muted); }
.checklist li b { color: var(--text); }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 6px; background: rgba(63,185,80,.16); color: var(--green); display: grid; place-items: center; font-size: .72rem; font-weight: 800; }
.pet-split__panel { padding: 30px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--border); display: grid; gap: 22px; }
.pet-photo { margin: 0; }
.pet-photo picture { display: block; }
.pet-photo img { display: block; width: 100%; max-width: 360px; margin: 0 auto; height: auto; border-radius: 16px; border: 1px solid var(--border); box-shadow: 0 30px 70px -30px rgba(0,0,0,.7); }
.gauge { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 14px; }
.gauge label { font-family: var(--mono); font-size: .78rem; color: var(--faint); }
.hearts, .pips, .bars { display: flex; gap: 6px; }
.hearts i { width: 14px; height: 14px; clip-path: polygon(50% 100%, 0 35%, 25% 0, 50% 20%, 75% 0, 100% 35%); background: rgba(255,255,255,.12); }
.hearts i.f { background: var(--pink); }
.pips i { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.1); }
.pips i.f { background: var(--blue); }
.bars i { width: 16px; height: 16px; border-radius: 3px; background: rgba(255,255,255,.1); }
.bars i.f { background: var(--green); }
.level { display: flex; align-items: center; gap: 14px; padding-top: 6px; border-top: 1px solid var(--border); }
.level__badge { font-family: var(--mono); font-weight: 700; background: var(--grad); color: #04121f; padding: 6px 12px; border-radius: 9px; }
.level__stats { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .82rem; color: var(--muted); font-family: var(--mono); }
.level__stats b { color: var(--text); }

/* sources */
.sources { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.source { padding: 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--border); }
.source h4 { font-family: var(--mono); font-size: 1rem; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.source p { color: var(--muted); font-size: .88rem; }
.pill { font-family: "Inter"; font-size: .62rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.07); color: var(--muted); }
.pill--rec { background: rgba(63,185,80,.16); color: var(--green); }

/* code card */
.code-card { max-width: 760px; margin: 0 auto; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: #0b0e14; box-shadow: 0 30px 70px -30px rgba(0,0,0,.7); }
.code-card__bar { display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: var(--panel); border-bottom: 1px solid var(--border); }
.dots { display: flex; gap: 6px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #2a313d; }
.dots i:nth-child(1){ background:#ff5f57; } .dots i:nth-child(2){ background:#febc2e; } .dots i:nth-child(3){ background:#28c840; }
.code-card__title { font-family: var(--mono); font-size: .8rem; color: var(--faint); }
.copy { margin-left: auto; font-size: .76rem; font-weight: 600; padding: 5px 12px; border-radius: 7px; cursor: pointer; background: rgba(255,255,255,.06); color: var(--muted); border: 1px solid var(--border-2); transition: .2s; }
.copy:hover { color: var(--text); background: rgba(255,255,255,.12); }
.copy.done { color: var(--green); border-color: var(--green); }
.code-card__body { margin: 0; padding: 20px; overflow-x: auto; font-size: .86rem; line-height: 1.7; color: #c9d3e0; }
.code-card__body code { color: inherit; }
.fineprint { max-width: 760px; margin: 22px auto 0; text-align: center; color: var(--faint); font-size: .9rem; }

/* specs */
.specs { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.spec { padding: 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--border); }
.spec span { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin-bottom: 8px; }
.spec b { font-size: 1.02rem; }

/* CTA */
.cta { padding: 100px 22px; background: radial-gradient(60% 120% at 50% 0%, rgba(84,174,255,.14), transparent 60%); }
.cta__inner { max-width: 680px; margin: 0 auto; text-align: center; }
.cta h2 { font-size: clamp(2rem,4vw,3rem); font-weight: 800; }
.cta p { color: var(--muted); font-size: 1.1rem; margin: 18px 0 30px; }
.cta__btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* footer */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 60px 22px 30px; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1.8fr; gap: 40px; }
.footer__brand p { color: var(--muted); margin-top: 10px; max-width: 30ch; font-size: .92rem; }
.footer__cols { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.footer__cols h5 { font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); margin-bottom: 14px; }
.footer__cols a { display: block; color: var(--muted); font-size: .92rem; padding: 4px 0; transition: color .2s; }
.footer__cols a:hover { color: var(--text); }
.footer__bottom { max-width: var(--maxw); margin: 40px auto 0; padding-top: 22px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--faint); font-size: .84rem; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ───────── responsive ───────── */
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav.open .nav__links { display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(10,12,16,.97); border-bottom: 1px solid var(--border); padding: 8px 22px 18px; }
  .nav.open .nav__links a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav.open .nav__cta { display: flex; position: absolute; top: calc(64px + 220px); left: 22px; right: 22px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__device { grid-template-columns: 1fr; }
  .feed { display: none; }
  .stat-row, .steps, .cards, .sources, .specs { grid-template-columns: 1fr; }
  .pet-split { grid-template-columns: 1fr; gap: 32px; }
  .footer__inner { grid-template-columns: 1fr; }
}
@media (min-width: 901px) and (max-width: 1080px) {
  .cards, .sources { grid-template-columns: repeat(2,1fr); }
}

/* ───────── showcase image ───────── */
.showcase { max-width: var(--maxw); margin: 0 auto; padding: 60px 22px 0; }
.showcase__fig { margin: 0; }
.showcase__fig picture { display: block; }
.showcase__fig img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 20px; border: 1px solid var(--border-2); box-shadow: 0 50px 100px -45px rgba(0,0,0,.85); }
.showcase__fig figcaption {
  margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px;
}
.showcase__tag { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); font-weight: 700; }
.showcase__tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px var(--blue); animation: pulse 2s infinite; }
.showcase__fig figcaption p { flex: 1; min-width: 220px; font-size: .92rem; color: var(--text); margin: 0; }
.showcase__fig figcaption b { color: var(--blue-soft); font-weight: 600; }
.showcase__link { font-family: var(--mono); font-weight: 700; font-size: .82rem; color: var(--pink); white-space: nowrap; }
.showcase__link:hover { color: #fff; }

/* ───────── pricing ───────── */
.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; align-items: start; }
.price { position: relative; padding: 28px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 16px; transition: .25s var(--ease); }
.price:hover { transform: translateY(-4px); border-color: var(--border-2); }
.price--feat { border-color: rgba(84,174,255,.45); box-shadow: var(--glow-blue); background: var(--panel-2); }
.price__ribbon { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #04121f; font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 13px; border-radius: 999px; white-space: nowrap; }
.price__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price__top h3 { font-size: 1.15rem; }
.price__amt { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.price__amt span { font-size: .8rem; font-weight: 500; color: var(--faint); margin-left: 6px; letter-spacing: 0; }
.price__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; flex: 1; }
.price__list li { position: relative; padding-left: 24px; color: var(--muted); font-size: .9rem; }
.price__list li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 16px; height: 16px; border-radius: 5px; background: rgba(63,185,80,.16); color: var(--green); display: grid; place-items: center; font-size: .62rem; font-weight: 800; }
.price__list code { background: rgba(84,174,255,.1); color: var(--blue-soft); padding: .05em .35em; border-radius: 4px; font-size: .85em; }
.price__img { width: 100%; height: 150px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
.price picture { display: block; }
.price .btn { width: 100%; }

/* what's in the box */
.unbox { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: center; margin-bottom: 44px; padding: 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--border); }
.unbox__media { margin: 0; }
.unbox__media picture { display: block; }
.unbox__media img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 30px 70px -30px rgba(0,0,0,.7); }
.unbox__tag { display: inline-block; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--pink); font-weight: 700; margin-bottom: 10px; }
.unbox__body h3 { font-size: 1.5rem; margin-bottom: 10px; }
.unbox__body p { color: var(--muted); font-size: .95rem; }
.unbox__body em { color: var(--blue-soft); font-style: italic; }
.unbox__list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.unbox__list li { position: relative; padding-left: 26px; color: var(--text); font-size: .92rem; }
.unbox__list li::before { content: "✦"; position: absolute; left: 0; color: var(--blue); }

/* ───────── faq ───────── */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
.faq__item { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; border-left: 2px solid rgba(84,174,255,.4); overflow: hidden; transition: border-color .2s, background .2s; }
.faq__item[open] { background: var(--panel-2); border-left-color: var(--blue); }
.faq__item summary { list-style: none; cursor: pointer; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 600; font-size: 1rem; color: var(--text); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: #fff; }
.chev { width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .25s var(--ease); flex-shrink: 0; margin-top: -4px; }
.faq__item[open] .chev { transform: rotate(225deg); margin-top: 2px; border-color: var(--blue); }
.faq__a { padding: 0 20px 20px; color: var(--muted); font-size: .94rem; line-height: 1.65; }
.faq__a code { background: rgba(84,174,255,.1); color: var(--blue-soft); padding: .1em .4em; border-radius: 5px; font-size: .9em; }
.faq__a b { color: var(--text); } .faq__a .ok { color: var(--green); } .faq__a .no { color: var(--red); }

/* ───────── licensing note ───────── */
.lic { max-width: 760px; margin: 28px auto 0; display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.lic__row { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; padding: 12px 16px; background: var(--panel); }
.lic__row b { min-width: 150px; font-size: .85rem; color: var(--text); }
.lic__row span { color: var(--muted); font-size: .85rem; }
.lic__row code { background: rgba(84,174,255,.1); color: var(--blue-soft); padding: .05em .35em; border-radius: 4px; font-family: var(--mono); }
.footer__cols span.foot-note { display: block; color: var(--faint); font-size: .92rem; padding: 4px 0; }

/* ───────── responsive (added components) ───────── */
@media (max-width: 900px) {
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .unbox { grid-template-columns: 1fr; gap: 22px; }
}
@media (min-width: 901px) and (max-width: 1080px) {
  .price-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
}

/* customer portal teaser (landing #start) */
.portal-cta { max-width: var(--maxw); margin: 0 auto; }
.portal-cta__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.portal-card { padding: 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--border); transition: .25s var(--ease); }
.portal-card:hover { transform: translateY(-4px); border-color: var(--border-2); }
.portal-card__ico { font-size: 1.6rem; margin-bottom: 12px; }
.portal-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.portal-card p { color: var(--muted); font-size: .92rem; }
.portal-cta__bar { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 26px; padding: 22px; border-radius: var(--radius); background: linear-gradient(120deg, rgba(84,174,255,.08), rgba(255,128,200,.06)); border: 1px solid var(--border); }
.portal-cta__bar span { color: var(--muted); font-weight: 600; }
@media (max-width: 900px) { .portal-cta__grid { grid-template-columns: 1fr; } }

/* collector's edition extras */
.pill--in { background: rgba(63,185,80,.16); color: var(--green); }
.price__stock { font-family: var(--mono); font-size: .8rem; color: var(--blue-soft); margin: -4px 0 0; }
.price__geo { font-size: .82rem; color: var(--amber); margin: 8px 0 0; }
.btn.is-disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.price__amt #dev-amt { font-size: inherit; font-weight: inherit; color: inherit; margin: 0; }

/* device purchase modal */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 20px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(4,6,10,.72); backdrop-filter: blur(4px); }
.modal__card { position: relative; z-index: 1; width: 100%; max-width: 420px; max-height: calc(100vh - 40px); overflow-y: auto; background: var(--panel-2); border: 1px solid var(--border-2); border-radius: 18px; padding: 28px; box-shadow: 0 40px 90px -30px rgba(0,0,0,.8); }
.modal__x { position: absolute; top: 12px; right: 14px; background: none; border: 0; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.modal__x:hover { color: #fff; }
.modal__card h3 { font-size: 1.25rem; }
.modal__sub { color: var(--muted); font-size: .9rem; margin: 8px 0 18px; }
.modal__card form { display: grid; gap: 14px; }
.modal__card label { display: grid; gap: 6px; font-size: .82rem; color: var(--muted); font-weight: 600; }
.modal__card input { background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 10px; padding: 11px 12px; color: var(--text); font: inherit; font-size: .95rem; }
.modal__card input:focus { outline: none; border-color: var(--blue); }
.modal__card .btn { width: 100%; margin-top: 4px; }
.modal__err { color: var(--red); font-size: .85rem; margin: 0; }
.modal__fine { color: var(--faint); font-size: .78rem; margin: 16px 0 0; line-height: 1.5; }
/* Add-on selectable card (device modal) */
.modal__card .addon { position: relative; }
.modal__card .addon__input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; padding: 0; pointer-events: none; }
.modal__card .addon__card { display: flex; align-items: center; gap: 13px; padding: 12px; border: 1px solid var(--border-2); border-radius: 12px; background: var(--bg-2); cursor: pointer; transition: border-color .15s var(--ease), background .15s var(--ease); }
.modal__card .addon__card:hover { border-color: rgba(84,174,255,.55); }
.modal__card .addon__input:checked + .addon__card { border-color: var(--blue); background: rgba(84,174,255,.09); }
.modal__card .addon__input:focus-visible + .addon__card { outline: 2px solid var(--blue); outline-offset: 2px; }
.modal__card .addon__media { width: 48px; height: 48px; border-radius: 9px; overflow: hidden; flex: 0 0 auto; background: var(--panel); }
.modal__card .addon__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal__card .addon__body { display: grid; gap: 3px; flex: 1 1 auto; min-width: 0; }
.modal__card .addon__name { font-size: .9rem; font-weight: 600; color: var(--text); }
.modal__card .addon__desc { font-size: .75rem; font-weight: 400; color: var(--faint); line-height: 1.4; }
.modal__card .addon__side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: 0 0 auto; }
.modal__card .addon__price { font-size: .85rem; font-weight: 700; color: var(--blue); white-space: nowrap; }
.modal__card .addon__tick { width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--border-2); display: grid; place-items: center; font-size: .8rem; line-height: 1; color: transparent; background: transparent; transition: all .15s var(--ease); }
.modal__card .addon__input:checked + .addon__card .addon__tick { background: var(--blue); border-color: var(--blue); color: #04121f; }

/* Product preview card (stand modal) */
.modal__card .product { display: flex; align-items: center; gap: 13px; padding: 12px; border: 1px solid var(--border-2); border-radius: 12px; background: var(--bg-2); }
.modal__card .product__media { width: 52px; height: 52px; border-radius: 9px; overflow: hidden; flex: 0 0 auto; background: var(--panel); }
.modal__card .product__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal__card .product__body { display: grid; gap: 3px; flex: 1 1 auto; min-width: 0; }
.modal__card .product__name { font-size: .9rem; font-weight: 600; color: var(--text); }
.modal__card .product__desc { font-size: .75rem; font-weight: 400; color: var(--faint); line-height: 1.4; }
.modal__card .product__price { font-size: .95rem; font-weight: 700; color: var(--blue); white-space: nowrap; align-self: center; }

/* Order summary (device + stand modals) */
.modal__card .summary { display: grid; gap: 9px; margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); }
.modal__card .summary__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.modal__card .summary__row dt { margin: 0; font-size: .84rem; font-weight: 500; color: var(--muted); }
.modal__card .summary__row dd { margin: 0; font-size: .84rem; color: var(--text); font-variant-numeric: tabular-nums; }
.modal__card .summary__row--addon dd { color: var(--blue); }
.modal__card .summary__row--total { margin-top: 2px; padding-top: 11px; border-top: 1px solid var(--border); }
.modal__card .summary__row--total dt, .modal__card .summary__row--total dd { font-size: 1rem; font-weight: 700; color: var(--text); }
.modal__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modal__card textarea { background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 10px; padding: 11px 12px; color: var(--text); font: inherit; font-size: .95rem; resize: vertical; }
.modal__card textarea:focus { outline: none; border-color: var(--blue); }

/* one-line install callout (#how) */
.install-cta { max-width: 660px; margin: 40px auto 0; text-align: center; }
.install-cta__lead { color: var(--muted); font-size: .98rem; margin-bottom: 12px; }
.install-cmd { display: flex; align-items: center; gap: 10px; background: #0b0e14; border: 1px solid var(--border); border-radius: 12px; padding: 10px 10px 10px 18px; }
.install-cmd code { flex: 1; min-width: 0; font-family: var(--mono); font-size: .92rem; color: #c9d3e0; overflow-x: auto; white-space: nowrap; text-align: left; }
.install-cmd .btn { flex: none; }
.install-cta__note { color: var(--faint); font-size: .86rem; margin-top: 12px; }
.install-cta__note code { font-family: var(--mono); font-size: .85em; color: var(--text); }
.install-cta__note a { color: var(--blue); }
#copyBtn.done { color: var(--green); border-color: rgba(63,185,80,.4); }
