/* ==========================================================================
   Adom landing page

   Composition for the marketing page at /. Consumes tokens.css and base.css.
   Premium editorial digital house health, with the house as the anchor.
   ========================================================================== */

/* Over photography the darker action green loses contrast, so dark partials
   and the unscrolled header use the bright accent instead. */
.hero :focus-visible,
.memory-image :focus-visible,
.site-header:not([data-scrolled="true"]) :focus-visible {
  outline-color: var(--green-bright);
}

.section {
  padding-block: var(--section-space);
}

.section-intro {
  width: var(--page);
  max-width: 860px;
  margin: 0 auto clamp(64px, 7vw, 96px);
}

.section-intro h2 {
  max-width: 820px;
}

.section-intro > p {
  max-width: 640px;
  margin-top: 28px;
  font-size: 18px;
  line-height: 1.68;
}

.section-intro-centered {
  text-align: center;
}

.section-intro-centered h2,
.section-intro-centered > p {
  margin-inline: auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 180ms var(--ease-out),
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.button-solid {
  border: 1px solid var(--green-action);
  color: var(--surface);
  background: var(--green-action);
  cursor: pointer;
}

.button-solid:hover {
  border-color: var(--green-action-hover);
  background: var(--green-action-hover);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--green-action-hover) 22%, transparent);
  transform: translateY(-2px);
}

.button-quiet {
  border: 1px solid color-mix(in srgb, var(--cream) 58%, transparent);
  color: var(--cream);
  background: color-mix(in srgb, var(--night) 38%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.button-quiet:hover {
  border-color: var(--cream-muted);
  background: color-mix(in srgb, var(--night) 44%, transparent);
  transform: translateY(-2px);
}

/* Header */

/* The header floats over the cinematic hero and only becomes a surface once
   the page has scrolled, so the photograph reaches the top of the viewport. */

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 80px;
  padding-inline: var(--gutter);
}

.site-header::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-bottom: 1px solid var(--line-veil);
  background: var(--canvas-veil);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  transition: opacity 300ms ease;
}

.site-header[data-scrolled="true"]::before {
  opacity: 1;
}

.brand {
  position: relative;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  /* Padding lifts the wordmark to a 44px touch target without moving it. */
  padding-block: 9px;
}

.brand-mark {
  width: auto;
  height: 32px;
  transition: opacity 300ms ease;
}

.brand-mark-on-image {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  filter: brightness(0) invert(1);
}

.brand-mark-on-canvas {
  opacity: 0;
}

.site-header[data-scrolled="true"] .brand-mark-on-image {
  opacity: 0;
}

.site-header[data-scrolled="true"] .brand-mark-on-canvas {
  opacity: 1;
}

.site-header nav {
  display: flex;
  gap: clamp(20px, 2.2vw, 32px);
}

.site-header nav a {
  position: relative;
  color: var(--cream-muted);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: color 200ms ease;
}

.site-header nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.35);
  transition:
    opacity 200ms ease,
    transform 260ms var(--ease-out);
}

.site-header nav a:hover {
  color: var(--cream);
}

.site-header nav a[aria-current="true"] {
  color: var(--green-bright);
}

.site-header nav a[aria-current="true"]::after {
  opacity: 1;
  transform: none;
}

.site-header[data-scrolled="true"] nav a {
  color: var(--body);
}

.site-header[data-scrolled="true"] nav a:hover,
.site-header[data-scrolled="true"] nav a[aria-current="true"] {
  color: var(--green-action);
}

.header-cta {
  justify-self: end;
  min-height: 44px;
  padding-inline: 20px;
  font-size: 13px;
}

.header-actions {
  justify-self: end;
  display: flex;
  gap: 18px;
  align-items: center;
}

.language-switcher {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: var(--cream-muted);
  font-size: 12px;
  font-weight: 700;
}

.language-switcher a {
  color: inherit;
  text-decoration: none;
}

.language-switcher a:not([aria-current="page"]) {
  opacity: 0.66;
}

.language-switcher a:hover,
.language-switcher a[aria-current="page"] {
  color: var(--cream);
  opacity: 1;
}

.site-header[data-scrolled="true"] .language-switcher {
  color: var(--body);
}

.site-header[data-scrolled="true"] .language-switcher a:hover,
.site-header[data-scrolled="true"] .language-switcher a[aria-current="page"] {
  color: var(--green-action);
}

/* Hero */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: max(700px, 100svh);
  overflow: hidden;
  isolation: isolate;
  background: var(--night);
}

.hero-media,
.hero-bg,
.hero-scrim,
.hero-atmosphere {
  position: absolute;
  inset: 0;
}

.hero-media { z-index: 1; }

.hero-bg {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 60% 50%;
  transform-origin: 64% 54%;
  animation: hero-settle 3.2s var(--ease-out) both;
}

.hero-atmosphere {
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(30% 20% at 68% 55%, rgba(190, 216, 225, 0.14), transparent 72%),
    radial-gradient(60% 48% at 74% 16%, rgba(155, 187, 202, 0.09), transparent 74%);
  mix-blend-mode: screen;
  animation: atmosphere-drift 16s ease-in-out infinite alternate;
}

.hero-scrim {
  z-index: 3;
  background:
    linear-gradient(to top, rgba(10, 20, 25, 0.38), rgba(10, 20, 25, 0) 38%),
    linear-gradient(100deg, rgba(7, 18, 24, 0.78) 0%, rgba(7, 18, 24, 0.52) 34%, rgba(7, 18, 24, 0.08) 68%, rgba(7, 18, 24, 0) 86%);
}

.hero-inner {
  position: relative;
  z-index: 4;
  width: 100%;
  padding: 168px var(--gutter) 120px;
}

.hero .eyebrow {
  color: var(--green-bright);
}

.hero h1 {
  max-width: 1050px;
  color: var(--cream);
  text-shadow: 0 2px 28px rgba(5, 14, 18, 0.35);
}

.hero-lead {
  max-width: 560px;
  margin-top: 28px;
  color: var(--cream-muted);
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.62;
  text-shadow: 0 1px 16px rgba(5, 14, 18, 0.42);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-enter {
  animation: hero-enter 760ms var(--ease-out) both;
}

.hero-inner .eyebrow { animation-delay: 60ms; }
.hero-inner h1 { animation-delay: 130ms; }
.hero-lead { animation-delay: 200ms; }
.hero-actions { animation-delay: 270ms; }

/* House */

.house {
  background: var(--canvas);
}

.house-figure {
  width: var(--page);
  margin: 0 auto;
}

.house-figure picture {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.house-figure img {
  width: 100%;
  height: auto;
}

.product-image figcaption {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.house-context {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(40px, 6vw, 92px);
  align-items: start;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line-strong);
}

.house-context-intro strong,
.house-context-intro span {
  display: block;
}

.house-context-intro strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
}

.house-context-intro span {
  max-width: 390px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.house-sensor-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  margin: 0;
}

/* Subgrid keeps the readings on one baseline even when a room name wraps. */
.house-sensor-list > div {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  min-width: 0;
  padding-inline: clamp(16px, 2vw, 28px);
  border-left: 1px solid var(--line);
}

.house-sensor-list > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.house-sensor-list dt {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.house-sensor-list dd {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

/* Three messages */

.messages {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.message-pair {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.message {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(56px, 5vw, 80px);
}

.message-calm {
  background: var(--green-soft);
}

.message-change {
  background: var(--amber-soft);
}

.message-water {
  background: color-mix(in srgb, var(--risk) 7%, var(--surface));
}

.message-kicker {
  color: var(--green-action);
  font-size: 13px;
  font-weight: 700;
}

.message-change .message-kicker {
  color: var(--amber-ink);
}

.message-water .message-kicker {
  color: var(--body);
}

.message h3 {
  max-width: 560px;
  margin-top: 38px;
  font-size: clamp(26px, 2.2vw, 34px);
  line-height: 1.24;
}

.message > p:last-child {
  max-width: 480px;
  margin-top: 24px;
  font-size: 16px;
}

/* House Brain */

.brain {
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
}

.brain-layout {
  display: grid;
  grid-template-columns: 1.24fr 0.76fr;
  gap: clamp(64px, 7vw, 116px);
  align-items: start;
  width: var(--page);
  margin: 0 auto;
}

/* Wide enough that the heading breaks at its sentence boundary. */
.brain-copy h2 {
  max-width: 720px;
}

.brain-copy > p:last-child {
  max-width: 600px;
  margin-top: 30px;
  font-size: 18px;
}

.brain-sequence {
  border-top: 1px solid var(--line-strong);
}

.brain-sequence > div {
  padding: 30px 0 34px;
  border-bottom: 1px solid var(--line-strong);
}

.brain-sequence h3 {
  font-size: 24px;
}

.brain-sequence p {
  max-width: 430px;
  margin-top: 10px;
  font-size: 15px;
}

/* House memory */

.memory {
  background: var(--canvas);
}

.memory-image {
  position: relative;
  min-height: clamp(520px, 68vh, 720px);
  overflow: hidden;
  isolation: isolate;
}

.memory-image picture,
.memory-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.memory-image img {
  max-width: none;
  object-fit: cover;
}

.memory-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(12, 21, 24, 0.68), rgba(12, 21, 24, 0.06) 68%),
    linear-gradient(100deg, rgba(12, 21, 24, 0.54), transparent 66%);
}

.memory-image figcaption {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  bottom: clamp(64px, 8vw, 112px);
  left: var(--gutter);
}

.memory-image h2 {
  max-width: 720px;
  color: var(--cream);
}

.memory-image p {
  max-width: 560px;
  margin-top: 24px;
  color: var(--cream-muted);
  font-size: 18px;
}

.memory-story {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr 0.9fr;
  gap: 0;
  width: var(--page);
  margin: 0 auto;
  padding-block: clamp(72px, 8vw, 112px) var(--section-space);
}

.memory-story article {
  padding-right: clamp(30px, 4vw, 58px);
}

.memory-story article + article {
  padding-left: clamp(30px, 4vw, 58px);
  border-left: 1px solid var(--line);
}

.memory-story article > p {
  color: var(--green-action);
  font-size: 13px;
  font-weight: 700;
}

.memory-story h3 {
  margin-top: 26px;
}

.memory-story span {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
}

/* App */

.app {
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
}

.app-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(72px, 9vw, 150px);
  align-items: center;
  width: var(--page);
  margin: 0 auto;
}

.app .section-intro {
  width: auto;
  margin: 0;
}

.app-quote {
  padding: clamp(48px, 6vw, 82px) 0 clamp(48px, 6vw, 82px) clamp(36px, 5vw, 72px);
  border-left: 1px solid var(--line-strong);
}

.app-quote > p {
  color: var(--ink);
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 550;
  letter-spacing: -0.04em;
  line-height: 1.22;
}

.app-quote footer {
  margin-top: 28px;
  color: var(--muted);
  font-size: 13px;
}

/* Hardware and installation */

.hardware {
  background: var(--canvas);
}

.install {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.media-split {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: clamp(64px, 8vw, 124px);
  align-items: center;
  width: var(--page);
  margin: 0 auto;
}

.media-split-reverse {
  grid-template-columns: 0.88fr 1.12fr;
}

.product-image picture {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.product-image img {
  width: 100%;
  height: auto;
}

.product-copy h2,
.install-copy h2 {
  max-width: 560px;
}

.product-list,
.install-list {
  margin-top: 52px;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}

.product-list > div,
.install-list li {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.product-list dt,
.install-list strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}

.product-list dd {
  margin: 8px 0 0;
}

.product-list dd,
.install-list span {
  display: block;
  max-width: 480px;
  color: var(--muted);
  font-size: 15px;
}

.install-list {
  list-style: none;
}

/* Waitlist */

.finale {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: var(--green-soft);
}

.finale::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(55% 72% at 76% 54%, rgba(255, 255, 255, 0.62), transparent 74%);
}

.finale-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(56px, 8vw, 124px);
  align-items: end;
  width: var(--page);
  margin: 0 auto;
  padding-block: clamp(104px, 11vw, 160px) clamp(84px, 9vw, 120px);
}

.finale-copy h2 {
  max-width: 650px;
}

.finale-copy > p:last-child {
  max-width: 510px;
  margin-top: 26px;
  font-size: 17px;
}

.finale-action {
  align-self: center;
  max-width: 430px;
}

.finale-action p {
  margin: 0 0 24px;
  color: var(--body);
  font-size: 16px;
  line-height: 1.6;
}

.waitlist-modal {
  width: min(760px, calc(100% - 32px));
  max-width: none;
  max-height: min(780px, calc(100dvh - 32px));
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  color: var(--ink);
  background: var(--canvas);
  box-shadow: 0 28px 90px rgba(15, 31, 26, 0.28);
}

.waitlist-modal::backdrop {
  background: rgba(12, 25, 21, 0.58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.waitlist-modal-shell {
  position: relative;
  max-height: min(780px, calc(100dvh - 32px));
  padding: clamp(28px, 5vw, 52px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.waitlist-modal-close {
  position: absolute;
  z-index: 1;
  top: 18px;
  right: 18px;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--surface-veil);
  cursor: pointer;
  font: inherit;
  font-size: 25px;
  line-height: 1;
}

.waitlist-modal-close:hover {
  background: var(--green-veil);
}

body:has(.waitlist-modal[open]) {
  overflow: hidden;
}

.waitlist-action {
  display: grid;
  min-height: 0;
}

.waitlist-fields,
.waitlist-confirmation {
  grid-area: 1 / 1;
}

.waitlist-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  min-width: 0;
  transition: opacity 180ms ease, transform 220ms var(--ease-out), visibility 0s 220ms;
}

.waitlist-form-intro,
.waitlist-fields > button,
.waitlist-purpose,
.finale-form [data-form-status] {
  grid-column: 1 / -1;
}

.waitlist-form-intro h2 {
  color: var(--ink);
  font-size: clamp(25px, 4vw, 34px);
  line-height: 1.08;
}

.waitlist-form-intro p {
  margin-top: 8px;
  color: var(--body);
  font-size: 14px;
  line-height: 1.55;
}

.waitlist-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.waitlist-field label,
.waitlist-field legend {
  display: block;
  margin: 0 0 8px;
  padding: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.waitlist-field legend span {
  color: var(--body);
  font-weight: 500;
}

.field-helper,
.field-error {
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.45;
}

.field-helper {
  color: var(--body);
}

.field-error {
  min-height: 17px;
  color: #9a2c20;
  font-weight: 650;
}

.waitlist-confirmation {
  display: flex;
  align-items: center;
  min-height: 100%;
  padding: 0 22px;
  border: 1px solid var(--green-edge);
  border-radius: var(--radius-pill);
  color: var(--green-ink);
  background: var(--green-veil);
  font-weight: 700;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px) scale(0.985);
  transition: opacity 220ms ease, transform 260ms var(--ease-out), visibility 0s 260ms;
}

.waitlist-confirmation::before {
  content: "✓";
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  margin-right: 13px;
  place-items: center;
  border-radius: 50%;
  color: var(--surface);
  background: var(--green-action);
  font-size: 16px;
}

.finale-form[data-state="success"] .waitlist-fields {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.985);
}

.finale-form[data-state="success"] .waitlist-confirmation {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 70ms, 70ms, 0s;
}

.finale-form input,
.finale-form select {
  min-width: 0;
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-input);
  border-radius: 7px;
  color: var(--ink);
  background: var(--surface-veil);
  outline: 0;
}

.finale-form input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.finale-form input:focus,
.finale-form select:focus {
  border-color: var(--green-action);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green-action) 30%, transparent);
}

.finale-form button {
  width: 100%;
  min-height: 48px;
  border-radius: var(--radius-pill);
}

.finale-form button:hover {
  transform: none;
}

.finale-form input:disabled,
.finale-form select:disabled,
.finale-form button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.finale-form .waitlist-purpose {
  margin: 0;
  color: var(--body);
  font-size: 12px;
  line-height: 1.5;
}

.finale-form .waitlist-purpose a {
  color: inherit;
  text-underline-offset: 3px;
}

.finale-form [data-form-status] {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.finale-form [data-form-status]:empty {
  display: none;
}

.site-footer {
  background: var(--green-soft);
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 26px clamp(32px, 5vw, 72px);
  align-items: end;
  justify-content: space-between;
  width: var(--page);
  margin: 0 auto;
  padding: 34px 0 calc(76px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-tint);
}

.footer-brand img {
  width: 88px;
  height: auto;
}

.footer-brand p,
.footer-legal {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.footer-brand p {
  margin-top: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px clamp(20px, 2.4vw, 30px);
}

.footer-links a {
  /* Negative margin keeps the row's optical position while the target reaches 44px. */
  margin-block: -13px;
  padding-block: 13px;
  color: var(--body);
  font-size: 12px;
  font-weight: 650;
  text-underline-offset: 4px;
  text-decoration-color: color-mix(in srgb, var(--body) 42%, transparent);
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.footer-links a:hover {
  color: var(--green-action);
  text-decoration-color: currentColor;
}

/* Motion */

@keyframes hero-enter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-settle {
  from { transform: scale(1.025); }
  to { transform: scale(1); }
}

@keyframes atmosphere-drift {
  from { transform: translate3d(-1.5%, 0, 0); opacity: 0.7; }
  to { transform: translate3d(1.5%, -0.5%, 0); opacity: 1; }
}

/* Responsive */

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header [data-section-nav] {
    display: none;
  }

  .brain-layout,
  .app-layout {
    gap: 64px;
  }

  .message {
    padding-inline: 48px;
  }

}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 70px;
  }

  .site-header [data-section-nav] {
    display: none;
  }

  .hero {
    min-height: max(660px, 100svh);
  }

  .hero-bg {
    object-position: 71% 50%;
  }

  .hero-inner {
    padding-block: 148px 112px;
  }

  .brain-layout,
  .app-layout,
  .media-split,
  .media-split-reverse,
  .finale-inner {
    grid-template-columns: 1fr;
  }

  .brain-layout,
  .app-layout,
  .media-split,
  .media-split-reverse {
    gap: 64px;
  }

  .house-context {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* Two per row keeps every room name on one line, so the subgrid is no longer
     needed and would otherwise push the row gap between label and reading. */
  .house-sensor-list {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
    gap: 24px 0;
  }

  .house-sensor-list > div {
    display: block;
    grid-row: auto;
  }

  .house-sensor-list > div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .message-pair {
    grid-template-columns: 1fr;
  }

  .message {
    min-height: 0;
    padding-block: 72px;
    padding-inline: 20px;
  }

  .app-quote {
    padding: 48px 0 0;
    border-top: 1px solid var(--line-strong);
    border-left: 0;
  }

  .memory-story {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .memory-story article,
  .memory-story article + article {
    padding: 0;
    border-left: 0;
  }

  .memory-story article + article {
    padding-top: 44px;
    border-top: 1px solid var(--line);
  }

  .finale-form {
    margin-top: 8px;
  }

  .waitlist-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .site-header {
    min-height: 64px;
    padding-inline: 16px;
  }

  .brand-mark {
    height: 27px;
  }

  .header-cta {
    min-height: 44px;
    padding-inline: 15px;
    font-size: 12px;
  }

  .header-actions {
    gap: 10px;
  }

  .language-switcher {
    gap: 5px;
    font-size: 11px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-bg {
    object-position: 74% 48%;
  }

  .hero-inner {
    padding: 128px 20px 112px;
  }

  .hero-lead {
    margin-top: 22px;
    font-size: 16px;
  }

  .hero-actions {
    margin-top: 26px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .section-intro {
    margin-bottom: 52px;
  }

  .section-intro > p {
    margin-top: 22px;
    font-size: 16px;
  }

  .house-figure picture,
  .product-image picture {
    border-radius: 12px;
  }

  .house-context {
    margin-top: 24px;
    padding-top: 22px;
  }

  .house-sensor-list > div {
    padding-inline: 14px;
  }

  .house-sensor-list dt {
    font-size: 13px;
  }

  .message {
    padding-inline: 16px;
  }

  .message h3 {
    margin-top: 30px;
    font-size: 25px;
  }

  .brain-copy > p:last-child,
  .memory-image p {
    font-size: 16px;
  }

  .memory-image {
    min-height: 520px;
  }

  .memory-image figcaption {
    bottom: 54px;
  }

  .app-quote > p {
    font-size: 29px;
  }

  .product-list,
  .install-list {
    margin-top: 38px;
  }

  .finale-inner {
    padding-block: 84px 74px;
  }

  .finale-action .button {
    width: 100%;
  }

  .waitlist-modal {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 18px;
  }

  .waitlist-modal-shell {
    max-height: calc(100dvh - 16px);
    padding: 28px 20px 24px;
  }

  .waitlist-modal-close {
    top: 12px;
    right: 12px;
  }

  .waitlist-form-intro {
    padding-right: 36px;
  }

  .finale-form input,
  .finale-form select,
  .finale-form button {
    width: 100%;
    min-height: 48px;
    border-radius: 7px;
  }

  .finale-form input,
  .finale-form select {
    border: 1px solid var(--line-input);
  }

  .finale-form button {
    border-radius: var(--radius-pill);
  }

  .waitlist-confirmation {
    min-height: 64px;
    padding: 14px 18px;
    border-radius: 24px;
  }

  .site-footer-inner {
    flex-direction: column;
    align-items: start;
    gap: 22px;
    padding: 30px 0 calc(80px + env(safe-area-inset-bottom));
  }
}

/* base.css already neutralises durations and reveals; these are the page's own
   continuous animations, which must not run at all. */
@media (prefers-reduced-motion: reduce) {
  .hero-enter,
  .hero-bg,
  .hero-atmosphere {
    animation: none !important;
  }
}
