/* StayOS marketing site. Two palettes share every component: Copper (the default, the
   original look) and Navy (the tablet's glass UI and the Etsy video). palette.js sets
   data-palette on <html> before first paint. System sans type only, and no gold. */
:root {
  --bg: #171715;
  --surface: #20211e;
  --ink: #f2f0e9;
  --ink-2: #dedbd2;
  --muted: #aaa9a0;
  --accent: #e4a47c;
  --accent-ink: #211b17;
  --line: #ffffff20;
  --rim: #ffffff1f;
  --nav: #d0cec6;
  --highlight: linear-gradient(var(--accent), var(--accent));
  --btn-light: #efb68e;
  --btn-deep: #d99a73;
  --btn-border: #f4c7a5;
  --btn-hover: #ffe1c5;
  --btn-shadow: #9b6445;
  --btn-pressed: #78533d;
  --icon-bg: #292920;
  --icon-ink: #f0ba93;
  --frame: #101110;
  --frame-edge: #5d5d53;
  --frame-inset: #66645b;
  --phone: #0e0f0e;
  --glow: #8a5d402e;
  --stage-hi: #2d2923;
  --stage: #1f201c;
  --stage-lo: #1a1b18;
  --stage-fade: #1a1b18f2;
  --shade-0: #111914ed;
  --shade-1: #111914c9;
  --shade-2: #11191435;
  --shade-m0: #111914e8;
  --shade-m1: #11191485;
  --origin-ink: #e1e3d8;
  --origin-em: #eee2c8;
  --close-hi: #efb791;
  --close: #e5a781;
  --close-ink: #28241e;
  --close-ink-2: #4b3a2a;
  --close-em: #57452f;
  --close-btn-hi: #36382c;
  --close-btn: #24261e;
  --close-btn-edge: #52503c;
  --close-btn-ink: #f5eee3;
  --close-btn-shadow: #171b12;
  --close-btn-glow: #60412640;
  --paper: #ecebe4;
  --paper-ink: #272922;
  --paper-muted: #575a4f;
  --paper-quiet: #7c7e70;
  --close-line: #78533d;
  --close-placeholder: #59402e;
  --close-error: #6a1f14;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  color-scheme: dark;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}

:root[data-palette='navy'] {
  --bg: #0a1620;
  --surface: #10212d;
  --ink: #f3f8fb;
  --ink-2: #d2e0ea;
  --muted: #a3b8c6;
  --accent: #8fd0f7;
  --accent-ink: #03263b;
  --line: #c6e2f424;
  --rim: #c6e2f429;
  --nav: #c9d8e2;
  --highlight: linear-gradient(100deg, #c4e9fd, #8fd0f7 45%, #5fb3ea);
  --btn-light: #b9e4fb;
  --btn-deep: #6cbcf0;
  --btn-border: #cdeafb;
  --btn-hover: #e3f4fe;
  --btn-shadow: #3b7fae;
  --btn-pressed: #2f6f99;
  --icon-bg: #0b1d29;
  --icon-ink: #8fd0f7;
  --frame: #0a1218;
  --frame-edge: #3b4c58;
  --frame-inset: #4f6270;
  --phone: #070d12;
  --glow: #4c8baf3d;
  --stage-hi: #183750;
  --stage: #0e1f2b;
  --stage-lo: #0b1923;
  --stage-fade: #0b1923f2;
  --shade-0: #07121af0;
  --shade-1: #07121ad0;
  --shade-2: #07121a30;
  --shade-m0: #07121ae8;
  --shade-m1: #07121a99;
  --origin-ink: #dfe9ef;
  --origin-em: #a9dcfa;
  --close-hi: #b2e1fb;
  --close: #8fd0f7;
  --close-ink: #04202f;
  --close-ink-2: #1d4560;
  --close-em: #1f5f8a;
  --close-btn-hi: #15304a;
  --close-btn: #0a1824;
  --close-btn-edge: #24425a;
  --close-btn-ink: #eef6fb;
  --close-btn-shadow: #04101a;
  --close-btn-glow: #0b3a5a40;
  --paper: #e6edf1;
  --paper-ink: #0d1b25;
  --paper-muted: #4a5d6b;
  --paper-quiet: #6f8494;
  --close-line: #2f6f99;
  --close-placeholder: #2b5470;
  --close-error: #7a1420;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
picture {
  display: block;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 500;
  text-wrap: balance;
}
h1,
h2 {
  letter-spacing: -0.045em;
  line-height: 1.05;
}
p {
  line-height: 1.6;
  text-wrap: pretty;
}
em {
  font-style: normal;
  color: var(--accent);
}
/* Display highlights pick up the ice gradient from the tablet glass and the video. */
@supports (background-clip: text) or (-webkit-background-clip: text) {
  h1 em,
  .features h2 em,
  .how h2 em,
  .faq h2 em {
    background: var(--highlight);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
::selection {
  background: var(--accent);
  color: var(--accent-ink);
}
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}
.wrap {
  padding-left: max(5.5vw, calc((100% - 1280px) / 2));
  padding-right: max(5.5vw, calc((100% - 1280px) / 2));
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 12px;
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-180%);
}
.skip-link:focus {
  transform: none;
}
.eyebrow,
.section-index,
.kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow,
.kicker {
  color: var(--accent);
}
.section-index {
  color: var(--muted);
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 88px;
  margin: 0 max(5.5vw, calc((100% - 1280px) / 2));
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.055em;
  white-space: nowrap;
}
.wordmark span {
  font-weight: 300;
}
.wordmark svg {
  width: 22px;
  height: 26px;
  margin-right: 11px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
}
.site-header nav {
  display: flex;
  gap: 34px;
}
.site-header nav a,
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  color: var(--nav);
  transition: color 0.2s;
}
.site-header nav a:hover,
.site-footer nav a:hover,
.text-link:hover {
  color: var(--accent);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 58px;
  padding: 9px 10px 9px 24px;
  border: 1px solid var(--btn-border);
  border-radius: 14px;
  background: linear-gradient(160deg, var(--btn-light), var(--accent) 60%, var(--btn-deep));
  color: var(--accent-ink);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 #fff6, 0 3px 0 var(--btn-shadow), 0 10px 28px #0006;
  transition: transform 0.2s, border-color 0.2s;
}
.button-icon {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--icon-bg);
  color: var(--icon-ink);
  font-size: 20px;
  line-height: 1;
  transition: transform 0.2s;
}
.button.small {
  min-height: 46px;
  padding: 6px 7px 6px 18px;
  gap: 14px;
  font-size: 14px;
  border-radius: 12px;
}
.button.small .button-icon {
  flex-basis: 30px;
  width: 30px;
  height: 30px;
  font-size: 17px;
}
@media (hover: hover) {
  .button:hover {
    border-color: var(--btn-hover);
    transform: translateY(-2px);
  }
  .button:hover .button-icon {
    transform: rotate(45deg);
  }
}
.button:active {
  transform: translateY(2px);
  box-shadow: inset 0 2px 5px #0002, 0 1px 0 var(--btn-pressed);
}
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  border-bottom: 1px solid #ffffff60;
  transition: color 0.2s;
}
.nw {
  white-space: nowrap;
}
.product-name {
  margin-top: 22px;
  font-size: 13px;
  color: var(--muted);
}
.product-name a {
  margin-left: 6px;
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.product-name a:hover {
  color: var(--accent);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 30px;
}

/* Device frames, shared by the hero and the feature stages. */
.tablet {
  position: relative;
  padding: 2.2% 2.6%;
  border: 1px solid var(--frame-edge);
  border-radius: 26px;
  background: var(--frame);
  box-shadow: inset 0 2px 1px #ffffff5c, inset 1px -2px 2px var(--frame-inset),
    0 30px 70px #0009;
}
.tablet img {
  width: 100%;
  border-radius: 10px;
}
.phone {
  --r: 30px;
  padding: 6px;
  border: 1px solid var(--frame-edge);
  border-radius: var(--r);
  background: var(--phone);
  box-shadow: inset 0 1px 1px #ffffff55, 0 24px 50px #0008;
}
.phone img {
  width: 100%;
  border-radius: calc(var(--r) - 6px);
}

/* Hero */
.hero {
  position: relative;
  overflow-x: clip;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 5%;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 96px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% 0 30%;
  background: radial-gradient(ellipse at 60% 45%, var(--glow) 0, transparent 62%);
  pointer-events: none;
}
.hero-copy,
.hero-product {
  position: relative;
}
.hero h1 {
  margin: 22px 0 26px;
  font-size: clamp(44px, 4.8vw, 76px);
  white-space: nowrap;
}
.lead {
  max-width: 27em;
  margin-bottom: 38px;
  font-size: 19px;
  color: var(--ink-2);
}
.device-stage {
  position: relative;
  margin-bottom: 9%;
  transform: perspective(1400px) rotateY(-8deg) rotateX(4deg) rotateZ(-1.5deg);
  transition: transform 0.8s;
}
.hero-product:hover .device-stage {
  transform: perspective(1400px) rotateY(-3deg) rotateX(2deg) rotateZ(-0.5deg);
}
.device-stage .tablet {
  margin-right: 12%;
}
.hero-phone {
  --r: 24px;
  position: absolute;
  right: 0;
  bottom: -11%;
  width: 25%;
  box-shadow: inset 0 1px 1px #ffffff55, -18px 30px 50px #000a;
}
.hero-product figcaption {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.hero-product figcaption strong {
  display: block;
  font-weight: 500;
  color: var(--ink-2);
}

/* Features */
.features {
  padding-top: 96px;
  padding-bottom: 104px;
  border-top: 1px solid var(--line);
}
.features h2,
.how h2,
.faq h2 {
  margin-top: 18px;
  font-size: clamp(40px, 5vw, 72px);
}
.stage {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rim);
  border-radius: 28px;
  background: radial-gradient(120% 90% at 30% 15%, var(--stage-hi) 0, var(--stage) 58%, var(--stage-lo) 100%);
  box-shadow: inset 0 1px 0 #ffffff12;
}
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: 6%;
  align-items: center;
  margin-top: 72px;
}
.feature .stage {
  padding: 6% 7%;
}
.feature:nth-of-type(even) {
  grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr);
}
.feature:nth-of-type(even) .stage {
  order: 2;
}
.feature h3 {
  margin: 14px 0 14px;
  font-size: clamp(30px, 3.2vw, 46px);
  letter-spacing: -0.035em;
  line-height: 1.08;
}
.feature p,
.phone-features p {
  font-size: 18px;
  color: var(--muted);
}
.phone-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 72px 0 0;
  padding: 0;
  list-style: none;
}
.phone-features .stage {
  aspect-ratio: 4 / 5;
  margin-bottom: 26px;
  padding-top: 9%;
}
.phone-features .stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 72%, var(--stage-fade) 100%);
  pointer-events: none;
}
.phone-features .phone {
  width: 64%;
  margin: 0 auto;
}
.phone-features h3 {
  margin: 10px 0 8px;
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* The familiar questions, on a paper-light band */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 8%;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 88px;
  background: var(--paper);
  color: var(--paper-ink);
}
.intro h2 {
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.12;
}
.intro h2 span {
  color: var(--paper-quiet);
}
.intro p {
  font-size: 17px;
  color: var(--paper-muted);
}
.intro p + p {
  margin-top: 14px;
}

/* Works with: brand names set as quiet wordmarks in the palette's ink. */
.brands {
  padding-top: 40px;
  padding-bottom: 44px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.brand-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 36px;
  margin: 26px 0 22px;
  padding: 0;
  list-style: none;
}
.brand {
  font-size: 27px;
  line-height: 1;
  color: var(--ink-2);
  white-space: nowrap;
}
.brand-apple {
  font-weight: 500;
  letter-spacing: -0.03em;
}
.brand-roku {
  font-weight: 800;
  letter-spacing: -0.05em;
}
.brand-lutron {
  font-size: 19px;
  font-weight: 300;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.brand-honeywell {
  font-weight: 800;
  letter-spacing: -0.03em;
}
.brand-schlage {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.brand-govee {
  font-weight: 700;
  letter-spacing: -0.04em;
}
.brand-unifi {
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brand-unifi span {
  font-weight: 300;
}
.walkthrough h2,
.grid-features h2,
.contact h2 {
  margin-top: 18px;
  font-size: clamp(40px, 5vw, 72px);
}

/* Walkthrough: right under the hero and the brands, full content width on a stage panel. */
.walkthrough {
  position: relative;
  padding-top: 88px;
  padding-bottom: 104px;
}
.walkthrough::before {
  content: '';
  position: absolute;
  inset: 30% 0 0;
  background: radial-gradient(ellipse at 50% 55%, var(--glow) 0, transparent 65%);
  pointer-events: none;
}
.walkthrough-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 6%;
  align-items: end;
  margin-bottom: 40px;
}
.walkthrough-lead {
  max-width: 30em;
  font-size: 18px;
  color: var(--muted);
}
.walkthrough .video-stage {
  box-shadow: 0 40px 100px #0008;
}
/* Walkthrough video: one render per palette over its poster, cross-faded on a palette switch. */
.video-stage {
  aspect-ratio: 16 / 9;
  box-shadow: 0 30px 80px #0007;
}
.video-poster,
.walkthrough-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
[data-palette-only='navy'],
:root[data-palette='navy'] [data-palette-only='copper'] {
  display: none;
}
:root[data-palette='navy'] [data-palette-only='navy'] {
  display: block;
}
.walkthrough-video {
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s;
}
.walkthrough-video.is-shown {
  opacity: 1;
}
.video-controls {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: flex;
  gap: 10px;
}
.video-controls[hidden] {
  display: none;
}
.video-controls button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #ffffff4d;
  border-radius: 999px;
  background: #000a;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.video-controls .icon {
  font-size: 12px;
  line-height: 1;
}
.video-controls button:hover {
  border-color: #fff;
}
.video-controls button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
/* Phones: it still plays inline, a tap anywhere opens it full screen, and the controls
   shrink to fit. */
@media (max-width: 599px) {
  .video-stage {
    cursor: zoom-in;
  }
  .video-controls {
    right: 10px;
    bottom: 10px;
    gap: 6px;
  }
  /* Icons only, so the controls don't cover the picture. */
  .video-controls button {
    justify-content: center;
    width: 40px;
    min-height: 40px;
    padding: 0;
    font-size: 13px;
  }
  .video-controls .label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* Feature grid */
.grid-features {
  padding-top: 96px;
  padding-bottom: 104px;
  border-top: 1px solid var(--line);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 52px 0 0;
  padding: 0;
  list-style: none;
}
.feature-grid li {
  padding: 24px 22px 26px;
  border: 1px solid var(--rim);
  border-radius: 18px;
  background: var(--surface);
}
.feature-grid svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-grid h3 {
  margin: 18px 0 6px;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.feature-grid p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

/* How it works */
.how {
  padding-top: 96px;
  padding-bottom: 104px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}
.steps li {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.steps li > span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.steps h3 {
  margin: 18px 0 10px;
  font-size: 24px;
  letter-spacing: -0.02em;
}
.steps p {
  font-size: 16px;
  color: var(--muted);
}
.trust {
  max-width: 26em;
  margin: 64px auto 0;
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
}

/* Where it started */
.origin {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 540px;
  overflow: hidden;
}
.origin img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}
.origin::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--shade-0) 0%, var(--shade-1) 38%, var(--shade-2) 82%);
}
.origin-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 72px;
  padding-bottom: 72px;
}
.origin h2 {
  margin: 20px 0 22px;
  font-size: clamp(40px, 5vw, 70px);
}
.origin h2 em {
  color: var(--origin-em);
}
.origin p:not(.eyebrow) {
  max-width: 25em;
  font-size: 18px;
  color: var(--origin-ink);
}

/* FAQ */
.faq {
  padding-top: 96px;
  padding-bottom: 104px;
}
.faq-head {
  margin-bottom: 44px;
}
/* Two independent stacks: an open answer only grows its own column. */
.faq-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 6%;
  align-items: start;
}
.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list details:first-child {
  border-top: 1px solid var(--line);
}
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 44px;
  padding: 22px 0;
  font-size: 18px;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: '+';
  flex: none;
  font-size: 24px;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.2s;
}
.faq-list details[open] summary::after {
  transform: rotate(45deg);
}
.faq-list summary:focus-visible {
  outline-offset: 0;
}
.faq-list p {
  max-width: 34em;
  margin: 0 40px 24px 0;
  font-size: 16px;
  color: var(--muted);
}
.faq-list a,
.legal a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Get yours: the inquiry form, on the palette's warm or icy block */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10%;
  padding-top: 96px;
  padding-bottom: 104px;
  background: linear-gradient(165deg, var(--close-hi) 0%, var(--close) 70%);
  color: var(--close-ink);
}
.contact .section-index {
  color: var(--close-ink-2);
}
.contact h2 em {
  color: var(--close-em);
}
.contact-intro > p:not(.section-index) {
  max-width: 28em;
  margin-top: 24px;
  font-size: 18px;
  color: var(--close-ink-2);
}
.contact a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact a:focus-visible,
.contact button:focus-visible,
.contact input:focus-visible,
.contact select:focus-visible,
.contact textarea:focus-visible {
  outline: 2px solid var(--close-ink);
  outline-offset: 4px;
}
#request-fields {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.contact label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 500;
}
.contact label > span {
  font-weight: 400;
  color: var(--close-ink-2);
}
.contact input,
.contact select,
.contact textarea {
  width: 100%;
  min-height: 48px;
  margin: 0 0 22px;
  padding: 8px 0 12px;
  border: 0;
  border-bottom: 1px solid var(--close-line);
  border-radius: 0;
  background: transparent;
  color: var(--close-ink);
  font: inherit;
  font-size: 16px;
  resize: vertical;
}
.contact select {
  color-scheme: light;
}
.contact input::placeholder,
.contact textarea::placeholder {
  color: var(--close-placeholder);
  opacity: 1;
}
.contact [aria-invalid='true'] {
  border-bottom: 2px solid var(--close-error);
}
.field-error {
  display: block;
  margin: -14px 0 20px;
  font-size: 13px;
  color: var(--close-error);
}
.field-error:empty {
  display: none;
}
#form-verification {
  max-width: 100%;
  margin-bottom: 16px;
}
.verification-retry {
  min-height: 44px;
  margin: 0 0 16px;
  padding: 10px 14px;
  border: 1px solid var(--close-line);
  border-radius: 8px;
  background: transparent;
  color: var(--close-ink);
  font: inherit;
  cursor: pointer;
}
.contact .button {
  width: 100%;
  border-color: var(--close-btn-edge);
  background: linear-gradient(155deg, var(--close-btn-hi), var(--close-btn));
  color: var(--close-btn-ink);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: inset 0 1px 0 #ffffff1c, 0 3px 0 var(--close-btn-shadow), 0 10px 24px var(--close-btn-glow);
}
.contact .button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.contact .button-icon {
  background: var(--accent);
  color: var(--accent-ink);
}
.form-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--close-ink-2);
}
.form-status {
  margin-top: 10px;
  font-size: 14px;
}
.form-status:empty {
  margin: 0;
}
.form-status.is-error {
  color: var(--close-error);
}
.form-success {
  padding: 26px 0;
  border-top: 2px solid var(--close-ink);
}
.form-success h3 {
  margin: 14px 0 12px;
  font-size: 30px;
  letter-spacing: -0.02em;
}
.form-success p,
.form-success small {
  font-size: 16px;
  overflow-wrap: anywhere;
}
.form-success small {
  display: block;
  margin-top: 8px;
  font-size: 13px;
}
.sr-only,
.form-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
  padding-top: 36px;
  padding-bottom: 36px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
}
.site-footer p {
  flex-basis: 100%;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

/* Palette switcher: shown once palette.js has run, since it does nothing without it. */
.palette {
  display: none;
  gap: 8px;
}
:root[data-palette] .palette {
  display: flex;
}
.palette button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.palette button:hover,
.palette button[aria-pressed='true'] {
  color: var(--ink);
}
.palette button[aria-pressed='true'] {
  border-color: var(--accent);
}
.palette button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e4a47c;
  box-shadow: inset 0 0 0 3px #171715, 0 0 0 1px #ffffff40;
}
[data-set-palette='navy'] .swatch {
  background: #8fd0f7;
  box-shadow: inset 0 0 0 3px #0a1620, 0 0 0 1px #ffffff40;
}

/* Privacy and 404 */
.legal {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 24px;
}
.legal h1 {
  margin: 20px 0 24px;
  font-size: clamp(42px, 6vw, 68px);
}
.legal h2 {
  margin: 36px 0 12px;
  font-size: 26px;
  letter-spacing: -0.02em;
}
.legal p {
  margin-bottom: 14px;
  font-size: 17px;
  color: var(--muted);
}
.legal .button {
  margin: 20px 0;
  color: var(--accent-ink);
  text-decoration: none;
}

@media (max-width: 1100px) {
  .site-header nav {
    gap: 24px;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4%;
  }
  .lead {
    font-size: 18px;
  }
  .feature {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }
  .feature:nth-of-type(even) {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
  .phone-features {
    gap: 20px;
  }
  .phone-features h3 {
    font-size: 21px;
  }
  .phone-features p {
    font-size: 16px;
  }
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .brand {
    font-size: 23px;
  }
  .brand-lutron,
  .brand-schlage {
    font-size: 17px;
  }
}
@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
    padding-top: 48px;
    padding-bottom: 72px;
  }
  .hero h1 {
    font-size: clamp(40px, 8.4vw, 72px);
  }
  .hero-product {
    max-width: 760px;
  }
  .device-stage {
    transform: perspective(1400px) rotateY(-5deg) rotateX(3deg) rotateZ(-1deg);
  }
}
@media (max-width: 800px) {
  .site-header {
    height: 76px;
  }
  .site-header nav {
    display: none;
  }
  .features,
  .how,
  .faq,
  .walkthrough,
  .grid-features,
  .contact {
    padding-top: 72px;
    padding-bottom: 80px;
  }
  .contact,
  .intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }
  .intro {
    gap: 28px;
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .brand-row {
    justify-content: center;
    gap: 18px 30px;
  }
  .feature,
  .feature:nth-of-type(even) {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    margin-top: 56px;
  }
  .feature .feature-copy {
    order: -1;
  }
  .feature:nth-of-type(even) .stage {
    order: 0;
  }
  .feature h3 {
    margin-bottom: 10px;
  }
  /* Phones scroll sideways instead of shrinking to stamps. */
  .phone-features {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: min(72vw, 300px);
    gap: 16px;
    margin: 56px calc(-1 * max(5.5vw, calc((100vw - 1280px) / 2))) 0;
    padding: 0 max(5.5vw, calc((100vw - 1280px) / 2)) 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 5.5vw;
    scrollbar-width: none;
  }
  .phone-features::-webkit-scrollbar {
    display: none;
  }
  .phone-features li {
    scroll-snap-align: start;
  }
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    margin-top: 40px;
  }
  .steps li {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    padding-top: 20px;
  }
  .steps li > span {
    grid-row: span 2;
    padding-top: 6px;
  }
  .steps h3 {
    margin-top: 0;
  }
  .origin {
    min-height: 480px;
  }
  .origin::after {
    background: linear-gradient(90deg, var(--shade-m0), var(--shade-m1));
  }
  .faq-head {
    margin-bottom: 32px;
  }
  .faq-cols {
    grid-template-columns: minmax(0, 1fr);
  }
  .faq-list + .faq-list details:first-child {
    border-top: 0;
  }
}
@media (max-width: 560px) {
  .hero h1 {
    white-space: normal;
  }
  .hero h1 em {
    white-space: nowrap;
  }
  .wordmark {
    font-size: 27px;
  }
  .wordmark svg {
    width: 19px;
    margin-right: 9px;
  }
  .lead,
  .contact-intro > p:not(.section-index),
  .walkthrough-lead {
    font-size: 17px;
  }
  .walkthrough-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .brand {
    font-size: 21px;
  }
  .brand-lutron,
  .brand-schlage {
    font-size: 15px;
  }
  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .feature-grid li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 2px 16px;
    padding: 18px;
  }
  .feature-grid svg {
    grid-row: span 2;
    margin-top: 2px;
  }
  .feature-grid h3 {
    margin: 0;
  }
  .video-stage {
    border-radius: 18px;
  }
  .actions {
    gap: 14px 24px;
  }
  .hero-phone {
    --r: 16px;
    padding: 4px;
    width: 27%;
    bottom: -12%;
  }
  .hero-phone img {
    border-radius: 12px;
  }
  .device-stage .tablet {
    margin-right: 10%;
  }
  .tablet {
    border-radius: 16px;
  }
  .tablet img {
    border-radius: 7px;
  }
  .stage {
    border-radius: 22px;
  }
  .phone {
    --r: 26px;
  }
  .feature p,
  .phone-features p,
  .origin p:not(.eyebrow) {
    font-size: 17px;
  }
  .faq-list summary {
    font-size: 17px;
    padding: 18px 0;
  }
  .faq-list p {
    margin-right: 0;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy {
    animation: arrive 0.85s ease-out both;
  }
  .hero-product {
    animation: arrive 1s 0.12s ease-out both;
  }
  @keyframes arrive {
    from {
      opacity: 0;
      translate: 0 20px;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
  .device-stage,
  .hero-product:hover .device-stage {
    transform: none;
  }
}
