/* Islok — v4 "product" direction (after Aqara and successful Kickstarter hardware pages): bright and clear,
   product in a real home, benefit headline, icon feature grid, comparison table, pre-order tiers, timeline.
   Black and white only, system sans-serif. */

:root {
  --white: #fff;
  --gray: #f3f3f3;
  --gray-2: #e6e6e6;
  --ink: #111;
  --text: #333;
  --mid: #707070;
  --line: #e2e2e2;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
figure,
ol,
ul {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

.narrow {
  max-width: 800px;
}

.center {
  text-align: center;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* ---------- Type ---------- */

h1,
h2,
h3 {
  color: var(--ink);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(40px, 4.6vw, 60px);
  line-height: 1.07;
  font-weight: 700;
}

h2 {
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 14px;
}

h3 {
  font-size: 19px;
  font-weight: 650;
  margin-bottom: 6px;
}

.lead {
  font-size: 20px;
  line-height: 1.5;
  color: var(--text);
  max-width: 540px;
  margin: 20px 0 30px;
}

.sub {
  font-size: 18px;
  color: var(--mid);
}

.fine {
  font-size: 14px;
  color: var(--mid);
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 99px;
  background: var(--gray-2);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.badge-dark {
  background: #2a2a2a;
  color: var(--white);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 10px;
  font: 600 16px var(--sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s, transform .15s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn-dark {
  background: var(--ink);
  color: var(--white);
}

.btn-dark:hover {
  background: #333;
}

.btn-light {
  background: var(--white);
  color: var(--ink);
}

.btn-light:hover {
  background: var(--gray-2);
}

.btn-sm {
  height: 40px;
  padding: 0 18px;
  font-size: 15px;
  border-radius: 8px;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-in {
  height: 66px;
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-logo img {
  height: 30px;
  width: auto;
}

.nav .nav-logo .lp {
  font-size: 38px;
}

.nav .nav-logo .lp,
.foot .lp {
  --lp-bg: #fff;
  color: var(--ink);
}

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
}

.nav-links a:hover {
  color: var(--ink);
}

/* ---------- Hero ---------- */

.hero {
  background: var(--gray);
  padding: 56px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
}

.hero-photo {
  position: relative;
}

.hero-photo img,
.hero-photo video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 28%;
  border-radius: 24px;
  background: #d9cfc4;
}

/* hero film: keep the lock and the device in the crop (the 16:9 film has them left of centre) */
.hero-photo video {
  object-position: 24% 50%;
}

/* notification stack (hero film): newest on top, like a phone's lock screen; main.js sets data-step */
.toasts {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.toasts .toast {
  position: static;
}

.toasts .toast-open,
.toasts .toast-locked {
  display: none;
}

.toasts[data-step="open"] .toast-open,
.toasts[data-step="both"] .toast-open,
.toasts[data-step="both"] .toast-locked,
.toasts[data-step="locked"] .toast-locked {
  display: flex;
}

/* the older notification sits under the new one, a little smaller and quieter */
.toasts[data-step="both"] .toast-open {
  opacity: .82;
  transform: scale(.96);
  transform-origin: top right;
  transition: opacity .4s, transform .4s;
}

.toasts .toast.pop {
  animation: toast-pop .5s cubic-bezier(.2, .9, .3, 1.15);
}

.toasts.fade-out {
  opacity: 0;
  transition: opacity .5s;
}

@keyframes toast-pop {
  0% { transform: translateY(-14px) scale(.96); opacity: 0; }
  100% { transform: none; opacity: 1; }
}

.toast {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px 14px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .16);
  font-size: 14px;
  line-height: 1.35;
  color: var(--text);
}

.toast b {
  color: var(--ink);
}

.toast-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #000 url("../img/favicon.svg") center / cover;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin-top: 22px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.hero-points li,
.ticks li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.hero-points svg,
.ticks svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Signup ---------- */

.signup {
  max-width: 540px;
}

.signup-row {
  display: flex;
  gap: 10px;
}

.field {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  border: 1px solid #cfcfcf;
  border-radius: 10px;
  background: var(--white);
  font: 16px var(--sans);
  color: var(--ink);
}

.field:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .1);
}

.field[aria-invalid="true"] {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .16);
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--mid);
  cursor: pointer;
  text-align: left;
}

.consent input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1.5px solid #9a9a9a;
  border-radius: 5px;
  background: var(--white);
  display: grid;
  place-content: center;
  cursor: pointer;
}

.consent input::after {
  content: "";
  width: 9px;
  height: 5px;
  border: solid var(--white);
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg) translate(1px, -1px);
  opacity: 0;
}

.consent input:checked {
  background: var(--ink);
  border-color: var(--ink);
}

.consent input:checked::after {
  opacity: 1;
}

.consent.needs input {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .16);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-msg {
  min-height: 20px;
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.signup.done .signup-row,
.signup.done .consent {
  display: none;
}

.signup.done .form-msg {
  padding: 16px 18px;
  border-radius: 10px;
  background: var(--white);
}

/* ---------- Sections ---------- */

.sec {
  padding: 100px 0;
}

.sec-gray {
  background: var(--gray);
}

.sec-head {
  max-width: 720px;
  margin: 0 auto 52px;
  text-align: center;
}

/* features */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature {
  padding: 28px 24px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.ico {
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature p {
  font-size: 15px;
  color: var(--mid);
}

/* product band */
.band {
  background: #000;
  color: #d0d0d0;
  padding: clamp(56px, 8vw, 104px) 0;
}

.band-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.band h2 {
  color: var(--white);
  font-size: clamp(32px, 3.6vw, 48px);
}

.band .sub {
  color: #a8a8a8;
  max-width: 440px;
  margin-bottom: 24px;
}

.band .fine {
  color: #8a8a8a;
}

.band-video {
  width: 100%;
  max-width: 360px;
  height: auto;
  justify-self: end;
  border-radius: 24px;
  background: #1a1a1a;
}

.band-img {
  width: 100%;
  max-width: 560px;
  justify-self: end;
  -webkit-mask-image: radial-gradient(ellipse 62% 62% at 50% 50%, #000 60%, transparent 100%);
  mask-image: radial-gradient(ellipse 62% 62% at 50% 50%, #000 60%, transparent 100%);
}

/* comparison table */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}

.compare {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 15px;
}

.compare th,
.compare td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: 0;
}

.compare thead th {
  font-size: 15px;
  font-weight: 650;
  color: var(--ink);
}

.compare tbody th {
  text-align: left;
  font-weight: 500;
  color: var(--ink);
}

.compare td {
  color: var(--mid);
  font-size: 14px;
}

.compare .us {
  background: #f7f7f7;
}

.compare thead .us {
  background: var(--ink);
  color: var(--white);
}

.compare svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

.compare .yes {
  stroke: var(--ink);
}

.compare .no {
  stroke: #b0b0b0;
}

/* app */
.app-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 72px;
  align-items: center;
}

.phone {
  justify-self: center;
  max-width: 320px;
}

.phone img {
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .18));
}

.ticks {
  list-style: none;
  padding: 0;
  margin-top: 28px;
  display: grid;
  gap: 18px;
}

.ticks b {
  color: var(--ink);
}

/* tiers */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.tier {
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.tier-main {
  border: 2px solid var(--ink);
}

.tier-tag {
  font-size: 13px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--mid);
  margin-bottom: 10px;
}

.tier h3 {
  font-size: 26px;
  margin-bottom: 8px;
}

.tier p {
  font-size: 15px;
  color: var(--mid);
}

.tier-price {
  margin-top: auto;
  padding-top: 22px;
  font-weight: 650;
  color: var(--ink) !important;
}

.timeline {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--ink);
}

.timeline li {
  position: relative;
  padding: 20px 16px 0 0;
  font-size: 15px;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink);
}

.timeline b {
  display: block;
  color: var(--ink);
}

.timeline span {
  color: var(--mid);
}

/* FAQ */
.faq {
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  color: var(--mid);
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  padding: 0 32px 22px 0;
  color: var(--mid);
}

/* signup section */
.signup-sec {
  background: var(--ink);
  color: #cfcfcf;
}

.signup-sec h2 {
  color: var(--white);
}

.signup-sec .sub {
  color: #a8a8a8;
}

.signup-sec .signup {
  margin: 32px auto 0;
}

.signup-sec .field {
  background: #1f1f1f;
  border-color: #3a3a3a;
  color: var(--white);
}

.signup-sec .field::placeholder {
  color: #8a8a8a;
}

.signup-sec .field:focus {
  border-color: var(--white);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .14);
}

.signup-sec .consent {
  color: #a8a8a8;
}

.signup-sec .consent input {
  background: transparent;
  border-color: #8a8a8a;
}

.signup-sec .consent input:checked {
  background: var(--white);
  border-color: var(--white);
}

.signup-sec .consent input::after {
  border-color: var(--ink);
}

.signup-sec .form-msg {
  color: var(--white);
}

.signup-sec .signup.done .form-msg {
  background: #1f1f1f;
}

/* footer */
.foot {
  padding: 36px 0 48px;
}

.foot-in {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.foot-in img {
  height: 20px;
  width: auto;
}

/* ---------- Reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .hero-grid,
  .band-grid,
  .app-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-photo img,
  .hero-photo video {
    aspect-ratio: 4 / 3;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .band {
    padding: 64px 0;
  }

  .band-img,
  .band-video {
    justify-self: center;
  }

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

  .sec {
    padding: 80px 0;
  }
}

@media (max-width: 680px) {
  .wrap {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
  }

  .nav .btn {
    margin-left: auto;
  }

  .hero {
    padding: 32px 0 48px;
  }

  .signup-row {
    flex-direction: column;
  }

  .field {
    flex: none;
  }

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

  .timeline {
    grid-template-columns: 1fr 1fr;
    row-gap: 24px;
  }

  .sec {
    padding: 64px 0;
  }
}

/* ---------- Press strip (draft mockup names, like web/ v1) ---------- */

.press {
  padding: 34px 0 38px;
  border-bottom: 1px solid var(--line);
}

.press-label {
  text-align: center;
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--mid);
  margin-bottom: 22px;
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee .track,
.marquee .track-copy {
  display: flex;
  align-items: center;
  gap: 72px;
}

.marquee .track {
  width: max-content;
  animation: marquee 40s linear infinite;
}

.marquee:hover .track {
  animation-play-state: paused;
}

@keyframes marquee {
  to {
    transform: translateX(calc(-50% - 36px));
  }
}

.pl {
  font-size: 24px;
  color: #9a9a9a;
  white-space: nowrap;
}

.pl.serif {
  font-family: "Iowan Old Style", Georgia, serif;
  font-style: italic;
  font-weight: 600;
}

.pl.mono {
  font-family: ui-monospace, Menlo, monospace;
  font-weight: 700;
  letter-spacing: -.04em;
}

.pl.wide {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.pl.round {
  font-weight: 800;
  letter-spacing: -.04em;
}

.pl.thin {
  font-weight: 300;
  letter-spacing: .12em;
}

@media (prefers-reduced-motion: reduce) {
  .marquee .track {
    animation: none;
  }
}

.static .marquee .track {
  animation: none;
}

/* ---------- Integrations: ecosystem map ---------- */

.eco {
  padding: 110px 0 100px;
  background: #0b0b0b;
  color: #cfcfcf;
}

.eco h2,
.eco h3 {
  color: var(--white);
}

.eco .sub,
.eco .fine {
  color: #9a9a9a;
}

.eco-map {
  position: relative;
  max-width: 980px;
  height: 470px;
  margin: 0 auto 64px;
}

.eco-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.eco-lines line {
  stroke: #4a4a4a;
  stroke-width: 1.2;
  stroke-dasharray: 4 6;
  vector-effect: non-scaling-stroke;
  animation: eco-flow 1.6s linear infinite;
}

@keyframes eco-flow {
  to {
    stroke-dashoffset: -20;
  }
}

.eco-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 26px 30px 22px;
  border-radius: 28px;
  background: #0b0b0b;
  text-align: center;
}

.eco-icon {
  width: 96px;
  height: 96px;
  margin-bottom: 8px;
  border-radius: 24px;
  background: #000 url("../img/favicon.svg") center / cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 0 0 14px rgba(255, 255, 255, .04),
    0 0 0 30px rgba(255, 255, 255, .025), 0 20px 60px rgba(0, 0, 0, .6);
}

.eco-center b {
  font-size: 22px;
  color: var(--white);
}

.eco-center span:last-child {
  font-size: 13px;
  color: #8a8a8a;
}

.eco-nodes {
  list-style: none;
  margin: 0;
  padding: 0;
}

.eco-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: 10px;
}

.eco-dot {
  display: grid;
  place-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 6px #0b0b0b, 0 10px 30px rgba(0, 0, 0, .5);
  transition: transform .3s var(--ease);
}

.eco-node:hover .eco-dot {
  transform: scale(1.08);
}

.eco-dot img {
  width: 32px;
  height: 32px;
}

.eco-name {
  padding: 3px 10px;
  border-radius: 99px;
  background: #0b0b0b;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
}

.eco-ways {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.way {
  padding: 26px 26px 28px;
  border: 1px solid #262626;
  border-radius: var(--radius);
  background: #141414;
}

.way-tag {
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #8a8a8a;
  margin-bottom: 10px;
}

.way p:last-child {
  font-size: 15px;
  color: #a8a8a8;
}

.protocols {
  list-style: none;
  padding: 0;
  margin: 40px 0 18px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.protocols li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border: 1px solid #3a3a3a;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

.protocols img {
  width: 16px;
  height: 16px;
  filter: invert(1);
}

@media (prefers-reduced-motion: reduce) {
  .eco-lines line {
    animation: none;
  }
}

@media (max-width: 1000px) {
  .eco-ways {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .eco {
    padding: 72px 0;
  }

  .eco-map {
    height: auto;
    margin-bottom: 40px;
  }

  .eco-lines {
    display: none;
  }

  .eco-center {
    position: static;
    transform: none;
    margin: 0 auto 28px;
  }

  .eco-nodes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 12px;
  }

  .eco-node {
    position: static;
    transform: none;
  }

  .eco-node:last-child {
    grid-column: 1 / -1;
  }

  .eco-dot {
    width: 60px;
    height: 60px;
  }

  .eco-dot img {
    width: 28px;
    height: 28px;
  }
}

/* ---------- Doors gallery ---------- */

.door-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.door-gallery figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.door-gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  transition: transform .6s var(--ease);
}

.door-gallery figure:hover img {
  transform: scale(1.03);
}

.door-gallery figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .94);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

@media (max-width: 1000px) {
  .door-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .door-gallery {
    gap: 10px;
  }

  .door-gallery figcaption {
    left: 8px;
    bottom: 8px;
    font-size: 12px;
  }
}

/* ---------- Colour versions (2 photos, centred) ---------- */

.colour-gallery {
  grid-template-columns: repeat(2, minmax(0, 380px));
  justify-content: center;
}

@media (max-width: 520px) {
  .colour-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

/* ---------- Hero order (2026-11-30, owner): on phones say what Islok is and show it before the sign-up ---------- */

.hero-grid {
  grid-template-areas:
    "copy photo"
    "signup photo";
  grid-template-rows: auto auto;
  row-gap: 28px;
}

.hero-copy { grid-area: copy; align-self: end; }
.hero-photo { grid-area: photo; align-self: center; }
.hero-signup { grid-area: signup; align-self: start; }

@media (max-width: 1000px) {
  .hero-grid {
    grid-template-areas: "copy" "photo" "signup";
    row-gap: 24px;
  }

  .hero-photo img,
  .hero-photo video {
    aspect-ratio: 4 / 3;
  }
}

/* Phones: keep the sensor visible, the notification sits bottom-left and smaller */
@media (max-width: 680px) {
  .hero-photo .toasts {
    left: 10px;
    right: auto;
    bottom: 10px;
    align-items: flex-start;
    gap: 6px;
  }

  .toasts[data-step="both"] .toast-open {
    transform-origin: top left;
  }

  .hero-photo .toast {
    left: 10px;
    right: auto;
    bottom: 10px;
    gap: 8px;
    padding: 8px 12px 8px 8px;
    font-size: 12px;
    border-radius: 12px;
  }

  .hero-photo .toast-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }
}

/* ---------- Four sensors (2026-12-01): dark section, product render + readings panel ---------- */
.sensors {
  background: #000;
  color: #d0d0d0;
}

.sensors-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.sensors-photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.sensors h2 {
  color: var(--white);
  font-size: clamp(30px, 3.6vw, 46px);
}

.sensors .sub {
  color: #a8a8a8;
  margin-bottom: 28px;
}

.readings {
  list-style: none;
  margin: 0;
  padding: 6px 22px;
  border-radius: 22px;
  background: #161616;
  border: 1px solid #2a2a2a;
}

.readings li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid #2a2a2a;
}

.readings li:first-child {
  border-top: 0;
}

.readings .ico {
  width: 30px;
  height: 30px;
  margin: 0;
  stroke: var(--white);
}

.readings h3 {
  color: var(--white);
  font-size: 17px;
  margin: 0 0 2px;
}

.readings p {
  font-size: 14px;
  color: #9a9a9a;
  margin: 0;
}

.reading-value {
  font-weight: 600;
  font-size: 15px;
  color: var(--white);
  white-space: nowrap;
  text-align: right;
}

.reading-value.is-ok {
  color: #34c759;
}

/* ---------- Facts strip (2026-12-01): big figures, hairlines, no cards ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  border-top: 1px solid var(--line);
}

.facts > div {
  padding: 28px 24px 4px;
  border-left: 1px solid var(--line);
}

.facts > div:first-child {
  border-left: 0;
  padding-left: 0;
}

.facts dt {
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 10px;
}

.facts dd {
  margin: 0;
  font-size: 15px;
  color: var(--mid);
}

@media (max-width: 900px) {
  .sensors-grid {
    grid-template-columns: 1fr;
  }

  .sensors-grid {
    gap: 8px;
  }

  .sensors-photo {
    max-width: 300px;
    margin: 0 auto;
  }

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

  .facts > div {
    padding: 22px 16px 18px;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .facts > div:nth-child(odd) {
    padding-left: 0;
    border-right: 1px solid var(--line);
  }
}

@media (max-width: 520px) {
  .readings {
    padding: 2px 16px;
  }

  .readings li {
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 2px 12px;
    padding: 16px 0;
  }

  .readings .ico {
    width: 24px;
    height: 24px;
  }

  .readings li > div {
    display: contents;
  }

  .readings h3 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
  }

  .reading-value {
    grid-column: 3;
    grid-row: 1;
  }

  .readings p {
    grid-column: 2 / 4;
    grid-row: 2;
  }
}

.sensors-photo video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: #1c1c1e;
}
