:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", sans-serif;
  color: #1d1d1f;
  background: #f5f5f7;
  font-synthesis: none;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --line: rgba(29, 29, 31, 0.12);
  --muted: #6e6e73;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body { margin: 0; min-width: 320px; overflow-x: hidden; }

button, a { -webkit-tap-highlight-color: transparent; }

.page-shell { max-width: 1200px; margin: 0 auto; padding: 0 40px 72px; }

.topbar {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.brand { display: inline-flex; gap: 10px; align-items: center; color: inherit; text-decoration: none; font-weight: 650; }
.brand-icon { width: 31px; height: 31px; display: block; border-radius: 8px; object-fit: cover; }
.nav-links { display: flex; align-items: center; gap: 24px; margin-left: auto; margin-right: 28px; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 560; }
.nav-links a:hover { color: #1d1d1f; }
.version { color: var(--muted); }

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
  gap: 54px;
  align-items: center;
  padding: 76px 0 92px;
}
.hero-copy { min-width: 0; }

.eyebrow { margin: 0 0 12px; color: var(--blue); font-size: 17px; line-height: 1.3; font-weight: 650; }
h1, h2, h3, p { text-wrap: pretty; }
h1 { margin: 0; max-width: 650px; font-size: clamp(46px, 5.2vw, 72px); line-height: 1.04; letter-spacing: -0.052em; }
.lede { max-width: 570px; margin: 25px 0 34px; color: var(--muted); font-size: 20px; line-height: 1.55; }

.installer-card { width: 100%; max-width: 430px; min-width: 0; padding: 16px; background: #fff; border: 1px solid rgba(29, 29, 31, 0.06); border-radius: 24px; box-shadow: 0 18px 55px rgba(0, 0, 0, 0.08); }
.compatibility { display: flex; align-items: center; gap: 9px; min-height: 36px; padding: 0 6px 10px; color: var(--muted); font-size: 14px; }
.status-dot { width: 8px; height: 8px; background: #ff9f0a; border-radius: 50%; }
.compatibility.supported .status-dot { background: #34c759; }
.compatibility.unsupported .status-dot { background: #ff3b30; }

esp-web-install-button { display: block; --esp-tools-button-color: var(--blue); --esp-tools-button-text-color: #fff; --esp-tools-button-border-radius: 14px; }
.install-button { width: 100%; min-height: 58px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; border: 0; border-radius: 14px; color: #fff; background: var(--blue); font: inherit; font-size: 17px; font-weight: 650; cursor: pointer; transition: background 160ms ease, transform 160ms ease; }
.install-button:hover { background: var(--blue-hover); }
.install-button:active { transform: scale(0.985); }
.install-button:focus-visible { outline: 4px solid rgba(0, 113, 227, 0.25); outline-offset: 3px; }
.browser-message { margin: 0; padding: 16px; color: #b42318; background: #fff1f0; border-radius: 14px; font-size: 14px; line-height: 1.5; }
.microcopy { margin: 12px 6px 0; color: #86868b; font-size: 12px; line-height: 1.45; text-align: center; }

.device-stage { display: grid; place-items: center; min-height: 590px; }
.device { position: relative; width: min(100%, 590px); aspect-ratio: 1; filter: drop-shadow(0 30px 35px rgba(29, 29, 31, 0.16)); transform: rotate(0.7deg); }
.device-shell { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: contain; }
.screen { position: absolute; left: 13.65%; top: 10.25%; width: 72.7%; height: 54.25%; overflow: hidden; padding: 24px 18px 16px; color: #111; background: #fdfdfb; border-radius: 2.3%; filter: grayscale(1); }
.screen-header { display: flex; justify-content: space-between; align-items: baseline; padding: 0 6px 14px; }
.screen-header strong { font-size: clamp(25px, 3vw, 38px); letter-spacing: -0.05em; }
.screen-header span { font-size: clamp(12px, 1.5vw, 17px); }
.period-label { min-height: 19px; display: flex; align-items: end; padding: 2px 11px 1px; color: #555; border-bottom: 1px solid #c9c9c9; font-size: clamp(9px, 1vw, 12px); font-weight: 650; }
.reminder { min-height: 43px; display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 3px 11px; border-bottom: 1px solid #c9c9c9; font-size: clamp(12px, 1.5vw, 18px); }
.reminder.selected { background: #e7e7e7; border-bottom-color: transparent; border-radius: 3px; }
.circle { width: 21px; height: 21px; border: 2px solid #111; border-radius: 50%; }
.reminder time { font-size: 0.7em; font-variant-numeric: tabular-nums; }
.screen-footer { display: flex; justify-content: space-between; padding: 15px 7px 0; color: #555; font-size: clamp(10px, 1.3vw, 15px); }

.steps { padding: 88px 0; border-top: 1px solid var(--line); }
.section-heading { max-width: 700px; margin-bottom: 42px; }
.section-heading.centered { max-width: 790px; margin-inline: auto; text-align: center; }
.section-heading > p:last-child { margin: 18px 0 0; color: var(--muted); font-size: 18px; line-height: 1.6; }
h2 { margin: 0; font-size: clamp(34px, 4vw, 52px); line-height: 1.08; letter-spacing: -0.04em; }
.step-grid { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; }
.step-grid li { min-height: 235px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; background: #fff; border-radius: 24px; }
.step-number { width: 36px; height: 36px; display: grid; place-items: center; color: #fff; background: #1d1d1f; border-radius: 50%; font-size: 15px; font-weight: 650; }
.step-grid h3 { margin: 32px 0 8px; font-size: 22px; letter-spacing: -0.02em; }
.step-grid p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

.ecosystem { padding: 100px 0; border-top: 1px solid var(--line); }
.sync-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 20px;
  align-items: center;
}
.sync-flow article {
  min-height: 260px;
  padding: 30px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.045);
}
.flow-icon {
  width: fit-content;
  min-width: 74px;
  min-height: 38px;
  padding: 0 13px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: #1d1d1f;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.sync-flow h3 { margin: 62px 0 10px; font-size: 24px; letter-spacing: -0.025em; }
.sync-flow p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.58; }
.flow-arrow { color: #86868b; font-size: 30px; }

.feature-section { padding: 100px 0; border-top: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature-card {
  min-height: 280px;
  padding: 34px;
  overflow: hidden;
  background: #fff;
  border-radius: 28px;
}
.feature-large { grid-column: 1 / -1; min-height: 330px; background: #1d1d1f; color: #fff; }
.feature-kicker { color: var(--blue); font-size: 14px; font-weight: 700; }
.feature-large .feature-kicker { color: #70b7ff; }
.feature-card h3 { max-width: 650px; margin: 56px 0 12px; font-size: clamp(27px, 3vw, 40px); line-height: 1.08; letter-spacing: -0.035em; }
.feature-card p { max-width: 650px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.feature-large p { color: #d2d2d7; font-size: 18px; }
.alert-demo {
  max-width: 455px;
  margin: 28px 0 0 auto;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 15px;
  align-items: center;
  color: #111;
  background: #f7f7f5;
  border: 2px solid #111;
  border-radius: 999px;
}
.eyes { font-size: 19px; white-space: nowrap; }
.alert-demo strong, .alert-demo small { display: block; }
.alert-demo strong { font-size: 15px; }
.alert-demo small { margin-top: 2px; color: #555; font-size: 10px; }
.alert-action {
  width: 48px;
  min-height: 48px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1.5px solid #111;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
}
.alert-action small { margin-top: 3px; font-size: 8px; }

.preview-section { padding: 100px 0; border-top: 1px solid var(--line); }
.preview-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.preview-card {
  margin: 0;
  padding: 24px;
  background: #fff;
  border-radius: 28px;
}
.preview-wide { grid-column: span 1; }
.preview-device {
  position: relative;
  aspect-ratio: 1;
  filter: drop-shadow(0 18px 24px rgba(29, 29, 31, 0.13));
}
.preview-device .preview-shell {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.preview-device .preview-screen {
  position: absolute;
  left: 13.65%;
  top: 10.25%;
  width: 72.7%;
  height: 54.25%;
  display: block;
  object-fit: fill;
  border-radius: 1.5%;
  image-rendering: pixelated;
}
.preview-card figcaption { padding: 23px 4px 5px; }
.preview-card figcaption strong { display: block; margin-bottom: 7px; font-size: 22px; }
.preview-card figcaption span { color: var(--muted); font-size: 15px; line-height: 1.55; }

.install-notes {
  margin-top: 18px;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  background: #e8e8ed;
  border-radius: 24px;
}
.install-notes strong { font-size: 15px; }
.install-notes p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.after-install { padding: 54px; display: grid; grid-template-columns: 1fr 0.78fr; gap: 72px; align-items: end; color: #fff; background: #1d1d1f; border-radius: 32px; }
.after-install .eyebrow { color: #6eb4ff; }
.after-install > p { margin: 0; color: #d2d2d7; font-size: 17px; line-height: 1.6; }
.after-copy p { margin: 0 0 22px; color: #d2d2d7; font-size: 17px; line-height: 1.6; }
.after-copy small { display: block; margin-top: 10px; color: #a1a1a6; font-size: 12px; }
.button-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.text-button { color: #fff; text-decoration: none; font-weight: 650; }
.text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.shortcut-row { margin-top: 30px !important; }
.shortcut-link { color: #fff; font-weight: 700; text-underline-offset: 4px; }
.download-button { display: inline-flex; min-height: 46px; align-items: center; padding: 0 18px; color: #1d1d1f; background: #fff; border-radius: 12px; text-decoration: none; font-weight: 650; }
.download-button:hover { background: #f5f5f7; }
code { padding: 2px 6px; color: inherit; background: rgba(255,255,255,0.12); border-radius: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.86em; }

.faq { padding: 100px 0 70px; }
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.faq-grid article { padding: 30px; background: #fff; border-radius: 24px; }
.faq-grid h3 { margin: 0 0 11px; font-size: 20px; letter-spacing: -0.02em; }
.faq-grid p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.faq-grid code { background: #e8e8ed; }
.site-footer {
  padding: 28px 0 0;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.site-footer a { color: inherit; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .page-shell { padding-inline: 24px; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; gap: 70px; padding-top: 58px; }
  .installer-card { max-width: 540px; }
  .device-stage { min-height: auto; }
  .sync-flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); justify-self: center; }
  .sync-flow article { min-height: 220px; }
  .sync-flow h3 { margin-top: 45px; }
  .step-grid { grid-template-columns: 1fr; }
  .step-grid li { min-height: 180px; }
  .install-notes { grid-template-columns: 1fr; }
  .after-install { grid-template-columns: 1fr; gap: 30px; padding: 40px; }
}

@media (max-width: 520px) {
  .page-shell { padding-inline: 16px; padding-bottom: 32px; }
  .topbar { height: 58px; }
  .version { display: none; }
  .hero { padding: 48px 0 72px; }
  h1 { font-size: 42px; overflow-wrap: anywhere; }
  .lede { font-size: 17px; }
  .screen { padding: 13px 9px 8px; }
  .screen-header { padding-bottom: 6px; }
  .period-label { min-height: 12px; padding: 1px 5px; font-size: 7px; }
  .reminder { min-height: 28px; grid-template-columns: 16px 1fr auto; gap: 5px; padding: 2px 5px; }
  .circle { width: 15px; height: 15px; border-width: 1.5px; }
  .screen-footer { padding-top: 7px; }
  .steps { padding: 68px 0; }
  .step-grid li { padding: 24px; }
  .feature-grid, .preview-grid, .faq-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: auto; padding: 26px; }
  .feature-card h3 { margin-top: 42px; }
  .alert-demo { margin-top: 24px; grid-template-columns: auto 1fr auto auto; gap: 7px; padding: 10px 12px; }
  .eyes { display: none; }
  .alert-action { width: 42px; min-height: 42px; }
  .preview-card { padding: 12px; border-radius: 20px; }
  .after-install { padding: 30px 24px; border-radius: 24px; }
  .site-footer { flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .install-button { transition: none; }
}
