/* Stream Tracker for Twitch: product pages and the Stream Tracker press kit.
   Builds on the site tokens in main.css; adds the app's purple as a scoped accent.

   Type follows Apple's product pages (and tripsy.app): the platform's own UI font, which is San
   Francisco on Apple devices and Segoe UI Variable on Windows, so nothing is downloaded; semibold
   titles with tight tracking; and body copy in a soft neutral grey. The site's colour tokens are
   redefined here in neutral tones, so every component below picks them up. */

.st-page {
  --st-accent: #752be9;
  --st-accent-strong: #5b1cc8;
  --st-accent-soft: rgba(117, 43, 233, 0.07);
  --st-accent-line: rgba(117, 43, 233, 0.2);
  --st-accent-glow: rgba(117, 43, 233, 0.16);
  --st-on-accent: #ffffff;
  --st-card: var(--surface);
  --st-card-border: var(--line);
  --st-placeholder: rgba(117, 43, 233, 0.05);
  --st-hero-grad: radial-gradient(ellipse 1100px 560px at 50% -180px, rgba(145, 70, 255, 0.17) 0, rgba(145, 70, 255, 0) 70%);
  --st-font-text: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --st-font-display: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --heading: #0c0b10;
  --text: #1f1d26;
  --muted: #62606d;
  --line: #ebe8f1;
  --surface-soft: #f6f4fb;
  font-family: var(--st-font-text);
  background: var(--st-hero-grad), #ffffff;
}

:root[data-theme="dark"] .st-page {
  --st-accent: #c093ff;
  --st-accent-strong: #d7b8ff;
  --st-accent-soft: rgba(192, 147, 255, 0.09);
  --st-accent-line: rgba(192, 147, 255, 0.26);
  --st-accent-glow: rgba(192, 147, 255, 0.14);
  --st-on-accent: #1b0b33;
  --st-placeholder: rgba(192, 147, 255, 0.06);
  --st-hero-grad: radial-gradient(ellipse 1100px 560px at 50% -180px, rgba(147, 88, 240, 0.24) 0, rgba(147, 88, 240, 0) 70%);
  --heading: #f6f4fb;
  --text: #e3e0eb;
  --muted: #a5a2b4;
  --line: rgba(255, 255, 255, 0.09);
  --surface-soft: rgba(255, 255, 255, 0.045);
  background:
    var(--st-hero-grad),
    radial-gradient(circle at 0% 0%, var(--page-grad-start) 0, var(--page-grad-mid) 45%, var(--page-grad-end) 100%);
}

/* Titles: San Francisco Display (or Segoe UI Variable Display) at semibold, tracked tight. */
.st-page h1,
.st-page h2,
.st-page h3,
.st-page h4 {
  font-family: var(--st-font-display);
  font-weight: 650;
  letter-spacing: -0.02em;
}

/* Headings break between phrases, not inside a word: Japanese by phrase where the browser
   supports it (Chrome, Edge), Korean at spaces only. */
.st-page:lang(ja) :is(h1, h2, h3) {
  word-break: auto-phrase;
}

.st-page:lang(ko) :is(h1, h2, h3) {
  word-break: keep-all;
}

.st-page a {
  color: var(--st-accent);
}

.st-page a:hover,
.st-page a:focus {
  color: var(--st-accent-strong);
}

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

.st-skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--st-accent);
  color: var(--st-on-accent) !important;
  font-weight: 600;
}

.st-skip:focus {
  top: 12px;
}

/* Bootstrap's .container clearfix pseudo-elements would become grid and flex items. */
.st-page .st-nav__inner::before,
.st-page .st-nav__inner::after,
.st-page .st-hero::before,
.st-page .st-hero::after,
.st-page .st-body::before,
.st-page .st-body::after,
.st-page .st-footer__grid::before,
.st-page .st-footer__grid::after {
  content: none;
  display: none;
}

/* ---------- Product navigation ---------- */

.st-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
}

.st-nav__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.st-nav__identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.st-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--heading) !important;
  font-weight: 700;
  font-size: 1.7rem;
  white-space: nowrap;
}

.st-nav__icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(16, 34, 61, 0.18);
}

.st-nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
}

.st-nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.st-nav__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--nav-pill-text) !important;
  font-size: 1.45rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.st-nav__pill::-webkit-details-marker {
  display: none;
}

.st-nav__pill:hover,
details[open] > .st-nav__pill {
  background: var(--nav-pill-hover-bg);
}

.st-nav__theme {
  flex: none;
}

.st-nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--st-accent);
  color: var(--st-on-accent) !important;
  font-size: 1.45rem;
  font-weight: 700;
  white-space: nowrap;
  border: 0;
}

.st-nav__cta:hover,
.st-nav__cta:focus {
  background: var(--st-accent-strong);
  color: var(--st-on-accent) !important;
}

.st-menu,
.st-lang {
  position: relative;
}

.st-menu__panel,
.st-lang__list {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 60;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.st-menu__panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(200px, 1fr));
  gap: 6px 20px;
  width: min(560px, calc(100vw - 32px));
  padding: 18px 20px;
}

.st-menu__group ul,
.st-lang__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.st-menu__heading {
  margin: 6px 0 4px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.st-menu__group a,
.st-lang__list a {
  display: block;
  padding: 5px 0;
  color: var(--text) !important;
  font-size: 1.5rem;
}

.st-menu__group a:hover,
.st-lang__list a:hover,
.st-menu__group a[aria-current="page"],
.st-lang__list a[aria-current="true"] {
  color: var(--st-accent) !important;
}

.st-menu__overview {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-weight: 600;
  font-size: 1.5rem;
}

.st-menu__bars,
.st-menu__press {
  display: none;
}

.st-lang__list {
  left: auto;
  right: 0;
  min-width: 170px;
  padding: 8px 16px;
}

/* ---------- Breadcrumbs ---------- */

.st-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  font-size: 1.35rem;
  color: var(--muted);
}

.st-crumbs li + li::before {
  content: "›";
  margin-right: 8px;
  color: var(--muted);
}

.st-crumbs a {
  color: var(--muted) !important;
}

.st-crumbs a:hover {
  color: var(--st-accent) !important;
}

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

.st-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 48px;
  padding-top: 36px;
  padding-bottom: 40px;
}

.st-eyebrow {
  margin: 0 0 10px;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--st-accent);
}

.st-hero h1 {
  margin: 0 0 20px;
  font-size: clamp(3.8rem, 2.2rem + 3.4vw, 6.2rem);
  line-height: 1.04;
  font-weight: 680;
  letter-spacing: -0.032em;
}

.st-hero__lede {
  margin: 0 0 30px;
  font-size: clamp(1.8rem, 1.6rem + 0.5vw, 2.1rem);
  line-height: 1.45;
  color: var(--muted);
  max-width: 60ch;
}

.st-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}

.st-hero__meta,
.st-hero__rating {
  margin: 16px 0 0;
  font-size: 1.4rem;
  color: var(--muted);
}

.st-hero__rating {
  margin-top: 6px;
}

.st-stars {
  color: #f5a623;
  letter-spacing: 1px;
}

.st-hero__app {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.st-hero__app img {
  width: 72px;
  height: 72px;
  border-radius: 17px;
  box-shadow: 0 10px 28px var(--st-accent-glow), 0 2px 6px rgba(16, 34, 61, 0.2);
}

.st-hero__app .st-eyebrow {
  margin: 0;
}

.st-hero__media {
  display: flex;
  justify-content: center;
}

.st-badge {
  display: inline-block;
  line-height: 0;
}

.st-badge img {
  height: 48px;
  width: auto;
}

.st-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.6rem;
}

/* ---------- Body sections ---------- */

.st-body {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: 24px;
}

.st-body > * {
  width: 100%;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.st-body--wide > * {
  max-width: none;
}

.st-section {
  margin-top: 12px;
  margin-bottom: 12px;
}

/* Type scale: section titles 44 px, card titles 20 px, body 17 px, ledes 19 px. */
.st-section h2,
.st-prose h2 {
  font-size: clamp(2.8rem, 1.9rem + 2.1vw, 4.4rem);
  line-height: 1.08;
  font-weight: 660;
  letter-spacing: -0.028em;
  margin: 0 0 16px;
}

.st-section h3,
.st-prose h3 {
  font-size: 2rem;
  line-height: 1.3;
  font-weight: 620;
  letter-spacing: -0.012em;
  margin: 0 0 8px;
}

.st-section__lede {
  max-width: 64ch;
}

.st-section__lede,
.st-section__lede p {
  font-size: 1.9rem;
  line-height: 1.5;
  color: var(--muted);
}

.st-prose p,
.st-prose li,
.st-section p,
.st-section li {
  font-size: 1.7rem;
  line-height: 1.6;
}

.st-prose li,
.st-section li {
  color: var(--text);
}

.st-prose h2 {
  margin-top: 28px;
}

.st-prose h3 {
  margin-top: 22px;
}

.st-prose ul,
.st-prose ol {
  padding-left: 22px;
}

.st-intro p {
  font-size: 1.9rem;
  line-height: 1.55;
  color: var(--muted);
}

.st-intro strong {
  color: var(--heading);
  font-weight: 600;
}

.st-summary {
  padding: 26px 30px;
  border-radius: 24px;
  background: var(--st-accent-soft);
}

.st-summary__title {
  font-size: 1.5rem !important;
  font-weight: 650 !important;
  letter-spacing: -0.005em !important;
  color: var(--st-accent) !important;
  margin-bottom: 8px !important;
}

.st-summary ul {
  margin: 0;
  padding-left: 20px;
}

.st-summary li {
  font-size: 1.7rem;
  line-height: 1.6;
  color: var(--text);
  margin: 4px 0;
}

.st-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
}

.st-notice .fa {
  color: var(--st-accent);
  font-size: 2rem;
  margin-top: 3px;
}

.st-notice p {
  margin: 0;
  color: var(--text);
  font-size: 1.6rem;
}

/* Steps */

.st-steps__list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.st-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 260px);
  gap: 32px;
  align-items: center;
  padding: 30px 32px;
  border-radius: 24px;
  background: var(--surface-soft);
}

.st-step:not(:has(.st-media)) {
  grid-template-columns: minmax(0, 1fr);
}

.st-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--st-accent);
  color: var(--st-on-accent);
  font-weight: 650;
  font-size: 1.6rem;
  font-variant-numeric: tabular-nums;
}

.st-step__copy p:last-child {
  margin-bottom: 0;
}

/* Lesson */

.st-lesson__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.st-lesson__item {
  padding: 28px;
  border-radius: 24px;
  background: var(--surface-soft);
}

.st-lesson__item h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.6rem !important;
  font-weight: 650;
  letter-spacing: -0.005em;
  color: var(--st-accent) !important;
}

.st-lesson__item p {
  font-size: 1.6rem;
}

.st-lesson__item p:last-child {
  margin-bottom: 0;
}

/* Facts */

.st-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 16px 0 0;
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface-soft);
}

.st-facts > div {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.st-facts > div:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.st-facts dt {
  font-size: 1.4rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 4px;
}

.st-facts dd {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--heading);
}

/* FAQ */

.st-faq__list {
  display: flex;
  flex-direction: column;
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.st-faq__item {
  border-bottom: 1px solid var(--line);
}

.st-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  cursor: pointer;
  list-style: none;
}

.st-faq__item summary::-webkit-details-marker {
  display: none;
}

.st-faq__item summary h3 {
  margin: 0;
  font-size: 1.8rem !important;
  font-weight: 600;
  line-height: 1.35;
}

.st-faq__icon {
  flex: none;
  color: var(--st-accent);
  transition: transform 0.2s ease;
}

.st-faq__item[open] .st-faq__icon {
  transform: rotate(45deg);
}

.st-faq__answer {
  padding: 0 4px 22px;
  max-width: 70ch;
}

.st-faq__answer p:last-child {
  margin-bottom: 0;
}

/* Cards: related features. auto-fit lets three cards fill the row instead of leaving a gap. */

.st-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.st-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 50px 24px 24px;
  border-radius: 22px;
  background: var(--surface-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.st-card:hover,
.st-card:focus {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px var(--st-accent-glow);
}

.st-card__title {
  font-family: var(--st-font-display);
  font-size: 1.8rem;
  font-weight: 620;
  letter-spacing: -0.012em;
  color: var(--heading);
}

.st-card__text {
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--muted);
}

.st-card__more {
  position: absolute;
  top: 20px;
  right: 18px;
  color: var(--st-accent);
}

.st-related {
  padding-top: 8px;
  padding-bottom: 8px;
}

/* Hub highlights */

.st-highlights {
  display: flex;
  flex-direction: column;
  gap: 56px;
  margin: 28px 0;
}

.st-highlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.st-highlight--reverse .st-highlight__copy {
  order: 2;
}

.st-highlight__media {
  display: flex;
  justify-content: center;
}

/* Reviews */

.st-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.st-review {
  margin: 0;
  padding: 26px;
  border-radius: 22px;
  background: var(--surface-soft);
}

.st-review__stars {
  color: #f5a623;
  margin-bottom: 12px;
}

.st-review__title {
  font-family: var(--st-font-display);
  font-size: 1.8rem !important;
  font-weight: 620;
  letter-spacing: -0.012em;
  color: var(--heading);
  margin: 0 0 6px;
}

.st-review blockquote {
  margin: 0 0 10px;
  padding: 0;
  border: 0;
}

.st-review blockquote p {
  font-size: 1.6rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

.st-review figcaption {
  font-size: 1.3rem;
  color: var(--muted);
}

/* ---------- Hub: a centred page, after Apple's product pages and tripsy.app ---------- */

.st-page--hub .st-hero--hub {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 52px;
  padding-top: 56px;
  text-align: center;
}

.st-page--hub .st-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 860px;
}

.st-page--hub .st-hero__app {
  flex-direction: column;
  gap: 16px;
  margin-bottom: 18px;
}

.st-page--hub .st-hero__app img {
  width: 92px;
  height: 92px;
  border-radius: 21px;
}

.st-page--hub .st-hero h1 {
  text-wrap: balance;
}

.st-page--hub .st-hero__lede {
  max-width: 640px;
  text-wrap: pretty;
}

.st-page--hub .st-hero__actions {
  justify-content: center;
}

/* The rating as a line of social proof: the stars over the figures. */
.st-page--hub .st-hero__rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
}

.st-page--hub .st-hero__rating .st-stars {
  font-size: 2rem;
  letter-spacing: 3px;
}

.st-page--hub .st-hero__meta {
  margin-top: 10px;
}

.st-page--hub .st-hero__media {
  width: 100%;
}

.st-page--hub .st-composition {
  max-width: 680px;
}

.st-page--hub .st-composition .st-media {
  max-width: 320px;
}

.st-page--hub .st-body {
  gap: 0;
  padding-bottom: 40px;
}

.st-page--hub .st-body > .st-section {
  margin: 0;
  padding: 64px 0;
}

.st-page--hub .st-section > h2,
.st-page--hub .st-section > .st-eyebrow,
.st-page--hub .st-section > .st-section__lede,
.st-page--hub .st-reviews__note,
.st-page--hub .st-record__checked {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  text-wrap: balance;
}

.st-page--hub .st-section > h2 {
  max-width: 24ch;
}

.st-page--hub .st-body > .st-intro {
  max-width: 760px;
  text-align: center;
}

.st-page--hub .st-intro p {
  font-size: 2rem;
  text-wrap: pretty;
}

/* Feature highlights: two-tone titles, a violet line over the dark one. */
.st-page--hub .st-highlights {
  gap: 120px;
}

.st-page--hub .st-highlight {
  gap: 80px;
}

.st-highlight .st-eyebrow,
.st-highlight h2 {
  font-family: var(--st-font-display);
  font-size: clamp(2.8rem, 1.9rem + 1.9vw, 4.2rem);
  font-weight: 660;
  line-height: 1.08;
  letter-spacing: -0.028em;
}

.st-highlight .st-eyebrow {
  margin: 0;
  color: var(--st-accent);
}

.st-highlight h2 {
  margin: 0 0 20px;
}

.st-highlight__copy p {
  font-size: 1.8rem;
  line-height: 1.55;
  color: var(--muted);
}

.st-highlight .st-link-arrow {
  font-size: 1.7rem;
  font-weight: 600;
}

.st-page--hub .st-lesson__grid {
  margin-top: 28px;
}

.st-page--hub .st-facts {
  max-width: 920px;
  margin: 28px auto 0;
}

.st-page--hub .st-body > .st-record {
  margin: 40px 0;
  padding: 64px 56px;
}

.st-page--hub .st-stats {
  max-width: 920px;
  margin: 32px auto 8px;
}

.st-page--hub .st-stat {
  text-align: center;
}

.st-page--hub .st-timeline,
.st-page--hub .st-maker {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.st-page--hub .st-review-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.st-page--hub .st-faq__list {
  max-width: 840px;
  margin: 28px auto 0;
}

.st-reviews__note {
  margin-top: 10px;
  font-size: 1.3rem !important;
  color: var(--muted);
}

/* ---------- Media slots ---------- */

.st-media {
  margin: 0;
  width: 100%;
}

.st-media picture,
.st-media img,
.st-media video {
  display: block;
  width: 100%;
  height: auto;
}

.st-media--iphone {
  max-width: 300px;
}

.st-media--ipad {
  max-width: 560px;
}

.st-media--none img,
.st-media--none video {
  border-radius: var(--radius-lg);
}

.st-media--export {
  max-width: 300px;
}

.st-media--export img,
.st-media--export video {
  border-radius: 18px;
  box-shadow: 0 24px 50px rgba(16, 34, 61, 0.2);
}

.st-step .st-media {
  justify-self: center;
  max-width: 240px;
}

.st-media figcaption {
  margin-top: 14px;
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

/* Device frames. Screenshots come inside Apple's product bezel, as one image from the importer.
   Captures without one, and videos, get a generic frame that deliberately has no Apple-specific
   details (no buttons, no sensor housing). */

.st-device {
  position: relative;
  width: 100%;
}

.st-device__screen {
  position: relative;
  overflow: hidden;
  background: #000;
}

.st-device:not(.st-device--bezel) {
  background: linear-gradient(160deg, #3b3b42 0%, #17171b 34%, #0b0b0d 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 30px 60px -20px rgba(16, 34, 61, 0.45);
}

:root[data-theme="dark"] .st-device:not(.st-device--bezel) {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.07),
    0 30px 60px -20px rgba(0, 0, 0, 0.7);
}

.st-device--iphone:not(.st-device--bezel) {
  padding: 3.6%;
  border-radius: 16.5% / 7.6%;
}

.st-device--iphone:not(.st-device--bezel) .st-device__screen {
  border-radius: 13.4% / 6.2%;
}

.st-device--ipad:not(.st-device--bezel) {
  padding: 2.6%;
  border-radius: 4.6% / 6.1%;
}

.st-device--ipad:not(.st-device--bezel) .st-device__screen {
  border-radius: 2.2% / 2.9%;
}

/* Several devices side by side (Apple bezels may not overlap). */
.st-composition {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 5%;
  width: 100%;
  max-width: 560px;
}

.st-composition .st-media {
  flex: 1 1 0;
  max-width: 270px;
}

.st-composition .st-media:nth-child(even) {
  margin-bottom: 9%;
}

/* Placeholders */

.st-media__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  text-align: center;
  border: 2px dashed var(--st-accent-line);
  background: var(--st-placeholder);
  color: var(--muted);
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
}

.st-device .st-media__placeholder {
  border: 0;
  border-radius: 0;
  outline: 2px dashed rgba(192, 147, 255, 0.45);
  outline-offset: -12px;
  background: linear-gradient(180deg, #221a33 0%, #120f19 100%);
  color: rgba(235, 228, 250, 0.72);
}

.st-device .st-media__id {
  color: #ffffff;
}

.st-device .st-media__tag {
  color: #c093ff;
}

.st-device--iphone .st-media__placeholder {
  aspect-ratio: 1179 / 2556;
  padding: 18% 10%;
}

.st-device--ipad .st-media__placeholder {
  aspect-ratio: 4 / 3;
}

.st-media--export .st-media__placeholder,
.st-media--vertical .st-media__placeholder {
  aspect-ratio: 9 / 16;
}

.st-media--composition .st-media__placeholder {
  aspect-ratio: 8 / 7;
}

.st-media__tag {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--st-accent);
}

.st-media__id {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 1.3rem;
  color: var(--heading);
  word-break: break-all;
}

.st-media__note {
  font-size: 1.3rem;
  line-height: 1.45;
}

.st-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: end;
  margin: 22px 0;
}

.st-gallery .st-media {
  max-width: none;
}

.st-media--square .st-media__placeholder {
  aspect-ratio: 1 / 1;
}

.st-pair {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 24px;
  align-items: end;
  margin: 20px 0;
}

.st-pair .st-media {
  max-width: none;
}

.st-media--video .st-media__placeholder {
  aspect-ratio: 16 / 9;
}

.st-media--video.st-media--vertical .st-media__placeholder {
  aspect-ratio: 9 / 16;
}

.st-lang-note {
  font-size: 0.85em;
  color: var(--muted);
}

/* Track record */

.st-record {
  padding: 48px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 0% 0%, var(--st-accent-glow) 0, transparent 50%),
    var(--surface-soft);
}

.st-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 22px 0 8px;
}

.st-stat {
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--surface);
}

.st-stat dt {
  font-family: var(--st-font-display);
  font-size: clamp(3.4rem, 2.4rem + 1.8vw, 4.6rem);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--heading);
}

.st-stat dt span {
  margin-left: 4px;
  font-size: 0.7em;
  color: #f5a623;
}

.st-stat dd {
  margin: 6px 0 0;
  font-size: 1.45rem;
  line-height: 1.4;
  color: var(--muted);
}

.st-timeline {
  list-style: none;
  margin: 26px 0 0;
  padding: 0 0 0 22px;
  border-left: 2px solid var(--st-accent-line);
}

.st-timeline__item {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 6px 0 12px;
}

.st-timeline__item::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 14px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--st-accent);
  box-shadow: 0 0 0 4px var(--surface);
}

.st-timeline__year {
  flex: none;
  min-width: 52px;
  font-weight: 650;
  font-size: 1.7rem;
  font-variant-numeric: tabular-nums;
  color: var(--st-accent);
}

.st-timeline__item p {
  margin: 0;
  color: var(--text);
}

.st-maker {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin: 28px 0 0;
  padding: 24px 26px;
  border-radius: 22px;
  background: var(--surface);
}

.st-maker__photo {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.st-maker blockquote {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
}

.st-maker blockquote p {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.6;
  color: var(--text);
  font-style: italic;
}

.st-maker figcaption {
  font-size: 1.4rem;
  color: var(--muted);
}

.st-record__checked {
  margin: 16px 0 0;
  font-size: 1.3rem !important;
  color: var(--muted);
}

.st-hero__rating a {
  color: inherit !important;
  text-decoration: underline;
  text-decoration-color: var(--st-accent-line);
  text-underline-offset: 3px;
}

.st-cta__trust {
  font-size: 1.35rem !important;
  color: var(--muted);
  margin: -8px 0 16px !important;
}

/* ---------- Download call to action ---------- */

.st-cta {
  padding: 36px 0 56px;
}

.st-cta__card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: 40px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 100% 0%, var(--st-accent-glow) 0, transparent 55%),
    var(--surface-soft);
}

.st-cta__icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 10px 26px var(--st-accent-glow);
}

.st-cta__copy h2 {
  font-size: clamp(2.6rem, 2rem + 1.4vw, 3.6rem);
  font-weight: 660;
  letter-spacing: -0.028em;
  line-height: 1.1;
  margin: 0 0 10px;
}

.st-cta__copy p {
  margin: 0 0 8px;
}

.st-cta__meta {
  font-size: 1.4rem !important;
  color: var(--muted);
  margin-bottom: 16px !important;
}

.st-cta__qr {
  margin: 0;
  width: 150px;
  text-align: center;
}

.st-cta__qr img {
  width: 132px;
  height: 132px;
  padding: 8px;
  border-radius: var(--radius-md);
  background: #ffffff;
  image-rendering: pixelated;
  border: 1px solid var(--line);
}

.st-cta__qr figcaption {
  margin-top: 8px;
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--muted);
}

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

/* Scoped under .st-page so the app's link colour (.st-page a) never reaches the label. */
.st-page .st-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--st-accent);
  color: var(--st-on-accent);
  font-size: 1.55rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.st-page .st-button:hover,
.st-page .st-button:focus {
  background: var(--st-accent-strong);
  color: var(--st-on-accent);
  text-decoration: none;
}

.st-button__note {
  font-size: 1.3rem;
  font-weight: 500;
  opacity: 0.85;
}

.st-page .st-button--quiet {
  min-height: 40px;
  padding: 0 16px;
  border-color: var(--st-accent-line);
  background: var(--st-accent-soft);
  color: var(--st-accent);
  font-size: 1.4rem;
}

.st-page .st-button--quiet:hover,
.st-page .st-button--quiet:focus {
  background: var(--st-accent-line);
  color: var(--st-accent-strong);
}

/* ---------- Press kit ---------- */

/* Even columns, so the device montage gets room beside the copy. */
.st-press-hero {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.st-press-hero .st-hero__media {
  justify-content: flex-end;
}

/* The iPhone and its cards on a transparent image, so both themes show through. */
.st-press-devices {
  display: block;
  width: min(100%, 560px);
  height: auto;
}

.st-body--wide > .st-press-about {
  max-width: 860px;
  margin-left: 0;
}

.st-press-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}

.st-press-heading h2 {
  margin: 0;
}

.st-section .st-press-shots__device {
  margin: 24px 0 10px;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.st-press-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 180px;
  gap: 14px;
  margin: 0;
  padding: 4px 2px 14px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
}

.st-press-strip--ipad {
  grid-auto-columns: 250px;
}

/* Positioned so the .sr-only labels stay inside the scrolling strip instead of widening the page. */
.st-press-shot {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-snap-align: start;
}

.st-press-shot__open {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--st-placeholder);
  line-height: 0;
  cursor: zoom-in;
  box-shadow: 0 6px 18px rgba(16, 34, 61, 0.12);
}

.st-press-shot__open img {
  display: block;
  width: 100%;
  height: auto;
}

.st-press-strip--iphone img {
  aspect-ratio: auto 1320 / 2868;
}

.st-press-strip--ipad img {
  aspect-ratio: auto 2048 / 2732;
}

.st-press-shot__full {
  font-size: 1.35rem;
  font-weight: 600;
}

/* 16:9, 1:1 and 9:16 side by side at one height: columns in proportion to their widths. */
.st-press-promos {
  display: grid;
  grid-template-columns: 1.7778fr 1fr 0.5625fr;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.st-press-promo {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.st-press-promo__image {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 6px 18px rgba(16, 34, 61, 0.12);
}

.st-press-promo__image img {
  display: block;
  width: 100%;
  height: auto;
}

.st-press-promo__download {
  font-size: 1.35rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Fact sheet links: the address as text, then Open and Copy buttons. */
.st-facts .st-fact--link dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

.st-fact__value {
  min-width: 0;
  overflow-wrap: anywhere;
}

.st-fact__actions {
  display: inline-flex;
  flex-shrink: 0;
  gap: 6px;
}

.st-page .st-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--st-accent-line);
  border-radius: 999px;
  background: var(--st-accent-soft);
  color: var(--st-accent);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.st-page .st-chip:hover,
.st-page .st-chip:focus {
  background: var(--st-accent-line);
  color: var(--st-accent-strong);
  text-decoration: none;
}

.st-press-assets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.st-press-asset {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}

.st-press-asset__preview {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 18px;
  background: var(--surface-soft);
}

.st-press-asset__preview img {
  width: 100%;
  max-width: 140px;
  height: auto;
  filter: drop-shadow(0 8px 14px rgba(16, 34, 61, 0.2));
}

.st-press-asset--dark .st-press-asset__preview,
.st-press-asset--tinted .st-press-asset__preview {
  background: #141118;
}

/* Clear icons are see-through, so they sit on a wallpaper-like gradient. */
.st-press-asset--clear .st-press-asset__preview {
  background: linear-gradient(140deg, #f3a6c8 0%, #9a7cf0 48%, #4f8fe8 100%);
}

.st-press-artwork {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.st-press-asset--art {
  flex-basis: 0;
  min-width: 0;
}

.st-press-asset--art .st-press-asset__preview {
  padding: 0;
  aspect-ratio: auto;
}

.st-press-asset--art .st-press-asset__preview img {
  max-width: none;
  filter: none;
}

/* A wide piece gets a row of its own. */
.st-press-asset--full {
  flex-basis: 100%;
}

/* A checkerboard says the image has no background. */
.st-press-asset--transparent .st-press-asset__preview {
  background: repeating-conic-gradient(var(--surface-soft) 0% 25%, var(--surface) 0% 50%) 50% / 24px 24px;
}

.st-press-asset__name {
  margin: 12px 16px 2px;
  font-weight: 700;
  color: var(--heading);
}

.st-press-asset__download {
  margin: 0 16px 14px;
  font-size: 1.35rem;
  font-weight: 600;
}

.st-press-contact {
  grid-template-columns: auto minmax(0, 1fr);
}

.st-page--press .st-review-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.st-press-lightbox {
  max-width: 96vw;
  max-height: 96vh;
  padding: 52px 16px 16px;
  border: 0;
  background: transparent;
  overflow: visible;
  text-align: center;
}

.st-press-lightbox::backdrop {
  background: rgba(10, 5, 22, 0.86);
}

.st-press-lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: 92vw;
  max-height: calc(92vh - 90px);
  margin: 0 auto;
  border-radius: 18px;
}

.st-press-lightbox p {
  margin: 12px 0 0;
  font-size: 1.4rem;
  color: #e9e3f5;
}

.st-page .st-press-lightbox p a {
  color: #d7b8ff;
}

.st-press-lightbox__close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 1.8rem;
}

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

.st-footer {
  border-top: 1px solid var(--line);
  background: var(--footer-bg);
  padding: 40px 0 20px;
}

.st-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.st-footer__app {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--heading) !important;
  margin-bottom: 12px;
}

.st-footer__app img {
  border-radius: 10px;
}

.st-footer p {
  font-size: 1.45rem;
  margin: 0 0 8px;
}

.st-footer__disclaimer {
  font-size: 1.3rem !important;
  color: var(--muted);
  max-width: 56ch;
}

.st-footer__col h2 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 6px 0 10px;
}

.st-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.st-footer__col li {
  margin: 6px 0;
  font-size: 1.5rem;
}

.st-footer__legal {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.st-footer__legal p {
  font-size: 1.3rem;
  color: var(--muted);
}

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

@media (max-width: 991px) {
  .st-hero,
  .st-highlight {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .st-highlight--reverse .st-highlight__copy {
    order: 0;
  }

  .st-lesson__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .st-cta__card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .st-cta__qr {
    display: none;
  }

  .st-footer__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .st-footer__brand {
    grid-column: 1 / -1;
  }

  .st-page--hub .st-highlights {
    gap: 72px;
  }

  .st-page--hub .st-highlight {
    gap: 32px;
  }

  .st-page--hub .st-review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .st-press-hero .st-hero__media {
    justify-content: center;
  }

  .st-press-assets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .st-press-artwork {
    flex-direction: column;
  }

  .st-press-asset--art,
  .st-press-asset--full {
    flex-basis: auto;
  }

  .st-page--press .st-review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .st-page--hub .st-hero--hub {
    gap: 36px;
    padding-top: 24px;
  }

  .st-page--hub .st-body > .st-section {
    padding: 44px 0;
  }

  .st-page--hub .st-body > .st-record {
    margin: 24px 0;
    padding: 36px 22px;
  }

  .st-page--hub .st-review-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Six centred lines are hard to follow on a phone. */
  .st-page--hub .st-body > .st-intro {
    text-align: left;
  }

  /* The note gets the card's full width, with the photo above it. */
  .st-maker {
    flex-direction: column;
    gap: 12px;
    padding: 20px;
  }

  .st-maker__photo {
    width: 52px;
    height: 52px;
  }

  .st-page--hub .st-intro p {
    font-size: 1.8rem;
  }

  /* One row: brand, then language and menu. The hero badge and Safari's Smart App Banner
     carry the download on phones. */
  .st-nav__inner {
    gap: 6px;
    min-height: 56px;
  }

  .st-nav__press,
  .st-nav__cta,
  .st-nav__theme,
  .st-menu__caret {
    display: none;
  }

  .st-nav__brand span {
    font-size: 1.6rem;
  }

  .st-nav__links {
    order: 3;
    margin-left: 0;
  }

  .st-nav__actions {
    margin-left: auto;
  }

  .st-menu__bars {
    display: inline-block;
    font-size: 1.8rem;
  }

  .st-menu__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .st-menu__press {
    display: block;
    grid-column: 1 / -1;
    font-weight: 600;
    font-size: 1.5rem;
  }

  .st-menu__panel {
    grid-template-columns: minmax(0, 1fr);
    position: fixed;
    left: 16px;
    right: 16px;
    top: 64px;
    width: auto;
    max-height: 70vh;
    overflow-y: auto;
  }

  .st-hero {
    padding-top: 20px;
  }

  .st-step {
    grid-template-columns: minmax(0, 1fr);
    padding: 20px;
  }

  .st-pair {
    grid-template-columns: minmax(0, 1fr);
  }

  .st-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .st-pair .st-media--vertical {
    max-width: 280px;
    margin: 0 auto;
  }

  .st-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .st-facts > div:nth-child(odd) {
    border-right: 0;
  }

  .st-cta__card {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px;
    text-align: left;
  }

  .st-footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .st-press-strip {
    grid-auto-columns: 150px;
  }

  .st-press-strip--ipad {
    grid-auto-columns: 210px;
  }

  /* On phones the three formats scroll sideways at a readable size. */
  .st-press-promos {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x proximity;
  }

  .st-press-promo {
    scroll-snap-align: start;
  }

  /* The theme caps images at their column's width, which would squash them at a fixed height. */
  .st-press-promo__image img {
    width: auto;
    max-width: none;
    height: 220px;
  }

  .st-page--press .st-review-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .st-card,
  .st-faq__icon,
  .st-nav__pill {
    transition: none;
  }

  .st-card:hover,
  .st-card:focus {
    transform: none;
  }
}
