/* Theme palette. Editable directly; no compilation needed. */
:root {
  --page:#f9fcfc; --surface:#fff; --surface-soft:#eef6f7;
  --ink:#173b45; --muted:#506d78; --line:#cddfe3;
  --highlight:#126c82; --focus:#087e9a;
  --showcase:linear-gradient(145deg,#eef8f5 0%,#e6f4f8 65%,#f7fbf3 100%);
  --showcase-ink:#133e48; --showcase-muted:#486c76;
  --glow:#5cb8b42b; --orbit:#35848c26;
}
:root[data-theme="dark"] {
  --page:#09151d; --surface:#10232e; --surface-soft:#16313e;
  --ink:#e5f3f5; --muted:#abc3cd; --line:#2a4553;
  --highlight:#7fdae3; --focus:#a1eaf1;
  --showcase:linear-gradient(145deg,#0d252b 0%,#0b1d2b 65%,#12332e 100%);
  --showcase-ink:#e6f7f6; --showcase-muted:#b4d0d2;
  --glow:#64d8c429; --orbit:#9adecf26;
}
body {background:var(--page);color:var(--ink)}
a:focus-visible,button:focus-visible {outline:3px solid var(--focus);outline-offset:5px}
.header {gap:18px}
.header-actions {gap:14px}
.theme-toggle {display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:8px 12px;border:1px solid var(--line);border-radius:24px;background:var(--surface);color:var(--ink);font-size:13px;font-weight:600;flex-shrink:0}
.theme-toggle:hover {background:var(--surface-soft);border-color:var(--highlight)}
.theme-moon,[data-theme="dark"] .theme-sun {display:none}
[data-theme="dark"] .theme-moon {display:block}
.language button {color:var(--muted)}
.language button[aria-pressed="true"] {color:var(--ink)}
.navigation a:hover,.kicker {color:var(--highlight)}
.menu {color:var(--ink)}
.skip {background:var(--surface);color:var(--ink)}
/* Light mode: airy stage, soft mint light and crisp phone silhouettes. */
.app-showcase {background:var(--showcase);color:var(--showcase-ink);border:1px solid var(--line)}
.app-heading em,.app-eyebrow,.app-float>svg {color:var(--highlight)}
.app-heading p,.app-slide-copy p,.app-float span,.app-caption {color:var(--showcase-muted)}
.app-stage:before {background:radial-gradient(ellipse,var(--glow),transparent 66%)}
.app-orbit {border-color:var(--orbit)}
.app-watermark {color:var(--orbit);opacity:.35}
.app-float {background:var(--surface);border-color:var(--line);box-shadow:0 12px 32px #123d4a0c}
.device-platform {color:var(--showcase-ink)}
.device-screen {box-shadow:0 24px 45px #163f4930}
.app-stores>a {background:var(--surface);color:var(--ink);border-color:var(--line);box-shadow:0 5px 16px #123d4a08}
.app-stores>a:hover {background:var(--surface-soft);border-color:var(--highlight)}
.app-controls>button {color:var(--ink);border-color:var(--line)}
.app-controls button:hover {background:var(--surface-soft)}
.app-dots span {background:#78959e}
.app-dots [aria-current=true] span {background:var(--highlight)}
.app-showcase a:focus-visible,.app-showcase button:focus-visible {outline-color:var(--focus)}
/* Dark mode: layered navy surfaces with aqua highlights, not inverted images. */
[data-theme="dark"] .hero-photo {filter:brightness(.74) saturate(.82)}
[data-theme="dark"] .hero-shade {background:linear-gradient(90deg,#06151eea,#0a2633b3 48%,#0a253a30),linear-gradient(0deg,#07192380,transparent 60%)}
[data-theme="dark"] .hero h1 span {color:#b5ebf1}
[data-theme="dark"] .hero .lime,[data-theme="dark"] .closing .lime {background:#a6e3e9;color:#0d303b}
[data-theme="dark"] .hero .lime:hover,[data-theme="dark"] .closing .lime:hover {background:#c7f4f7}
[data-theme="dark"] .header-cta {background:#226c82;color:#fff}
[data-theme="dark"] .live-card {background:#102734f5;color:var(--ink);border:1px solid #3a5866;box-shadow:0 15px 45px #0005}
[data-theme="dark"] :is(.sample,.reading>div>span,.live-bottom) {color:var(--muted)}
[data-theme="dark"] :is(.live-bottom,.connection-strip,.tags,.how,.sensor-section,.step-number,.pond-caption) {border-color:var(--line)}
[data-theme="dark"] :is(.connection-strip>span,.connection-strip>svg,.connection-strip>div svg,.section-intro>p,.feature>p,.feature-top>span:last-child,.how-heading>p,.steps p,footer>span,footer>small,.pond-note) {color:var(--muted)}
[data-theme="dark"] .feature {background:var(--surface);border-color:var(--line)}
[data-theme="dark"] .platform {background:linear-gradient(145deg,#132b32,#11252e)}
[data-theme="dark"] .mobile {background:linear-gradient(145deg,#142c3b,#10242f)}
[data-theme="dark"] :is(.dashboard-preview,.device-list>div,.notification) {background:#0b1d28;border-color:var(--line);box-shadow:0 8px 22px #0002}
[data-theme="dark"] :is(.feature-icon,.tags span,.device-icon,.notify-icon) {background:var(--surface-soft);border-color:var(--line);color:#b6e6e8}
[data-theme="dark"] :is(.dash-header small,.mini-label,.device-list small,.notification p,.notification small,.mobile-note) {color:var(--muted)}
[data-theme="dark"] .dash-stats>div {background:var(--surface-soft);color:var(--muted)}
[data-theme="dark"] .dash-stats strong {color:var(--ink)}
[data-theme="dark"] .chart path {stroke:#355461}
[data-theme="dark"] .chart path:last-child {stroke:#79d5e6}
[data-theme="dark"] .device-badge {background:#1a4143;color:#9fe3ce}
[data-theme="dark"] .step-number {color:var(--highlight)}
[data-theme="dark"] .sensor-tile {background:linear-gradient(145deg,#112936,#10232e);border-color:var(--line)}
[data-theme="dark"] .sensor-top {color:var(--highlight)}
[data-theme="dark"] .sensor-top>span {background:#0a1b25;border-color:#355363;color:#a9dce8}
[data-theme="dark"] :is(.sensor-tile h3,.sensor-tile h4,.pond-card h3,.pond-readings strong) {color:var(--ink)}
[data-theme="dark"] :is(.sensor-full,.sensor-tile p,.pond-card>p,.pond-readings>div>span,.pond-device,.pond-device>span:last-child,.pond-caption) {color:var(--muted)}
[data-theme="dark"] .pond-card {background:linear-gradient(140deg,#123041,#10232e);border-color:var(--line)}
[data-theme="dark"] .pond-card:nth-child(2) {background:linear-gradient(140deg,#12332f,#112735)}
[data-theme="dark"] .pond-top {color:var(--highlight)}
[data-theme="dark"] .pond-readings>div {background:#091c27b8;border-color:var(--line)}
[data-theme="dark"] .closing {background:linear-gradient(115deg,#15372e,#12334b);border:1px solid var(--line)}
[data-theme="dark"] .closing-icon {color:#74c3cc;opacity:.24}
[data-theme="dark"] .closing .kicker {color:#a7e2d0}
[data-theme="dark"] .closing p {color:#bfd7da}
[data-theme="dark"] .brand-icon {background:#dfedf0;box-shadow:0 0 20px #8cdbdd0c}
[data-theme="dark"] .brand-icon img {filter:brightness(.9)}
[data-theme="dark"] .device-screen {box-shadow:0 26px 60px #0008,0 0 35px #76d4ce0e}
[data-theme="dark"] .ios .device-screenshot {filter:brightness(.86) saturate(.92)}
[data-theme="dark"] .android .device-screenshot {filter:brightness(.96)}
[data-theme="dark"] .app-float {background:#152e38d9}
@media (max-width:1200px) { .header-cta {display:none} }
@media (min-width:601px) and (max-width:850px) {
  .header {flex-wrap:wrap;height:auto;min-height:94px;padding-top:14px;padding-bottom:14px;gap:14px}
  .navigation {order:3;width:100%;justify-content:center;flex-wrap:wrap}
}
@media (max-width:600px) {
  .header {padding:0 14px;gap:8px}.header-actions {gap:8px}
  .theme-toggle {min-width:40px;width:40px;height:40px;padding:8px}.theme-label {display:none}
  .navigation {background:var(--surface);color:var(--ink);border:1px solid var(--line)}
}
@media (prefers-reduced-motion:no-preference) {
  body,.app-showcase,.feature,.sensor-tile,.pond-card,.theme-toggle {transition:background-color .2s,color .2s,border-color .2s}
  .hero-photo,.device-screenshot {transition:filter .25s}
}
