:root {
  --ink: #0f1622;
  --ink-2: #1a2433;
  --ink-3: #2a3647;
  --paper: #f5f3ee;
  --card: #ffffff;
  --line: #e3dfd6;
  --text: #17202c;
  --muted: #5b6573;
  --led: #33d17a;
  --led-deep: #1f9d57;
  --amber: #ffb547;
  --danger: #d4483b;
  --radius: 18px;
  --head: "Unbounded", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 500 17px/1.55 var(--body);
  color: var(--text);
  background: var(--paper);
  padding-bottom: 76px; /* room for sticky bar */
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 7.6vw, 56px); font-weight: 800; }
h2 { font-size: clamp(24px, 5.4vw, 38px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 18px; }
section { padding: 64px 0; }
.section-lead { color: var(--muted); font-size: 18px; max-width: 46ch; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

/* ---------- LED motif (mirrors the indicators on the device) ---------- */
.led { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); flex: none; }
.led--on { background: var(--led); box-shadow: 0 0 10px var(--led); animation: pulse 2.4s ease-in-out infinite; }
.leds { display: flex; gap: 6px; margin-bottom: 14px; }
.leds i { width: 22px; height: 6px; border-radius: 3px; background: var(--ink-3); }
.leds i.on { background: var(--led); box-shadow: 0 0 8px rgba(51, 209, 122, .7); }
.leds--big i { width: 34px; height: 9px; }
@keyframes pulse { 50% { opacity: .45; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 0;
  font: 700 16px/1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
}
.btn--primary { background: var(--led); color: #06210f; box-shadow: 0 8px 24px -8px rgba(31, 157, 87, .7); }
.btn--primary:hover { background: #45dc88; transform: translateY(-1px); }
.btn--primary:active { transform: translateY(1px); }
.btn--xl { min-height: 58px; font-size: 18px; padding: 16px 30px; }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; color: inherit; border: 2px solid currentColor; }
.btn[disabled] { opacity: .7; cursor: progress; }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: #fff; padding: 28px 0 44px; overflow: hidden; position: relative; }
.hero::after { /* soft LED glow behind product */
  content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: 60px;
  background: radial-gradient(circle, rgba(51, 209, 122, .18), transparent 65%); pointer-events: none;
}
.hero__grid { display: grid; gap: 28px; align-items: center; position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: #b9c3d0;
  background: var(--ink-2); padding: 8px 14px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 .hl { color: var(--led); }
.lead { font-size: 18px; color: #c9d1dc; max-width: 40ch; }
.hero__media { margin: 0; border-radius: 24px; overflow: hidden; background: #fff; }
.hero__media--mobile { margin: 4px 0 16px; aspect-ratio: 16 / 10; }
.hero__media--mobile img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 759px) {
  .hero { padding-top: 18px; }
  .hero h1 { font-size: clamp(28px, 8.4vw, 40px); }
  .eyebrow { margin-bottom: 14px; font-size: 13px; }
  .lead { font-size: 17px; margin-bottom: 14px; }
  .price { margin-bottom: 14px; }
  .price__now { font-size: 38px; }
  .hero .btn--xl { width: 100%; }
}
.hero__media--desktop { display: none; }
.price { display: flex; align-items: center; gap: 16px; margin: 4px 0 18px; }
.price__now { font: 800 44px/1 var(--head); color: #fff; }
.price__note { font-size: 14px; color: #9aa6b5; line-height: 1.35; }
.trust { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: 14px; color: #c9d1dc; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { width: 20px; height: 20px; fill: none; stroke: var(--led); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Night (how it works) ---------- */
.night { background: var(--ink-2); color: #fff; }
.night .section-lead { color: #aab4c1; }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.step { background: var(--ink); border: 1px solid var(--ink-3); border-radius: var(--radius); padding: 22px; }
.step p { color: #b9c3d0; margin: 0; }
.night__photo { margin: 28px 0 0; border-radius: 24px; overflow: hidden; }

/* ---------- Calculator ---------- */
.calc { background: var(--paper); }
.calc__grid { display: grid; gap: 28px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.chip {
  font: 600 15px/1.2 var(--body); min-height: 44px; padding: 10px 16px; border-radius: 999px;
  border: 2px solid var(--line); background: var(--card); color: var(--text); cursor: pointer;
}
.chip[aria-checked="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.gauge { background: var(--ink); color: #fff; border-radius: 24px; padding: 28px; }
.gauge__num { font: 800 72px/1 var(--head); color: var(--led); display: flex; align-items: baseline; gap: 10px; }
.gauge__num small { font-size: 22px; color: #fff; }
.gauge__bar { height: 12px; background: var(--ink-3); border-radius: 6px; overflow: hidden; margin: 18px 0 14px; }
.gauge__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--led-deep), var(--led)); border-radius: 6px; transition: width .5s ease; }
.gauge__cap { margin: 0; color: #c9d1dc; }
.gauge__cap span { color: #8793a3; font-size: 14px; }

/* ---------- Ports ---------- */
.ports { background: var(--card); }
.ports__grid { display: grid; gap: 28px; align-items: center; }
.ports__img { margin: 0; }
.spec-list { list-style: none; padding: 0; margin: 0 0 18px; }
.spec-list li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; align-items: baseline; }
.spec-list b { font-family: var(--head); font-size: 15px; min-width: 92px; color: var(--led-deep); }
.hint { color: var(--muted); font-size: 15px; }
.msg-row { display: flex; gap: 10px; flex-wrap: wrap; }
.msg-row .btn { flex: 1 1 140px; }

/* ---------- Gallery ---------- */
.gallery { padding-bottom: 48px; }
.strip {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 18px 16px; scroll-padding: 18px; -webkit-overflow-scrolling: touch;
}
.strip img {
  flex: none; width: min(78vw, 360px); aspect-ratio: 1; object-fit: cover;
  border-radius: var(--radius); background: #fff; scroll-snap-align: start;
}

/* ---------- Specs ---------- */
.specs { background: var(--card); }
.specs__grid { display: grid; gap: 28px; }
.table { margin: 0; }
.table div { display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.table dt { color: var(--muted); }
.table dd { margin: 0; font-weight: 700; }
.box { background: var(--paper); border-radius: var(--radius); padding: 24px; }
.check { list-style: none; padding: 0; margin: 0 0 22px; }
.check li { padding: 6px 0 6px 30px; position: relative; }
.check li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 12px; height: 7px; border: solid var(--led-deep); border-width: 0 0 3px 3px; transform: rotate(-45deg); }

/* ---------- Order ---------- */
.order { background: var(--ink); color: #fff; }
.order .section-lead { color: #aab4c1; }
.order__grid { display: grid; gap: 28px; align-items: start; }
.mini-steps { margin: 0; padding-left: 22px; color: #c9d1dc; }
.mini-steps li { padding: 4px 0; }
.form, .success { background: var(--card); color: var(--text); border-radius: 24px; padding: 22px; }
.packs { border: 0; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.packs legend { font-weight: 700; margin-bottom: 10px; padding: 0; }
.pack { position: relative; cursor: pointer; }
.pack input { position: absolute; opacity: 0; inset: 0; }
.pack__body {
  display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 14px; border-radius: 14px;
  border: 2px solid var(--line); background: var(--paper); transition: border-color .15s, background .15s;
}
.pack input:checked + .pack__body { border-color: var(--led-deep); background: #eafaf0; }
.pack input:focus-visible + .pack__body { outline: 3px solid var(--amber); outline-offset: 2px; }
.pack__title { font: 700 18px/1.2 var(--head); }
.pack__sub { font-size: 13px; color: var(--muted); line-height: 1.3; }
.pack__price { font-weight: 800; margin-top: auto; padding-top: 6px; }
.pack__price s { color: var(--muted); font-weight: 500; font-size: 13px; }
.pack__badge { position: absolute; top: -9px; right: 10px; background: var(--amber); color: #3a2500; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.field small { font-weight: 500; color: var(--muted); }
.field textarea {
  width: 100%; padding: 12px 16px; font: 500 16px/1.4 var(--body); color: var(--text);
  border: 2px solid var(--line); border-radius: 14px; background: #fff; resize: vertical; min-height: 84px;
}
.field textarea:focus { border-color: var(--ink); outline: none; }
.field input {
  width: 100%; min-height: 54px; padding: 12px 16px; font: 600 18px var(--body); color: var(--text);
  border: 2px solid var(--line); border-radius: 14px; background: #fff;
}
.field input:focus { border-color: var(--ink); outline: none; }
.field.invalid input { border-color: var(--danger); }
.err { display: block; color: var(--danger); font-size: 14px; font-style: normal; margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: 13px; color: var(--muted); margin: 12px 0 0; text-align: center; }
.form__error { color: var(--danger); font-weight: 600; margin: 12px 0 0; text-align: center; }
.success { text-align: center; }
.success .leds { justify-content: center; }
.success .msg-row { justify-content: center; }
.success .btn--ghost { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq .wrap { max-width: 780px; }
details { background: var(--card); border-radius: 14px; margin-bottom: 10px; border: 1px solid var(--line); }
summary { cursor: pointer; padding: 18px 48px 18px 18px; font-weight: 700; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font: 600 24px var(--head); color: var(--led-deep); }
details[open] summary::after { content: "−"; }
details p { padding: 0 18px 18px; margin: 0; color: var(--muted); }

/* ---------- Footer / sticky ---------- */
.footer { background: var(--ink); color: #9aa6b5; padding: 32px 0; font-size: 14px; }
.footer__grid { display: grid; gap: 14px; }
.footer b { color: #fff; }
.footer p { margin: 0; }
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(15, 22, 34, .96); color: #fff;
  backdrop-filter: blur(8px); transform: translateY(110%); transition: transform .25s ease;
}
.sticky.show { transform: none; }
.sticky__price { font: 800 22px/1.1 var(--head); }
.sticky__price small { display: block; font: 500 12px var(--body); color: #9aa6b5; }
.sticky .btn { min-width: 150px; }

/* ---------- Desktop ---------- */
@media (min-width: 760px) {
  section { padding: 96px 0; }
  .hero { padding: 64px 0 88px; }
  .hero__grid { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .hero__media--mobile { display: none; }
  .hero__media--desktop { display: block; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .night__photo img { width: 100%; max-height: 640px; object-fit: cover; object-position: 50% 45%; }
  .calc__grid, .ports__grid, .order__grid { grid-template-columns: 1fr 1fr; gap: 56px; }
  .specs__grid { grid-template-columns: 1.3fr 1fr; gap: 56px; }
  .strip { max-width: 1120px; margin: 0 auto; }
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
  body { padding-bottom: 0; }
  .sticky { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
