:root {
  --paper: #f6f3ec;
  --card: #ffffff;
  --ink: #141414;
  --muted: #6b675f;
  --line: rgba(20, 20, 20, 0.1);
  --accent: #141414;
  --on-accent: #ffffff;
  --gold: #f5c518;
  --gold-ink: #9a7300;
  --radius: 22px;
}
/* Dark: the visitor's system setting, unless they chose a theme with the toggle. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121212;
    --card: #1d1d1d;
    --ink: #f3f1ec;
    --muted: #a39f97;
    --line: rgba(255, 255, 255, 0.12);
    --accent: #f5c518;
    --on-accent: #111111;
    --gold-ink: #f5c518;
  }
}
:root[data-theme="dark"] {
    --paper: #121212;
    --card: #1d1d1d;
    --ink: #f3f1ec;
    --muted: #a39f97;
    --line: rgba(255, 255, 255, 0.12);
    --accent: #f5c518;
    --on-accent: #111111;
    --gold-ink: #f5c518;
  }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}
a { color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Header */
header.site { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
nav.links { display: flex; gap: 22px; font-size: 15px; }
nav.links a { text-decoration: none; color: var(--muted); }
nav.links a:hover, nav.links a[aria-current] { color: var(--ink); }

/* Buttons */
.button { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 14px; font-weight: 600; text-decoration: none; border: 1px solid transparent; }
.button.primary { background: var(--accent); color: var(--on-accent); }
.button.secondary { border-color: var(--line); background: var(--card); }
.button:hover { opacity: 0.88; }

/* Hero */
.hero { padding: 72px 0 40px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; font-weight: 700; color: var(--gold-ink); }
.mark { background: linear-gradient(transparent 62%, color-mix(in srgb, var(--gold) 70%, transparent) 62%, color-mix(in srgb, var(--gold) 70%, transparent) 92%, transparent 92%); padding: 0 2px; }
.dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 22%, transparent); }
/* Feature symbols: gold line icons in a soft gold circle. */
.icon { flex: none; width: 42px; height: 42px; padding: 9px; border-radius: 50%; background: color-mix(in srgb, var(--gold) 16%, transparent); fill: none; stroke: var(--gold-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pricing { border: 2px solid var(--gold); }
h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.05; letter-spacing: -0.02em; margin: 10px 0 18px; }
.lede { font-size: 20px; color: var(--muted); max-width: 32em; margin: 0 0 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.note { font-size: 14px; color: var(--muted); margin-top: 14px; }
.hero .phone { justify-self: center; }

/* Phones */
.phone { position: relative; width: 100%; max-width: 300px; border-radius: 40px; border: 8px solid #0b0b0b; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.08); background: var(--card); overflow: hidden; }
/* The Dynamic Island: screenshots don't include the hardware. */
.phone::before { content: ""; position: absolute; top: 1.3%; left: 50%; transform: translateX(-50%); width: 31%; aspect-ratio: 3.4; border-radius: 999px; background: #000; z-index: 1; }
.phone img { display: block; width: 100%; height: auto; }
.phone img, .phone picture { display: block; width: 100%; height: auto; }
/* Rest follows you: stacked phone tops, like the island seen on three phones. */
.follows { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; }
.stack { display: grid; gap: 18px; }
.ptop { border: 8px solid #0b0b0b; border-bottom: none; border-radius: 46px 46px 0 0; overflow: hidden; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18); }
.ptop img, .lockcard img { display: block; width: 100%; height: auto; }
.lockcard { border-radius: 26px; overflow: hidden; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding: 10px 0 30px; }
.gallery figure { margin: 0; text-align: center; }
.gallery .phone { max-width: none; border-width: 6px; border-radius: 30px; }
.gallery figcaption { margin-top: 12px; font-size: 15px; color: var(--muted); }
.shots-note { margin: -14px 0 0; text-align: center; font-size: 13px; color: var(--muted); }

/* Sections */
section { padding: 48px 0; }
h2 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.015em; margin: 0 0 10px; }
.section-lede { color: var(--muted); margin: 0 0 28px; max-width: 40em; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.features.two { grid-template-columns: repeat(2, 1fr); }
.features.two .card h3 { font-size: 22px; }
.features.two .card p { font-size: 17px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card .icon { font-size: 24px; margin-bottom: 8px; }

.watch { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; }
.watch img { width: 220px; border-radius: 48px; border: 10px solid #000; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2); }

.beta { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 36px; }
.beta p { color: var(--muted); max-width: 34em; margin: 0 0 22px; }

/* Text pages */
.page { padding: 56px 0 40px; max-width: 760px; }
.page h1 { font-size: clamp(34px, 5vw, 46px); }
.page h2 { font-size: 24px; margin-top: 36px; }
.page p, .page li { color: var(--ink); }
.page .muted { color: var(--muted); }
.page ul { padding-left: 22px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 2px; color: var(--muted); }

footer.site { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; }
footer.site nav { display: flex; gap: 18px; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 44px; text-align: left; }
  .hero .phone { max-width: 260px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .features, .features.two { grid-template-columns: 1fr; }
  .watch, .follows { grid-template-columns: 1fr; }
  .watch img { width: 180px; }
  nav.links { gap: 14px; font-size: 14px; }
}
@media (max-width: 600px) {
  .theme-toggle .label { display: none; }
  header.site .right { gap: 12px; }
}
@media (max-width: 420px) {
  nav.links a.hide-small { display: none; }
}

.theme-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.theme-toggle:hover { border-color: var(--gold); }
header.site .right { display: flex; align-items: center; gap: 18px; }

.price-tag { display: inline-block; margin: 6px 0 22px; padding: 16px 26px; border-radius: 18px; background: var(--paper); border: 1px dashed var(--gold); }
.price-tag .tier { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-ink); }
.price-tag .amount { font-size: 22px; margin-top: 4px; }
.price-tag .amount s { color: var(--muted); font-size: 17px; margin-right: 6px; }
.price-tag .amount strong { font-size: 40px; letter-spacing: -0.02em; }
.price-tag .amount span { color: var(--muted); font-size: 17px; }
.price-tag .fine { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* Your data, private by design, with a gold lock. */
.private .section-lede { max-width: 34em; }
.private .lock { width: 56px; height: 56px; margin: 0 0 16px; border-radius: 50%; display: grid; place-items: center; color: var(--gold-ink); background: color-mix(in srgb, var(--gold) 18%, transparent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--gold) 9%, transparent); }

/* In-page links glide, and land below the sticky header instead of under it. */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
[id] { scroll-margin-top: 88px; }

/* Theme toggle on phones: just the symbol, larger, in the same-size circle. */
.theme-toggle .sym { display: block; width: 15px; height: 15px; flex: none; }
@media (max-width: 600px) {
  .theme-toggle { width: 36px; height: 36px; padding: 0; justify-content: center; }
  .theme-toggle .sym { width: 20px; height: 20px; }
}

/* Hero buttons on phones: an equal-width pair on one row. */
@media (max-width: 600px) {
  .hero .actions { flex-wrap: nowrap; gap: 10px; }
  .hero .actions .button { flex: 1 1 0; justify-content: center; text-align: center; padding: 14px 10px; font-size: 16px; white-space: nowrap; }
}
@media (max-width: 360px) {
  .hero .actions .button { padding: 13px 6px; font-size: 14px; }
}

/* Pricing, privacy and the beta invite are centred; the rest reads from the left edge. */
.beta { text-align: center; }
.beta p { margin-left: auto; margin-right: auto; }
.private { text-align: center; }
.private .section-lede { margin-left: auto; margin-right: auto; }
.private .lock { margin: 0 auto 16px; }
/* On phones, the Watch screenshot comes after its text, in the middle. */
@media (max-width: 820px) {
  .watch img { justify-self: center; order: 1; }
}
