/* Home Pro: static product page.
   Principles (Apple HIG): system typography, semantic colours for light and dark, colour only as signal,
   generous spacing, content first, accessible by default. */

:root {
  color-scheme: light dark;

  /* Semantic colours, light appearance */
  --bg: #ffffff;
  --bg-grouped: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;    /* 5.0:1 on white, 4.6:1 on --bg-grouped */
  --line: rgba(0, 0, 0, 0.12);
  --accent: #26bfff;             /* the app's accent colour; used for shapes, never for small text */
  --on-accent: #0a0a0a;          /* black on the light accent: about 10:1 */
  --accent-text: #0071a4;        /* links and small coloured text: 5.2:1 on white */
  --signal-red: #d70015;         /* 5.6:1 on white; used only for "open" */
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.14), 0 2px 6px rgba(0, 0, 0, 0.06);

  --radius-card: 24px;
  --radius-control: 14px;
  --page-width: 1080px;
  --gutter: clamp(20px, 5vw, 40px);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-grouped: #1c1c1e;
    --card: #1c1c1e;
    --text: #f5f5f7;
    --text-secondary: #a1a1a6;  /* 6.6:1 on --bg-grouped */
    --line: rgba(255, 255, 255, 0.16);
    --accent-text: #64d2ff;
    --signal-red: #ff6961;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.5 var(--font);   /* 17 pt, the system's default body size */
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--accent-text); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  padding: 12px 16px;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius-control);
  z-index: 20;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--page-width));
  margin-inline: auto;
}

/* ---------- Navigation: small and functional ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
@media (prefers-reduced-transparency: reduce) {
  .site-nav { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.brand img { width: 30px; height: 30px; border-radius: 7px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a:not(.button) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 12px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  text-decoration: none;
}
.nav-links a:not(.button):hover { color: var(--text); }
@media (max-width: 760px) {
  .nav-links li:not(:last-child) { display: none; }
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
  transition: filter 0.15s ease;
}
.button:hover { filter: brightness(0.94); text-decoration: none; }
.button:active { filter: brightness(0.86); }
.button.small { min-height: 36px; padding: 0 16px; font-size: 0.9375rem; }
.button.secondary {
  background: transparent;
  color: var(--accent-text);
  padding-inline: 12px;
}
.button.secondary:hover { filter: none; text-decoration: underline; text-underline-offset: 0.2em; }

/* ---------- Type scale ---------- */

h1, h2, h3 { margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); line-height: 1.04; font-weight: 700; }
h2 { font-size: clamp(1.875rem, 4.6vw, 3rem); line-height: 1.1; font-weight: 700; }
h3 { font-size: 1.25rem; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }

.eyebrow {
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.lead {
  color: var(--text-secondary);
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  line-height: 1.45;
  max-width: 36em;
  text-wrap: pretty;
}
.text-secondary { color: var(--text-secondary); }

section { padding-block: clamp(64px, 11vw, 128px); }
.grouped { background: var(--bg-grouped); }

/* ---------- Hero ---------- */

.hero { padding-top: clamp(40px, 8vw, 96px); overflow: hidden; }

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 64px; }
}

.app-icon {
  width: 88px;
  height: 88px;
  margin-bottom: 28px;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 32px; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }

.availability { margin-top: 20px; color: var(--text-secondary); font-size: 0.9375rem; }

/* ---------- Screenshots ---------- */

.device {
  margin: 0;
  width: min(100%, 320px);
  border-radius: 14% / 6.4%;      /* matches the rounded display corners of the screenshot */
  overflow: hidden;
  box-shadow: var(--shadow);
  outline: 1px solid var(--line);
  outline-offset: -1px;
  background: var(--card);
}
.device img { width: 100%; aspect-ratio: 750 / 1622; object-fit: cover; }
.hero .device { margin-inline: auto; width: min(100%, 340px); }

/* ---------- Highlights ---------- */

.statement { max-width: 22em; margin-inline: auto; text-align: center; }
.statement .lead { margin: 20px auto 0; }

.feature-grid {
  display: grid;
  gap: 20px;
  margin-top: clamp(40px, 7vw, 72px);
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }

.feature {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--card);
  border-radius: var(--radius-card);
}
.grouped .feature { box-shadow: 0 0 0 1px var(--line); }
.feature .icon {
  width: 32px;
  height: 32px;
  margin-bottom: 20px;
  color: var(--accent-text);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--text-secondary); }

/* ---------- Showcase rows ---------- */

.showcase {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 860px) {
  .showcase { grid-template-columns: 1fr 1fr; gap: 80px; }
  .showcase.reverse .copy { order: 2; }
}
.showcase .device { margin-inline: auto; }
.showcase h2 { margin-bottom: 20px; }
.showcase .lead { font-size: 1.1875rem; }

.checks { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.checks svg {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  fill: none;
  stroke: var(--accent-text);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The one place red appears: something is open */
.signal-open { color: var(--signal-red); font-weight: 600; }

/* ---------- Widgets and Watch ---------- */

.section-head { max-width: 40em; margin-bottom: clamp(32px, 6vw, 56px); }
.section-head h2 { margin-bottom: 16px; }

.sizes { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0; padding: 20px 0 0; list-style: none; }
.sizes li {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--bg-grouped);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
}
.grouped .sizes li { background: var(--bg); }

/* ---------- Facts ---------- */

.facts {
  display: grid;
  gap: 0;
  margin: 0;
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: 0 0 0 1px var(--line);
  overflow: hidden;
}
.facts div { display: grid; gap: 4px; padding: 20px 24px; }
.facts div + div { border-top: 1px solid var(--line); }
.facts dt { color: var(--text-secondary); font-size: 0.9375rem; }
.facts dd { margin: 0; font-weight: 600; }
@media (min-width: 720px) {
  .facts div { grid-template-columns: 220px 1fr; gap: 24px; align-items: baseline; }
}

/* ---------- Closing call to action ---------- */

.closing { text-align: center; }
.closing .app-icon { margin-inline: auto; }
.closing h2 { margin-bottom: 16px; }
.closing .lead { margin: 0 auto 32px; }
.closing .actions { justify-content: center; }

/* ---------- Footer ---------- */

footer {
  padding-block: 40px 56px;
  border-top: 1px solid var(--line);
  color: var(--text-secondary);
  font-size: 0.875rem;
}
footer .wrap { display: grid; gap: 12px; }
footer p { max-width: 60em; }
