/*
 * SongRealm public web surface
 *
 * This layer is intentionally loaded after each public page's legacy styles.
 * It owns composition, type hierarchy and interaction polish while reading
 * every theme color from global-theme.css. Product workspaces keep their own
 * layout contracts and do not load this file.
 */

:root {
  --site-max: 1280px;
  --site-wide: 1380px;
  --site-gutter: clamp(20px, 4vw, 64px);
  --site-reading: 68ch;
  --site-section-gap: clamp(64px, 8vw, 112px);
  --site-card-shadow: 0 20px 56px color-mix(in srgb, var(--app-shadow) 30%, transparent);
  --site-soft-shadow: 0 10px 28px color-mix(in srgb, var(--app-shadow) 20%, transparent);
  --site-focus: 0 0 0 3px color-mix(in srgb, var(--app-accent) 24%, transparent);
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  background:
    radial-gradient(circle at 84% -12%, color-mix(in srgb, var(--app-accent) 9%, transparent), transparent 34rem),
    radial-gradient(circle at 6% 18%, color-mix(in srgb, var(--app-secondary) 6%, transparent), transparent 30rem),
    var(--app-bg);
  color: var(--app-text);
  font-family: var(--font-family-base);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -.006em;
}

body * {
  box-sizing: border-box;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  text-underline-offset: .18em;
}

h1,
h2,
h3,
h4,
p {
  text-wrap: pretty;
}

h1,
h2,
h3,
h4 {
  color: var(--app-text);
}

p,
li,
dd {
  overflow-wrap: anywhere;
}

::selection {
  background: var(--app-accent-soft);
  color: var(--app-text);
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--app-accent);
  outline-offset: 3px;
  box-shadow: var(--site-focus);
}

.site-header,
.content-topbar {
  position: sticky;
  z-index: 40;
  top: 14px;
  width: min(calc(100% - var(--site-gutter) * 2), var(--site-wide));
  min-height: 72px;
  margin: 14px auto 0;
  padding: 10px clamp(14px, 2vw, 24px);
  border: 1px solid color-mix(in srgb, var(--app-line) 88%, var(--app-accent));
  border-radius: 18px;
  background: color-mix(in srgb, var(--app-bg) 88%, transparent);
  box-shadow: var(--site-soft-shadow);
  backdrop-filter: blur(18px) saturate(1.1);
}

.site-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(14px, 2.5vw, 34px);
}

.content-topbar {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 34px);
}

.brand {
  display: inline-flex;
  min-width: max-content;
  align-items: center;
  gap: 10px;
  color: var(--app-text);
  text-decoration: none;
}

.brand-mark,
.brand-mark-img {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--app-accent) 46%, var(--app-line));
  border-radius: 11px;
  background: var(--app-accent);
  color: var(--app-accent-ink);
  font-family: var(--font-family-display);
  font-size: 18px;
  font-weight: 850;
  line-height: 1;
}

.brand-mark-img {
  padding: 5px;
  object-fit: contain;
}

.brand > span:not(.brand-mark) {
  font-family: var(--font-family-display);
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -.035em;
}

.brand > span:not(.brand-mark) b {
  color: var(--app-muted);
  font-weight: 650;
}

.brand small {
  margin-left: -4px;
  color: var(--app-faint);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.site-header nav,
.content-topbar nav {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.4vw, 22px);
  margin: 0;
  color: var(--app-muted);
  font-size: 14px;
  font-weight: 650;
}

.site-header nav a,
.content-topbar nav a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 4px;
  border-bottom: 2px solid transparent;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease, border-color 180ms ease;
}

.site-header nav a:hover,
.content-topbar nav a:hover,
.site-header nav a:focus-visible,
.content-topbar nav a:focus-visible {
  border-color: var(--app-accent);
  color: var(--app-text);
}

.header-tools,
.content-top-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 8px;
}

.theme-switcher {
  min-height: 40px;
}

.header-account,
.header-online,
.header-download {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--app-line);
  border-radius: 10px;
  color: var(--app-muted);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.header-account:hover,
.header-online:hover,
.header-download:hover {
  border-color: var(--app-accent);
  background: var(--app-accent-soft);
  color: var(--app-text);
  transform: translateY(-1px);
}

.header-online,
.header-download {
  border-color: color-mix(in srgb, var(--app-accent) 62%, var(--app-line));
  background: var(--app-accent);
  color: var(--app-accent-ink);
}

.header-online:hover,
.header-download:hover {
  background: var(--app-accent-readable);
  color: var(--app-accent-ink);
}

.content-app .content-top-actions .header-online,
.content-app .content-top-actions .header-download {
  width: auto;
  height: auto;
  min-height: 38px;
  padding: 0 12px;
  font-size: 12px;
  background: var(--app-accent);
  color: var(--app-accent-ink);
}

.content-app .content-top-actions .header-download::after {
  content: none;
}

.button,
.install-actions a,
.reader-actions a,
.tutorial-actions a,
.feature-primary-action {
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  /* Keep theme changes atomic; animating the fill here makes status checks and
     theme previews read an in-between color for a frame. */
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.install-actions a:hover,
.reader-actions a:hover,
.tutorial-actions a:hover,
.feature-primary-action:hover {
  transform: translateY(-1px);
}

.button.primary,
.button.primary:hover,
.reader-actions a.primary,
.feature-primary-action {
  border-color: var(--app-accent);
  background: var(--app-accent);
  color: var(--app-accent-ink);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--app-accent) 14%, transparent);
}

.button.secondary,
.install-actions a,
.reader-actions a:not(.primary),
.tutorial-actions a {
  border: 1px solid var(--app-line);
  background: var(--app-panel);
  color: var(--app-text);
}

.button.secondary:hover,
.install-actions a:hover,
.reader-actions a:not(.primary):hover,
.tutorial-actions a:hover {
  border-color: var(--app-accent);
  background: var(--app-accent-soft);
  color: var(--app-text);
}

.eyebrow,
.section-kicker,
.spotlight-section-head .eyebrow,
.feature-kicker,
.tutorial-detail-kicker {
  margin: 0;
  color: var(--app-accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .14em;
  line-height: 1.35;
  text-transform: uppercase;
}

/* Product landing page --------------------------------------------------- */

.landing-campaign,
.spotlight-hero,
.spotlight-pwa-band,
.spotlight-section,
.spotlight-footer {
  width: min(calc(100% - var(--site-gutter) * 2), var(--site-max));
  margin-right: auto;
  margin-left: auto;
}

.landing-campaign {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  margin-top: 30px;
  padding: 16px 20px;
  border: 1px solid color-mix(in srgb, var(--app-warm) 38%, var(--app-line));
  border-radius: 14px;
  background: color-mix(in srgb, var(--status-warning-bg) 72%, var(--app-panel));
}

.landing-campaign-copy,
.landing-campaign-price,
.landing-campaign-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-campaign-copy > span,
.landing-campaign-copy small,
.landing-campaign-price span,
.landing-campaign time {
  color: var(--app-muted);
  font-size: 13px;
}

.landing-campaign-copy > span {
  padding: 5px 9px;
  border: 1px solid var(--status-warning-border);
  border-radius: 999px;
  color: var(--status-warning-text);
  font-weight: 800;
}

.landing-campaign-copy strong,
.landing-campaign-price strong {
  color: var(--app-text);
  font-size: 15px;
}

.landing-campaign-copy small {
  display: block;
  margin-top: 2px;
}

.landing-campaign-price {
  white-space: nowrap;
}

.landing-campaign-price strong {
  color: var(--status-warning-text);
  font-size: 24px;
}

.landing-campaign-actions {
  justify-content: end;
}

.landing-campaign-actions a {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--app-line);
  border-radius: 9px;
  color: var(--app-muted);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.landing-campaign-actions a:hover,
.landing-campaign-actions a.is-primary {
  border-color: var(--app-accent);
  background: var(--app-accent);
  color: var(--app-accent-ink);
}

.spotlight-hero {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: clamp(34px, 6vw, 90px);
  padding-top: clamp(70px, 9vw, 126px);
  padding-bottom: var(--site-section-gap);
}

.spotlight-hero-copy {
  max-width: 620px;
}

.spotlight-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--app-accent) 42%, var(--app-line));
  border-radius: 999px;
  background: var(--app-accent-soft);
  color: var(--app-text);
  font-size: 13px;
  text-decoration: none;
}

.spotlight-live-badge span,
.spotlight-live-badge i {
  color: var(--app-accent);
  font-style: normal;
  font-weight: 850;
}

.spotlight-hero h1 {
  max-width: 12ch;
  margin: 16px 0 0;
  color: var(--app-text);
  font-family: var(--font-family-display);
  font-size: clamp(48px, 6vw, 82px);
  font-weight: 850;
  letter-spacing: -.07em;
  line-height: .99;
  text-wrap: balance;
}

.spotlight-hero h1 span {
  display: block;
  color: var(--app-accent);
}

.spotlight-hero-lede {
  max-width: var(--site-reading);
  margin: 24px 0 0;
  color: var(--app-muted);
  font-size: 17px;
  line-height: 1.82;
}

.spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.spotlight-actions .button {
  display: inline-flex;
  padding: 0 17px;
}

.spotlight-actions .button span {
  display: grid;
  gap: 1px;
  text-align: left;
}

.spotlight-actions .button small {
  color: color-mix(in srgb, currentColor 72%, transparent);
  font-size: 12px;
  font-weight: 700;
}

.spotlight-pwa-detail {
  display: grid;
  gap: 4px;
  margin: 22px 0 0;
  padding: 13px 15px;
  border-left: 3px solid var(--app-accent);
  background: color-mix(in srgb, var(--app-accent-soft) 58%, var(--app-panel));
}

.spotlight-pwa-detail strong {
  color: var(--app-text);
  font-size: 14px;
}

.spotlight-pwa-detail span {
  color: var(--app-muted);
  font-size: 13px;
  line-height: 1.65;
}

.spotlight-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 20px;
  color: var(--app-muted);
  font-size: 13px;
}

.spotlight-proof i {
  margin-right: 5px;
  color: var(--app-accent);
  font-style: normal;
  font-weight: 850;
}

.spotlight-hero-board {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--app-accent) 38%, var(--app-line));
  border-radius: 18px;
  background: var(--app-panel);
  box-shadow: var(--site-card-shadow);
}

.spotlight-board-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 17px;
  border-bottom: 1px solid var(--app-line);
  color: var(--app-muted);
  font-size: 12px;
}

.spotlight-board-head b {
  color: var(--app-text);
  font-size: 14px;
}

.spotlight-board-head em {
  margin-left: auto;
  color: var(--app-accent);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.spotlight-board-image {
  position: relative;
  min-height: 360px;
  background: var(--app-panel-2);
}

.spotlight-board-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  object-position: center;
}

.spotlight-callout {
  position: absolute;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--app-accent) 50%, var(--app-line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--app-bg) 78%, transparent);
  box-shadow: var(--site-soft-shadow);
  color: var(--app-text);
  font-size: 12px;
  font-weight: 750;
  backdrop-filter: blur(10px);
}

.spotlight-callout-a { top: 15%; left: 5%; }
.spotlight-callout-b { right: 5%; bottom: 24%; }
.spotlight-callout-c { right: 8%; top: 10%; color: var(--app-accent); }

.spotlight-pwa-band,
.spotlight-difference,
.spotlight-theme-showcase,
.spotlight-install,
.spotlight-convert-grid,
.spotlight-faq {
  margin-top: var(--site-section-gap);
}

.spotlight-pwa-band {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  align-items: center;
  gap: 24px;
  padding: 26px 28px;
  border: 1px solid color-mix(in srgb, var(--app-accent) 48%, var(--app-line));
  border-radius: 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--app-accent-soft) 74%, var(--app-panel)), var(--app-panel));
  box-shadow: var(--site-soft-shadow);
}

.spotlight-pwa-band h2,
.spotlight-section-head h2,
.spotlight-difference h2,
.spotlight-install h2,
.spotlight-convert-grid h2,
.spotlight-faq h2 {
  margin: 0;
  font-family: var(--font-family-display);
  font-size: clamp(28px, 3.3vw, 44px);
  font-weight: 850;
  letter-spacing: -.045em;
  line-height: 1.08;
}

.spotlight-pwa-band p,
.spotlight-section-head > p,
.spotlight-difference p,
.spotlight-install p,
.spotlight-convert-grid p,
.spotlight-faq p {
  max-width: var(--site-reading);
  margin: 12px 0 0;
  color: var(--app-muted);
  font-size: 16px;
  line-height: 1.75;
}

.spotlight-pwa-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: end;
}

.spotlight-pwa-band-actions a,
.spotlight-pwa-link,
.spotlight-section-link,
.spotlight-plan-link {
  color: var(--app-accent);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.spotlight-section {
  padding-top: 4px;
}

.spotlight-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--app-line);
}

.spotlight-section-head > div {
  min-width: 0;
}

.spotlight-section-head > p {
  max-width: 44ch;
  margin: 0;
  text-align: right;
}

.spotlight-feature-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.spotlight-feature-card {
  grid-column: span 4;
  min-width: 0;
  min-height: 350px;
  overflow: hidden;
  border: 1px solid var(--app-line);
  border-radius: 15px;
  background: var(--app-panel);
  box-shadow: var(--site-soft-shadow);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.spotlight-feature-card.is-wide {
  grid-column: span 6;
}

.spotlight-feature-card:hover {
  border-color: color-mix(in srgb, var(--app-accent) 66%, var(--app-line));
  background: var(--app-panel-2);
  box-shadow: var(--site-card-shadow);
  transform: translateY(-3px);
}

.spotlight-feature-media {
  min-height: 166px;
  border-bottom-color: var(--app-line);
}

.spotlight-feature-media img {
  min-height: 166px;
}

.spotlight-feature-media span {
  padding: 5px 8px;
  border-color: color-mix(in srgb, var(--app-accent) 45%, var(--app-line));
  background: color-mix(in srgb, var(--app-bg) 82%, transparent);
  color: var(--app-accent);
  font-size: 12px;
  font-weight: 750;
}

.spotlight-feature-body {
  padding: 18px 19px 20px;
}

.spotlight-feature-body > p:first-child {
  font-size: 12px;
  font-weight: 800;
}

.spotlight-feature-body h3 {
  margin: 8px 0 7px;
  font-size: 21px;
  line-height: 1.25;
}

.spotlight-feature-body h3 + p,
.spotlight-feature-problem {
  color: var(--app-muted);
  font-size: 14px;
  line-height: 1.7;
}

.spotlight-feature-problem {
  margin-top: 12px;
  color: var(--app-text);
}

.spotlight-reel-grid,
.spotlight-theme-grid,
.spotlight-step-grid,
.spotlight-convert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.spotlight-reel-grid > *,
.spotlight-theme-card,
.spotlight-step-grid > *,
.spotlight-convert-grid > *,
.spotlight-plan {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--app-line);
  border-radius: 14px;
  background: var(--app-panel);
  box-shadow: var(--site-soft-shadow);
}

.spotlight-reel-grid h3,
.spotlight-theme-card h3,
.spotlight-step-grid h3,
.spotlight-convert-grid h3,
.spotlight-plan h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.spotlight-reel-grid p,
.spotlight-theme-card p,
.spotlight-step-grid p,
.spotlight-convert-grid p,
.spotlight-plan p {
  margin: 9px 0 0;
  color: var(--app-muted);
  font-size: 14px;
  line-height: 1.72;
}

.spotlight-theme-principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--app-line);
  border-radius: 14px;
  background: var(--app-line);
}

.spotlight-theme-principles > * {
  min-width: 0;
  padding: 18px;
  background: var(--app-panel);
}

.spotlight-theme-principles strong {
  display: block;
  font-size: 16px;
}

.spotlight-theme-principles span {
  display: block;
  margin-top: 6px;
  color: var(--app-muted);
  font-size: 14px;
}

.spotlight-step-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.spotlight-step-grid > * {
  padding: 18px;
}

.spotlight-step-grid b {
  color: var(--app-accent);
  font-size: 13px;
  letter-spacing: .1em;
}

.spotlight-install {
  padding: 28px;
  border: 1px solid var(--app-line);
  border-radius: 16px;
  background: var(--app-panel);
}

.spotlight-install-secondary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--app-line);
  border-radius: 12px;
  background: var(--app-line);
}

.spotlight-install-secondary > * {
  padding: 17px;
  background: var(--app-panel-2);
}

.spotlight-install-secondary strong {
  display: block;
  font-size: 14px;
}

.spotlight-install-secondary span {
  display: block;
  margin-top: 5px;
  color: var(--app-muted);
  font-size: 13px;
  line-height: 1.55;
}

.spotlight-faq {
  padding-bottom: var(--site-section-gap);
}

.spotlight-faq details {
  padding: 16px 0;
  border-bottom: 1px solid var(--app-line);
}

.spotlight-faq summary {
  color: var(--app-text);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.spotlight-faq details p {
  margin-top: 10px;
  font-size: 15px;
}

.spotlight-footer {
  padding: 30px 0 44px;
  border-top: 1px solid var(--app-line);
}

/* Releases / download center -------------------------------------------- */

.release-page {
  width: min(calc(100% - var(--site-gutter) * 2), var(--site-max));
  padding: clamp(64px, 8vw, 116px) 0 112px;
}

.release-page > h1 {
  max-width: 1200px;
  margin: 14px 0 0;
  font-family: var(--font-family-display);
  font-size: clamp(48px, 5.5vw, 74px);
  font-weight: 850;
  letter-spacing: -.075em;
  line-height: 1.03;
  text-wrap: balance;
}

.release-lede {
  max-width: 70ch;
  margin: 24px 0 0;
  color: var(--app-muted);
  font-size: 18px;
  line-height: 1.8;
}

.release-section {
  margin-top: var(--site-section-gap);
}

.release-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .62fr);
  align-items: end;
  gap: 24px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--app-line);
}

.release-section-head h2 {
  margin: 4px 0 0;
  font-family: var(--font-family-display);
  font-size: clamp(30px, 3.8vw, 48px);
  font-weight: 850;
  letter-spacing: -.055em;
  line-height: 1.08;
}

.release-section-head > p {
  max-width: 48ch;
  margin: 0;
  color: var(--app-muted);
  font-size: 15px;
  line-height: 1.75;
  text-align: right;
}

.latest-release {
  grid-template-columns: 160px minmax(0, 1fr) auto;
  gap: 30px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--app-panel-2) 72%, var(--app-panel)), var(--app-panel));
  box-shadow: var(--site-card-shadow);
}

.latest-release h3 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 850;
}

.latest-release ul {
  margin-top: 15px;
  font-size: 14px;
  line-height: 1.8;
}

.latest-release .version {
  font-size: 17px;
}

.download-action {
  min-width: 230px;
}

.install-steps {
  gap: 16px;
  margin-bottom: 18px;
}

.install-steps li {
  min-height: 92px;
  padding: 18px;
  border-radius: 14px;
  background: var(--app-panel);
  box-shadow: var(--site-soft-shadow);
}

.install-steps b {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  font-size: 15px;
}

.install-steps strong {
  font-size: 15px;
}

.install-steps small {
  font-size: 13px;
}

.download-center-summary {
  min-height: 104px;
  padding: 24px 26px;
  border-radius: 14px;
}

.download-center-summary h3 {
  font-size: 24px;
}

.download-center-summary p,
.download-center-loading,
.download-empty,
.download-install-note,
.download-file-row small,
.download-checklist,
.download-file-row a {
  font-size: 13px;
}

.download-file-row {
  padding: 16px 19px;
}

.download-file-row strong {
  font-size: 14px;
}

.download-install-note {
  padding: 16px 18px;
}

.model-grid {
  gap: 16px;
}

.model-card {
  min-height: 360px;
  padding: 24px;
  border-radius: 15px;
}

.model-card h3 {
  font-size: 22px;
}

.model-card p,
.model-card small,
.model-card dl > div,
.model-technical summary {
  font-size: 13px;
}

.model-card p {
  min-height: 76px;
  line-height: 1.75;
}

.model-install-hint {
  font-size: 13px;
}

.history-list {
  gap: 12px;
}

.history-item {
  min-height: 92px;
  padding: 20px 22px;
  border-radius: 14px;
}

.history-item h3 {
  font-size: 18px;
}

.history-item p,
.history-item a {
  font-size: 13px;
}

.release-note {
  font-size: 13px;
}

/* Commerce and account --------------------------------------------------- */

.membership-page,
.account-center {
  width: min(calc(100% - var(--site-gutter) * 2), var(--site-max));
  padding-top: clamp(62px, 8vw, 110px);
  padding-bottom: 112px;
}

.commerce-hero,
.membership-page-intro {
  max-width: 920px;
}

.membership-page-intro h1,
.commerce-hero h1,
.account-center-hero h1 {
  max-width: none;
  margin: 14px 0 0;
  font-family: var(--font-family-display);
  font-size: clamp(32px, 4.6vw, 64px);
  font-weight: 850;
  letter-spacing: -.07em;
  line-height: 1.01;
  text-wrap: nowrap;
  white-space: nowrap;
}

.membership-page-intro > p:last-of-type,
.commerce-hero > p:not(.eyebrow),
.account-center-hero > p {
  max-width: 70ch;
  margin-top: 22px;
  color: var(--app-muted);
  font-size: 17px;
  line-height: 1.85;
}

.membership-intro-actions {
  gap: 10px;
  margin-top: 28px;
}

.commerce-promise {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 38px 0 0;
  overflow: hidden;
  border: 1px solid var(--app-line);
  border-radius: 14px;
  background: var(--app-line);
}

.commerce-promise > div {
  padding: 18px;
  background: var(--app-panel);
}

.commerce-promise dt {
  color: var(--app-text);
  font-size: 16px;
  font-weight: 850;
}

.commerce-promise dd {
  margin: 7px 0 0;
  color: var(--app-muted);
  font-size: 14px;
  line-height: 1.6;
}

.membership-checkout,
.commerce-catalog {
  margin-top: 64px;
  padding: 28px;
  border-color: color-mix(in srgb, var(--app-accent) 50%, var(--app-line));
  border-radius: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--app-panel-2) 60%, var(--app-panel)), var(--app-panel));
  box-shadow: var(--site-card-shadow);
}

.membership-checkout-copy h2,
.membership-space h2,
.commerce-how h2,
.commerce-feature-matrix h2,
.commerce-faq h2 {
  font-family: var(--font-family-display);
  font-size: clamp(24px, 2.7vw, 38px);
  font-weight: 850;
  letter-spacing: -.045em;
  text-wrap: nowrap;
  white-space: nowrap;
}

.membership-checkout-copy > p:last-child {
  font-size: 15px;
  line-height: 1.8;
}

.commerce-plan-grid,
.commerce-plan-grid.is-featured,
.commerce-plan-grid.is-points,
.commerce-plan-grid.is-time,
.commerce-more-grid {
  gap: 16px;
}

.commerce-plan-card {
  min-height: 340px;
  padding: 22px;
  border-radius: 15px;
  background: var(--app-panel);
  box-shadow: var(--site-soft-shadow);
}

.commerce-plan-card > strong {
  font-size: 20px;
}

.commerce-plan-card > p,
.commerce-plan-card > em,
.commerce-card-fulfillment,
.commerce-card-action,
.commerce-card-price-label,
.commerce-card-saving {
  font-size: 13px;
}

.commerce-plan-card > p {
  line-height: 1.7;
}

.commerce-card-price b {
  font-size: 38px;
}

.commerce-how,
.commerce-feature-matrix,
.commerce-faq {
  margin-top: 28px;
  padding: 28px;
  border-radius: 16px;
  box-shadow: var(--site-soft-shadow);
}

.commerce-how li span,
.commerce-feature-matrix [role='row'] > *,
.commerce-faq details p {
  font-size: 14px;
}

.account-center-guest {
  gap: 24px;
}

.account-center-hero,
.account-center-auth,
.account-panel {
  border-radius: 16px;
  box-shadow: var(--site-soft-shadow);
}

.account-center-hero {
  padding: clamp(28px, 4vw, 48px);
  background: linear-gradient(145deg, color-mix(in srgb, var(--app-accent-soft) 50%, var(--app-panel)), var(--app-panel));
}

.account-center-points {
  font-size: 14px;
}

.account-center-auth {
  padding: 28px;
}

.account-center-auth label,
.account-panel label {
  font-size: 13px;
}

.account-center-auth input,
.account-panel input,
.account-panel select {
  min-height: 46px;
  font-size: 14px;
}

.account-member-head h1 {
  font-family: var(--font-family-display);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 850;
  letter-spacing: -.05em;
}

.account-panel {
  padding: 22px 24px;
}

.account-panel h2 {
  font-family: var(--font-family-display);
  font-size: 25px;
  font-weight: 850;
  letter-spacing: -.035em;
}

.account-help,
.account-inline-status,
.account-bind-state,
.account-complete p,
.account-panel .account-ad-slot {
  font-size: 13px;
}

.account-ai-summary-grid {
  gap: 1px;
  border-radius: 14px;
}

.account-ai-stat {
  padding: 16px;
}

.account-ai-stat > span,
.account-ai-stat > small,
.account-ai-series-head span,
.account-ai-events-head span,
.account-ai-event span,
.account-ai-event em {
  font-size: 13px;
}

/* Content hub, readers, tutorials and feature pages -------------------- */

.content-page,
.seo-article-shell {
  width: min(calc(100% - var(--site-gutter) * 2), var(--site-max));
}

.knowledge-shell,
.feature-shell,
.tutorial-detail-shell {
  width: min(calc(100% - var(--site-gutter) * 2), var(--site-wide));
  gap: 22px;
  padding-top: 36px;
  padding-bottom: 96px;
}

.knowledge-sidebar,
.feature-sidebar,
.tutorial-detail-sidebar,
.reader-side section {
  border-radius: 14px;
  box-shadow: var(--site-soft-shadow);
}

.sidebar-head,
.feature-sidebar-head,
.tutorial-detail-sidebar-head {
  padding: 18px;
}

.sidebar-head strong,
.feature-sidebar-head strong,
.tutorial-detail-sidebar-head strong {
  font-size: 15px;
}

.sidebar-head small,
.feature-sidebar-head small,
.tutorial-detail-sidebar-head small,
.sidebar-label,
.feature-search span,
.tutorial-detail-search span {
  font-size: 12px;
}

.sidebar-link,
.sidebar-filter,
.feature-nav-link,
.tutorial-detail-nav-link {
  min-height: 40px;
  font-size: 13px;
}

.sidebar-cta {
  padding: 16px;
  border-radius: 11px;
}

.sidebar-cta strong,
.sidebar-cta span,
.sidebar-cta a {
  font-size: 13px;
}

.knowledge-head,
.feature-head,
.tutorial-detail-head {
  padding: 14px 0 24px;
}

.knowledge-head h1,
.feature-head h1,
.tutorial-detail-head h1,
.content-hero h1,
.reader h1,
.seo-article-hero h1 {
  font-family: var(--font-family-display);
  font-weight: 850;
  letter-spacing: -.065em;
}

.knowledge-head h1 {
  font-size: clamp(42px, 5vw, 68px);
}

.knowledge-head p,
.feature-subtitle,
.tutorial-detail-subtitle,
.content-hero p {
  font-size: 16px;
  line-height: 1.8;
}

.knowledge-stats,
.feature-head-meta,
.tutorial-detail-meta {
  font-size: 13px;
}

.content-toolbar {
  gap: 10px;
  padding: 18px 0;
}

.content-search,
.content-sort,
.content-view-toggle,
.feature-search input,
.tutorial-detail-search input {
  min-height: 44px;
  border-radius: 9px;
  font-size: 14px;
}

.content-list-meta {
  font-size: 13px;
}

.article-row {
  min-height: 180px;
  border-radius: 14px;
  box-shadow: var(--site-soft-shadow);
}

.article-row figure {
  min-height: 180px;
}

.article-row-body {
  padding: 20px 22px;
}

.article-row-meta,
.article-row-footer small,
.article-row-footer a {
  font-size: 13px;
}

.article-row h2 {
  font-size: 21px;
}

.article-row p {
  font-size: 14px;
  line-height: 1.75;
}

.article-row-footer {
  padding-top: 14px;
}

.topic-strip a {
  padding: 8px 12px;
  font-size: 13px;
}

.reader {
  padding: clamp(24px, 4vw, 52px);
  border-radius: 16px;
  box-shadow: var(--site-card-shadow);
}

.reader h1 {
  max-width: 16ch;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
}

.reader-lede,
.reader-block p,
.reader-block ol {
  font-size: 16px;
  line-height: 1.85;
}

.reader-blocks,
.tutorial-mini-grid {
  gap: 14px;
}

.reader-block,
.tutorial-mini,
.tutorial-card-compact,
.feature-panel,
.feature-shot-panel,
.feature-hero-card {
  border-radius: 13px;
  box-shadow: var(--site-soft-shadow);
}

.reader-block h2,
.tutorial-mini h3,
.feature-panel h2 {
  font-size: 18px;
}

.tutorial-card-compact {
  padding: clamp(24px, 4vw, 36px);
}

.tutorial-card-compact h2,
.feature-head h1,
.tutorial-detail-head h1 {
  font-size: clamp(34px, 4.8vw, 60px);
}

.tutorial-card-compact .lead,
.tutorial-mini p,
.tutorial-mini ol,
.feature-problem,
.feature-hero-copy p,
.feature-shot-panel p,
.feature-steps-panel li,
.feature-check p {
  font-size: 14px;
  line-height: 1.75;
}

.feature-hero-card {
  padding: 18px;
  border-radius: 16px;
  box-shadow: var(--site-card-shadow);
}

.feature-hero-copy h2,
.feature-shot-panel h2 {
  font-size: 25px;
}

.feature-primary-action {
  padding: 0 15px;
}

.feature-panel,
.feature-shot-panel {
  padding: 20px;
}

.feature-duration {
  font-size: 12px;
}

.content-footer {
  width: min(calc(100% - var(--site-gutter) * 2), var(--site-wide));
  padding: 30px 0 48px;
  font-size: 13px;
}

.seo-article-shell {
  padding-top: 36px;
  padding-bottom: 96px;
}

.seo-article {
  padding: clamp(26px, 5vw, 64px);
  border-radius: 18px;
  box-shadow: var(--site-card-shadow);
}

.seo-article-hero h1 {
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.02;
}

.seo-article-description,
.seo-direct-answer p,
.seo-article-section p {
  font-size: 17px;
  line-height: 1.9;
}

/* Legal pages ------------------------------------------------------------ */

.legal-page {
  width: min(calc(100% - var(--site-gutter) * 2), 860px);
  padding-top: clamp(64px, 8vw, 108px);
  padding-bottom: 96px;
}

.legal-page h1 {
  margin: 0;
  font-family: var(--font-family-display);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 850;
  letter-spacing: -.065em;
  line-height: 1.04;
}

.legal-page .legal-updated {
  margin-top: 14px;
  font-size: 13px;
}

.legal-page h2 {
  margin-top: 44px;
  font-family: var(--font-family-display);
  font-size: 26px;
  font-weight: 850;
  letter-spacing: -.035em;
}

.legal-page p,
.legal-page li {
  color: var(--app-muted);
  font-size: 16px;
  line-height: 1.9;
}

.legal-page ul {
  padding-left: 22px;
}

.legal-page a {
  color: var(--app-accent);
  font-weight: 750;
}

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

@media (max-width: 1080px) {
  .site-header,
  .content-topbar {
    gap: 14px;
  }

  .site-header nav,
  .content-topbar nav {
    display: none;
  }

  .header-account {
    display: none;
  }

  .header-tools,
  .content-top-actions {
    margin-left: auto;
  }

  .header-account,
  .header-online,
  .header-download {
    padding: 0 11px;
    font-size: 12px;
  }

  .spotlight-hero {
    gap: 34px;
  }

  .spotlight-feature-card,
  .spotlight-feature-card.is-wide {
    grid-column: span 6;
  }

  .spotlight-step-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .commerce-plan-grid,
  .commerce-plan-grid.is-featured,
  .commerce-plan-grid.is-points,
  .commerce-plan-grid.is-time,
  .commerce-more-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header,
  .content-topbar {
    top: 8px;
    margin-top: 8px;
    border-radius: 14px;
  }

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

  .site-header nav,
  .content-topbar nav {
    display: none;
  }

  .header-tools,
  .content-top-actions {
    margin-left: auto;
  }

  .theme-switcher {
    display: none;
  }

  .landing-campaign {
    grid-template-columns: 1fr auto;
  }

  .landing-campaign-price {
    justify-content: end;
  }

  .landing-campaign-actions {
    grid-column: 1 / -1;
    justify-content: start;
  }

  .spotlight-hero {
    grid-template-columns: 1fr;
    padding-top: 62px;
  }

  .spotlight-hero-copy {
    max-width: 720px;
  }

  .spotlight-hero h1 {
    max-width: 14ch;
  }

  .spotlight-hero-board {
    max-width: 760px;
  }

  .spotlight-pwa-band,
  .spotlight-section-head,
  .release-section-head {
    display: block;
  }

  .spotlight-pwa-band-actions {
    justify-content: start;
    margin-top: 18px;
  }

  .spotlight-section-head > p,
  .release-section-head > p {
    max-width: 62ch;
    margin-top: 12px;
    text-align: left;
  }

  .spotlight-reel-grid,
  .spotlight-theme-grid,
  .spotlight-convert-grid,
  .spotlight-install-secondary,
  .commerce-promise {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spotlight-theme-principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .latest-release {
    grid-template-columns: 1fr;
  }

  .latest-release.is-loading {
    grid-template-columns: 1fr;
  }

  .download-action {
    width: max-content;
  }

  .model-grid,
  .commerce-plan-grid,
  .commerce-plan-grid.is-featured,
  .commerce-plan-grid.is-points,
  .commerce-plan-grid.is-time,
  .commerce-more-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-center-guest {
    grid-template-columns: 1fr;
  }

  .knowledge-shell,
  .feature-shell,
  .tutorial-detail-shell {
    width: min(calc(100% - 24px), 720px);
  }

  .knowledge-sidebar,
  .feature-sidebar,
  .tutorial-detail-sidebar {
    position: static;
    max-height: 340px;
  }

  .knowledge-shell,
  .feature-shell,
  .tutorial-detail-shell {
    grid-template-columns: 1fr;
  }

  .reader-layout {
    grid-template-columns: 1fr;
  }

  .reader-side {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .site-header,
  .content-topbar {
    width: min(calc(100% - 16px), var(--site-wide));
    min-height: 62px;
    padding: 8px 10px;
  }

  .brand-mark,
  .brand-mark-img {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    border-radius: 9px;
  }

  .brand > span:not(.brand-mark) {
    font-size: 15px;
  }

  .brand small {
    display: none;
  }

  .header-account,
  .header-online,
  .header-download {
    min-height: 38px;
    padding: 0 9px;
    font-size: 12px;
  }

  .header-download {
    width: auto;
    height: auto;
  }

  .header-download::after {
    content: none;
  }

  .header-account {
    display: none;
  }

  .landing-campaign {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 18px;
    padding: 15px;
  }

  .landing-campaign-copy,
  .landing-campaign-price,
  .landing-campaign-actions {
    align-items: start;
    justify-content: start;
  }

  .landing-campaign-copy {
    display: grid;
  }

  .landing-campaign-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .landing-campaign-actions a {
    width: 100%;
    text-align: center;
  }

  .spotlight-hero h1,
  .release-page > h1,
  .membership-page-intro h1,
  .commerce-hero h1,
  .account-center-hero h1 {
    max-width: none;
    font-size: clamp(24px, 9vw, 48px);
  }

  .membership-page-intro h1,
  .commerce-hero h1,
  .account-center-hero h1,
  .membership-checkout-copy h2,
  .membership-space h2,
  .commerce-how h2,
  .commerce-feature-matrix h2,
  .commerce-faq h2 {
    white-space: normal;
    text-wrap: pretty;
  }

  .spotlight-hero-lede,
  .release-lede,
  .membership-page-intro > p:last-of-type,
  .commerce-hero > p:not(.eyebrow),
  .account-center-hero > p {
    font-size: 16px;
  }

  .spotlight-actions,
  .spotlight-actions .button,
  .membership-intro-actions,
  .membership-intro-actions .button {
    width: 100%;
  }

  .spotlight-actions .button,
  .membership-intro-actions .button {
    display: flex;
  }

  .spotlight-board-image,
  .spotlight-board-image img {
    min-height: 230px;
  }

  .spotlight-callout {
    padding: 5px 7px;
    font-size: 12px;
  }

  .spotlight-feature-grid,
  .spotlight-reel-grid,
  .spotlight-theme-grid,
  .spotlight-step-grid,
  .spotlight-convert-grid,
  .spotlight-install-secondary,
  .spotlight-theme-principles,
  .commerce-promise,
  .model-grid,
  .commerce-plan-grid,
  .commerce-plan-grid.is-featured,
  .commerce-plan-grid.is-points,
  .commerce-plan-grid.is-time,
  .commerce-more-grid {
    grid-template-columns: 1fr;
  }

  .spotlight-feature-card,
  .spotlight-feature-card.is-wide {
    grid-column: auto;
  }

  .spotlight-feature-card {
    min-height: 0;
  }

  .spotlight-section,
  .spotlight-pwa-band,
  .spotlight-install,
  .membership-checkout,
  .commerce-catalog,
  .commerce-how,
  .commerce-feature-matrix,
  .commerce-faq {
    padding-right: 16px;
    padding-left: 16px;
  }

  .release-page,
  .membership-page,
  .account-center,
  .legal-page {
    padding-top: 56px;
    padding-bottom: 70px;
  }

  .latest-release,
  .download-center-summary,
  .model-card,
  .account-center-auth,
  .account-panel,
  .reader {
    padding: 20px 17px;
  }

  .download-action {
    width: 100%;
  }

  .download-file-row {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .download-file-row a {
    grid-column: 2;
  }

  .reader-side,
  .reader-blocks {
    grid-template-columns: 1fr;
  }

  .reader h1,
  .knowledge-head h1,
  .feature-head h1,
  .tutorial-detail-head h1,
  .content-hero h1,
  .seo-article-hero h1,
  .legal-page h1 {
    font-size: clamp(38px, 12vw, 56px);
  }

  .content-toolbar {
    flex-wrap: wrap;
  }

  .content-search {
    flex-basis: 100%;
  }

  .article-row {
    grid-template-columns: 1fr;
  }

  .article-row figure {
    min-height: 170px;
  }

  .account-account-cols,
  .account-tools-grid,
  .account-form-grid-3 {
    grid-template-columns: 1fr;
  }

  .account-ai-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* The mobile tutorial rail is an off-canvas control surface. Keep it out of
   the document flow so the primary content starts at the top on narrow screens.
   This lives in an external stylesheet because the public CSP blocks inline
   style blocks. */
@media (max-width: 760px) {
  body.content-app .knowledge-sidebar {
    position: fixed;
    z-index: 20;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(86vw, 300px);
    max-height: none;
    border-radius: 0 12px 12px 0;
    transform: translateX(-105%);
    transition: transform .2s ease;
  }

  body.content-app.sidebar-open .knowledge-sidebar {
    transform: translateX(0);
  }
}

.tutorial-image {
  border-radius: 14px;
  -webkit-mask-image: linear-gradient(180deg, var(--app-bg) 76%, transparent 100%);
  mask-image: linear-gradient(180deg, var(--app-bg) 76%, transparent 100%);
}
