:root {
  --teal: #00B2FF;
  --teal-bright: #38C3FF;
  --teal-dark: #087FB3;
  --teal-deep: #0F1720;
  --teal-pale: #E8F7FE;
  --ink: #0F1720;
  --ink-soft: #475569;
  --cream: #F8FAFC;
  --cream-deep: #E5E7EB;
  --paper: #FFFFFF;
  --coral: #00B2FF;
  --coral-dark: #008DCC;
  --coral-pale: #D7F2FF;
  --action: #00B2FF;
  --action-dark: #008DCC;
  --green: #16a574;
  --amber: #d99a24;
  --line: #CBD5E1;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  line-height: 1.5;
}

/* Display Kit visual system */
:root {
  --brand-ink: #0F1720;
  --brand-blue: #00B2FF;
  --brand-blue-dark: #006A96;
  --brand-blue-pale: #E8F7FE;
  --brand-gray: #E5E7EB;
  --brand-paper: #F8FAFC;
  --brand-slate: #475569;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; overflow-x: hidden; }
button, a, input { font: inherit; }
img { max-width: 100%; }
a { color: inherit; }
button, input { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}
.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;
}
.section-kicker, .eyebrow {
  display: block;
  color: var(--teal-dark);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .18em;
  line-height: 1.2;
  text-transform: uppercase;
}
.muted { color: var(--ink-soft); font-size: .88rem; }

/* Shared secondary-page chrome */
.site-header {
  display: flex;
  position: relative;
  z-index: 10;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
  min-height: 72px;
  margin: 0;
  padding: 12px max(24px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid var(--brand-gray);
  background: var(--cream);
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: .035em;
  text-decoration: none;
  text-transform: uppercase;
}
.site-brand img {
  display: block;
  width: 46px;
  height: 46px;
  border: 1px solid var(--brand-gray);
  border-radius: 8px;
}
.site-nav { display: flex; align-self: stretch; align-items: stretch; border-inline: 1px solid rgba(11, 32, 43, .22); }
.site-nav a {
  display: flex;
  align-items: center;
  padding: 0 17px;
  border-right: 1px solid rgba(11, 32, 43, .22);
  color: var(--ink);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}
.site-nav a:last-child { border-right: 0; }
.site-nav a:hover { background: var(--ink); color: var(--cream); }
.page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  margin: 0;
  padding: 22px max(24px, calc((100vw - 1240px) / 2));
  border-top: 1px solid var(--brand-gray);
  color: var(--ink-soft);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: .74rem;
}
.page-footer > div { display: flex; gap: 18px; flex-wrap: wrap; }
.page-footer a { color: var(--teal-dark); font-weight: 850; text-underline-offset: 4px; }

/* Home */
.home-shell { min-height: 100svh; background: var(--cream); }
.home-main { width: min(1240px, 100%); margin: 0 auto; padding: clamp(42px, 6vw, 76px) 24px clamp(72px, 8vw, 110px); }
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, .8fr);
  border: 1px solid var(--brand-gray);
  background: var(--paper);
  box-shadow: 0 18px 48px rgba(15,23,32,.12);
}
.home-hero-copy {
  position: relative;
  padding: clamp(46px, 6vw, 78px);
  border-right: 1px solid var(--brand-gray);
  background-color: var(--teal-dark);
  background-image: none;
  color: var(--cream);
}
.home-hero-copy::before { position: absolute; top: 0; right: 0; left: 0; height: 4px; background: var(--coral); content: ""; }
.home-hero-copy .section-kicker { color: #d6f3ef; }
.home-hero h1 {
  max-width: 720px;
  margin: 20px 0 24px;
  color: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 3.5rem;
  letter-spacing: -.078em;
  line-height: 1;
  text-wrap: balance;
}
.home-lede { max-width: 610px; margin: 0; color: #e3f5f1; font-size: clamp(1.05rem, 1.8vw, 1.2rem); line-height: 1.68; }
.store-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: min(520px, 100%); margin-top: 34px; }
.store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border: 1px solid var(--brand-blue);
  border-radius: 11px;
  padding: 11px 16px;
  background: var(--action);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0,178,255,.22);
  font-weight: 900;
  text-decoration: none;
}
.store-link:hover { background: var(--action-dark); transform: translateY(-2px); box-shadow: 0 16px 32px rgba(0,141,204,.28); }
.store-link.secondary { border-color: var(--ink); background: var(--paper); color: var(--ink); }
.store-link.secondary:hover { background: var(--teal-pale); }
.home-hero-brand { display: flex; flex-direction: column; justify-content: center; padding: clamp(36px, 5vw, 58px); }
.home-logo-frame { padding: 14px; border: 1px solid var(--brand-gray); background: var(--teal-pale); box-shadow: 0 18px 48px rgba(15,23,32,.12); }
.logo { display: block; width: 100%; height: auto; border: 1px solid var(--brand-gray); border-radius: 10px; }
.home-facts { margin: 34px 0 0; border-top: 1px solid var(--brand-gray); }
.home-facts > div { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.home-facts dt { color: var(--teal-dark); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .7rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.home-facts dd { margin: 0; color: var(--ink); font-size: .84rem; font-weight: 800; text-align: right; }
.home-steps { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 34px; border: 1px solid var(--brand-gray); background: var(--paper); }
.home-steps article { display: grid; grid-template-columns: 54px 1fr; min-height: 124px; border-right: 1px solid var(--brand-gray); }
.home-steps article:last-child { border-right: 0; }
.home-steps article > span { display: grid; place-items: center; border-right: 1px solid var(--brand-gray); background: var(--action); color: #fff; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .78rem; font-weight: 900; }
.home-steps article > div { align-self: center; padding: 20px; }
.home-steps strong { display: block; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 1.04rem; letter-spacing: -.02em; }
.home-steps p { margin: 7px 0 0; color: var(--ink-soft); font-size: .84rem; line-height: 1.5; }
.home-uses {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  margin-top: clamp(56px, 8vw, 92px);
  border: 1px solid var(--brand-gray);
  background: var(--paper);
  box-shadow: 0 18px 48px rgba(15,23,32,.12);
}
.home-uses-heading {
  padding: clamp(34px, 5vw, 52px);
  border-right: 1px solid var(--brand-gray);
  background: var(--teal-pale);
}
.home-uses-heading h2 {
  margin: 18px 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  letter-spacing: -.07em;
  line-height: .9;
  text-wrap: balance;
}
.home-uses-heading p { margin: 0; color: var(--ink-soft); line-height: 1.7; }
.home-use-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.home-use-grid article { position: relative; min-width: 0; padding: clamp(28px, 3.6vw, 42px) clamp(22px, 3vw, 34px); border-right: 1px solid var(--brand-gray); }
.home-use-grid article:last-child { border-right: 0; }
.home-use-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--brand-gray);
  background: var(--coral);
  color: #fff;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: .78rem;
  font-weight: 950;
}
.home-use-grid h3 { margin: 24px 0 12px; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 1.18rem; letter-spacing: -.035em; line-height: 1.1; }
.home-use-grid p { margin: 0; color: var(--ink-soft); font-size: .9rem; line-height: 1.68; }
.home-contact { display: grid; grid-template-columns: minmax(280px, .64fr) minmax(0, 1.36fr); margin-top: clamp(56px, 8vw, 92px); border: 1px solid var(--brand-gray); background: var(--paper); box-shadow: 0 18px 48px rgba(15,23,32,.12); }
.contact-intro {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 5vw, 52px);
  border-right: 1px solid var(--brand-gray);
  background-color: var(--teal-dark);
  background-image: none;
  color: var(--cream);
}
.contact-intro::after { display: none; }
.contact-intro > * { position: relative; z-index: 1; }
.contact-intro .section-kicker { color: #d6f3ef; }
.contact-intro h2 { margin: 18px 0; color: var(--cream); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: clamp(2.7rem, 5vw, 4.7rem); letter-spacing: -.07em; line-height: .9; }
.contact-intro p { margin: 0; color: #dff3ef; line-height: 1.7; }
.contact-controller-link { display: inline-block; margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.32); color: var(--cream); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .76rem; font-weight: 900; line-height: 1.55; text-underline-offset: 4px; }
.contact-embed { min-width: 0; padding: 22px; background: var(--paper); }
.contact-form { display: block; width: 100%; height: 820px; border: 1px solid var(--brand-gray); border-radius: 10px; background: #fff; }
.home-footer { background: var(--cream); }

/* Pairing desk */
.code-shell { display: flex; flex-direction: column; min-height: 100svh; background: var(--cream); }
.code-page {
  display: grid;
  flex: 1;
  place-items: center;
  width: 100%;
  padding: clamp(40px, 6vw, 76px) 24px;
  background-color: var(--cream);
  background-image: none;
}
.code-card {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  width: min(1160px, 100%);
  border: 1px solid var(--brand-gray);
  background: var(--paper);
  box-shadow: 0 18px 48px rgba(15,23,32,.12);
}
.code-intro {
  position: relative;
  padding: clamp(44px, 6vw, 78px);
  border-right: 1px solid var(--brand-gray);
  background-color: var(--teal-dark);
  background-image: none;
  color: var(--cream);
}
.code-intro::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px
  background: var(--coral);
  content: "";
}
.code-intro .section-kicker { color: #d6f3ef; }
.code-intro h1 {
  max-width: 550px;
  margin: 18px 0 20px;
  color: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(3rem, 5.6vw, 5rem);
  letter-spacing: -.07em;
  line-height: .88;
  text-wrap: balance;
}
.code-intro > p { max-width: 34rem; margin: 0; color: #edfbf7; font-size: 1.08rem; line-height: 1.65; }
.code-steps { display: grid; gap: 0; margin: 38px 0 0; padding: 0; border-top: 1px solid rgba(255,255,255,.32); list-style: none; }
.code-steps li {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  min-height: 56px;
  border-bottom: 1px solid rgba(255,255,255,.48);
  color: #f5fffc;
  font-size: .9rem;
}
.code-steps li span {
  display: grid;
  align-self: stretch;
  place-items: center;
  border-right: 1px solid rgba(255,255,255,.48);
  background: rgba(0,178,255,.12);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-weight: 900;
}
.code-steps li:not(:last-child) { padding-right: 10px; }
.code-steps li span + * { margin-left: 14px; }
.code-steps li { column-gap: 14px; }
.code-form-panel { align-self: center; padding: clamp(42px, 5vw, 70px); }
.code-form-heading { display: flex; align-items: center; gap: 15px; margin-bottom: 34px; padding-bottom: 20px; border-bottom: 1px solid var(--brand-gray); }
.code-form-icon, .device-icon {
  display: grid;
  flex: 0 0 52px;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--brand-gray);
  background: var(--teal-pale);
  color: var(--ink);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: .8rem;
  font-weight: 950;
  letter-spacing: .08em;
}
.code-form-heading strong { display: block; font-size: 1.12rem; }
.code-form-heading small { display: block; margin-top: 2px; color: var(--ink-soft); }
.code-card form { text-align: left; }
.code-card label { display: block; margin-bottom: 9px; color: var(--ink); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .76rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.code-card input {
  width: 100%;
  height: 68px;
  border: 1px solid var(--brand-gray);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 10px 14px;
  box-shadow: 0 18px 48px rgba(15,23,32,.12);
  font-size: clamp(1.3rem, 4vw, 1.75rem);
  font-weight: 900;
  letter-spacing: .13em;
  text-align: center;
  text-transform: uppercase;
}
.code-card input::placeholder { color: #7c9193; }
.code-card input:focus { outline: 4px solid var(--coral); outline-offset: 3px; }
.code-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  margin-top: 4px;
  border: 1px solid var(--brand-gray);
  border-radius: 10px;
  background: var(--action);
  color: #fff;
  box-shadow: 0 8px 20px rgba(15,23,32,.12);
  cursor: pointer;
  font-weight: 900;
  letter-spacing: .02em;
}
.code-card button:hover { background: var(--action-dark); transform: translateY(-1px); box-shadow: 0 12px 28px rgba(15,23,32,.16); }
.code-card button:disabled { opacity: .58; cursor: wait; transform: none; }
.code-error { min-height: 1.45em; margin: 10px 0; color: #a8242b; font-size: .86rem; font-weight: 700; }
.code-security { margin: 24px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .78rem; line-height: 1.55; }

/* Human-facing HTTP errors */
.error-shell { display: flex; flex-direction: column; min-height: 100svh; background: var(--cream); }
.error-page {
  display: grid;
  flex: 1;
  place-items: center;
  width: 100%;
  padding: clamp(42px, 7vw, 92px) 24px;
  background: linear-gradient(145deg, var(--brand-blue-pale), var(--brand-paper) 55%, #fff);
}
.error-card {
  display: grid;
  grid-template-columns: minmax(220px, .62fr) minmax(0, 1.38fr);
  width: min(980px, 100%);
  border: 1px solid var(--brand-gray);
  background: var(--paper);
  box-shadow: 0 18px 48px rgba(15,23,32,.12);
}
.error-code {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 390px;
  padding: 38px 24px;
  border-right: 1px solid var(--brand-gray);
  background-color: var(--teal-dark);
  background-image: none;
  color: var(--cream);
}
.error-code span {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .2em;
}
.error-code strong {
  margin-top: 10px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(5rem, 12vw, 8.5rem);
  letter-spacing: -.09em;
  line-height: .82;
}
.error-copy { align-self: center; padding: clamp(42px, 6vw, 72px); }
.error-copy h1 {
  max-width: 620px;
  margin: 18px 0 20px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  letter-spacing: -.07em;
  line-height: .9;
  text-wrap: balance;
}
.error-copy > p { max-width: 590px; margin: 0; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.7; }
.error-actions { display: flex; gap: 13px; flex-wrap: wrap; margin-top: 32px; }
.error-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 19px;
  border: 1px solid var(--brand-gray);
  background: var(--teal-pale);
  color: var(--ink);
  border-radius: 9px;
  box-shadow: 0 8px 20px rgba(15,23,32,.1);
  font-weight: 900;
  text-decoration: none;
}
.error-action:hover { background: var(--brand-blue-pale); transform: translateY(-1px); box-shadow: 0 12px 28px rgba(15,23,32,.14); }
.error-action.primary { background: var(--action); color: #fff; }
.error-action.primary:hover { background: var(--action-dark); }

/* Legal documents */
.legal-shell { min-height: 100vh; background: var(--cream); }
.legal-main { width: min(1180px, 100%); margin: 0 auto; padding: clamp(44px, 7vw, 86px) 24px clamp(70px, 9vw, 120px); }
.legal-card { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1.5fr); align-items: start; }
.legal-hero {
  position: sticky;
  top: 96px;
  min-height: 430px;
  padding: clamp(34px, 5vw, 54px) clamp(28px, 4vw, 42px);
  border: 1px solid var(--brand-gray);
  background: var(--teal-dark);
  color: var(--cream);
  box-shadow: 0 18px 48px rgba(15,23,32,.12);
}
.legal-hero::after {
  display: block;
  width: 62px;
  height: 8px;
  margin-top: 42px;
  background: var(--coral);
  content: "";
}
.legal-hero .section-kicker { color: #d4f2ee; }
.legal-card h1 {
  margin: 20px 0 28px;
  color: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 3rem;
  letter-spacing: -.07em;
  line-height: .9;
  overflow-wrap: anywhere;
}
.legal-card .legal-effective {
  display: block;
  margin: 0;
  padding: 13px 0;
  border-block: 1px solid rgba(255,255,255,.58);
  color: #effbf8;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.legal-document {
  margin: 32px 0 0 -1px;
  padding: clamp(38px, 6vw, 70px);
  border: 1px solid var(--brand-gray);
  background: var(--paper);
}
.legal-summary {
  margin: 0 0 52px;
  padding: 24px 26px;
  border-left: 4px solid var(--coral);
  background: var(--coral-pale);
}
.legal-summary p { margin: 0; color: var(--ink); font-size: 1.03rem; font-weight: 600; }
.legal-summary p + p { margin-top: 13px; }
.legal-card section { padding-top: 34px; margin-top: 34px; border-top: 1px solid var(--brand-gray); }
.legal-card section:first-of-type { padding-top: 0; border-top: 0; }
.legal-card h2 { margin: 0 0 15px; color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: clamp(1.28rem, 2.6vw, 1.65rem); letter-spacing: -.035em; line-height: 1.18; }
.legal-card p, .legal-card li { color: #314c56; font-size: .98rem; line-height: 1.76; }
.legal-card p { margin: 0 0 14px; }
.legal-card ul { display: grid; gap: 9px; padding-left: 1.35rem; }
.legal-card li::marker { color: var(--coral); }
.legal-card a { color: var(--teal-dark); font-weight: 850; text-underline-offset: 3px; }

/* Web remote — a control surface, not a dashboard */
.remote-shell { min-height: 100vh; background: var(--ink); color: var(--cream); }
.controller-session-ended[hidden] { display: none; }
.controller-session-ended-active { overflow: auto; }
.controller-session-ended-active > :not(.controller-session-ended) { display: none !important; }
.controller-session-ended {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100dvh;
  background: var(--cream);
  color: var(--ink);
}
.controller-session-ended-main {
  display: grid;
  place-content: center;
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) 24px;
}
.controller-session-ended-card {
  display: grid;
  justify-items: center;
  gap: 16px;
  width: min(820px, 100%);
  padding: clamp(40px, 7vw, 72px);
  border: 1px solid var(--brand-gray);
  text-align: center;
  background-color: var(--teal-dark);
  background-image: none;
  box-shadow: 0 18px 48px rgba(15,23,32,.12);
  color: var(--cream);
}
.controller-session-ended-card img {
  width: clamp(84px, 15vw, 132px);
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 22%;
}
.controller-session-ended-card .section-kicker { color: #8ee5e1; }
.controller-session-ended-card h1 { max-width: 780px; margin: 0; color: var(--cream); }
.controller-session-ended-card p { max-width: 680px; margin: 0; color: #d7e6e5; font-size: clamp(1.05rem, 2vw, 1.3rem); }
.remote-header { border-bottom-color: var(--teal-bright); background: var(--ink); }
.remote-header .site-brand { color: var(--cream); }
.remote-header .site-brand img { border-color: var(--cream); }
.remote-connection { display: flex; align-items: center; gap: 10px; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; text-transform: uppercase; }
.connection-dot { width: 10px; height: 10px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; background: var(--amber); }
.status-pill { color: #f1dfc7; font-size: .72rem; font-weight: 850; letter-spacing: .08em; }
.remote-connection:has(.status-pill.connected) .connection-dot { background: var(--green); }
.remote-connection:has(.status-pill.error) .connection-dot { background: var(--coral); }
.status-pill.connected { color: #89e4c0; }
.status-pill.error { color: #ff9797; }
.remote-card { width: min(1240px, 100%); margin: 0 auto; padding: clamp(38px, 5vw, 64px) 24px 72px; }
.dashboard-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 430px); align-items: end; gap: 40px; margin-bottom: 36px; }
.dashboard-intro .section-kicker { color: #6fd6d5; }
.dashboard-intro h1 { max-width: 720px; margin: 13px 0 0; color: var(--cream); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: clamp(3rem, 6.2vw, 5.7rem); letter-spacing: -.075em; line-height: .85; }
.dashboard-meta { display: grid; gap: 16px; }
.dashboard-meta > p { margin: 0; padding: 8px 0 8px 22px; border-left: 4px solid var(--coral); color: #c3d8da; font-size: 1rem; line-height: 1.65; }
.session-summary { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid #527276; background: #172838; color: var(--cream); }
.session-summary .eyebrow { color: #8ee5e1; }
.session-summary strong { font-size: 1.05rem; }
.session-summary .muted { color: #b9cecf; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .72rem; line-height: 1.45; }
.device-summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 84px;
  padding: 14px 20px;
  border: 1px solid var(--brand-gray);
  background: var(--teal-dark);
  color: var(--cream);
  box-shadow: 0 18px 48px rgba(15,23,32,.12);
}
.device-summary .device-icon { border-color: var(--cream); background: transparent; color: var(--cream); }
.device-summary .eyebrow { color: #d5f3ef; }
.device-summary strong { display: block; margin-top: 4px; font-size: 1.15rem; }
.device-summary .muted { color: #e1f4f0; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
.url-panel, .panel, .remote-controls { border: 1px solid var(--brand-gray); background: var(--paper); color: var(--ink); }
.url-panel { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: end; gap: 28px; padding: 24px; margin-top: 22px; box-shadow: 0 18px 48px rgba(15,23,32,.12); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.panel-heading h2 { margin: 6px 0 0; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 1.18rem; letter-spacing: -.025em; }
.url-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0; }
.url-form input {
  width: 100%;
  min-width: 0;
  height: 54px;
  border: 1px solid var(--brand-gray);
  border-right: 0;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 10px 14px;
  font-size: 16px;
}
.url-form input:focus { position: relative; z-index: 1; outline: 4px solid var(--teal-bright); outline-offset: -4px; }
.url-form button, .remote-controls button, .panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--brand-gray);
  border-radius: 10px;
  padding: 9px 15px;
  background: var(--action);
  color: #fff;
  cursor: pointer;
  font-weight: 850;
}
.url-form button { min-width: 140px; }
.url-form .url-authorization-note {
  grid-column: 1 / -1;
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: .82rem;
  line-height: 1.4;
}
.url-form button:hover, .remote-controls button:hover, .panel button:hover { background: var(--action-dark); }
.remote-controls { display: grid; grid-template-columns: minmax(0, .88fr) minmax(330px, 1.12fr); gap: 28px 52px; padding: 28px; margin-top: 22px; }
.remote-shell.restricted-platform-controls .remote-controls,
.remote-shell.restricted-platform-controls #offline-panel,
.remote-shell.restricted-platform-controls #launcher-panel { display: none !important; }
.remote-controls > .panel-heading { grid-column: 1 / -1; padding-bottom: 18px; border-bottom: 1px solid var(--brand-gray); }
.remote-shortcuts { display: grid; grid-template-columns: 1fr 1fr; align-content: center; gap: 10px; }
.remote-shortcuts button { min-height: 62px; border-color: var(--brand-gray); background: var(--teal-pale); color: var(--ink); box-shadow: 0 8px 20px rgba(15,23,32,.1); }
.remote-shortcuts button:hover { background: var(--brand-blue-pale); color: var(--ink); transform: translateY(-1px); box-shadow: 0 12px 24px rgba(15,23,32,.14); }
.remote-shortcuts button span { margin-right: 9px; font-size: 1.15rem; }
.dpad {
  display: grid;
  grid-template: repeat(3, 72px) / repeat(3, 72px);
  justify-content: center;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--brand-gray);
  background: var(--cream);
}
.dpad button { min-height: 0; padding: 0; border: 1px solid var(--brand-gray); background: var(--ink); color: #fff; box-shadow: 0 8px 20px rgba(15,23,32,.1); font-size: 1.45rem; }
.dpad button:hover { background: #172838; transform: translateY(-1px); box-shadow: 0 12px 24px rgba(15,23,32,.14); }
.dpad button:active { transform: translateY(0); box-shadow: none; }
.dpad-up { grid-area: 1 / 2; }
.dpad-left { grid-area: 2 / 1; }
.dpad-enter { grid-area: 2 / 2; background: var(--action) !important; font-size: .9rem !important; }
.dpad-right { grid-area: 2 / 3; }
.dpad-down { grid-area: 3 / 2; }
.display-panel { margin-top: 22px; box-shadow: 0 18px 48px rgba(15,23,32,.12); }
.launcher-panel { margin-top: 22px; box-shadow: 0 18px 48px rgba(15,23,32,.12); }
.launcher-panel .button-row button { min-width: 190px; }
.launcher-help:empty { display: none; }
.display-control-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--brand-gray); }
.display-control-group { min-width: 0; padding: 18px; border: 1px solid var(--brand-gray); background: var(--cream); }
.control-label { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.control-label strong { font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: .94rem; }
.orientation-row, .zoom-row { flex-wrap: nowrap; margin-top: 14px; }
.orientation-row button { flex: 1 1 0; min-width: 0; }
.zoom-row button { flex: 1 1 auto; }
.auto-reload-last { margin: 14px 0 0; font-size: .84rem; line-height: 1.45; }
.auto-reload-form { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; margin-top: 14px; }
.auto-reload-form input { min-width: 0; height: 43px; border: 1px solid var(--brand-gray); border-radius: 10px; background: #fff; color: var(--ink); padding: 8px 10px; font: inherit; }
.auto-reload-form input:focus { outline: 3px solid var(--teal-bright); outline-offset: -3px; }
.orientation-row button[aria-pressed="true"] { background: var(--teal-dark); color: #fff; box-shadow: 0 0 0 2px rgba(0,178,255,.24); }
.button-row button:disabled { cursor: not-allowed; opacity: .48; }
.panel-row { display: grid; grid-template-columns: .86fr 1.14fr; align-items: start; gap: 22px; margin-top: 22px; }
.panel { padding: 26px; }
.panel > p { margin: 14px 0 0; line-height: 1.6; }
.status-label { padding: 5px 8px; border: 1px solid var(--ink); background: var(--teal-pale); color: var(--ink); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .68rem; font-weight: 850; text-transform: uppercase; }
.button-row { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 19px; }
.button-row button { min-height: 43px; padding: 8px 12px; font-size: .78rem; }
.button-row button.secondary { background: #fff; color: var(--ink); }
.button-row button.secondary:hover { background: var(--teal-pale); }
.button-row button.danger { background: var(--coral-pale); color: #a3262d; }
.button-row button.danger:hover { background: #ffc8c1; }
.mode-group { margin-top: 19px; padding-top: 16px; border-top: 1px solid var(--brand-gray); }
.mode-label { display: block; }
.mode-row { margin-top: 10px; }
.mode-row button[aria-pressed="true"] { background: var(--teal-dark); color: #fff; box-shadow: 0 0 0 2px rgba(0,178,255,.24); }
.mode-row button[aria-pressed="true"]:hover { background: var(--teal-deep); color: #fff; }
.icon-button { width: 44px; min-height: 44px !important; padding: 4px !important; background: var(--teal-pale) !important; color: var(--ink) !important; font-size: 1.15rem; }
.icon-button:hover { background: var(--brand-blue-pale) !important; }
.stats { display: grid; grid-template-columns: 1fr auto; gap: 0; margin: 18px 0 0; border-top: 1px solid var(--brand-gray); }
.stats dt, .stats dd { padding: 9px 0; border-bottom: 1px solid #b8c1bb; }
.stats dt { color: var(--ink-soft); }
.stats dd { max-width: 240px; margin: 0; color: var(--ink); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-weight: 800; overflow-wrap: anywhere; text-align: right; }
.device-info-modal { width: min(720px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; overflow: visible; background: transparent; color: var(--ink); }
.device-info-modal::backdrop { background: rgba(4, 19, 27, .78); backdrop-filter: blur(3px); }
.device-info-dialog-card { max-height: calc(100dvh - 46px); overflow: auto; padding: clamp(22px, 4vw, 32px); box-shadow: 0 18px 48px rgba(15,23,32,.12); }
.device-info-dialog-heading { padding-bottom: 18px; border-bottom: 1px solid var(--brand-gray); }
.device-info-dialog-card > p { margin-top: 16px; }
.device-info-dialog-actions { justify-content: flex-end; padding-top: 4px; }
.device-info-dialog-actions button { min-width: 110px; }
.remote-footer { border-top-color: var(--teal-bright); background: var(--ink); color: #a9c4c7; }
.remote-footer a { color: #7cdddd; }

/* API reference — intentionally hidden from site navigation for now */
.api-shell { min-height: 100vh; background: var(--ink); color: var(--cream); }
.api-header { position: sticky; top: 0; border-bottom-color: var(--teal-bright); background: rgba(11, 32, 43, .96); }
.api-header .site-brand { color: var(--cream); }
.api-header .site-brand img { border-color: var(--cream); }
.api-header .site-nav { border-color: rgba(247,234,216,.35); }
.api-header .site-nav a { border-color: rgba(247,234,216,.35); color: var(--cream); }
.api-header .site-nav a:hover { background: var(--cream); color: var(--ink); }
.api-shell a { color: #83e1de; text-underline-offset: 3px; }
.api-content { width: min(1080px, calc(100% - 48px)); margin: 0 auto; padding: clamp(56px, 8vw, 100px) 0 90px; }
.api-hero { margin-bottom: 78px; padding: 10px 0 20px clamp(22px, 4vw, 48px); border-left: 12px solid var(--coral); }
.api-hero .section-kicker { color: #74d9d7; }
.api-hero h1 { max-width: 900px; margin: 18px 0 0; color: var(--cream); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: clamp(3.2rem, 7vw, 6.4rem); letter-spacing: -.075em; line-height: .86; text-wrap: balance; }
.api-hero > p:last-child { max-width: 760px; margin: 28px 0 0; color: #b9d1d3; font-size: clamp(1.03rem, 2.3vw, 1.25rem); line-height: 1.7; }
.api-section { scroll-margin-top: 90px; padding-top: 42px; margin-top: 56px; border-top: 1px solid var(--teal-bright); }
.api-section > h2 { margin: 0 0 22px; color: var(--cream); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.045em; }
.api-section > h3, .api-endpoint h3 { margin: 36px 0 12px; color: var(--cream); }
.api-section p { color: #bdd0d2; line-height: 1.75; }
.api-endpoint p { color: #3e5961; line-height: 1.7; }
.api-shell code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: .91em; }
.api-shell p code, .api-shell td code { padding: .13em .34em; background: rgba(24,168,179,.18); color: #a6eeea; }
.api-shell .api-endpoint p code, .api-shell .api-table code { background: var(--teal-pale); color: var(--teal-deep); }
.api-shell pre { overflow: auto; margin: 16px 0 25px; padding: 22px; border: 1px solid var(--teal-bright); background: #06151d; color: #d9f5f1; line-height: 1.65; }
.api-shell pre code { background: transparent; color: inherit; }
.api-endpoint { margin: 26px 0; padding: clamp(22px, 4vw, 34px); border: 1px solid var(--brand-gray); background: var(--paper); color: var(--ink); box-shadow: 0 18px 48px rgba(15,23,32,.12); }
.api-endpoint h3 { color: var(--ink); }
.endpoint-heading { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; }
.endpoint-heading code { color: var(--ink); }
.method { display: inline-flex; align-items: center; justify-content: center; min-width: 62px; padding: 6px 9px; border: 1px solid var(--brand-gray); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .7rem; font-weight: 950; letter-spacing: .06em; }
.method.post { background: #bdebd5; color: #0d583f; }
.method.get { background: #bfe3ef; color: #174f69; }
.table-scroll { overflow-x: auto; border: 1px solid var(--brand-gray); }
.api-table { width: 100%; border-collapse: collapse; background: var(--paper); color: var(--ink); }
.api-table th, .api-table td { padding: 14px 16px; border-bottom: 1px solid #aab7b2; text-align: left; vertical-align: top; }
.api-table th { background: var(--teal-pale); color: var(--ink); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .73rem; letter-spacing: .06em; text-transform: uppercase; }
.api-table tr:last-child td { border-bottom: 0; }
.api-table td { color: #3e5961; }
.method-table td:first-child { white-space: nowrap; }
.api-note { margin: 28px 0; padding: 21px 23px; border-left: 4px solid var(--teal-bright); background: #172838; color: #c6dcdd; }
.factory-reset-note { border-left-color: var(--coral); background: #3c2730; }
.api-footer { border-top-color: var(--teal-bright); background: var(--ink); color: #a9c4c7; }
.api-footer a { color: #7cdddd; }

@media (max-width: 900px) {
  .error-page { background: linear-gradient(145deg, var(--brand-blue-pale), var(--brand-paper) 55%, #fff); }
  .error-card { grid-template-columns: 1fr; width: min(680px, 100%); }
  .error-code { min-height: 210px; border-right: 0; border-bottom: 1px solid var(--brand-gray); }
  .error-code strong { font-size: clamp(5rem, 24vw, 7rem); }
  .home-hero { grid-template-columns: 1fr; }
  .home-hero-copy { border-right: 0; border-bottom: 1px solid var(--brand-gray); }
  .home-hero-brand { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; align-items: center; gap: 34px; }
  .home-facts { margin-top: 0; }
  .home-uses { grid-template-columns: 1fr; }
  .home-uses-heading { border-right: 0; border-bottom: 1px solid var(--brand-gray); }
  .code-card { grid-template-columns: 1fr; width: min(680px, 100%); }
  .code-intro { border-right: 0; border-bottom: 1px solid var(--brand-gray); }
  .code-steps { grid-template-columns: 1fr 1fr 1fr; }
  .code-steps li { grid-template-columns: 1fr; align-content: start; padding: 0 12px 12px; border-right: 1px solid rgba(255,255,255,.48); }
  .code-steps li:last-child { border-right: 0; }
  .code-steps li span { width: calc(100% + 24px); min-height: 38px; margin: 0 -12px 10px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.48); }
  .legal-card { grid-template-columns: 1fr; }
  .legal-hero { position: relative; top: auto; min-height: 0; box-shadow: 0 18px 48px rgba(15,23,32,.12); }
  .legal-document { margin: 24px 0 0; }
  .remote-controls { grid-template-columns: 1fr; }
  .remote-controls > .panel-heading { grid-column: auto; }
  .panel-row { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .error-page { place-items: start center; padding: 26px 14px 54px; }
  .error-card { box-shadow: 0 18px 48px rgba(15,23,32,.12); }
  .error-code { min-height: 170px; padding: 28px 20px; }
  .error-copy { padding: 32px 24px 38px; }
  .error-actions { display: grid; }
  .error-action { width: 100%; }
  .site-header { align-items: center; min-height: 64px; padding: 9px 14px; }
  .site-brand { gap: 8px; font-size: .86rem; }
  .site-brand img { width: 42px; height: 42px; }
  .site-nav { align-self: center; border: 0; }
  .site-nav a { padding: 10px 8px; border: 0; font-size: .65rem; }
  .page-footer { align-items: flex-start; flex-direction: column; padding: 20px 16px 26px; }
  .home-main { padding: 26px 12px 70px; }
  .home-hero { box-shadow: 0 18px 48px rgba(15,23,32,.12); }
  .home-hero-copy { padding: 38px 26px; }
  .home-hero h1 { font-size: clamp(3.35rem, 15vw, 4.8rem); }
  .home-hero-brand { display: flex; padding: 28px; }
  .home-logo-frame { width: min(330px, 100%); margin: 0 auto; }
  .home-facts { width: 100%; margin-top: 28px; }
  .store-links { grid-template-columns: 1fr; max-width: 360px; }
  .home-steps { grid-template-columns: 1fr; margin-top: 24px; }
  .home-steps article { min-height: 104px; border-right: 0; border-bottom: 1px solid var(--brand-gray); }
  .home-steps article:last-child { border-bottom: 0; }
  .home-uses { margin-top: 52px; box-shadow: 0 18px 48px rgba(15,23,32,.12); }
  .home-uses-heading { padding: 34px 26px; }
  .home-use-grid { grid-template-columns: 1fr; }
  .home-use-grid article { border-right: 0; border-bottom: 1px solid var(--brand-gray); }
  .home-use-grid article:last-child { border-bottom: 0; }
  .home-contact { grid-template-columns: 1fr; margin-top: 52px; box-shadow: 0 18px 48px rgba(15,23,32,.12); }
  .contact-intro { padding: 34px 26px; border-right: 0; border-bottom: 1px solid var(--brand-gray); }
  .contact-intro::after { display: none; }
  .contact-embed { padding: 12px; }
  .contact-form { height: 900px; }
  .code-page { place-items: start center; padding: 26px 14px 54px; }
  .code-card { box-shadow: 0 18px 48px rgba(15,23,32,.12); }
  .code-intro, .code-form-panel { padding: 34px 25px; }
  .code-intro h1 { font-size: clamp(2.8rem, 15vw, 4rem); }
  .code-steps { grid-template-columns: 1fr; margin-top: 28px; }
  .code-steps li { grid-template-columns: 42px 1fr; min-height: 52px; padding: 0; border-right: 0; }
  .code-steps li span { align-self: stretch; width: auto; min-height: 0; margin: 0; border-right: 1px solid rgba(255,255,255,.48); border-bottom: 0; }
  .legal-main { padding: 26px 12px 70px; }
  .legal-hero { padding: 31px 25px; }
  .legal-card h1 { font-size: clamp(3rem, 16vw, 4.4rem); }
  .legal-document { padding: 34px 24px 46px; }
  .legal-summary { margin-bottom: 40px; padding: 20px; border-left-width: 6px; }
  .legal-card p, .legal-card li { line-height: 1.68; }
  .remote-card { padding: 32px 12px 56px; }
  .dashboard-intro { grid-template-columns: 1fr; gap: 24px; }
  .dashboard-intro h1 { font-size: clamp(3rem, 16vw, 4.5rem); }
  .dashboard-meta > p { margin: 0; }
  .device-summary { grid-template-columns: auto 1fr; padding: 14px; box-shadow: 0 18px 48px rgba(15,23,32,.12); }
  .device-summary > .muted { grid-column: 2; }
  .url-panel { grid-template-columns: 1fr; gap: 16px; padding: 19px; box-shadow: 0 18px 48px rgba(15,23,32,.12); }
  .url-form { grid-template-columns: 1fr; gap: 10px; }
  .url-form input { border-right: 1px solid var(--brand-gray); }
  .url-form button { width: 100%; }
  .remote-controls, .panel { padding: 20px; }
  .remote-controls { gap: 25px; }
  .remote-controls > .panel-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .display-panel > .panel-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .display-control-grid { grid-template-columns: 1fr; }
  .auto-reload-form { grid-template-columns: 1fr 1fr; }
  .auto-reload-form input { grid-column: 1 / -1; }
  .remote-shortcuts { grid-template-columns: 1fr 1fr; }
  .dpad { grid-template: repeat(3, 66px) / repeat(3, 66px); padding: 15px; }
  .stats dd { max-width: 160px; }
  .device-info-modal { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  .device-info-dialog-card { max-height: calc(100dvh - 36px); padding: 20px; box-shadow: 0 18px 48px rgba(15,23,32,.12); }
  .api-content { width: calc(100% - 24px); padding-top: 46px; }
  .api-hero { margin-bottom: 54px; padding-left: 20px; border-left-width: 8px; }
  .api-endpoint { padding: 19px; box-shadow: 0 18px 48px rgba(15,23,32,.12); }
  .api-table th, .api-table td { padding: 12px; }
  .method-table td:first-child { white-space: normal; }
}

@media (max-width: 430px) {
  .site-header { align-items: flex-start; }
  .site-brand span { display: none; }
  .site-nav { flex-wrap: wrap; justify-content: flex-end; }
  .store-link { width: 100%; }
  .code-form-heading { margin-bottom: 26px; }
  .remote-shortcuts { grid-template-columns: 1fr; }
  .dpad { grid-template: repeat(3, 60px) / repeat(3, 60px); }
  .orientation-row, .zoom-row { flex-wrap: wrap; }
  .button-row button { flex: 1 1 auto; }
  .endpoint-heading { align-items: flex-start; flex-direction: column; }
}

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

/* Brand-board alignment: clean geometry, soft depth, electric-blue activation. */
body { background: var(--brand-paper); }
button:focus-visible, a:focus-visible, input:focus-visible { outline-color: var(--brand-blue); }
.site-header {
  min-height: 78px;
  border-bottom: 1px solid var(--brand-gray);
  background: rgba(248, 250, 252, .94);
  backdrop-filter: blur(18px);
}
.site-brand { font-size: 1.05rem; letter-spacing: -.02em; text-transform: none; }
.site-brand img { border: 0; border-radius: 11px; box-shadow: 0 8px 24px rgba(15, 23, 32, .12); }
.site-nav { border: 0; gap: 4px; }
.site-nav a { border: 0; border-radius: 9px; font-family: inherit; letter-spacing: 0; text-transform: none; }
.site-nav a:hover { background: var(--brand-blue-pale); color: var(--brand-ink); }
.page-footer { border-top: 1px solid var(--brand-gray); background: #fff; font-family: inherit; }
.page-footer a { color: var(--brand-blue-dark); }
.section-kicker, .eyebrow { color: var(--brand-blue-dark); font-family: inherit; font-weight: 800; }

.home-shell { background: var(--brand-paper); }
.home-main { padding-top: clamp(34px, 5vw, 68px); }
.home-hero {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, .3);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 23, 32, .15);
}
.home-hero-copy {
  border-right: 0;
  background:
    radial-gradient(circle at 12% 15%, rgba(0, 178, 255, .22), transparent 30%),
    linear-gradient(145deg, #172838 0%, var(--brand-ink) 65%);
}
.home-hero-copy::before { height: 4px; background: var(--brand-blue); }
.home-hero-copy .section-kicker { color: #7DD7FF; }
.home-hero h1 { color: #fff; font-family: Inter, ui-sans-serif, system-ui, sans-serif; letter-spacing: -.065em; line-height: .95; }
.home-lede { color: #CBD5E1; }
.store-link {
  border: 1px solid var(--brand-blue);
  border-radius: 11px;
  background: var(--brand-blue);
  box-shadow: 0 12px 28px rgba(0, 178, 255, .22);
}
.store-link:hover { background: var(--brand-blue-dark); transform: translateY(-2px); box-shadow: 0 16px 32px rgba(0, 141, 204, .28); }
.store-link.secondary { border-color: #475569; background: transparent; color: #fff; box-shadow: none; }
.store-link.secondary:hover { background: rgba(255,255,255,.08); }
.home-hero-brand { border-left: 1px solid var(--brand-gray); background: linear-gradient(145deg, #fff, var(--brand-blue-pale)); }
.home-logo-frame { border: 0; border-radius: 20px; background: #fff; box-shadow: 0 22px 55px rgba(15,23,32,.12); }
.logo { border: 0; }
.home-steps, .home-uses, .home-contact {
  overflow: hidden;
  border: 1px solid var(--brand-gray);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(15,23,32,.08);
}
.home-steps article { border-color: var(--brand-gray); }
.home-steps article > span { border-color: var(--brand-gray); background: var(--brand-blue); color: var(--brand-ink); }
.home-steps strong, .home-uses-heading h2, .contact-intro h2 { font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.home-uses-heading { border-color: var(--brand-gray); background: var(--brand-blue-pale); }
.home-use-grid article { border-color: var(--brand-gray); }
.home-use-number { border-radius: 50%; background: var(--brand-ink); color: #fff; }
.contact-intro { border-color: var(--brand-gray); background: var(--brand-ink); }
.contact-intro::after { display: none; }
.contact-intro .section-kicker { color: #7DD7FF; }
.contact-controller-link { color: var(--brand-blue); }
.contact-embed { display: grid; min-height: 440px; padding: clamp(28px, 5vw, 64px); background: linear-gradient(145deg, #fff, var(--brand-blue-pale)); place-items: center; }
.contact-form {
  display: block;
  width: min(640px, 100%);
  max-width: 100%;
  height: 1280px;
  border: 1px solid var(--brand-gray);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 55px rgba(15,23,32,.11);
}

.code-card, .legal-card, .remote-card > section, .api-endpoint, .device-summary, .url-panel, .panel, .remote-controls {
  border-color: var(--brand-gray);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(15,23,32,.08);
}
.code-intro, .legal-hero { background: linear-gradient(145deg, #172838, var(--brand-ink)); }
.code-intro::before, .legal-hero::before { background: var(--brand-blue); }
.code-submit, .url-form button, .button-row button.primary, .primary-button { background: var(--brand-blue); color: var(--brand-ink); }
.code-submit:hover, .url-form button:hover, .button-row button.primary:hover, .primary-button:hover { background: var(--brand-blue-dark); }
#code-submit { background: var(--brand-blue); color: var(--brand-ink); }
#code-submit:disabled { background: #94A3B8; color: var(--brand-ink); opacity: 1; }
input, select, button { border-radius: 9px; }
.store-link { color: var(--brand-ink); }
.store-link.secondary { color: #fff; }

@media (max-width: 760px) {
  .home-hero, .home-uses, .home-contact { border-radius: 18px; }
  .home-hero-brand { border-top: 1px solid var(--brand-gray); border-left: 0; }
}
