:root {
  --color-bg: #fafafa;
  --color-surface: #fff;
  --color-text: #1c1c1e;
  --color-text-secondary: #6e6e73;
  --color-text-muted: #aeaeb2;
  --color-link: #0066cc;
  --color-link-hover: #004499;
  --color-border: #e5e5ea;
  --color-code-bg: #f2f2f7;
  --color-contact-bg: #f2f2f7;
  --color-nav-bg: rgba(250, 250, 250, 0.88);
  --color-accent: #007aff;
  --font-body: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --font-heading: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --max-width: 960px;
  --radius: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #000;
    --color-surface: #1c1c1e;
    --color-text: #f2f2f7;
    --color-text-secondary: #98989d;
    --color-text-muted: #636366;
    --color-link: #0a84ff;
    --color-link-hover: #409cff;
    --color-border: #38383a;
    --color-code-bg: #2c2c2e;
    --color-contact-bg: #1c1c1e;
    --color-nav-bg: rgba(0, 0, 0, 0.88);
    --color-accent: #0a84ff;
  }
}

/* ─── Reset & Base ─── */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Navigation ─── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--color-nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--color-border);
}

.site-nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-nav__brand {
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-nav__links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.site-nav__links a {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
  padding: 2px 0;
}

.site-nav__links a:hover {
  color: var(--color-text);
}

.site-nav__links a[aria-current='page'] {
  color: var(--color-text);
  font-weight: 600;
}

/* ─── Main Content ─── */

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.page--fade-in {
  animation: fadeUp 0.4s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Typography ─── */

h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 6px;
}

.page-meta {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-bottom: 2.5rem;
}

h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 2.4rem;
  margin-bottom: 0.6rem;
  color: var(--color-text);
}

p {
  margin-bottom: 0.85rem;
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--color-link-hover);
  text-decoration: underline;
}

strong {
  font-weight: 600;
}

ul,
ol {
  margin: 0.5rem 0 1rem 1.4rem;
}

li {
  margin-bottom: 0.35rem;
}

code {
  font-family: 'SF Mono', SFMono-Regular, ui-monospace, Menlo, monospace;
  font-size: 0.88em;
  background: var(--color-code-bg);
  padding: 2px 6px;
  border-radius: 5px;
}

/* ─── Intro text ─── */

.intro {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
}

/* ─── Divider ─── */

hr {
  border: none;
  border-top: 0.5px solid var(--color-border);
  margin: 2.5rem 0;
}

/* ─── Contact Box ─── */

.contact-box {
  background: var(--color-contact-bg);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 2.5rem;
  line-height: 1.65;
}

.contact-box strong {
  display: block;
  margin-bottom: 4px;
}

/* ─── FAQ ─── */

.faq-item {
  padding: 1.6rem 0;
  border-bottom: 0.5px solid var(--color-border);
}

.faq-item:first-of-type {
  border-top: 0.5px solid var(--color-border);
}

.faq-item h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.faq-item p {
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

.faq-item p + p {
  margin-top: 0.5rem;
}

/* ─── Footer ─── */

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 48px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ─── Features Page ─── */

.page--features {
  max-width: 960px;
}

.features-hero {
  text-align: center;
  margin-bottom: 1rem;
}

.features-hero h1 {
  font-size: 2.5rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.features-hero .intro {
  max-width: 480px;
  margin: 0.75rem auto 0;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 0.5px solid var(--color-border);
}

.feature:last-of-type {
  border-bottom: none;
}

.feature--reverse .feature__visual {
  order: -1;
}

.feature__text h2 {
  margin-top: 0;
  font-size: 1.35rem;
}

.feature__text p {
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

.feature__text p + p {
  margin-top: 0.5rem;
}

.feature__visual {
  display: flex;
  justify-content: center;
}

.feature__visual img {
  max-width: 100%;
  height: auto;
}

.feature-card {
  width: min(100%, 360px);
  padding: 24px;
  border-radius: 28px;
  border: 1px solid var(--color-border);
  background: linear-gradient(180deg, var(--color-surface), var(--color-code-bg));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.feature-card__eyebrow {
  margin-bottom: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.feature-card__list {
  list-style: none;
  margin: 0;
  display: grid;
  gap: 12px;
}

.feature-card__list li {
  position: relative;
  margin: 0;
  padding-left: 18px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.feature-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--color-accent);
}

.support-shot {
  margin: 2rem 0 1rem;
}

.support-shot__images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.support-shot .device-phone {
  max-width: 280px;
  margin: 0 auto;
}

.support-shot--pair .device-phone {
  max-width: 220px;
  margin: 0;
}

.support-shot__caption {
  max-width: 520px;
  margin: 0.85rem auto 0;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 0.92rem;
}

/* ─── Device Frames ─── */

.device-phone {
  --bezel: #2c2c2e;
  --bezel-edge: rgba(255, 255, 255, 0.08);
  --bezel-shadow: rgba(0, 0, 0, 0.35);
  background: var(--bezel);
  border: 1px solid var(--bezel-edge);
  border-radius: 44px;
  padding: 10px;
  max-width: 280px;
  box-shadow:
    0 2px 8px var(--bezel-shadow),
    0 12px 40px var(--bezel-shadow);
}

.device-phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 34px;
}

.device-watch {
  --bezel: #2c2c2e;
  --bezel-edge: rgba(255, 255, 255, 0.1);
  --bezel-shadow: rgba(0, 0, 0, 0.35);
  background: var(--bezel);
  border: 1px solid var(--bezel-edge);
  border-radius: 40px;
  padding: 8px;
  width: 160px;
  box-shadow:
    0 2px 8px var(--bezel-shadow),
    0 12px 40px var(--bezel-shadow);
}

.device-watch img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 33px;
}

@media (prefers-color-scheme: light) {
  .device-phone,
  .device-watch {
    --bezel: #1c1c1e;
    --bezel-edge: rgba(255, 255, 255, 0.05);
    --bezel-shadow: rgba(0, 0, 0, 0.18);
  }
}

.feature__visual--watch-pair {
  gap: 20px;
}

.feature__visual--widget-pair {
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.widget-shot {
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
}

.widget-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.widget-shot--small {
  width: min(100%, 190px);
  border-radius: 38px;
}

.widget-shot--medium {
  width: min(100%, 360px);
  border-radius: 38px;
}

/* ─── Responsive ─── */

@media (max-width: 720px) {
  .features-hero h1 {
    font-size: 1.8rem;
  }

  .feature {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .feature--reverse .feature__visual {
    order: 0;
  }

  .device-phone {
    max-width: 240px;
  }

  .device-watch {
    width: 130px;
  }

  .feature__visual--widget-pair {
    flex-flow: row wrap;
  }

  .widget-shot--small {
    width: min(42vw, 170px);
  }

  .widget-shot--medium {
    width: min(84vw, 340px);
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.6rem;
  }

  .page {
    padding-top: 40px;
    padding-bottom: 56px;
  }

  .site-nav__inner {
    padding-inline: 16px;
    gap: 12px;
  }

  .site-nav__links {
    gap: 10px;
  }

  .site-nav__links a {
    font-size: 0.8rem;
  }
}
