/* Between. Night theme base: black, soft white type, silver ring accent, and a serif wordmark.
   Shared by index.html and privacy.html (privacy.html is generated by build-privacy.py). */

:root {
  --bg: #000;
  --tile: #0e0e10;
  --tile-hi: #141417;
  --ink: #f5f5f7;
  --ink2: #a1a1a6;
  --ink3: #8a8a90;
  --dim: #7c7c82;
  --rule: rgba(255, 255, 255, 0.1);
  --rule-soft: rgba(255, 255, 255, 0.07);
  --ring: #c8ccd4;
  --over: #c45c5c;
  --wrap: 1120px;
  --radius: 28px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --serif: ui-serif, "New York", "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Newsreader (SIL Open Font License), a close open stand-in for Apple's New York.
   Apple devices use New York through ui-serif and never download this file. */
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--ink); }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }
b, strong { font-weight: 600; color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
  border-radius: 8px;
}

.sr {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #000;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
.skip:focus { top: 12px; }

/* ---------- Nav (shared with privacy.html) ---------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 0 max(16px, calc((100% - var(--wrap)) / 2));
  padding-left: max(16px, calc((100% - var(--wrap)) / 2), env(safe-area-inset-left));
  padding-right: max(16px, calc((100% - var(--wrap)) / 2), env(safe-area-inset-right));
  background: rgba(0, 0, 0, 0.66);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--rule-soft);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
  color: var(--ink);
}
.brand img { width: 28px; height: 28px; border-radius: 7px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); }
.navlink { color: var(--ink2); text-decoration: none; font-size: 14px; padding: 8px 0; }
.navlink:hover { color: var(--ink); }

.bar-links { display: flex; gap: 30px; margin: 0 auto; }
.bar-links a { color: var(--ink2); text-decoration: none; font-size: 13px; letter-spacing: 0; padding: 8px 0; transition: color 0.2s; }
.bar-links a:hover { color: var(--ink); }
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #000;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}
.pill:hover { background: #fff; }
.pill:active { transform: scale(0.97); }

/* ---------- Shared type ---------- */

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 800px; }
.section { padding: clamp(96px, 13vw, 168px) 0 0; }

.kicker {
  color: var(--ring);
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
h1, h2 {
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.03;
  text-wrap: balance;
}
h2 { font-size: clamp(40px, 6.6vw, 80px); }
h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.18; }
.sub {
  margin-top: 22px;
  max-width: 36em;
  color: var(--ink2);
  font-size: clamp(19px, 1.9vw, 23px);
  line-height: 1.42;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}
.dim { color: var(--dim); }
.silver {
  background: linear-gradient(180deg, #f5f5f7 0%, #d6d9df 45%, #8f939c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.textlink {
  color: var(--ring);
  text-decoration: none;
  font-size: 17px;
  white-space: nowrap;
}
.textlink:hover { text-decoration: underline; text-underline-offset: 4px; }

.how, .everywhere, .features, .together, .privacy, .pricing, .notify { text-align: center; }
.how .sub, .everywhere .sub, .features .sub, .together .sub, .notify .sub { margin-left: auto; margin-right: auto; }

/* ---------- Device images ---------- */
/* Screenshots come pre-framed in Apple's iPhone 18 Pro and Apple Watch Series 11 bezels (img/*.webp),
   so the wrapper only sizes them and adds a soft drop shadow that follows the device's outline. */

.phone { position: relative; }
.phone img, .shot img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.55));
}

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

.hero {
  position: relative;
  padding: clamp(56px, 8vw, 104px) 20px 0;
  text-align: center;
  overflow-x: clip;
}
.eyebrow {
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 24px);
  letter-spacing: 0;
  color: var(--ring);
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(46px, 8.6vw, 112px); line-height: 1.0; letter-spacing: -0.045em; }
.hero h1 .line { display: block; text-wrap: balance; }
.lede {
  margin: 26px auto 0;
  max-width: 31em;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--ink2);
  text-wrap: pretty;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 28px;
  margin-top: 36px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
}
.dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ring);
  box-shadow: 0 0 12px rgba(200, 204, 212, 0.9);
}
.dot::after {
  content: "";
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--ring);
  opacity: 0;
  animation: ping 2.6s var(--ease) infinite;
}
@keyframes ping {
  0% { transform: scale(0.6); opacity: 0.7; }
  80%, 100% { transform: scale(2.2); opacity: 0; }
}

.stage {
  --pw: clamp(236px, 27vw, 340px);
  --glow: rgba(200, 204, 212, 0.2);
  position: relative;
  display: grid;
  place-items: center;
  margin: clamp(56px, 7vw, 88px) auto 0;
  max-width: var(--wrap);
}
.stage[data-theme="day"] { --glow: rgba(255, 255, 255, 0.24); }
.stage[data-theme="navy"] { --glow: rgba(52, 128, 190, 0.5); }
.stage[data-theme="moss"] { --glow: rgba(58, 140, 104, 0.48); }

.halo {
  position: absolute;
  left: 50%; top: 50%;
  width: calc(var(--pw) * 3.2);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), rgba(0, 0, 0, 0) 72%);
  transition: background 0.8s var(--ease);
  pointer-events: none;
}
.arcs {
  position: absolute;
  left: 50%; top: 50%;
  width: calc(var(--pw) * 2.36);
  height: calc(var(--pw) * 2.36);
  max-width: none;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.arc {
  fill: none;
  stroke: url(#arcfill);
  stroke-width: 2.4;
  stroke-linecap: round;
  opacity: 0.55;
  stroke-dasharray: 760;
  stroke-dashoffset: 0;
}
.js .arc { stroke-dashoffset: 760; animation: draw 2.2s 0.3s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.phone-hero {
  position: relative;
  width: var(--pw);
}
.phone-hero img {
  filter: drop-shadow(0 60px 80px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 60px var(--glow));
  transition: opacity 0.22s ease, filter 0.8s var(--ease);
}
.phone-hero img.swap { opacity: 0; }

/* Floating callouts beside the hero phone, wide screens only. */
.float { display: none; }
@media (min-width: 1040px) {
  .float {
    position: absolute;
    display: flex;
    align-items: center;
    z-index: 2;
    animation: bob 7s ease-in-out infinite;
  }
  .float-island {
    right: calc(50% + var(--pw) / 2 + 56px);
    top: 24%;
  }
  .float-note {
    left: calc(50% + var(--pw) / 2 + 48px);
    top: 52%;
    animation-delay: -3.5s;
  }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.float-island, .la-island {
  gap: 10px;
  height: 46px;
  padding: 0 18px 0 14px;
  border-radius: 999px;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 24px 60px -20px rgba(0, 0, 0, 0.9);
  font-variant-numeric: tabular-nums;
}
.fi-ring {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: conic-gradient(var(--ring) 0 62%, rgba(255, 255, 255, 0.16) 62% 100%);
  -webkit-mask: radial-gradient(circle, transparent 6px, #000 6.5px);
  mask: radial-gradient(circle, transparent 6px, #000 6.5px);
}
.fi-time { font-size: 17px; font-weight: 500; }
.fi-gap { width: 64px; }
.fi-count { font-family: var(--serif); font-size: 18px; }
.float-note {
  gap: 12px;
  width: 300px;
  padding: 12px 16px 12px 12px;
  border-radius: 22px;
  background: rgba(58, 58, 62, 0.55);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 60px -24px rgba(0, 0, 0, 0.8);
  text-align: left;
}
.float-note img { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.fn-text { display: flex; flex-direction: column; flex: 1; line-height: 1.3; font-size: 14px; }
.fn-text b { font-size: 15px; }
.fn-text span { color: rgba(245, 245, 247, 0.78); }
.fn-when { align-self: flex-start; font-size: 12px; color: rgba(245, 245, 247, 0.6); }

.switcher {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 2px;
  margin-top: 48px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--rule-soft);
  position: relative;
  z-index: 2;
}
.sw {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink2);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.sw:hover { color: var(--ink); }
.sw[aria-pressed="true"] { background: rgba(255, 255, 255, 0.14); color: var(--ink); }
.sw:focus-visible { border-radius: 999px; outline-offset: 1px; }
.chip {
  width: 12px; height: 12px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.chip-night { background: #09090b; }
.chip-day { background: #fff; }
.chip-navy { background: #1a5278; }
.chip-moss { background: #245c48; }
.switcher-note { margin-top: 14px; color: var(--ink3); font-size: 14px; }

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: clamp(48px, 6vw, 80px);
  text-align: left;
  counter-reset: none;
}
.step {
  position: relative;
  padding: 32px 30px 34px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--tile-hi), var(--tile));
  border: 1px solid var(--rule-soft);
}
.step-n {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(200, 204, 212, 0.55);
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
  color: var(--ring);
}
.step h3 { font-size: 24px; margin-bottom: 10px; }
.step p { color: var(--ink2); }

/* ---------- Everywhere ---------- */

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 3vw, 32px);
  max-width: 660px;
  margin: clamp(48px, 6vw, 80px) auto 0;
}
.shot { display: flex; flex-direction: column; justify-content: flex-end; }
.shot img.watch-shot { width: 88%; margin: 0 auto; }
.shot figcaption {
  margin-top: 18px;
  color: var(--ink2);
  font-size: 16px;
  text-wrap: balance;
}

/* ---------- Bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-areas:
    "lock lock watch"
    "hiit chime watch"
    "siri siri over"
    "together themes private";
  gap: 20px;
  margin-top: clamp(48px, 6vw, 80px);
  text-align: left;
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: clamp(26px, 3vw, 40px);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--tile-hi), var(--tile));
  border: 1px solid var(--rule-soft);
  overflow: hidden;
  isolation: isolate;
}
.tile h3 { font-size: clamp(24px, 2.3vw, 30px); margin-bottom: 10px; }
.tile p { color: var(--ink2); max-width: 30em; text-wrap: pretty; }
.tile-copy { position: relative; z-index: 1; }
.more {
  margin-top: auto;
  padding-top: 24px;
  color: var(--ring);
  text-decoration: none;
}
.more:hover { text-decoration: underline; text-underline-offset: 4px; }

.t-lock { grid-area: lock; display: grid; grid-template-columns: 1fr 1.05fr; gap: 32px; align-items: center; }
.t-watch { grid-area: watch; }
.t-over { grid-area: over; }
.t-chime { grid-area: chime; }
.t-siri { grid-area: siri; }
.t-hiit { grid-area: hiit; }
.t-together { grid-area: together; }
.t-themes { grid-area: themes; }
.t-themes .swatches { margin-top: auto; padding-top: 32px; }
.t-siri { display: grid; grid-template-columns: 1.1fr 0.9fr; column-gap: 28px; padding-bottom: 0; }
.siri-l { padding-bottom: clamp(26px, 3vw, 40px); }
.t-private { grid-area: private; }

/* Lock Screen Live Activity, drawn after the app's widget layout. */
.la {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 30px 22px;
  border-radius: 22px;
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(92, 104, 128, 0.55), transparent 60%),
    radial-gradient(120% 90% at 100% 100%, rgba(60, 64, 78, 0.6), transparent 60%),
    #15161a;
}
.la-island { display: inline-flex; align-items: center; }
.la-card {
  width: 100%;
  max-width: 340px;
  padding: 14px 16px 16px;
  border-radius: 22px;
  background: rgba(20, 20, 24, 0.62);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  font-variant-numeric: tabular-nums;
}
.la-row { display: flex; justify-content: space-between; align-items: flex-end; }
.la-row > div { display: flex; flex-direction: column; }
.la-right { align-items: flex-end; }
.la-clock { font-size: 44px; font-weight: 300; line-height: 1; letter-spacing: -0.02em; }
.la-count { font-family: var(--serif); font-size: 28px; line-height: 1; }
.la-cap { margin-top: 4px; font-size: 13px; color: rgba(245, 245, 247, 0.6); }
.la-bar { height: 4px; margin: 12px 0; border-radius: 4px; background: rgba(255, 255, 255, 0.16); overflow: hidden; }
.la-bar span { display: block; width: 62%; height: 100%; border-radius: 4px; background: var(--ink); }
.la-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.la-btns span { padding: 9px 0; border-radius: 999px; text-align: center; font-size: 15px; font-weight: 600; }
.la-log { background: #f4f4f5; color: #09090b; }
.la-reset { background: rgba(255, 255, 255, 0.14); }

/* Apple Watch Smart Stack, drawn after the app's small widget layout. */
.watch {
  position: relative;
  display: grid;
  place-items: center;
  flex: 1;
  min-height: 300px;
  padding: 40px 0 8px;
}
/* Apple's Apple Watch Series 11 bezel (img/watch-bezel.webp, 1120x1760) laid over a live HTML screen.
   The screen opening is at 144,384, 832x992 in the image. */
.watch-case {
  position: relative;
  width: 240px;
  aspect-ratio: 1120 / 1760;
  filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.7));
  z-index: 1;
}
.watch-case::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("img/watch-bezel.webp") center / 100% 100% no-repeat;
  pointer-events: none;
}
.watch-screen {
  position: absolute;
  left: 12.86%; top: 21.82%;
  width: 74.29%; height: 56.36%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 16px 14px;
  border-radius: 34px;
  background: #000;
  font-variant-numeric: tabular-nums;
}
.ws-row { display: flex; justify-content: space-between; align-items: baseline; }
.ws-clock { font-size: 34px; font-weight: 300; line-height: 1; }
.ws-count { font-family: var(--serif); font-size: 22px; line-height: 1; }
.ws-caps { display: flex; justify-content: space-between; margin-top: 3px; font-size: 12px; color: rgba(245, 245, 247, 0.6); }
.ws-log { margin-top: 12px; padding: 7px 0; border-radius: 999px; background: #f4f4f5; color: #09090b; text-align: center; font-size: 15px; font-weight: 600; }
.pulse {
  position: absolute;
  left: 50%; top: calc(50% + 16px);
  width: 240px; height: 240px;
  margin: -120px 0 0 -120px;
  border-radius: 50%;
  border: 1px solid rgba(200, 204, 212, 0.4);
  opacity: 0;
  animation: tap 3s var(--ease) infinite;
}
.pulse.p2 { animation-delay: 0.35s; }
@keyframes tap {
  0% { transform: scale(0.8); opacity: 0; }
  12% { opacity: 0.9; }
  60%, 100% { transform: scale(1.5); opacity: 0; }
}

/* Screens peeking up from the bottom of a tile. */
.peek {
  margin: 32px auto -34%;
  width: min(250px, 78%);
  padding-top: 8px;
}
.t-over .peek, .t-hiit .peek { margin-top: auto; padding-top: 32px; }
.peek-top { align-self: end; width: min(260px, 100%); height: 420px; margin: 24px auto 0; overflow: hidden; }

/* Chimes */
.wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  min-height: 150px;
  padding: 36px 0 28px;
}
.wave span {
  width: 6px;
  height: 96px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--ink), var(--ring));
  transform-origin: center;
  animation: eq 1.6s ease-in-out infinite;
}
.wave span:nth-child(4n+1) { transform: scaleY(0.25); animation-delay: -0.2s; }
.wave span:nth-child(4n+2) { transform: scaleY(0.6); animation-delay: -0.7s; }
.wave span:nth-child(4n+3) { transform: scaleY(0.95); animation-delay: -1.1s; }
.wave span:nth-child(4n) { transform: scaleY(0.45); animation-delay: -0.45s; }
.wave span:nth-child(1), .wave span:nth-child(16) { opacity: 0.35; }
.wave span:nth-child(2), .wave span:nth-child(15) { opacity: 0.6; }
@keyframes eq {
  0%, 100% { transform: scaleY(0.25); }
  50% { transform: scaleY(1); }
}
.modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 14px;
  text-align: center;
}
.modes li { padding: 8px 0; border-radius: 999px; color: var(--ink2); }
.modes li.on { background: rgba(255, 255, 255, 0.14); color: var(--ink); font-weight: 500; }

/* Siri */
.quotes { display: grid; gap: 10px; padding-top: 28px; }
.quotes li {
  justify-self: start;
  padding: 12px 18px;
  border-radius: 20px 20px 20px 6px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--rule-soft);
  font-size: 17px;
  letter-spacing: -0.01em;
}
.quotes li:nth-child(2) { margin-left: 8%; }
.quotes li:nth-child(3) { margin-left: 16%; }

/* Together tile */
.lifters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 32px; }
.lifters li {
  display: grid;
  place-items: center;
  min-width: 48px;
  height: 48px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--rule-soft);
  font-size: 15px;
  color: var(--ink2);
}
.lifters li.up { background: var(--ink); color: #000; font-weight: 600; border-color: transparent; }
.lifters li.add { font-size: 22px; font-weight: 300; }
.t-together .more { padding-top: 20px; margin-top: 0; }

/* Themes tile: tiny timers in each palette. */
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; text-align: center; font-size: 14px; color: var(--ink2); }
.swatch {
  --s-bg: #09090b; --s-fg: #f4f4f5; --s-ring: #c8ccd4; --s-track: #1a1a1e;
  position: relative;
  display: block;
  width: 100%;
  max-width: 96px;
  margin: 0 auto 12px;
  aspect-ratio: 0.46;
  border-radius: 18px;
  background: var(--s-bg);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.16), 0 20px 40px -20px rgba(0, 0, 0, 0.9);
}
.swatch::before {
  content: "";
  position: absolute;
  left: 14%; right: 14%; top: 22%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--s-ring) 0 70%, var(--s-track) 70% 100%);
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 60%);
  mask: radial-gradient(circle, transparent 58%, #000 60%);
}
.swatch::after {
  content: "";
  position: absolute;
  left: 12%; right: 12%; bottom: 9%;
  height: 7%;
  border-radius: 999px;
  background: var(--s-fg);
}
.s-day { --s-bg: #fff; --s-fg: #111; --s-ring: #222; --s-track: #f2f2f2; }
.s-navy { --s-bg: #1a5278; --s-fg: #f3f8fc; --s-ring: #d7e8f5; --s-track: #206090; }
.s-moss { --s-bg: #245c48; --s-fg: #eef6f1; --s-ring: #d7ebe1; --s-track: #2d6b54; }

/* Privacy tile */
.lockglyph {
  flex: none;
  width: 64px; height: 64px;
  margin: 0 0 28px -6px;
  fill: none;
  stroke: var(--ring);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Focus ---------- */

.focus-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 7vw, 104px);
  align-items: center;
}
.focus-shot { max-width: 360px; justify-self: center; width: 100%; }
.checks { margin-top: 36px; border-top: 1px solid var(--rule); }
.checks li {
  padding: 20px 0 20px 36px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink2);
  position: relative;
  font-size: 18px;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 4px; top: 27px;
  width: 12px; height: 7px;
  border-left: 2px solid var(--ring);
  border-bottom: 2px solid var(--ring);
  transform: rotate(-45deg);
}

/* ---------- Together ---------- */

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: clamp(48px, 6vw, 80px);
  text-align: left;
}
.card {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3.4vw, 48px) clamp(26px, 3.4vw, 48px) 0;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--tile-hi), var(--tile));
  border: 1px solid var(--rule-soft);
  overflow: hidden;
}
.card h3 { font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 12px; }
.card p { color: var(--ink2); font-size: 18px; text-wrap: pretty; }
.card-phone { margin: auto auto -30%; padding-top: 44px; width: min(290px, 80%); }
.gift {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 20px auto 0;
  padding: 22px 28px;
  border-radius: 22px;
  border: 1px solid var(--rule);
  text-align: left;
}
.gift svg {
  flex: none;
  width: 40px; height: 40px;
  fill: none;
  stroke: var(--ring);
  stroke-width: 2;
  stroke-linejoin: round;
}
.gift p { color: var(--ink2); }

/* ---------- Privacy ---------- */

.privacy .wrap { position: relative; }
.privacy .wrap::before {
  content: "";
  position: absolute;
  left: 50%; top: -80px;
  width: min(900px, 100%);
  height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(200, 204, 212, 0.1), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin: clamp(48px, 6vw, 80px) 0 44px;
  text-align: left;
}
.fact { padding-top: 22px; border-top: 1px solid rgba(200, 204, 212, 0.35); }
.fact h3 { font-size: 19px; margin-bottom: 8px; }
.fact p { color: var(--ink2); font-size: 16px; }

/* ---------- Pricing ---------- */

.privacy h2 { font-size: clamp(38px, 5.3vw, 68px); }

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 900px;
  margin: clamp(48px, 6vw, 80px) auto 0;
  text-align: left;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3.4vw, 44px);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--tile-hi), var(--tile));
  border: 1px solid var(--rule-soft);
}
.plan-up {
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, #17171a, #0e0e10) padding-box,
    linear-gradient(160deg, rgba(200, 204, 212, 0.75), rgba(200, 204, 212, 0.08) 45%, rgba(200, 204, 212, 0.35)) border-box;
  box-shadow: 0 40px 100px -50px rgba(200, 204, 212, 0.35);
}
.plan h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; letter-spacing: -0.01em; }
.price { margin-top: 18px; font-size: 52px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.price span { margin-left: 4px; font-size: 20px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink2); }
.price-alt { margin-top: 10px; color: var(--ink2); }
.plan ul { margin: 28px 0 28px; border-top: 1px solid var(--rule); }
.plan li {
  position: relative;
  padding: 13px 0 13px 30px;
  border-bottom: 1px solid var(--rule);
  font-size: 16px;
}
.plan li::before {
  content: "";
  position: absolute;
  left: 2px; top: 20px;
  width: 11px; height: 6px;
  border-left: 2px solid var(--ring);
  border-bottom: 2px solid var(--ring);
  transform: rotate(-45deg);
}
.plan-note { margin-top: auto; color: var(--ink3); font-size: 14px; }
.plan:not(.plan-up) .price { color: var(--ink); }

/* ---------- FAQ ---------- */

.faq h2 { text-align: center; margin-bottom: clamp(40px, 5vw, 64px); }
.qa { border-top: 1px solid var(--rule); }
.qa details { border-bottom: 1px solid var(--rule); }
.qa summary {
  position: relative;
  display: block;
  padding: 24px 48px 24px 0;
  font-size: clamp(18px, 1.8vw, 21px);
  font-weight: 600;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before,
.qa summary::after {
  content: "";
  position: absolute;
  right: 8px; top: 50%;
  width: 14px; height: 1.5px;
  background: var(--ink2);
  transition: transform 0.3s var(--ease);
}
.qa summary::after { transform: rotate(90deg); }
.qa details[open] summary::after { transform: rotate(0deg); }
.qa summary:hover::before, .qa summary:hover::after { background: var(--ink); }
.qa details p { padding: 0 48px 26px 0; color: var(--ink2); font-size: 17px; max-width: 42em; }
.qa details a { color: var(--ink); }

/* ---------- Final CTA ---------- */

.notify { padding-bottom: clamp(96px, 12vw, 160px); }
.notify-icon {
  width: 96px; height: 96px;
  margin: 0 auto 32px;
  border-radius: 22px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 30px 80px -10px rgba(200, 204, 212, 0.25);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 36px;
  padding: 0 30px;
  border-radius: 999px;
  background: var(--ink);
  color: #000;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: #fff; }
.btn:active { transform: scale(0.98); }
.notify-fine { margin-top: 16px; color: var(--ink3); font-size: 14px; }

/* ---------- Footer (shared with privacy.html) ---------- */

footer {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 44px 20px 56px;
  border-top: 1px solid var(--rule);
  text-align: center;
  color: var(--ink2);
  font-size: 14px;
}
footer p + p { margin-top: 10px; }
footer a { color: var(--ink2); text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.wordmark { font-family: var(--serif); font-size: 30px; line-height: 1.2; letter-spacing: 0; color: var(--ink); }
.fine { max-width: 40em; margin-left: auto; margin-right: auto; color: var(--ink3); font-size: 12px; }

/* ---------- Privacy page ---------- */

.doc { max-width: 720px; margin: 0 auto; padding: clamp(56px, 8vw, 96px) 20px 104px; }
.doc h1 { font-size: clamp(40px, 6vw, 60px); margin-bottom: 12px; }
.doc h1 + p { color: var(--ink3); font-size: 15px; margin-bottom: 28px; }
.doc h2 { font-size: clamp(24px, 3vw, 28px); letter-spacing: -0.02em; line-height: 1.2; margin: 48px 0 14px; }
.doc p, .doc li { color: var(--ink2); line-height: 1.6; }
.doc p + p { margin-top: 14px; }
.doc ul { list-style: disc; padding-left: 22px; margin-top: 14px; }
.doc ul + p { margin-top: 14px; }
.doc li { margin-top: 8px; }
.doc li::marker { color: var(--ink3); }
.doc a { color: var(--ink); word-break: break-word; text-underline-offset: 3px; }

/* ---------- Blog (generated by build-blog.py) ---------- */

.doc ol { list-style: decimal; padding-left: 22px; margin-top: 14px; }
.doc ol + p, .doc .table + p { margin-top: 14px; }
.doc h3 { font-size: 20px; margin: 28px 0 8px; }
.doc h2 + p, .doc h2 + ul, .doc h2 + ol { margin-top: 0; }
.post .meta, .blog .meta { color: var(--ink3); font-size: 15px; margin-bottom: 28px; }
.blog .meta { font-size: 19px; color: var(--ink2); }
.crumbs { font-size: 15px; margin-bottom: 14px; }
.crumbs a { color: var(--ring); text-decoration: none; }
.crumbs a::before { content: "\2039\00a0"; }
.post h1 { font-size: clamp(34px, 5vw, 52px); }

.answer {
  margin: 0 0 28px;
  padding: 20px 22px;
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: var(--tile);
}
.doc .answer p { color: var(--ink); font-size: 18px; line-height: 1.55; }
.doc .answer .answer-label { color: var(--ring); font-size: 14px; font-weight: 600; margin-bottom: 6px; }

.toc { margin-bottom: 8px; padding: 16px 22px; border-left: 2px solid var(--rule); }
.toc p { color: var(--ink3); font-size: 14px; font-weight: 600; }
.doc .toc ol { margin-top: 6px; }
.doc .toc li { margin-top: 4px; font-size: 15px; }
.toc a { color: var(--ink2); text-decoration: none; }
.toc a:hover { color: var(--ink); text-decoration: underline; }

.table { margin-top: 18px; overflow-x: auto; border: 1px solid var(--rule); border-radius: 14px; }
.table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.4; }
.table th, .table td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule-soft); }
.table th { color: var(--ink); font-weight: 600; background: var(--tile); }
.table td { color: var(--ink2); }
.table tr:last-child td { border-bottom: 0; }
.table td:first-child { color: var(--ink); }

.post-cta {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-top: 56px;
  padding: 24px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--tile);
}
.post-cta img { border-radius: 13px; flex: none; }
.doc .post-cta .post-cta-title { color: var(--ink); font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.doc .post-cta p + p { margin-top: 8px; }
.doc .post-cta .post-cta-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 16px; }
.doc .post-cta .textlink { color: var(--ring); text-decoration: none; }
a.badge { text-decoration: none; }

.more { margin-top: 8px; }
.doc .more ul { list-style: none; padding: 0; }
.more a { color: var(--ring); text-decoration: none; }
.more a:hover { text-decoration: underline; }

.doc .posts { display: grid; gap: 14px; list-style: none; padding: 0; margin-top: 8px; }
.doc .card-post { margin-top: 0; }
.card-post a {
  display: block;
  padding: 24px;
  border: 1px solid var(--rule);
  border-radius: 20px;
  background: var(--tile);
  text-decoration: none;
  transition: background 0.2s;
}
.card-post a:hover { background: var(--tile-hi); }
.doc .card-post h2 { font-size: clamp(22px, 2.6vw, 26px); margin: 0 0 8px; line-height: 1.2; }
.card-post p { color: var(--ink2); line-height: 1.5; }
.card-post .textlink { display: inline-block; margin-top: 12px; }

@media (max-width: 560px) {
  .post-cta { flex-direction: column; }
}

/* ---------- Reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .bar-links { display: none; }
  .bento {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "lock lock"
      "hiit watch"
      "siri siri"
      "over chime"
      "together private"
      "themes themes";
  }
  .facts { grid-template-columns: 1fr 1fr; gap: 36px 32px; }
  .steps { gap: 14px; }
  .step { padding: 26px 22px 28px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .steps { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; padding: 24px 22px; }
  .step-n { grid-row: span 2; margin-bottom: 0; width: 40px; height: 40px; font-size: 20px; }
  .step h3 { font-size: 21px; margin-bottom: 4px; }
  .bento { grid-template-columns: 1fr; grid-template-areas: none; gap: 16px; }
  .bento > .tile { grid-area: auto; }
  .t-lock { grid-template-columns: 1fr; gap: 28px; }
  .t-siri { grid-template-columns: 1fr; }
  .siri-l { padding-bottom: 0; }
  .peek-top { height: 280px; margin-top: 28px; }
  .tile { min-height: 0; }
  .peek { width: min(230px, 70%); }
  .focus-grid { grid-template-columns: 1fr; }
  .focus-shot { max-width: 300px; order: 2; }
  .pair { grid-template-columns: 1fr; gap: 16px; }
  .card p { font-size: 17px; }
  .card-phone { width: min(250px, 72%); }
  .gift { align-items: flex-start; padding: 20px; gap: 16px; }
  .gift svg { width: 32px; height: 32px; }
  .plans { grid-template-columns: 1fr; gap: 16px; }
  .qa summary { padding-right: 40px; }
  .qa details p { padding-right: 0; }
}

@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; gap: 28px; }
  .duo { gap: 12px; }
  .shot figcaption { font-size: 14px; margin-top: 12px; }
  .switcher { margin-top: 36px; }
  .sw { padding: 0 12px; gap: 6px; font-size: 14px; }
  .la { padding: 22px 14px; }
  .la-clock { font-size: 38px; }
  .hero-cta { gap: 14px; flex-direction: column; }
}

@media (max-width: 360px) {
  .wrap, .hero { padding-left: 16px; padding-right: 16px; }
  .sw { padding: 0 9px; }
  .chip { display: none; }
  .pill { padding: 5px 12px; }
  .brand { font-size: 20px; }
  .swatches { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .dot::after, .pulse { display: none; }
  .js .arc { stroke-dashoffset: 0; animation: none; }
}

.bar.scrolled { background: rgba(0, 0, 0, 0.8); border-bottom-color: var(--rule); }
