/* Intervals Pro — site styles (2026 redesign). Plain CSS, no build step. */

:root {
  --bg: #050607;
  --surface: #0f1012;
  --surface-2: #17181b;
  --surface-3: #202125;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f5f5f7;
  --muted: #a1a1a8;
  --dim: #6e6e76;
  --blue: #0a84ff;
  --green: #30d158;
  --orange: #ff9f0a;
  --purple: #bf5af2;
  --pink: #ff375f;
  --yellow: #ffd60a;
  --teal: #40c8e0;
  --accent: var(--blue);
  --radius: 22px;
  --radius-lg: 32px;
  --wrap: 1180px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 0.5em; font-weight: 800; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.015em; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.muted { color: var(--muted); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip-link:focus { left: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 6, 7, 0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--muted); font-size: 0.95rem; font-weight: 500; padding: 8px 12px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav .nav-cta { color: #fff; background: var(--blue); margin-left: 6px; }
.nav .nav-cta:hover { background: #2b95ff; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); width: 44px; height: 44px; border-radius: 12px; cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; }

/* Interval-style scroll progress: a segmented bar that fills as you read */
.timeline { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; display: flex; gap: 3px; padding: 0 3px; pointer-events: none; }
.timeline span { flex: 1; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; position: relative; }
.timeline span i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: var(--c, var(--blue)); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px 16px 18px; background: rgba(5,6,7,0.96);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 1.05rem; }
  .nav .nav-cta { margin: 6px 0 0; text-align: center; }
}

/* ---------- Buttons & badges ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 1rem; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #2b95ff; }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-3); }

.store-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.store-row .app-store img { width: 180px; height: auto; }
.play-soon {
  display: inline-flex; align-items: center; gap: 10px;
  height: 60px; padding: 0 20px 0 16px; border-radius: 13px;
  border: 1px dashed rgba(255,255,255,0.28); color: var(--text);
  line-height: 1.1; font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em;
}
.play-soon svg { width: 26px; height: 26px; flex: none; }
.play-soon small { display: block; font-size: 0.68rem; font-weight: 500; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 2px; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c, var(--blue)); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }

.tag { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; margin-top: 10px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 8vw, 110px) 0 clamp(40px, 6vw, 80px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 980px; max-height: 980px;
  background: radial-gradient(closest-side, var(--hero-glow, rgba(48, 209, 88, 0.28)), transparent 70%);
  transition: background 1.2s ease; pointer-events: none; z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 .accent { color: var(--hero-color, var(--green)); transition: color 1.2s ease; }
.hero .lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 34em; margin-bottom: 30px; }
.hero .platforms { margin-top: 22px; color: var(--dim); font-size: 0.92rem; }

.hero-art { position: relative; display: grid; place-items: center; min-height: 600px; }
.ring { position: absolute; width: min(560px, 100%); aspect-ratio: 1; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring .track { stroke: rgba(255,255,255,0.06); }
.ring .prog { stroke: var(--hero-color, var(--green)); transition: stroke .6s ease; filter: drop-shadow(0 0 18px var(--hero-color, var(--green))); }
.live-chip {
  position: absolute; z-index: 3; top: 8%; right: 0;
  background: rgba(23, 24, 27, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 18px; padding: 12px 18px; min-width: 150px;
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
}
.live-chip .label { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); display: flex; align-items: center; gap: 6px; }
.live-chip .label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); animation: blink 1.2s steps(2) infinite; }
.live-chip .name { font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: var(--hero-color, var(--green)); transition: color .6s ease; line-height: 1.2; }
.live-chip .time { font-family: var(--display); font-variant-numeric: tabular-nums; font-weight: 800; font-size: 2.2rem; line-height: 1; letter-spacing: -0.02em; }
@keyframes blink { 50% { opacity: 0.25; } }

.phone {
  position: relative; z-index: 2; width: min(290px, 70%);
  padding: 9px; border-radius: 48px; background: linear-gradient(160deg, #3a3b40, #121316 40%, #2a2b2f);
  box-shadow: 0 40px 90px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.08);
}
.phone img { border-radius: 40px; width: 100%; aspect-ratio: 1206 / 2622; object-fit: cover; background: #000; }
.phone.sm { width: min(240px, 100%); border-radius: 42px; padding: 8px; }
.phone.sm img { border-radius: 35px; }

.watch {
  position: relative; z-index: 3; width: 172px; padding: 12px; border-radius: 44px;
  background: linear-gradient(150deg, #44454a, #18191c 45%, #303136);
  box-shadow: 0 30px 70px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.1);
}
.watch img { border-radius: 32px; width: 100%; background: #000; }
.watch::after { content: ""; position: absolute; right: -6px; top: 30%; width: 7px; height: 34px; border-radius: 4px; background: #2b2c30; }
.hero-art .watch { position: absolute; left: 2%; bottom: 6%; transform: rotate(-6deg); }

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: left; }
  .hero-art { min-height: 520px; margin-top: 10px; }
  .live-chip { right: 2%; }
}
@media (max-width: 520px) {
  .hero-art { min-height: 460px; }
  .hero-art .watch { width: 132px; left: 0; padding: 9px; border-radius: 34px; }
  .hero-art .watch img { border-radius: 25px; }
  .live-chip { min-width: 120px; padding: 10px 14px; }
  .live-chip .time { font-size: 1.7rem; }
}

/* ---------- Workout ticker ---------- */
.ticker { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: var(--surface); }
.ticker-track { display: flex; gap: 46px; width: max-content; animation: ticker 48s linear infinite; }
.ticker span { font-family: var(--display); font-weight: 700; font-size: clamp(1.2rem, 2.2vw, 1.7rem); letter-spacing: -0.01em; white-space: nowrap; color: var(--dim); display: inline-flex; align-items: center; gap: 46px; }
.ticker span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.15rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.split.flip > :first-child { order: 2; }
.split .copy p { color: var(--muted); font-size: 1.12rem; }
.split .copy h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
}

.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; color: var(--text); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: color-mix(in srgb, var(--c, var(--green)) 18%, transparent);
  box-shadow: inset 0 0 0 1.5px var(--c, var(--green));
}
.checks li::after {
  content: ""; position: absolute; left: 5px; top: 8px; width: 12px; height: 12px; background: var(--c, var(--green));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.2l2.6 2.6L10 3.4' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.2l2.6 2.6L10 3.4' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Device stage: phones side by side */
.stage { display: flex; justify-content: center; align-items: center; gap: 22px; position: relative; }
.stage::before {
  content: ""; position: absolute; inset: 10% 5%; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--c, var(--blue)) 35%, transparent), transparent);
  filter: blur(20px); z-index: 0;
}
.stage > * { position: relative; z-index: 1; }
.stage .phone:nth-child(2) { transform: translateY(40px); }
@media (max-width: 520px) { .stage .phone.sm { width: 46%; } }

/* Big stat band for watch */
.watch-stage { display: flex; justify-content: center; gap: 26px; align-items: center; }
.watch-stage .watch { width: 220px; padding: 14px; border-radius: 54px; }
.watch-stage .watch img { border-radius: 40px; }
.watch-stage .watch:nth-child(1) { transform: rotate(-5deg) translateY(16px); }
.watch-stage .watch:nth-child(2) { transform: rotate(4deg) translateY(-16px); }
@media (max-width: 520px) { .watch-stage .watch { width: 44%; padding: 10px; border-radius: 38px; } .watch-stage .watch img { border-radius: 28px; } }

/* Feature cards (bento) */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px 26px; overflow: hidden; transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: color-mix(in srgb, var(--c, var(--blue)) 55%, transparent); transform: translateY(-2px); }
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--c, var(--blue)); opacity: 0.85;
  transform-origin: left; transform: scaleX(var(--fill, 0.35)); transition: transform .6s ease;
}
.card:hover::before { --fill: 1; }
.card .icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: color-mix(in srgb, var(--c, var(--blue)) 16%, transparent); color: var(--c, var(--blue));
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.card.wide { grid-column: span 2; }
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; } .card.wide { grid-column: auto; } }

/* Siri quote */
.siri {
  margin-top: 26px; padding: 20px 22px; border-radius: 18px;
  background: linear-gradient(120deg, rgba(10,132,255,.16), rgba(191,90,242,.16) 55%, rgba(255,55,95,.14));
  border: 1px solid var(--line); font-family: var(--display); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em;
}
.siri small { display: block; font-family: var(--font); font-weight: 500; font-size: 0.8rem; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 6px; }

/* Alert waveform visual */
.wave { display: flex; align-items: center; gap: 6px; height: 120px; justify-content: center; }
.wave i { width: 8px; border-radius: 6px; background: var(--c, var(--purple)); animation: wave 1.4s ease-in-out infinite; animation-delay: calc(var(--i) * -0.11s); height: 30%; opacity: .9; }
@keyframes wave { 50% { height: 100%; } }
@media (prefers-reduced-motion: reduce) { .wave i { animation: none; height: calc(25% + var(--i) * 5%); } }

/* Health panel */
.health-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.health-panel .card { padding: 30px; }
.health-panel .card h3 { font-size: 1.5rem; }
@media (max-width: 760px) { .health-panel { grid-template-columns: 1fr; } }

/* Android */
.android { background: radial-gradient(1200px 600px at 85% 20%, rgba(48, 209, 88, 0.12), transparent 60%), var(--surface); border-block: 1px solid var(--line); }
.android-shots { display: flex; gap: 18px; justify-content: center; }
.android-shots img { width: min(250px, 47%); border-radius: 26px; box-shadow: 0 30px 70px rgba(0,0,0,.55); }
.android-shots img:nth-child(2) { transform: translateY(34px); }
.fine { color: var(--dim); font-size: 0.92rem; }

.platform-note {
  margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 44px); display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: start;
}
.platform-note .icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,159,10,.14); color: var(--orange); }
.platform-note .icon svg { width: 28px; height: 28px; }
.platform-note h3 { font-size: 1.5rem; }
.platform-note p { color: var(--muted); }
.platform-note p:last-child { margin-bottom: 0; }
@media (max-width: 620px) { .platform-note { grid-template-columns: 1fr; } }

/* CTA */
.cta {
  text-align: center; border-radius: var(--radius-lg); padding: clamp(48px, 8vw, 96px) 24px;
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(48,209,88,.25), transparent 70%),
    radial-gradient(600px 300px at 80% 100%, rgba(10,132,255,.3), transparent 70%),
    var(--surface);
  border: 1px solid var(--line);
}
.cta h2 { max-width: 15em; margin-inline: auto; }
.cta p { color: var(--muted); font-size: 1.15rem; }
.cta .store-row { justify-content: center; margin-top: 30px; }

.support-band { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; }
.support-band .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
@media (max-width: 760px) { .support-band { grid-template-columns: 1fr; } .support-band .actions { justify-content: flex-start; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 40px; color: var(--muted); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; }
.footer-grid h4 { font-family: var(--font); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--text); }
.footer-grid .soon { color: var(--dim); }
.footer-brand p { margin-top: 14px; max-width: 22em; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; color: var(--dim); font-size: 0.85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Document pages (privacy, terms, help) ---------- */
.doc-hero { padding: clamp(56px, 8vw, 100px) 0 clamp(20px, 3vw, 36px); position: relative; overflow: hidden; }
.doc-hero::before {
  content: ""; position: absolute; width: 700px; height: 700px; right: -200px; top: -380px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--c, var(--blue)) 30%, transparent), transparent);
}
.doc-hero .wrap { position: relative; }
.doc-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
.doc-hero p { color: var(--muted); font-size: 1.15rem; max-width: 40em; }

.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 60px; padding-bottom: 100px; }
.toc { position: sticky; top: 96px; align-self: start; font-size: 0.9rem; }
.toc h4 { font-family: var(--font); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; color: var(--muted); padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent; line-height: 1.35; }
.toc a:hover { color: var(--text); text-decoration: none; }
.toc a.active { color: var(--text); border-left-color: var(--c, var(--blue)); }
@media (max-width: 960px) { .doc-layout { grid-template-columns: 1fr; } .toc { display: none; } }

.prose { max-width: 760px; color: #d6d6db; font-size: 1.02rem; }
.prose h2 { font-size: 1.65rem; margin: 2.4em 0 0.7em; padding-top: 1.2em; border-top: 1px solid var(--line); color: var(--text); }
.prose h2:first-of-type { margin-top: 1.6em; }
.prose h3 { font-size: 1.15rem; margin: 1.8em 0 0.5em; color: var(--text); }
.prose ul { padding-left: 1.2rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.6em; }
.prose li::marker { color: var(--c, var(--blue)); }
.prose strong { color: var(--text); }
.prose .policy-title { display: none; }
.prose .effective { display: inline-block; font-size: 0.9rem; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.prose .effective strong { color: var(--muted); font-weight: 600; }

/* Help / FAQ */
.faq-group { margin-bottom: 54px; }
.faq-group > h2 { font-size: 1.6rem; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.faq-group > h2::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--c, var(--blue)); box-shadow: 0 0 14px var(--c, var(--blue)); }
details.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; margin-bottom: 10px; transition: border-color .2s ease; }
details.faq[open] { border-color: color-mix(in srgb, var(--c, var(--blue)) 45%, transparent); }
details.faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 600; font-size: 1.05rem; position: relative; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s ease;
}
details.faq[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
details.faq .answer { padding: 0 22px 20px; color: var(--muted); }
details.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Long tokens like "Start/Pause/Resume/Cancel" must wrap on small screens */
.split > *, .hero .wrap > *, .doc-layout > * { min-width: 0; }
.siri, .card p, .prose { overflow-wrap: break-word; }

/* Watch screens: inset the screenshot inside a black display area so nothing touches the rounded corners */
.watch img { padding: 9% 10%; background: #000; box-sizing: border-box; }

/* Hero device composite (tilted iPhone + Apple Watch). Thin light edge so the black devices read on the dark page. */
.hero-device {
  position: relative; z-index: 2; width: min(500px, 92%);
  filter: drop-shadow(0 0 1px rgba(255,255,255,0.45)) drop-shadow(0 40px 60px rgba(0,0,0,0.7));
}
