:root {
  color-scheme: light;
  --sky-400: #38bdf8;
  --sky-500: #0ea5e9;
  --blue-600: #2563eb;
  --navy: #082f49;
  --ink: #0f172a;
  --muted: #475569;
  --line: rgba(8, 47, 73, 0.13);
  --glass: rgba(255, 255, 255, 0.68);
  --white: #ffffff;
  --shadow: 0 30px 80px rgba(2, 132, 199, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 12%, rgba(125, 211, 252, 0.62), transparent 34rem),
    linear-gradient(160deg, #f0f9ff 0%, #ffffff 52%, #e0f2fe 100%);
  font-family: ui-rounded, "SF Pro Rounded", "Nunito Sans", system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.page-glow {
  position: fixed;
  z-index: -1;
  width: 34rem;
  height: 34rem;
  right: -12rem;
  top: 20rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.3);
  filter: blur(70px);
}

.site-header,
main,
.site-footer {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
}

.brand img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.24);
}

nav {
  display: flex;
  gap: clamp(0.8rem, 3vw, 1.5rem);
}

nav a,
.site-footer a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"],
.site-footer a:hover {
  color: var(--blue-600);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: clamp(2rem, 8vw, 7rem);
  align-items: center;
  min-height: 42rem;
  padding: 4rem 0 5rem;
}

.eyebrow {
  color: #0369a1;
  font-size: 0.875rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  letter-spacing: -0.035em;
  line-height: 1.02;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1.3rem;
  font-size: clamp(3.6rem, 8vw, 7.2rem);
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.lede {
  max-width: 38rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.lede.compact {
  max-width: 48rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 3.15rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 850;
  text-decoration: none;
}

.button.primary {
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 10px 28px rgba(8, 47, 73, 0.2);
}

.button.secondary {
  color: var(--navy);
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(16px);
}

.fine-print,
.updated {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
}

figure { margin: 0; }
figcaption { margin-top: 1rem; color: var(--muted); font-size: 0.9rem; text-align: center; }
.phone-preview { width: min(100%, 23rem); justify-self: center; }
.phone-preview img { display: block; width: 100%; height: auto; border-radius: 1.8rem; box-shadow: var(--shadow); }
.watch-feature, .ipad-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 7vw, 6rem); padding: 4rem 0 6rem; }
.device-copy h2 { font-size: clamp(2.4rem, 4.5vw, 4rem); }
.device-copy > p:not(.eyebrow) { color: var(--muted); }
.text-link { color: #0369a1; font-weight: 750; text-underline-offset: 0.25em; }
.watch-preview { justify-self: center; width: min(100%, 21rem); }
.watch-preview img { display: block; width: 100%; height: auto; border: 8px solid #071a2c; border-radius: 4rem; box-shadow: var(--shadow); }
.ipad-preview { width: 100%; }
.ipad-preview img { display: block; width: 100%; height: auto; border-radius: 1rem; box-shadow: var(--shadow); }
a:focus-visible, summary:focus-visible { outline: 3px solid #0284c7; outline-offset: 5px; }
.article-card :is(p, li) { overflow-wrap: anywhere; }
.article-card details li { color: var(--muted); margin-bottom: 0.65rem; }
.article-card summary { scroll-margin-top: 2rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1rem 0 5rem;
}

.feature-grid article,
.privacy-callout,
.article-card {
  border: 1px solid var(--line);
  background: var(--glass);
  box-shadow: 0 20px 50px rgba(2, 132, 199, 0.09);
  backdrop-filter: blur(20px);
}

.feature-grid article {
  padding: 1.6rem;
  border-radius: 1.8rem;
}

.feature-grid article p,
.privacy-callout > p,
.article-card > p,
.article-card details p {
  color: var(--muted);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 2rem;
  color: var(--navy);
  border-radius: 999px;
  background: linear-gradient(145deg, #ffffff, #bae6fd);
  box-shadow: 0 9px 22px rgba(2, 132, 199, 0.17);
  font-size: 1.5rem;
  font-weight: 900;
}

.feature-grid h2 {
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.privacy-callout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border-radius: 2.2rem;
}

.privacy-callout h2,
.privacy-callout p {
  margin-bottom: 0;
}

.article-wrap {
  max-width: 850px;
  padding: 4rem 0 6rem;
}

.article-card {
  padding: clamp(1.5rem, 6vw, 4.5rem);
  border-radius: 2.2rem;
}

.article-card h1 {
  max-width: 14ch;
  font-size: clamp(3rem, 8vw, 5.6rem);
}

.article-card h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.7rem;
  font-size: 1.35rem;
}

.article-card a {
  color: #0369a1;
  font-weight: 750;
}

details {
  border-top: 1px solid var(--line);
  padding: 1.15rem 0;
}

details:last-of-type {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  font-weight: 850;
}

details p {
  margin: 0.8rem 0 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.site-footer p:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.not-found {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: start;
  gap: 0.7rem;
}

.not-found img {
  width: 6rem;
  border-radius: 1.5rem;
}

.not-found h1 {
  max-width: 9ch;
  font-size: clamp(3rem, 10vw, 6rem);
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 3rem;
  }

  .phone-preview { width: min(100%, 84vw, 20rem); margin-top: 1rem; }
  .watch-feature, .ipad-feature { grid-template-columns: 1fr; padding: 2rem 0 4rem; }
  .ipad-preview { width: min(100%, 36rem); justify-self: center; }

  .feature-grid,
  .privacy-callout {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    padding-top: 4rem;
  }
}

@media (max-width: 480px) {
  .brand span {
    display: none;
  }

  .hero {
    padding-top: 2rem;
  }

  h1 {
    font-size: clamp(3.2rem, 18vw, 5rem);
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    justify-content: center;
    text-align: center;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #f0f9ff;
    --muted: #bae6fd;
    --navy: #f0f9ff;
    --line: rgba(186, 230, 253, 0.16);
    --glass: rgba(3, 31, 51, 0.7);
  }

  body {
    background:
      radial-gradient(circle at 12% 12%, rgba(2, 132, 199, 0.42), transparent 34rem),
      linear-gradient(160deg, #031525 0%, #07111f 52%, #082f49 100%);
  }

  .button.primary {
    color: #082f49;
  }

  .feature-icon {
    color: #082f49;
  }

  .eyebrow, .text-link, .article-card a { color: #7dd3fc; }
}
