/* Series Watchlist website: components (Gallery Light, Build_Plan Step 8.5). The app's screens sit in dark bezels on
   white cards and periwinkle plinths; one ink band carries the air times. Every colour and face comes from tokens.css. */

/* The skip link */
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-pill); background: var(--color-ink); color: var(--color-card); }
.skip:focus-visible { top: var(--space-md); }

/* Buttons: one ink pill, one outline */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.875rem; padding: 0 1.375rem; border: 1px solid var(--color-rule-2); border-radius: var(--radius-pill); background: transparent; color: var(--color-ink); font: 500 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { border-color: var(--color-ink); }
.btn:active { transform: translateY(1px); }
.btn--primary { border-color: var(--color-ink); background: var(--color-ink); color: var(--color-card); }
.btn--primary:hover { background: var(--color-ink-2); border-color: var(--color-ink-2); }

/* The store badges: Apple's and Google's own artwork, at one height */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); }
.store { display: inline-block; border-radius: var(--space-xs); transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.store:hover { opacity: 0.84; }
.store:active { transform: translateY(1px); }
.store img { height: 3.25rem; width: auto; }

/* Nav: frosted paper over the page, the wordmark in the serif */
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: color-mix(in oklab, var(--color-paper) 84%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid color-mix(in oklab, var(--color-rule) 80%, transparent); }
.nav__bar { display: flex; align-items: center; gap: var(--space-xl); min-height: var(--nav-height); }
.nav__brand { display: inline-flex; align-items: center; gap: 0.7rem; min-height: 2.75rem; font-family: var(--font-display); font-size: 1.75rem; line-height: 1; text-decoration: none; white-space: nowrap; }
.nav__brand img { width: 2rem; height: 2rem; flex-shrink: 0; }
.nav__links { display: flex; gap: var(--space-lg); margin-inline-start: auto; }
.nav__links a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--color-muted); text-decoration: none; white-space: nowrap; transition: color var(--dur-short) var(--ease-out); }
.nav__links a:hover { color: var(--color-ink); }
.nav__brand + .nav__action { margin-inline-start: auto; }

/* Devices: the app's raw screens in dark bezels. Radii are elliptical, so the corners stay round at any width. */
.device { margin: 0; background: var(--color-bezel); box-shadow: var(--shadow-device); }
.device picture, .device img { display: block; width: 100%; height: auto; }
.device--phone { padding: 2.4%; border-radius: 16% / 7.4%; }
.device--phone img { border-radius: 13.5% / 6.2%; }
.device--tablet { padding: 1.8%; border-radius: 5.5% / 4.2%; }
.device--tablet img { border-radius: 4% / 3%; }
.device--slate { padding: 1.2%; border-radius: 3.2% / 5%; }
.device--slate img { border-radius: 2.2% / 3.5%; }
.shot--mac { margin: 0; }
.shot--mac img { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgb(28 36 84 / 0.28)); }

/* Plinths: the pale panels the devices stand on */
.plinth { position: relative; overflow: hidden; border-radius: var(--radius-plinth); background: var(--color-plinth); }

/* The hero: the promise beside an iPad and an iPhone on the plinth */
.hero { padding-block: var(--space-2xl) 0; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--space-2xl); }
.hero__text { display: grid; justify-items: start; gap: var(--space-lg); }
.hero__kicker { color: var(--color-muted); }
.hero h1 { max-width: none; font-size: var(--text-hero); line-height: 0.95; }
.hero .stores { margin-top: var(--space-xs); }
.hero__note { font-size: var(--text-sm); color: var(--color-muted); }
.hero__visual { aspect-ratio: 1 / 1.06; }
.hero__visual .device--tablet { position: absolute; left: 8%; top: 9%; width: 58%; }
.hero__visual .device--phone { position: absolute; right: 8%; bottom: -10%; width: 36%; z-index: var(--z-raised); }

/* One settle, once: the hero arrives from a visible default */
@keyframes settle { from { opacity: 0.6; transform: translateY(var(--space-xs)); } }
.settle { animation: settle var(--dur-long) var(--ease-out) both; }
.settle--late { animation-delay: 90ms; }

/* Section heads: the serif head on the left, its line on the right, baselines together */
.section { padding-top: var(--section-gap); }
.split-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-lg) var(--gap-columns); align-items: end; margin-bottom: var(--space-2xl); }
.split-head .lead { justify-self: end; max-width: 26rem; }

/* The tour: three steps, each phone rising from a white card */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); margin: 0; padding: 0; list-style: none; }
.step { display: grid; align-content: start; gap: var(--space-sm); }
.step__frame { display: flex; justify-content: center; height: 28rem; padding-top: 2.75rem; overflow: hidden; border: 1px solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-card); box-shadow: var(--shadow-card); }
.step__frame .device--phone { flex: none; align-self: flex-start; width: 60%; box-shadow: none; }
.step__num { margin-top: var(--space-md); font-family: var(--font-display); font-size: 2.75rem; line-height: 1; color: var(--color-faint); }
.step p { max-width: 34ch; color: var(--color-muted); }

/* Air times: the page's one dark band */
.band { margin-top: var(--section-gap); padding-block: var(--space-4xl); background: var(--color-band); color: var(--color-band-ink); }
.band h2 { color: var(--color-card); }
.band .lead { color: var(--color-band-muted); }
.band .device { box-shadow: var(--shadow-band), 0 0 0 1px rgb(255 255 255 / 0.09); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); margin: var(--space-2xl) 0 0; }
.facts > div { padding-top: var(--space-md); border-top: 1px solid var(--color-band-rule); }
.facts dt { font-size: var(--text-lg); font-weight: 500; color: var(--color-card); }
.facts dd { margin: var(--space-xs) 0 0; color: var(--color-band-muted); }

/* Statistics: two phones on a plinth, the words beside them */
.stats__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: var(--space-2xl); }
.stats__visual { order: -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 8%; aspect-ratio: 1.08; padding: 9% 10% 0; }
.stats__visual .device--phone:last-child { margin-top: 20%; }
.stats__text { display: grid; gap: var(--space-lg); }

/* Platforms: a segmented switch over each device's capture */
.switch__tabs { display: inline-flex; flex-wrap: wrap; gap: var(--space-2xs); padding: var(--space-2xs); border: 1px solid var(--color-rule); border-radius: 1.75rem; background: var(--color-card); }
.switch__tabs button { min-height: 2.75rem; padding: 0 1.125rem; border: 0; border-radius: var(--radius-pill); background: none; color: var(--color-muted); font-weight: 500; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.switch__tabs button:hover { color: var(--color-ink); background: var(--color-paper); }
.switch__tabs button:active { background: var(--color-rule); }
.switch__tabs button[aria-selected="true"] { background: var(--color-ink); color: var(--color-card); }
html:not(.js) .switch__tabs { display: none; }
.switch__panel { display: flex; justify-content: center; align-items: center; aspect-ratio: 16 / 10; max-height: 48rem; margin-top: var(--space-lg); padding: var(--space-2xl); }
.switch__panel picture { display: contents; }
.switch__panel img { width: auto; height: 100%; max-width: 100%; object-fit: contain; border-radius: 14px; filter: drop-shadow(0 30px 40px rgb(28 36 84 / 0.28)); }
.switch__panel--mac img { border-radius: 0; }
.needs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-columns); margin: var(--space-2xl) 0 0; }
.needs > div { padding-top: var(--space-md); border-top: 1px solid var(--color-rule-2); }
.needs dt { font-weight: 500; }
.needs dd { margin: var(--space-2xs) 0 0; color: var(--color-muted); }

/* Pro: three prices set large in the serif, then what each plan has */
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); }
.price { display: grid; align-content: start; gap: var(--space-xs); padding-top: var(--space-lg); border-top: 1px solid var(--color-rule-2); }
.price--lead { border-top-color: transparent; background: var(--brand-gradient) top / 100% 2px no-repeat; }
.price__name { font-weight: 500; }
.price__figure { font-family: var(--font-display); font-size: var(--text-price); line-height: 1; font-variant-numeric: tabular-nums; }
.price__unit { color: var(--color-muted); }
.compare-card { margin-top: var(--space-2xl); padding: var(--space-md) var(--space-xl) var(--space-lg); border: 1px solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-card); box-shadow: var(--shadow-card); }
.compare { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: var(--space-md) var(--space-lg) var(--space-md) 0; border-top: 1px solid var(--color-rule); text-align: left; vertical-align: top; }
.compare thead th { padding-block: var(--space-xs); border-top: 0; font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); white-space: nowrap; }
.compare tbody th { width: 18%; font-weight: 500; }
.compare tbody td { width: 41%; color: var(--color-muted); }
.compare tbody td:last-child { color: var(--color-ink); }
.pro__note { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); }

/* Questions: the head beside a list that opens in place */
.faq__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-xl) var(--gap-columns); align-items: start; }
.faq h2 { position: sticky; top: calc(var(--nav-height) + var(--space-xl)); }
.faq__list { border-bottom: 1px solid var(--color-rule-2); }
.faq details { border-top: 1px solid var(--color-rule-2); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--space-lg); min-height: 4.75rem; padding-block: var(--space-md); font-size: var(--text-xl); line-height: 1.3; list-style: none; cursor: pointer; transition: color var(--dur-short) var(--ease-out); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; display: grid; place-items: center; flex-shrink: 0; width: 2.25rem; height: 2.25rem; border: 1px solid var(--color-rule-2); border-radius: 50%; font-size: 1.25rem; font-weight: 300; line-height: 1; color: var(--color-ink-2); transition: transform var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--color-card); }
.faq summary:hover { color: var(--color-ink-2); }
.faq summary:hover::after { background: var(--color-card); }
.faq details:not([open]) > :not(summary) { display: none; }
.faq details p { max-width: 58ch; padding-bottom: var(--space-lg); color: var(--color-muted); }

/* The close: the promise again in the serif, the stores, and the Mac rising from the plinth */
.get { padding-top: var(--section-gap); text-align: center; }
.get h2 { max-width: 14ch; margin-inline: auto; font-size: var(--text-display); }
.get .stores { justify-content: center; margin-top: var(--space-xl); }
.get__note { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); }
.get__visual { margin-top: var(--space-3xl); padding: 6% 9% 0; aspect-ratio: 16 / 7.2; }

/* Footer: the wordmark, the links, the credits */
.footer { margin-top: var(--section-gap-s); padding-block: var(--space-2xl); border-top: 1px solid var(--color-rule); }
.footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-lg); }
.footer__mast { display: flex; align-items: center; gap: var(--space-sm); font-family: var(--font-display); font-size: 2.25rem; line-height: 1; }
.footer__mast img { width: 2.25rem; height: 2.25rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 0 var(--space-lg); }
.footer__links a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--color-ink-2); text-decoration: none; transition: color var(--dur-short) var(--ease-out); }
.footer__links a:hover { color: var(--color-ink); text-decoration: underline; }
.footer__legal { display: grid; gap: var(--space-2xs); margin-top: var(--space-xl); font-size: var(--text-sm); color: var(--color-muted); }
.footer__legal a:hover { color: var(--color-ink); }

/* The page that isn't there */
.missing { display: grid; align-items: center; min-height: calc(100svh - var(--nav-height)); padding-block: var(--space-3xl); }
.missing__body { display: grid; justify-items: start; gap: var(--space-lg); }
.missing h1 { font-size: var(--text-page); }

/* Text pages (support, privacy, terms, press): the serif head, then the text at a reading measure beside its contents */
.doc { padding-block: var(--space-3xl) 0; }
.doc__head { display: grid; justify-items: start; gap: var(--space-md); padding-bottom: var(--space-2xl); border-bottom: 1px solid var(--color-rule-2); }
.doc__head h1 { max-width: 18ch; font-size: var(--text-page); }
.doc__date { font-size: var(--text-sm); color: var(--color-muted); }
.doc__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); margin-top: var(--space-2xl); }
.doc__toc h2 { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 500; letter-spacing: 0; line-height: 1.4; color: var(--color-muted); }
.doc__toc ol { margin: var(--space-xs) 0 0; padding: 0; list-style: none; }
.doc__toc a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--color-ink-2); text-decoration: none; transition: color var(--dur-short) var(--ease-out); }
.doc__toc a:hover { color: var(--color-ink); text-decoration: underline; }
.doc__toc a:active { color: var(--color-accent); }
.doc__body { max-width: 44rem; }
.doc__body > h2 { margin-top: var(--space-3xl); font-size: clamp(2rem, 1.2vw + 1.5rem, 2.5rem); line-height: 1.05; scroll-margin-top: calc(var(--nav-height) + var(--space-lg)); }
.doc__body > h2:first-child { margin-top: 0; }
.doc__body h3 { margin-top: var(--space-xl); font-size: var(--text-lg); }
.doc__body p, .doc__body ul, .doc__body ol, .doc__body dl { margin-block: var(--space-md) 0; }
.doc__body ul, .doc__body ol { padding-inline-start: var(--space-lg); }
.doc__body li + li { margin-top: var(--space-xs); }
.doc__body strong { font-weight: 500; }
.doc__body a { color: var(--color-accent); text-underline-offset: 0.2em; }
.doc__body a:hover { color: var(--color-accent-deep); text-decoration-thickness: 2px; }
.doc__body dl > div { padding-block: var(--space-md); border-top: 1px solid var(--color-rule); }
.doc__body dl > div:last-child { border-bottom: 1px solid var(--color-rule); }
.doc__body dt { font-weight: 500; }
.doc__body dd { margin: var(--space-2xs) 0 0; color: var(--color-ink-2); }
.doc__note { padding: var(--space-md) var(--space-lg); border: 1px solid var(--color-rule); border-radius: 18px; background: var(--color-card); color: var(--color-ink-2); }
.doc__body .doc__figures { display: grid; align-items: start; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); gap: var(--space-lg); margin-top: var(--space-lg); padding: 0; list-style: none; }
.doc__body .doc__figures li + li { margin-top: 0; }
.doc__figures img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--color-rule); background: var(--color-card); }
.doc__figures a { display: grid; gap: var(--space-xs); font-size: var(--text-sm); }

@media (min-width: 60rem) {
  .doc__grid { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--gap-columns); }
  .doc__toc { position: sticky; top: calc(var(--nav-height) + var(--space-xl)); align-self: start; }
}

@media (max-width: 60rem) {
  .nav__links { display: none; }
  .nav__action { margin-inline-start: auto; }
  .hero__grid, .stats__grid, .faq__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .hero__visual { width: min(100%, 36rem); }
  .split-head { grid-template-columns: minmax(0, 1fr); }
  .split-head .lead { justify-self: start; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); max-width: 30rem; }
  .step__frame { height: 24rem; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .stats__text { order: -2; }
  .stats__visual { width: min(100%, 36rem); }
  .faq h2 { position: static; }
  .needs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band { padding-block: var(--space-3xl); }
}
@media (max-width: 40rem) {
  .nav__bar { gap: var(--space-md); }
  .nav__brand { font-size: 1.375rem; }
  .nav__brand img { width: 1.75rem; height: 1.75rem; }
  .nav__action { padding-inline: var(--space-md); }
  .store img { height: 2.875rem; }
  .prices, .needs { grid-template-columns: minmax(0, 1fr); }
  .switch__panel { aspect-ratio: auto; max-height: none; padding: var(--space-lg); }
  .switch__panel img { height: auto; max-height: 30rem; }
  .compare-card { padding: var(--space-xs) var(--space-lg) var(--space-md); }
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
  .compare tr { padding-block: var(--space-md); border-top: 1px solid var(--color-rule); }
  .compare tbody tr:first-child { border-top: 0; }
  .compare th, .compare td, .compare tbody th, .compare tbody td { width: auto; padding: 0; border: 0; }
  .compare tbody th { margin-bottom: var(--space-2xs); }
  .compare td::before { content: attr(data-label) ": "; color: var(--color-muted); }
  .get__visual { aspect-ratio: 4 / 3; padding: 8% 6% 0; }
  .footer__mast { font-size: 1.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .settle { animation: none; }
  .btn, .store, .nav__links a, .switch__tabs button, .faq summary, .faq summary::after, .footer__links a, .doc__toc a { transition: none; }
}
