:root {
  --paper: #f4f1eb;
  --paper-2: #ebe6dc;
  --ink: #14161a;
  --ink-2: #4a4d52;
  --line: #d9d3c7;
  --night: #14161a;
  --night-2: #1d2025;
  --night-line: #2c3037;
  --amber: #f0a43a;
  --amber-soft: #f6c77f;
  --green: #2f6f5e;
  --radius: 18px;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.wrap--narrow { width: min(780px, 100% - 32px); }

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.02;
  margin: 0 0 24px;
}
h1 { font-size: clamp(48px, 7vw, 92px); }
h2 { font-size: clamp(38px, 5vw, 64px); max-width: 16ch; }
h1 em, h2 em { font-style: italic; color: var(--green); }
h3 { font-size: 18px; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.01em; }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--small { padding: 9px 16px; font-size: 14px; }
.btn--full { width: 100%; }
.btn--whatsapp { background: #25d366; border-color: #25d366; color: #0b2b17; margin-top: 8px; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.nav__links { display: flex; gap: 28px; font-size: 15px; }
.nav__links a { text-decoration: none; color: var(--ink-2); }
.nav__links a:hover { color: var(--ink); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.lang {
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
  flex-shrink: 0;
}
.logo__text {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1px;
  width: max-content;
}
.logo__top {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #222427; /* near-black; slightly softer than --ink */
  white-space: nowrap;
}
/* Per-letter spans + space-between → same width as Domótica, no JS/fonts race */
.logo__bottom {
  display: flex;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  line-height: 1.1;
  color: var(--amber);
}
.logo__dot { color: var(--amber); }
.logo__mark {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 6px;
  background:
    radial-gradient(circle at 70% 30%, var(--amber) 0 4px, transparent 5px),
    var(--ink);
  clip-path: polygon(50% 0, 100% 40%, 100% 100%, 0 100%, 0 40%);
}

/* Hero */
.hero { padding: 56px 0 96px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.lede { font-size: 19px; color: var(--ink-2); max-width: 34em; margin: 0 0 32px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hero__points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--ink-2); }
.hero__points li::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: 8px; }

.hero__demo { position: relative; display: grid; justify-items: center; }
.glow {
  position: absolute;
  inset: -10% -20%;
  background: radial-gradient(closest-side, var(--glow, rgba(240,164,58,.55)), transparent 70%);
  opacity: var(--glow-o, 1);
  transition: background .6s ease, opacity .6s ease;
  pointer-events: none;
}
.demo__hint { position: relative; font-size: 13px; color: var(--ink-2); margin: 16px 0 0; }

/* Phone */
.phone {
  position: relative;
  width: 330px;
  max-width: 100%;
  padding: 12px;
  border-radius: 46px;
  background: #0d0e10;
  box-shadow: 0 40px 80px -30px rgba(20,22,26,.6), inset 0 0 0 2px #2a2d33;
}
.phone__notch { position: absolute; top: 20px; left: 50%; translate: -50% 0; width: 90px; height: 24px; border-radius: 20px; background: #000; z-index: 2; }
.app {
  position: relative;
  border-radius: 36px;
  background: var(--night);
  color: #f2efe8;
  padding: 54px 16px 72px;
  min-height: 600px;
  overflow: hidden;
}
.app__head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.app__hello { margin: 0; font-family: var(--serif); font-size: 26px; line-height: 1.1; }
.app__home { margin: 2px 0 0; font-size: 12px; color: #9a9ea6; }
.app__weather { font-size: 13px; color: #c9ccd2; background: var(--night-2); padding: 6px 10px; border-radius: 999px; }

.app__scenes { display: flex; gap: 6px; margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.chip {
  flex: none;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--night-line);
  background: transparent;
  font-size: 12px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.chip.is-active { background: var(--amber); border-color: var(--amber); color: var(--ink); }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "icon icon" "name name" "state state";
  align-content: start;
  gap: 2px;
  text-align: left;
  padding: 12px;
  border-radius: 18px;
  border: 0;
  background: var(--night-2);
  transition: background .3s ease, color .3s ease;
}
button.tile { cursor: pointer; }
.tile__icon { grid-area: icon; width: 30px; height: 30px; border-radius: 50%; background: #2a2e35; display: grid; place-items: center; margin-bottom: 6px; transition: background .3s; }
.tile__icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile__name { grid-area: name; font-size: 13px; font-weight: 600; }
.tile__state { grid-area: state; font-size: 12px; color: #9a9ea6; }
.tile[aria-pressed="true"] { background: #f2efe8; color: var(--ink); }
.tile[aria-pressed="true"] .tile__icon { background: var(--amber); }
.tile[aria-pressed="true"] .tile__state { color: var(--ink-2); }
.tile--wide { grid-column: span 2; grid-template-columns: auto 1fr auto; grid-template-areas: "icon name state" "slider slider slider"; align-items: center; gap: 4px 10px; }
.tile--wide .tile__icon { margin: 0; }
.tile--wide .tile__state { text-align: right; }
.tile--thermo { grid-template-areas: "icon name thermo"; }
.tile--sensors .tile__state.is-alert { color: var(--amber); }

.slider { grid-area: slider; width: 100%; margin-top: 8px; accent-color: var(--amber); }
.thermo { grid-area: thermo; display: flex; align-items: center; gap: 10px; }
.thermo__btn { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--night-line); background: transparent; cursor: pointer; font-size: 16px; line-height: 1; }
.thermo__val { font-family: var(--serif); font-size: 30px; min-width: 2ch; text-align: center; }

.app__toast {
  position: absolute;
  left: 16px; right: 16px; bottom: 16px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(240,164,58,.15);
  border: 1px solid rgba(240,164,58,.35);
  color: var(--amber-soft);
  font-size: 12px;
  opacity: 0;
  translate: 0 10px;
  transition: opacity .3s, translate .3s;
}
.app__toast.is-visible { opacity: 1; translate: 0 0; }

/* Sections */
.section { padding: 112px 0; }
.section__lede { font-size: 18px; color: var(--ink-2); max-width: 36em; margin: -8px 0 40px; }
.section--dark { background: var(--night); color: #f2efe8; }
.section--dark .eyebrow { color: var(--amber); }
.section--dark h2 em { color: var(--amber-soft); }
.section--dark .section__lede { color: #b0b3b9; }
.section--soft { background: var(--paper-2); }

/* Device cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.card {
  background: #fbfaf7;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(20,22,26,.35); }
.card p { margin: 0; font-size: 15px; color: var(--ink-2); }
.card__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--paper-2); display: grid; place-items: center; margin-bottom: 20px; }
.card__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card--accent { background: var(--ink); color: #f2efe8; border-color: var(--ink); }
.card--accent p { color: #b0b3b9; }
.card--accent .card__icon { background: var(--amber); }

/* Scenes */
.scenes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.scene {
  text-align: left;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--night-line);
  background: var(--night-2);
  cursor: pointer;
  transition: border-color .2s, transform .2s;
}
.scene:hover { transform: translateY(-3px); border-color: #3c414a; }
.scene.is-active { border-color: var(--amber); }
.scene p { margin: 0; color: #b0b3b9; font-size: 15px; }
.scene__time { display: inline-block; font-family: var(--serif); font-size: 32px; color: var(--amber-soft); margin-bottom: 12px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: none; }
.step { border-top: 1px solid var(--ink); padding-top: 20px; }
.step__n { display: block; font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--green); margin-bottom: 16px; }
.step p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* FAQ */
.faq { margin-top: 40px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 40px 22px 0;
  font-weight: 600;
  font-size: 17px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%; font-size: 24px; font-weight: 400; transition: rotate .2s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: 0 0 22px; color: var(--ink-2); max-width: 60ch; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.form { background: var(--night-2); border: 1px solid var(--night-line); border-radius: 24px; padding: 28px; display: grid; gap: 16px; }
.form label, .form legend { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: #c9ccd2; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend { margin-bottom: 8px; }
.form input:not([type="checkbox"]), .form select, .form textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: #f2efe8;
  background: var(--night);
  border: 1px solid var(--night-line);
  border-radius: 12px;
  padding: 12px 14px;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: transparent; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { display: block; cursor: pointer; }
.checks input { position: absolute; opacity: 0; pointer-events: none; }
.checks span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--night-line); font-size: 13px; transition: background .2s, color .2s, border-color .2s; }
.checks input:checked + span { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.checks input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }
.form .btn { background: var(--amber); border-color: var(--amber); color: var(--ink); margin-top: 4px; }

/* Footer */
.footer { padding: 40px 0; border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; font-size: 14px; color: var(--ink-2); }
.footer p { margin: 0; }
.footer .logo { color: var(--ink); }
.footer__mid { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 200px; }
.footer__links a {
  color: var(--green);
  font-weight: 500;
  text-decoration: none;
}
.footer__links a:hover { text-decoration: underline; }
.footer__meta { display: flex; flex-direction: column; gap: 4px; text-align: right; }
.footer__meta .footer__small { font-size: 13px; }

/* Reveal on scroll */
.reveal { opacity: 0; translate: 0 16px; transition: opacity .6s ease, translate .6s ease; }
.reveal.is-in { opacity: 1; translate: 0 0; }

/* Blog */
.blog-draft-banner {
  margin: 0;
  padding: 10px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--amber);
  color: var(--ink);
}
.blog-fallback {
  margin: 0 0 16px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
  background: color-mix(in srgb, var(--amber) 12%, transparent);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.blog-fallback a { color: var(--ink); font-weight: 600; }
.blog-page .nav__links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.blog-hero { padding-bottom: 48px; }
.blog-hero h1 { font-size: clamp(40px, 6vw, 72px); max-width: 14ch; }
.blog-list { padding-top: 0; }
.blog-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.blog-cats a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  color: var(--ink-2);
}
.blog-cats a:hover,
.blog-cats a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--ink);
}
.blog-cats span {
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.blog-card {
  display: grid;
  gap: 16px;
  align-content: start;
}
.blog-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--night);
  aspect-ratio: 16 / 9;
  text-decoration: none;
  color: #f2efe8;
}
.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 35%,
    rgba(20, 22, 26, 0.55) 70%,
    rgba(20, 22, 26, 0.88) 100%
  );
  pointer-events: none;
}
.blog-card__title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  margin: 0;
  padding: 16px 18px 18px;
  font-family: var(--serif);
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 400;
  line-height: 1.15;
  max-width: none;
  color: #f2efe8;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.blog-card__media:hover .blog-card__title {
  color: #fff;
}
.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--ink-2);
}
.blog-card__meta a {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}
.blog-card__desc { margin: 0; color: var(--ink-2); font-size: 15px; }
.blog-empty { color: var(--ink-2); font-size: 17px; }

/* Visually hidden — kept for rare a11y cases */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.blog-post { padding-top: 64px; }
.blog-post .eyebrow a { color: inherit; text-decoration: none; }
.blog-post .eyebrow a:hover { text-decoration: underline; }
.blog-post__meta {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--ink-2);
}
/*
 * Cover wider than the content column; HTML title inset matches the column
 * left edge (96/1600 ≈ 5.8125% of cover → bleed ≈ 6.577% of column).
 */
.blog-post--cover-title .blog-post__cover {
  position: relative;
  width: min(calc(100% / 0.88375), 100vw);
  max-width: none;
  margin-top: 0;
  margin-bottom: 20px;
  margin-left: max(calc((100% - 100% / 0.88375) / 2), calc((100% - 100vw) / 2));
  margin-right: max(calc((100% - 100% / 0.88375) / 2), calc((100% - 100vw) / 2));
}
.blog-post__cover {
  position: relative;
  margin: 0 0 40px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--night);
}
.blog-post__cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.blog-post__cover-scrim {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: clamp(48px, 12%, 120px) 5.8125% clamp(20px, 4%, 36px);
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(20, 22, 26, 0.45) 45%,
    rgba(20, 22, 26, 0.82) 100%
  );
  pointer-events: none;
}
.blog-post__cover-title {
  margin: 0;
  max-width: 18ch;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4.5vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: #f2efe8;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
@media (max-width: 560px) {
  .blog-post__cover-scrim {
    padding: 56px 16px 16px;
  }
  .blog-post__cover-title {
    max-width: none;
    font-size: clamp(24px, 7vw, 34px);
  }
  .blog-card__title {
    padding: 12px 14px 14px;
    font-size: clamp(18px, 5vw, 22px);
  }
}
.blog-prose {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
}
.blog-prose > *:first-child { margin-top: 0; }
.blog-prose h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  max-width: none;
  margin: 48px 0 16px;
}
.blog-prose h3 {
  font-size: 22px;
  margin: 32px 0 12px;
  font-family: var(--serif);
  font-weight: 400;
}
.blog-prose p,
.blog-prose ul,
.blog-prose ol { margin: 0 0 20px; color: var(--ink-2); }
.blog-prose ul,
.blog-prose ol { padding-left: 1.3em; }
.blog-prose li { margin-bottom: 8px; }
.blog-prose a { color: var(--green); }
.blog-prose strong { color: var(--ink); font-weight: 600; }
.blog-prose blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--amber);
  color: var(--ink-2);
}
.blog-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 40px 0 0;
}
.blog-tags li {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
}
.blog-post__products {
  margin: 36px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.blog-post__products a {
  color: var(--green);
  font-weight: 500;
  text-decoration: none;
}
.blog-post__products a:hover { text-decoration: underline; }
.blog-post__back { margin: 20px 0 0; }
.blog-post__back a {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
}
.blog-post__back a:hover { color: var(--ink); }

/* Recommended products */
.products-disclosure {
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--ink-2);
  max-width: 52ch;
}
.products-hero {
  padding-bottom: 40px;
}
.products-toc-bar {
  position: sticky;
  top: 68px;
  z-index: 15;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.products-toc {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 12px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.products-toc::-webkit-scrollbar { display: none; }
.products-toc a {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  color: var(--ink-2);
  white-space: nowrap;
}
.products-toc a:hover {
  color: var(--ink);
  border-color: var(--ink);
}
.products-toc a[aria-current="true"] {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}
.products-list { padding-top: 40px; }
.products-category {
  margin-bottom: 56px;
  scroll-margin-top: 148px;
}
.products-category h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  max-width: none;
  margin: 0 0 24px;
}
.products-grid {
  display: grid;
  gap: 28px;
}
.product-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(112px, 140px) minmax(0, 1fr);
  gap: 16px 24px;
  align-items: start;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.product-card:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.product-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #fff;
}
.product-card__media.is-broken {
  pointer-events: none;
}
.product-card__media.is-broken img {
  display: none;
}
.product-card__pixel {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.product-card__body { min-width: 0; }
.product-card__name {
  font-family: var(--serif);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 10px;
  max-width: 36ch;
}
.product-card__why {
  margin: 0 0 16px;
  color: var(--ink-2);
  font-size: 16px;
  max-width: 52ch;
}
.product-card__cta { margin: 0 0 16px; }
.product-card__cta .btn {
  background: transparent;
  color: var(--ink);
}
.product-card__cta .btn:hover {
  background: var(--ink);
  color: var(--paper);
}
.product-card__related-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.product-card__related ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.product-card__related a {
  color: var(--green);
  text-decoration: none;
  font-size: 14px;
}
.product-card__related a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 1000px) {
  .cards, .scenes { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .hero { padding-top: 32px; }
  .hero__grid, .contact { grid-template-columns: 1fr; gap: 48px; }
  .section { padding: 80px 0; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-post { padding-top: 40px; }
}
@media (max-width: 560px) {
  .cards, .scenes, .steps { grid-template-columns: 1fr; }
  .nav__actions .btn--small { display: none; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .logo { gap: 8px; }
  .logo__mark { width: 18px; height: 18px; }
  .logo__top { font-size: 19px; }
  .logo__bottom { font-size: 10px; }
  .product-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .reveal { opacity: 1; translate: none; }
}

/* ===== Smart-home quiz ===== */
body.quiz-page { background:
  radial-gradient(ellipse 80% 50% at 10% -10%, color-mix(in srgb, var(--amber) 18%, transparent), transparent 55%),
  radial-gradient(ellipse 60% 40% at 100% 0%, color-mix(in srgb, var(--green) 12%, transparent), transparent 50%),
  var(--paper);
}
.quiz-embed .nav,
.quiz-embed .footer,
.quiz-embed .quiz-seo { display: none !important; }
.quiz-embed body,
html.quiz-embed body { background: var(--paper); }

.quiz-main { padding: 24px 0 80px; min-height: 70vh; }
.quiz-shell { width: min(720px, 100% - 32px); margin: 0 auto; }
.quiz-panel { margin-top: 12px; }
.quiz-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-2);
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.quiz-back--spacer { visibility: hidden; }
.quiz-progress { margin: 8px 0 28px; }
.quiz-progress span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.quiz-progress__bar {
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.quiz-progress__bar i {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: inherit;
  transition: width .25s ease;
}
.quiz-h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1.05;
  margin: 0 0 16px;
  max-width: 14ch;
}
.quiz-h1--result { max-width: 18ch; font-size: clamp(36px, 6vw, 56px); }
.quiz-lede { font-size: 20px; color: var(--ink-2); margin: 0 0 32px; max-width: 28ch; }
.quiz-prompt {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.15;
  margin: 0 0 28px;
  max-width: 18ch;
  letter-spacing: -0.01em;
}
.quiz-tap {
  min-height: 56px;
  padding: 16px 28px;
  font-size: 17px;
  margin-top: 8px;
}
.quiz-skip {
  display: block;
  margin: 28px 0 0;
  padding: 12px 0;
  min-height: 48px;
  border: 0;
  background: none;
  color: var(--ink-2);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.quiz-cards {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}
.quiz-cards--yn { grid-template-columns: 1fr; }
@media (min-width: 560px) {
  .quiz-cards--card { grid-template-columns: 1fr 1fr; }
  .quiz-cards--multi { grid-template-columns: 1fr 1fr; }
}
.quiz-card {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 16px 18px;
  text-align: left;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--paper) 70%, #fff);
  cursor: pointer;
  font-size: 16px;
  line-height: 1.35;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.quiz-card:hover { border-color: var(--ink); transform: translateY(-1px); }
.quiz-card.is-selected {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.quiz-cards--yn .quiz-card {
  min-height: 64px;
  font-size: 18px;
  font-weight: 500;
  justify-content: center;
  text-align: center;
}
.quiz-hint { margin: -12px 0 16px; color: var(--ink-2); font-size: 14px; }
.quiz-slider { margin-bottom: 24px; }
.quiz-slider__value {
  font-family: var(--serif);
  font-size: clamp(48px, 10vw, 72px);
  line-height: 1;
}
.quiz-slider__label {
  margin: 8px 0 4px;
  font-size: 18px;
  color: var(--ink-2);
  text-transform: capitalize;
}
.quiz-range {
  width: 100%;
  margin: 20px 0 12px;
  accent-color: var(--amber);
  height: 36px;
}
.quiz-number {
  width: 100%;
  max-width: 140px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 16px;
  background: #fff;
}
.quiz-open {
  width: 100%;
  padding: 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  font: inherit;
  font-size: 17px;
  resize: vertical;
  min-height: 120px;
  margin-bottom: 16px;
  background: #fff;
}
.quiz-open:focus {
  outline: 2px solid var(--amber);
  border-color: transparent;
}

.quiz-reveal {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  min-height: 200px;
  padding: 24px 0 48px;
}
.quiz-reveal__letter {
  font-family: var(--serif);
  font-size: clamp(96px, 22vw, 160px);
  line-height: 0.85;
  color: var(--green);
  opacity: 0;
  transform: translateY(12px) scale(0.92);
  transition: opacity .4s ease, transform .45s cubic-bezier(.2,.8,.2,1);
}
.quiz-reveal__letter.is-in { opacity: 1; transform: none; }
.quiz-reveal__score {
  font-family: var(--serif);
  font-size: clamp(36px, 6vw, 52px);
  margin: 0;
}
.quiz-reveal__name {
  font-size: 22px;
  margin: 0 0 8px;
  opacity: 0;
  transition: opacity .35s ease;
}
.quiz-reveal__name.is-in { opacity: 1; }

.quiz-result-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px 28px;
  align-items: start;
  margin-bottom: 40px;
}
.quiz-grade-badge {
  font-family: var(--serif);
  font-size: clamp(72px, 16vw, 120px);
  line-height: 0.85;
  color: var(--green);
}
.quiz-scoreline { font-size: 22px; margin: 0 0 12px; }
.quiz-level-line { color: var(--ink-2); max-width: 36ch; margin: 0 0 12px; }
.quiz-context { font-size: 15px; color: var(--ink-2); font-style: italic; margin: 0; }
.quiz-section { margin: 0 0 40px; }
.quiz-section h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 36px);
  max-width: none;
  margin: 0 0 16px;
}
.quiz-bars { display: grid; gap: 14px; }
.quiz-bar__label {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--ink-2);
}
.quiz-bar__track {
  height: 10px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.quiz-bar__track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--amber));
  border-radius: inherit;
}
.quiz-strengths { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.quiz-strengths li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.quiz-muted { color: var(--ink-2); }
.quiz-nexts { display: grid; gap: 20px; }
.quiz-next {
  padding: 0 0 20px;
  border-bottom: 1px solid var(--line);
}
.quiz-next h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  margin: 0 0 8px;
}
.quiz-next p { margin: 0 0 10px; color: var(--ink-2); }
.quiz-next__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 14px;
}
.quiz-next__links a { color: var(--green); font-weight: 500; }
.quiz-next blockquote,
.quiz-section blockquote {
  margin: 0 0 12px;
  padding: 12px 0 12px 16px;
  border-left: 3px solid var(--amber);
  color: var(--ink-2);
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.3;
}
.quiz-share__card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  margin-bottom: 16px;
}
.quiz-share__letter {
  font-family: var(--serif);
  font-size: 56px;
  line-height: 1;
  color: var(--green);
}
.quiz-share__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.quiz-embed { margin-top: 20px; color: var(--ink-2); }
.quiz-embed__code {
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--night);
  color: #f2efe8;
  padding: 16px;
  border-radius: 12px;
  font-size: 13px;
  overflow: auto;
}
.quiz-capture {
  margin: 48px 0 24px;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
}
.quiz-capture__form {
  display: grid;
  gap: 14px;
  max-width: 420px;
}
.quiz-capture__form label span { display: block; font-size: 14px; margin-bottom: 6px; }
.quiz-capture__form input[type="tel"],
.quiz-capture__form input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  min-height: 56px;
  background: #fff;
}
.quiz-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--ink-2);
}
.quiz-consent input { margin-top: 4px; }
.quiz-capture__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.quiz-capture__note { color: #8a3b2a; font-size: 14px; }
.quiz-thanks { color: var(--green); font-weight: 500; }
.quiz-footer-link { margin-top: 32px; }
.quiz-footer-link a { color: var(--green); font-weight: 500; }
.quiz-shared-banner { margin-bottom: 24px; }
.quiz-seo {
  width: min(720px, 100% - 32px);
  margin: 0 auto 80px;
  color: var(--ink-2);
}
.quiz-seo h2 {
  font-family: var(--serif);
  font-size: 32px;
  max-width: none;
  color: var(--ink);
}
.quiz-seo details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.quiz-seo summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}
@media (max-width: 560px) {
  .quiz-result-head { grid-template-columns: 1fr; }
  .quiz-share__btns .btn { flex: 1 1 calc(50% - 10px); justify-content: center; }
}
