/* Self-hosted open fonts: no third-party requests while reading. */
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/preview-assets/fonts/dm-sans-400.ttf") format("truetype"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/preview-assets/fonts/dm-sans-600.ttf") format("truetype"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/preview-assets/fonts/dm-sans-700.ttf") format("truetype"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("/preview-assets/fonts/barlow-condensed-800.ttf") format("truetype"); }

:root {
  color-scheme: light;
  /* Website typography inspired by the ShapeVision training carousels. */
  --font-body: "DM Sans", sans-serif;
  --font-display: "DM Sans", sans-serif;
  --font-impact: "Barlow Condensed", sans-serif;
  --font-weight-impact: 800;
  --font-weight-display: 600;
  --font-weight-display-strong: 600;

  /* Public website palette; native application tokens stay independent. */
  --color-canvas: #ffffff;
  --color-canvas-elevated: #f5f5f5;
  --color-surface: #fafafa;
  --color-surface-strong: #ffffff;
  --color-surface-muted: #eeeeee;
  --color-surface-dark: #2a2a2f;
  --color-surface-dark-soft: #35353b;
  --color-line: rgba(14, 14, 17, 0.1);
  --color-line-strong: rgba(14, 14, 17, 0.18);
  --color-text: #262626;
  --color-text-strong: #171717;
  --color-text-muted: #5e5d58;
  --color-text-soft: #5e5d58;
  --color-accent: #10b981;
  --color-accent-strong: #10b981;
  --color-accent-soft: rgba(16, 185, 129, 0.1);
  --color-accent-pale: #f5f5f5;
  --color-on-dark: #ffffff;
  --color-danger: #a43e35;
  --color-link: var(--color-text-strong);
  --color-link-hover: var(--color-text-strong);
  --color-link-underline: rgba(16, 185, 129, 0.36);
  --color-link-underline-hover: var(--color-accent-strong);

  /* Semantic aliases retained for existing components */
  --bg: var(--color-canvas);
  --bg-elevated: var(--color-canvas-elevated);
  --surface: var(--color-surface);
  --surface-strong: var(--color-surface-strong);
  --surface-dark: var(--color-surface-dark);
  --surface-dark-soft: var(--color-surface-dark-soft);
  --line: var(--color-line);
  --line-strong: var(--color-line-strong);
  --text: var(--color-text);
  --text-strong: var(--color-text-strong);
  --text-muted: var(--color-text-muted);
  --text-soft: var(--color-text-soft);
  --accent: var(--color-accent);
  --accent-strong: var(--color-accent-strong);
  --accent-soft: var(--color-accent-soft);
  --navy: var(--color-surface-dark);
  --navy-soft: var(--color-surface-muted);
  --danger-soft: color-mix(in srgb, var(--color-danger) 10%, transparent);
  --hero-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  --radius-xs: 12px;
  --radius-sm: 16px;
  --radius-md: 20px;
  --radius-lg: 24px;
  --radius-button: 12px;
  --content-width: min(1160px, calc(100vw - 32px));
  --content-tight: min(860px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-title {
  font-family: var(--font-display);
}

h1,
h2,
.display-title {
  font-weight: var(--font-weight-display);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

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

.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.skip-link:focus-visible {
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 14px;
  overflow: visible;
  clip-path: none;
  border-radius: 12px;
  background: var(--surface-dark);
  color: var(--color-on-dark);
}

.site-body {
  min-height: 100vh;
}

[data-site-header] {
  min-height: 77px;
}

.page-shell {
  position: relative;
  padding: 20px 0 120px;
}

.shell {
  width: var(--content-width);
  margin: 0 auto;
}

.shell--tight {
  width: var(--content-tight);
}

.surface {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(14px);
}

.section-stack {
  display: grid;
  gap: 22px;
}

.site-header-wrap {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 16px 0 0;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 18px;
  border-radius: 999px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--navy), #324052);
  color: #f6fbff;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--font-display);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: var(--font-weight-display);
  letter-spacing: 0.02em;
  color: var(--text-strong);
}

.brand-subtitle {
  color: var(--text-soft);
  font-size: 0.82rem;
  font-family: var(--font-body);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.site-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: var(--font-weight-display);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    color 180ms ease;
}

.site-nav-link:hover,
.site-nav-link:focus-visible,
.button:hover,
.button:focus-visible,
.card-link:hover,
.card-link:focus-visible {
  transform: translateY(-1px);
}

.site-nav-link:hover,
.site-nav-link:focus-visible {
  background: rgba(255, 255, 255, 0.78);
  border-color: var(--line);
  color: var(--text-strong);
}

.site-nav-link[aria-current="page"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #f8fbff;
}

.header-cta {
  display: inline-flex;
}

.page-root,
.dynamic-page {
  display: grid;
  gap: 24px;
}

.hero {
  display: grid;
  gap: 24px;
  padding: clamp(26px, 5vw, 44px);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero--split {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: stretch;
}

.hero-panel {
  display: grid;
  gap: 20px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--accent-strong);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: var(--font-weight-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}

.hero-title,
.section-title,
.card-title,
.cta-title,
.legal-title,
.not-found h1 {
  margin: 0;
  color: var(--text-strong);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.hero-title {
  max-width: 11ch;
  font-size: clamp(2.7rem, 6vw, 5.9rem);
}

.hero-copy,
.section-intro,
.card-copy,
.cta-copy,
.meta-copy,
.download-note,
.legal-copy,
.not-found-copy {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.72;
  font-size: 1rem;
}

.hero-actions,
.button-row,
.chip-row,
.meta-row,
.footer-chip-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text-strong);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: var(--font-weight-display);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.button--primary {
  background: var(--navy);
  border-color: var(--navy);
  color: #f7fbff;
}

.button--primary:hover,
.button--primary:focus-visible {
  background: #2a3340;
  border-color: #2a3340;
}

.button--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #f6fffb;
}

.button--accent:hover,
.button--accent:focus-visible {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.button--ghost {
  background: transparent;
}

.button--dark-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: #edf4fb;
}

.hero-side {
  display: grid;
  gap: 18px;
  align-content: stretch;
}

.stat-grid,
.feature-grid,
.card-grid,
.related-grid,
.footer-grid,
.summary-grid {
  display: grid;
  gap: 16px;
}

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

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

.feature-grid,
.card-grid,
.related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card,
.card,
.related-card,
.cta-band,
.section-panel,
.hero-side-card,
.download-card,
.blog-empty,
.legal-panel,
.not-found,
.download-bar-inner {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  box-shadow: var(--card-shadow);
}

.stat-card,
.card,
.related-card,
.hero-side-card,
.download-card,
.section-panel,
.blog-empty,
.legal-panel {
  padding: 22px;
}

.stat-label,
.meta-label,
.label,
.footer-title,
.legal-meta {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: var(--font-weight-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.stat-value {
  display: block;
  margin: 10px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--text-strong);
}

.stat-copy {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.96rem;
}

.section {
  display: grid;
  gap: 18px;
}

.section-heading {
  display: grid;
  gap: 10px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.section-title--compact {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
}

.section-intro {
  max-width: 66ch;
}

.card {
  display: grid;
  gap: 14px;
}

.card-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 800;
}

.card-title {
  font-size: 1.8rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: var(--color-link);
  text-decoration-color: var(--color-link-underline);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 800;
}

.bullet-list,
.check-list,
.step-list,
.footer-links,
.legal-list,
.document ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.bullet-list li,
.check-list li,
.step-list li,
.legal-list li,
.document li {
  color: var(--text-muted);
  line-height: 1.66;
}

.check-list {
  padding-left: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-strong);
  font-family: var(--font-body);
  font-weight: 900;
}

.step-list {
  padding-left: 0;
  list-style: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.step-item {
  display: grid;
  gap: 10px;
  padding: 20px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--navy);
  color: #f8fbff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
}

.step-title,
.faq-question,
.related-title,
.download-title,
.footer-title {
  margin: 0;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-weight: var(--font-weight-display);
}

.step-title {
  font-size: 1.14rem;
}

.step-copy,
.faq-answer,
.related-copy,
.download-copy,
.footer-link,
.article-section-copy,
.topic-pill {
  color: var(--text-muted);
  line-height: 1.66;
}

.cta-band {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 34px);
  background: rgba(255, 255, 255, 0.96);
}

.seo-page .cta-band {
  border-color: var(--surface-dark);
  background: var(--surface-dark);
  box-shadow: none;
}

.cta-band--dark {
  background: #202734;
  border-color: rgba(255, 255, 255, 0.08);
}

.cta-band--dark .cta-title,
.cta-band--dark .cta-copy,
.cta-band--dark .stat-label,
.cta-band--dark .footer-title {
  color: #edf4fb;
}

.cta-band--dark .cta-copy {
  color: rgba(237, 244, 251, 0.76);
}

.cta-title {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
}

.chip--dark {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(237, 244, 251, 0.84);
}

.feature-rail {
  display: grid;
  gap: 12px;
}

.feature-rail-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
}

.feature-rail-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-family: var(--font-display);
  font-weight: 800;
}

.feature-rail-content {
  display: grid;
  gap: 6px;
}

.feature-rail-title,
.article-section-title {
  margin: 0;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: var(--font-weight-display);
}

.feature-rail-copy,
.article-section-copy {
  margin: 0;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
}

.faq-question {
  font-size: 1.08rem;
  margin-bottom: 10px;
}

.faq-answer {
  margin: 0;
}

.meta-row {
  gap: 10px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 700;
}

.article-layout {
  display: grid;
  gap: 24px;
}

.article-section-list {
  display: grid;
  gap: 22px;
}

.article-section {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.article-section-copy + .article-section-copy {
  margin-top: -2px;
}

.article-breadcrumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--text-soft);
  font-family: var(--font-body);
  font-size: 0.88rem;
}

.article-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.article-breadcrumbs a:hover,
.article-breadcrumbs a:focus-visible {
  color: var(--text-strong);
}

.related-grid {
  align-items: stretch;
}

.related-card {
  display: grid;
  gap: 10px;
}

.related-title {
  font-size: 1.22rem;
}

.related-copy {
  margin: 0;
}

.related-card .chip-row {
  gap: 8px;
}

.topic-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.topic-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.66);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
}

.blog-empty {
  display: grid;
  gap: 14px;
}

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

.download-card {
  display: grid;
  gap: 12px;
}

.download-title {
  font-size: 1.42rem;
}

.download-note {
  font-size: 0.94rem;
}

.download-page {
  display: grid;
  gap: clamp(52px, 8vw, 92px);
}

.download-hero-panel {
  min-height: min(620px, 72vh);
  padding: clamp(46px, 8vw, 96px) clamp(24px, 6vw, 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--surface-dark);
  color: var(--color-on-dark);
}

.download-hero-panel .eyebrow {
  color: var(--accent);
}

.download-hero-panel h1 {
  max-width: 12ch;
  margin: 22px 0 20px;
  color: inherit;
  font-size: clamp(3.2rem, 7.2vw, 6.8rem);
  font-weight: var(--font-weight-display);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.download-hero-copy {
  max-width: 62ch;
  margin: 0;
  color: #b8b8bd;
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  line-height: 1.72;
}

.store-badge-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.store-badge {
  width: 184px;
  min-height: 58px;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  border: 1px solid rgba(248, 247, 243, 0.22);
  border-radius: 12px;
  background: #17171a;
  color: var(--color-on-dark);
  cursor: not-allowed;
  opacity: 0.58;
  text-align: left;
}

.store-badge-copy {
  display: grid;
  justify-items: start;
}

.store-badge-copy > span {
  font-size: 0.64rem;
  font-weight: 650;
  line-height: 1.1;
}

.store-badge strong {
  font-size: 1.18rem;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.store-badge > .button-store-icon {
  width: 1.65rem;
  height: 1.65rem;
}

.store-badge--active {
  border-color: rgba(248, 247, 243, 0.7);
  background: #050506;
  cursor: pointer;
  opacity: 1;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.store-badge--active:hover,
.store-badge--active:focus-visible {
  border-color: var(--color-on-dark);
  background: #242428;
  color: var(--color-on-dark);
  transform: translateY(-2px);
}

.download-availability {
  margin: 16px 0 0;
  color: #85858c;
  font-size: 0.78rem;
}

.download-feature-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(36px, 8vw, 110px);
  align-items: start;
}

.download-feature-heading {
  max-width: 13ch;
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  font-weight: var(--font-weight-display);
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.download-feature-list {
  border-top: 1px solid var(--line-strong);
}

.download-feature {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 18px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.download-feature > span {
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 820;
}

.download-feature h2,
.download-feature p {
  margin: 0;
}

.download-feature h2 {
  color: var(--text-strong);
  font-size: 1.26rem;
  letter-spacing: -0.03em;
}

.download-feature p {
  margin-top: 8px;
  color: var(--text-muted);
  line-height: 1.65;
}

.download-support {
  min-height: 92px;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  color: var(--text-muted);
}

.download-support a {
  color: var(--color-link);
  font-weight: 780;
  text-decoration-color: var(--color-link-underline);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.site-footer-wrap {
  padding: 0 0 36px;
}

.site-footer {
  padding: 30px;
  border-radius: var(--radius-lg);
}

.footer-grid {
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  align-items: start;
}

.footer-column {
  display: grid;
  gap: 14px;
}

.footer-copy {
  margin: 0;
  max-width: 34ch;
  color: var(--text-muted);
  line-height: 1.72;
}

.footer-links {
  padding-left: 0;
  list-style: none;
}

.footer-link {
  text-decoration: none;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--text-strong);
}

.footer-footnote {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.download-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 16px;
  z-index: 30;
  padding: 0 16px;
  pointer-events: none;
}

.download-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 16px 18px;
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.download-bar-copy {
  display: grid;
  gap: 4px;
}

.download-bar-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: var(--font-weight-display);
  color: var(--text-strong);
}

.download-bar-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.legal-page {
  padding-top: 24px;
}

.legal-header {
  display: grid;
  gap: 16px;
}

.legal-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.legal-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
}

.legal-nav-link[aria-current="page"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #f8fbff;
}

.legal-panel {
  padding: clamp(26px, 5vw, 38px);
}

.legal-title {
  font-size: clamp(2.4rem, 4.8vw, 4rem);
}

.document {
  display: grid;
  gap: 18px;
  padding: clamp(26px, 5vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  box-shadow: var(--card-shadow);
}

.document .section {
  gap: 12px;
}

.document h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: 1.24rem;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.document p,
.document li {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.76;
  font-size: 0.98rem;
}

.support-intro {
  max-width: 64ch;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.support-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface-strong) 92%, var(--accent-soft));
}

.support-card h2,
.support-card h3,
.support-card p {
  margin: 0;
}

.support-card h2,
.support-card h3 {
  color: var(--text-strong);
  font-family: var(--font-display);
  letter-spacing: -0.025em;
}

.support-card p,
.support-card li {
  color: var(--text-muted);
  line-height: 1.65;
}

.support-card a,
.seo-page .article-body a:not(.button),
.document a:not(.button) {
  color: var(--color-link);
  font-weight: var(--font-weight-display);
  text-decoration-color: var(--color-link-underline);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.card-link:hover,
.card-link:focus-visible,
.download-support a:hover,
.download-support a:focus-visible,
.support-card a:hover,
.support-card a:focus-visible,
.seo-page .article-body a:not(.button):hover,
.seo-page .article-body a:not(.button):focus-visible,
.document a:not(.button):hover,
.document a:not(.button):focus-visible {
  color: var(--color-link-hover);
  text-decoration-color: var(--color-link-underline-hover);
}

.support-card--store {
  background: var(--surface-dark);
}

.support-card--store h2,
.support-card--store p,
.support-card--store a,
.support-card--store .eyebrow {
  color: #f4f7f5;
}

.support-card--store p {
  opacity: 0.78;
}

.support-card--store a {
  text-decoration-color: rgba(248, 247, 243, 0.42);
}

.support-card--store a:hover,
.support-card--store a:focus-visible {
  color: #f4f7f5;
  text-decoration-color: rgba(248, 247, 243, 0.72);
}

.language-menu {
  position: relative;
  width: max-content;
  z-index: 20;
}

.language-menu summary {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--text-strong);
  box-shadow: var(--card-shadow);
  cursor: pointer;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 780;
}

.language-menu summary::-webkit-details-marker {
  display: none;
}

.language-menu summary::after {
  content: "⌄";
  color: var(--accent-strong);
  font-size: 1rem;
  transform: translateY(-2px);
  transition: transform 180ms ease-out;
}

.language-menu[open] summary::after {
  transform: translateY(2px) rotate(180deg);
}

.language-menu summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 30%, transparent);
  outline-offset: 3px;
}

.language-menu-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: grid;
  min-width: 190px;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-strong);
  box-shadow: var(--hero-shadow);
}

.language-menu-list a {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 740;
  text-decoration: none;
}

.language-menu-list a:hover,
.language-menu-list a:focus-visible,
.language-menu-list a[aria-current="page"] {
  background: var(--bg-elevated);
  color: var(--text-strong);
}

.support-index {
  counter-reset: support-category;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 24px;
  margin-top: 26px;
  border-top: 1px solid rgba(244, 247, 245, 0.2);
}

.support-index a {
  counter-increment: support-category;
  display: flex;
  min-width: 0;
  min-height: 52px;
  align-items: center;
  gap: 12px;
  padding: 0;
  border-bottom: 1px solid rgba(244, 247, 245, 0.2);
  color: rgba(244, 247, 245, 0.72);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
  transition: color 220ms cubic-bezier(0.16, 1, 0.3, 1), transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.support-index a::before {
  content: counter(support-category, decimal-leading-zero);
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 0.64rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.support-index a:hover,
.support-index a:focus-visible {
  color: #f4f7f5;
  transform: translateX(4px);
}

.support-section {
  scroll-margin-top: 24px;
}

.faq-stack {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.faq-disclosure {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.faq-disclosure summary,
.faq-disclosure__trigger {
  position: relative;
  width: 100%;
  min-height: 64px;
  display: block;
  border: 0;
  background: transparent;
  cursor: pointer;
  list-style: none;
  padding: 19px 44px 19px 0;
  color: var(--text-strong);
  font-family: var(--font-body);
  font-weight: 780;
  line-height: 1.35;
  text-align: left;
}

.faq-disclosure summary::-webkit-details-marker,
.faq-disclosure__trigger::-webkit-details-marker {
  display: none;
}

.faq-disclosure summary::after,
.faq-disclosure__trigger::after {
  width: 9px;
  height: 9px;
  content: "";
  position: absolute;
  top: 50%;
  right: 4px;
  border-right: 1.5px solid var(--accent-strong);
  border-bottom: 1.5px solid var(--accent-strong);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-disclosure[open] summary::after,
.faq-disclosure--enhanced[data-open="true"] .faq-disclosure__trigger::after {
  transform: translateY(-25%) rotate(225deg);
}

.faq-disclosure:not(.faq-disclosure--enhanced) p,
.faq-disclosure:not(.faq-disclosure--enhanced) ul {
  margin: 0;
  padding: 0 44px 22px 0;
}

.faq-disclosure:not(.faq-disclosure--enhanced) ul {
  padding-left: 38px;
}

.faq-disclosure__panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 360ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 180ms cubic-bezier(0.7, 0, 0.84, 0);
}

.faq-disclosure__panel-inner {
  min-height: 0;
  overflow: hidden;
}

.faq-disclosure__content {
  padding: 0 44px 22px 0;
  opacity: 0;
  transform: translate3d(0, -10px, 0);
  transition:
    opacity 220ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-disclosure__content p,
.faq-disclosure__content ul {
  margin: 0;
  padding: 0;
}

.faq-disclosure__content ul {
  padding-left: 20px;
}

.faq-disclosure--enhanced[data-open="true"] .faq-disclosure__panel {
  grid-template-rows: 1fr;
  opacity: 1;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-disclosure--enhanced[data-open="true"] .faq-disclosure__content {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 70ms;
}

.support-callout {
  padding: 22px;
  border-radius: var(--radius-sm);
  background: var(--surface-dark);
  color: #f4f7f5;
}

.support-callout h2,
.support-callout p {
  color: inherit;
}

.support-callout p {
  opacity: 0.82;
}

.support-resources {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 24px;
  align-items: start;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
}

.support-resources h2,
.support-resources p {
  margin: 0;
}

.support-resource-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.support-resource-links a {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text-strong);
  font-weight: 760;
  text-decoration: none;
}

.support-resource-links a::after {
  content: "↗";
  color: var(--text-soft);
}

.not-found {
  width: min(760px, 100%);
  margin: 12vh auto 0;
  padding: clamp(30px, 6vw, 44px);
  display: grid;
  gap: 18px;
}

.not-found h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.not-found-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.page-note {
  margin: 0;
  color: var(--text-soft);
  font-family: var(--font-body);
  font-size: 0.92rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1040px) {
  .hero--split,
  .footer-grid,
  .feature-grid,
  .card-grid,
  .related-grid,
  .download-grid,
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-grid,
  .step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header {
    border-radius: var(--radius-lg);
    align-items: flex-start;
  }

  .site-header,
  .hero--split,
  .feature-grid,
  .card-grid,
  .related-grid,
  .footer-grid,
  .download-grid,
  .summary-grid,
  .stat-grid,
  .step-list {
    grid-template-columns: 1fr;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }

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

  .support-resources,
  .support-resource-links {
    grid-template-columns: 1fr;
  }

  .site-header {
    display: grid;
  }

  .header-cta {
    width: 100%;
  }

  .header-cta .button {
    width: 100%;
  }

  .download-bar-inner {
    display: grid;
  }
}

@media (max-width: 560px) {
  .page-shell {
    padding-bottom: 140px;
  }

  .shell,
  .shell--tight {
    width: min(100vw - 20px, 100%);
  }

  .site-header-wrap {
    padding-top: 10px;
  }

  .hero,
  .card,
  .related-card,
  .cta-band,
  .document,
  .legal-panel,
  .stat-card,
  .hero-side-card,
  .download-card,
  .blog-empty,
  .site-footer {
    border-radius: 24px;
  }

  .site-nav,
  .legal-nav,
  .hero-actions,
  .button-row,
  .chip-row,
  .meta-row,
  .not-found-actions {
    gap: 10px;
  }

  .button,
  .site-nav-link,
  .legal-nav-link {
    width: 100%;
  }
}

/* ShapeVision public direction — app-aligned, light and athletic. */
body {
  overflow-x: hidden;
}

.page-shell {
  padding: 44px 0 88px;
}

.page-root,
.dynamic-page {
  gap: 72px;
}

.site-header-wrap {
  padding: 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(18px);
}

.site-header {
  min-height: 76px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand {
  flex: 0 0 auto;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: none;
  object-fit: cover;
  box-shadow: none;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: var(--font-weight-display);
  letter-spacing: -0.03em;
}

.brand-copy,
.brand-subtitle {
  display: none;
}

.site-nav {
  gap: 2px;
  flex-wrap: nowrap;
}

.site-nav-link {
  min-height: 40px;
  padding: 0 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-size: 0.82rem;
  font-weight: var(--font-weight-display);
  white-space: nowrap;
}

.site-nav-link:hover,
.site-nav-link:focus-visible {
  border: 0;
  background: var(--bg-elevated);
  transform: none;
}

.site-nav-link[aria-current="page"] {
  background: transparent;
  color: var(--text-strong);
}

.site-nav-link::after {
  content: "";
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  margin-left: 7px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transform: scale(0.45);
  transition:
    opacity 160ms cubic-bezier(0.25, 1, 0.5, 1),
    transform 160ms cubic-bezier(0.25, 1, 0.5, 1);
}

.site-nav-link:hover::after,
.site-nav-link:focus-visible::after,
.site-nav-link[aria-current="page"]::after {
  opacity: 1;
  transform: scale(1);
}

.site-menu-toggle {
  display: none;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--text-strong);
  font-weight: var(--font-weight-display);
}

.header-cta {
  flex: 0 0 auto;
}

.header-cta .button {
  min-height: 42px;
  border-radius: var(--radius-button);
}

.button {
  border-radius: var(--radius-button);
  font-family: var(--font-body);
}

.button--primary {
  background: var(--surface-dark);
  border-color: var(--surface-dark);
  color: var(--color-on-dark);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: #35353b;
  border-color: #35353b;
}

.button--app-store {
  gap: 8px;
  border-color: var(--surface-dark);
  background: var(--surface-dark);
  color: var(--color-on-dark);
}

.button--app-store:hover,
.button--app-store:focus-visible {
  border-color: var(--surface-dark-soft);
  background: var(--surface-dark-soft);
  color: var(--color-on-dark);
}

.button-store-icon {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
}

.cta-band--dark .button--app-store {
  border-color: rgba(248, 247, 243, 0.34);
}

.button--disabled,
.button--disabled:hover,
.button--disabled:focus-visible {
  border-color: color-mix(in srgb, var(--text-soft) 18%, transparent);
  background: color-mix(in srgb, var(--text-soft) 14%, var(--bg-elevated));
  color: color-mix(in srgb, var(--text-soft) 78%, var(--bg));
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
  transform: none;
}

.button--light {
  background: var(--color-on-dark);
  border-color: var(--color-on-dark);
  color: var(--text-strong);
}

.eyebrow {
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: var(--font-weight-display);
  letter-spacing: 0.16em;
}

.eyebrow::before {
  display: none;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(350px, 0.78fr) minmax(520px, 1.22fr);
  gap: clamp(24px, 4vw, 58px);
  min-height: 740px;
  align-items: stretch;
}

.home-hero-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 42px 0 30px;
}

.home-hero-title {
  max-width: 8.2ch;
  margin: 0 0 22px;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: clamp(4rem, 6.6vw, 6.6rem);
  font-weight: var(--font-weight-display-strong);
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-transform: uppercase;
}

.home-hero-intro {
  max-width: 52ch;
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.72;
}

.home-hero .hero-actions {
  margin-top: 30px;
}

.home-hero-facts {
  display: flex;
  gap: 12px 20px;
  flex-wrap: wrap;
  margin: auto 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.home-hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 650;
}

.home-hero-facts li span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.home-model-stage {
  position: relative;
  min-width: 0;
  min-height: 740px;
  overflow: hidden;
  isolation: isolate;
  background: transparent;
}

.home-model {
  position: absolute;
  z-index: 2;
  inset: 24px 0 40px;
  cursor: grab;
  touch-action: pan-y;
}

.home-model:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: -8px;
}

.home-model.is-interacting {
  cursor: grabbing;
}

.home-model canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.home-muscle-anchor {
  position: absolute;
  z-index: 6;
  width: 13px;
  height: 13px;
  border: 3px solid var(--color-on-dark);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(14, 14, 17, 0.2), 0 6px 18px rgba(16, 185, 129, 0.2);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.home-muscle-bubble {
  position: absolute;
  z-index: 7;
  min-height: 42px;
  max-width: min(250px, calc(100% - 24px));
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(248, 247, 243, 0.14);
  border-radius: 14px;
  background: var(--surface-dark);
  color: var(--color-on-dark);
  box-shadow: 0 18px 42px rgba(14, 14, 17, 0.2);
  pointer-events: none;
}

.home-muscle-bubble[hidden],
.home-muscle-anchor[hidden] {
  display: none;
}

.home-muscle-bubble > span {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.home-muscle-bubble strong {
  color: inherit;
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.35;
}

.home-capabilities,
.home-resources {
  padding: 78px 0;
  border-top: 1px solid var(--line);
}

.home-section-heading {
  display: grid;
  grid-template-columns: 0.5fr 1.5fr;
  gap: 30px;
  align-items: end;
  margin-bottom: 46px;
}

.home-section-heading--solo h2 {
  grid-column: 2;
}

.home-section-heading h2,
.home-flow h2,
.home-final-cta h2 {
  max-width: 14ch;
  margin: 0;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  font-weight: var(--font-weight-display);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.home-capability-list {
  border-top: 1px solid var(--line-strong);
}

.home-capability-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line-strong);
}

.home-capability-index {
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
}

.home-capability-kicker {
  margin: 0 0 6px;
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-capability-title {
  margin: 0;
  color: var(--text-strong);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.home-capability-copy {
  max-width: 700px;
  margin: 8px 0 0;
  color: var(--text-muted);
  line-height: 1.62;
}

.home-text-link,
.home-resource a {
  color: var(--text-strong);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.home-flow {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 62px;
  padding: 68px;
  border-radius: var(--radius-lg);
  background: var(--surface-dark);
  color: var(--color-on-dark);
}

.home-flow .eyebrow {
  color: #9b9ba2;
}

.home-flow h2,
.home-final-cta h2 {
  color: var(--color-on-dark);
}

.home-flow-copy > p:last-child {
  max-width: 43ch;
  margin: 20px 0 0;
  color: #b8b8bd;
  line-height: 1.7;
}

.home-flow-list {
  border-top: 1px solid rgba(248, 247, 243, 0.14);
}

.home-flow-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(248, 247, 243, 0.14);
}

.home-flow-step > span {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
}

.home-flow-step h3 {
  margin: 0;
  color: var(--color-on-dark);
  font-size: 1.08rem;
}

.home-flow-step p {
  margin: 7px 0 0;
  color: #b8b8bd;
  line-height: 1.6;
}

.home-resource-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  gap: 14px;
}

.home-resource {
  min-height: 260px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--bg-elevated);
}

.home-resource:first-child {
  background: var(--surface-dark);
  color: var(--color-on-dark);
}

.home-resource-kicker {
  margin: 0 0 20px;
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-resource:first-child .home-resource-kicker {
  color: var(--accent);
}

.home-resource:first-child a {
  color: var(--color-on-dark);
  text-decoration-color: rgba(248, 247, 243, 0.42);
}

.home-resource h3 {
  max-width: 18ch;
  margin: 0;
  color: var(--text-strong);
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.home-resource:first-child h3 {
  color: var(--color-on-dark);
}

.home-resource > p:not(.home-resource-kicker) {
  margin: 16px 0 22px;
  color: var(--text-muted);
  line-height: 1.65;
}

.home-resource:first-child > p:not(.home-resource-kicker) {
  color: #b8b8bd;
}

.home-resource a {
  margin-top: auto;
}

.home-final-cta {
  min-height: 290px;
  padding: 56px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  border-radius: var(--radius-lg);
  background: var(--surface-dark);
}

.home-final-cta .eyebrow {
  color: var(--color-on-dark);
}

.home-final-cta h2 {
  margin-top: 18px;
}

.site-footer-wrap {
  padding: 0;
  border-top: 1px solid var(--line);
  background: var(--bg-elevated);
}

.site-footer {
  padding: 54px 0 34px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.footer-grid {
  grid-template-columns: 1.45fr repeat(3, 1fr);
  gap: 40px;
}

.footer-brand .brand {
  margin-bottom: 8px;
}

.footer-title {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
}

.footer-link {
  font-size: 0.9rem;
}

.footer-footnote {
  font-size: 0.8rem;
}

@media (max-width: 1040px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr auto auto;
  }

  .site-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    grid-column: 1 / -1;
    padding: 8px 0 16px;
    flex-wrap: wrap;
  }

  .site-nav.is-open {
    display: flex;
  }

  .home-hero {
    grid-template-columns: minmax(310px, 0.88fr) minmax(440px, 1.12fr);
  }

  .home-hero-title {
    font-size: clamp(3.7rem, 7vw, 5rem);
  }
}

@media (max-width: 820px) {
  .page-root,
  .dynamic-page {
    gap: 54px;
  }

  .site-header {
    min-height: 68px;
    grid-template-columns: 1fr auto auto;
    align-items: center;
  }

  .header-cta,
  .header-cta .button {
    width: auto;
  }

  .home-hero {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .home-hero-copy {
    min-height: 570px;
  }

  .home-model-stage {
    min-height: 700px;
  }

  .home-section-heading,
  .home-flow {
    grid-template-columns: 1fr;
  }

  .home-section-heading {
    gap: 16px;
  }

  .home-section-heading--solo h2 {
    grid-column: 1;
  }

  .download-feature-section {
    grid-template-columns: 1fr;
  }

  .home-flow {
    gap: 40px;
    padding: 46px 30px;
  }

  .home-resource-grid {
    grid-template-columns: 1fr;
  }

  .home-resource {
    min-height: 220px;
  }

  .footer-grid {
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 24px;
  }
}

@media (max-width: 620px) {
  .page-shell {
    padding: 28px 0 64px;
  }

  .shell,
  .shell--tight {
    width: min(100vw - 32px, 100%);
  }

  .site-header-wrap {
    padding-top: 0;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .header-cta {
    display: none;
  }

  .site-nav {
    gap: 4px;
  }

  .site-nav-link {
    width: auto;
    flex: 1 1 46%;
    justify-content: flex-start;
    padding: 0 10px;
  }

  .home-hero-copy {
    min-height: 540px;
    padding-top: 34px;
  }

  .home-hero-title {
    max-width: 8.6ch;
    font-size: clamp(3.45rem, 16vw, 4.6rem);
  }

  .home-hero .hero-actions,
  .home-hero .hero-actions .button {
    width: 100%;
  }

  .home-hero-facts {
    margin-top: 42px;
  }

  .home-model-stage {
    min-height: 620px;
  }

  .home-model {
    inset: 24px 0 44px;
  }

  .home-capabilities,
  .home-resources {
    padding: 56px 0;
  }

  .home-section-heading h2,
  .home-flow h2,
  .home-final-cta h2 {
    font-size: clamp(2.55rem, 12vw, 3.4rem);
  }

  .home-capability-row {
    grid-template-columns: 34px 1fr;
    gap: 14px;
  }

  .home-capability-row .home-text-link {
    grid-column: 2;
  }

  .home-flow {
    margin-right: -8px;
    margin-left: -8px;
    border-radius: 24px;
  }

  .home-final-cta {
    min-height: 340px;
    padding: 38px 26px;
    align-items: flex-start;
    flex-direction: column;
  }

  .home-final-cta .button {
    width: 100%;
  }

  .download-hero-panel {
    min-height: 560px;
    border-radius: 24px;
  }

  .store-badge-row,
  .store-badge {
    width: 100%;
  }

  .download-support {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* Clean homepage: one promise, one product showcase, no visual stacking. */
[data-route-key="home"] .page-shell {
  padding-top: 0;
}

[data-route-key="home"] .page-root {
  gap: 0;
}

.home-hero {
  grid-template-columns: minmax(360px, 0.82fr) minmax(500px, 1.18fr);
  gap: clamp(28px, 5vw, 68px);
  min-height: min(760px, calc(100svh - 78px));
  padding: clamp(30px, 5vw, 64px) 0 clamp(76px, 9vw, 112px);
  align-items: start;
}

.home-hero-copy {
  min-height: auto;
  padding: 0;
}

.home-hero-title {
  max-width: 9.6ch;
  margin: 0;
  font-size: clamp(4rem, 6vw, 6.25rem);
  font-weight: var(--font-weight-display);
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-transform: none;
}

.home-hero-intro {
  max-width: 46ch;
  margin-top: 28px;
  font-size: clamp(1rem, 1.25vw, 1.1rem);
  line-height: 1.68;
}

.home-hero .hero-actions {
  margin-top: 30px;
}

.home-model-stage {
  min-height: 690px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-model {
  inset: 8px 0 20px;
}

.home-model-stage::after {
  display: none;
}

.home-product {
  min-width: 0;
  padding: clamp(96px, 11vw, 150px) 0 clamp(92px, 10vw, 136px);
  border-top: 1px solid var(--line);
}

.home-product-heading {
  max-width: 850px;
  margin: 0 auto;
  display: block;
  text-align: center;
}

.home-product-heading .eyebrow {
  justify-content: center;
  margin-bottom: 22px;
}

.home-product-heading h2 {
  max-width: 14ch;
  margin: 0 auto;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.3vw, 5rem);
  font-weight: var(--font-weight-display);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.home-screen-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 32px);
  margin-top: clamp(56px, 7vw, 84px);
}

.home-screen {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.home-screen-frame {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 1206 / 2622;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--color-surface-muted);
}

.home-screen-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 0;
  filter: none;
}

.home-screen-caption {
  min-height: 176px;
  padding: 0 4px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.home-screen-caption p {
  display: flex;
  gap: 12px;
  margin: 0 0 12px;
  color: var(--text-soft);
  font-size: 0.7rem;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-screen-caption p span {
  color: var(--text-soft);
}

.home-screen-caption h3 {
  max-width: none;
  margin: 0;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.72rem);
  font-weight: var(--font-weight-display);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.home-screen-caption a {
  display: inline-block;
  margin-top: auto;
  padding-top: 18px;
  color: var(--color-link);
  font-size: 0.84rem;
  font-weight: 780;
  text-decoration: none;
  transition: color 160ms ease;
}

.home-screen-caption a:hover,
.home-screen-caption a:focus-visible {
  color: var(--color-link-hover);
}

.home-faq {
  display: block;
  padding: clamp(94px, 10vw, 140px) 0;
  border-top: 1px solid var(--line);
}

.home-faq-heading {
  position: static;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.home-faq-heading .eyebrow {
  justify-content: center;
  margin-bottom: 22px;
}

.home-faq-heading h2 {
  max-width: none;
  margin: 0;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 4.8vw, 4.5rem);
  font-weight: var(--font-weight-display);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.home-faq-list {
  width: min(840px, 100%);
  margin: clamp(46px, 6vw, 68px) auto 0;
}

.home-final-cta {
  min-height: 280px;
  margin-bottom: clamp(64px, 8vw, 104px);
  padding: clamp(44px, 6vw, 68px);
  border-radius: var(--radius-lg);
}

.home-final-cta h2 {
  max-width: 15ch;
  font-size: clamp(2.7rem, 4.8vw, 4.5rem);
  font-weight: var(--font-weight-display);
}

@media (max-width: 900px) {
  .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 72px;
  }

  .home-hero-copy {
    max-width: 670px;
  }

  .home-model-stage {
    min-height: 650px;
  }

  .home-screen-grid {
    gap: 16px;
  }
}

@media (max-width: 700px) {
  .home-hero {
    gap: 30px;
    padding: 54px 0 72px;
  }

  .home-hero-title {
    max-width: 9.4ch;
    font-size: clamp(3.2rem, 14.7vw, 4.4rem);
  }

  .home-hero-intro {
    margin-top: 24px;
  }

  .home-model-stage {
    min-height: 540px;
  }

  .home-product {
    padding: 78px 0 88px;
  }

  .home-product-heading h2,
  .home-faq-heading h2 {
    font-size: clamp(2.7rem, 12vw, 3.55rem);
  }

  .home-screen-grid {
    grid-template-columns: repeat(4, 82vw);
    gap: 18px;
    margin-inline: 0;
    padding: 0 0 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .home-screen-grid::-webkit-scrollbar {
    display: none;
  }

  .home-screen {
    scroll-snap-align: center;
  }

  .home-screen-caption {
    min-height: 168px;
  }

  .home-screen-frame {
    border-radius: 24px;
  }

  .home-faq {
    padding: 80px 0;
  }

  .home-final-cta {
    min-height: 330px;
    padding: 38px 26px;
    border-radius: var(--radius-lg);
  }
}

/* QR download handoff: compact, immediate, and kept inside the existing hero. */
.home-download-qr {
  width: max-content;
  max-width: 100%;
  margin-top: 14px;
  padding: 9px 14px 9px 9px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(16, 24, 40, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--card-shadow);
}

.home-download-qr > div {
  padding: 5px;
  display: grid;
  border-radius: 9px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(16, 24, 40, 0.08);
}

.home-download-qr img {
  width: 68px;
  height: 68px;
  display: block;
}

.home-download-qr strong {
  max-width: 8.5rem;
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.25;
}

.download-qr-page main > :not(.download-handoff-section) {
  display: none;
}

.download-qr-page .download-handoff-section {
  padding: clamp(28px, 5vh, 52px) 0 72px;
}

.download-handoff {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.download-handoff::before {
  display: none;
}

.download-handoff__qr {
  width: min(360px, 100%);
  padding: 18px;
  display: grid;
  justify-items: center;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--hero-shadow);
  justify-self: center;
  text-align: center;
}

.download-handoff__qr > span {
  color: #6f6f75;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.download-handoff__qr > div {
  margin: 0;
  padding: 12px;
  display: grid;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(16, 24, 40, 0.08);
}

.download-handoff__qr img {
  width: min(260px, 68vw);
  height: auto;
  display: block;
}

.download-handoff__qr strong {
  color: var(--ink);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  letter-spacing: -0.03em;
}

@media (max-width: 700px) {
  .home-download-qr {
    display: none;
  }
}

/* Additional homepage sections, kept flat and editorial. */
.home-features,
.home-guides {
  padding: clamp(92px, 10vw, 136px) 0;
  border-top: 1px solid var(--line);
}

.home-feature-heading,
.home-guide-heading {
  display: grid;
  grid-template-columns: minmax(150px, 0.42fr) minmax(0, 1.58fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
}

.home-feature-heading .eyebrow,
.home-guide-heading .eyebrow {
  grid-column: 1;
}

.home-feature-heading h2,
.home-guide-heading h2 {
  grid-column: 2;
  max-width: 15ch;
  margin: 0;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 4.8vw, 4.55rem);
  font-weight: var(--font-weight-display);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(26px, 4vw, 54px);
  margin-top: clamp(52px, 7vw, 78px);
  border-bottom: 1px solid var(--line-strong);
}

.home-feature-item {
  min-height: 210px;
  padding: 28px 0 34px;
  border-top: 1px solid var(--line-strong);
}

.home-feature-item > span {
  display: block;
  margin-bottom: 34px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.home-feature-item h3 {
  margin: 0;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  font-weight: var(--font-weight-display);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.home-feature-item p {
  max-width: 34ch;
  margin: 12px 0 0;
  color: var(--text-muted);
  line-height: 1.62;
}

.home-guide-list {
  margin-top: clamp(48px, 6vw, 70px);
  border-top: 1px solid var(--line-strong);
}

.home-guide-link {
  min-height: 126px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-strong);
  color: var(--text-strong);
  text-decoration: none;
}

.home-guide-link > span {
  align-self: start;
  padding-top: 2px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.home-guide-link p {
  margin: 0 0 7px;
  color: var(--text-soft);
  font-size: 0.7rem;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-guide-link h3 {
  max-width: 29ch;
  margin: 0;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  font-weight: var(--font-weight-display);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.home-guide-link strong {
  color: var(--text-strong);
  font-size: 0.84rem;
  font-weight: 790;
  white-space: nowrap;
  transition: color 160ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.home-guide-link:hover strong,
.home-guide-link:focus-visible strong {
  color: var(--accent);
  transform: translateX(5px);
}

@media (max-width: 760px) {
  .home-features,
  .home-guides {
    padding: 78px 0;
  }

  .home-feature-heading,
  .home-guide-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .home-feature-heading .eyebrow,
  .home-feature-heading h2,
  .home-guide-heading .eyebrow,
  .home-guide-heading h2 {
    grid-column: 1;
  }

  .home-feature-heading h2,
  .home-guide-heading h2 {
    font-size: clamp(2.7rem, 12vw, 3.55rem);
  }

  .home-feature-grid {
    grid-template-columns: 1fr;
    margin-top: 44px;
  }

  .home-feature-item {
    min-height: 0;
    padding: 26px 0 30px;
  }

  .home-feature-item > span {
    margin-bottom: 20px;
  }

  .home-guide-link {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 16px;
  }

  .home-guide-link strong {
    grid-column: 2;
    white-space: normal;
  }
}

/* Refined public pages: reduced hero scale, editorial legal documents, and launch states. */
.home-hero-title {
  max-width: 10.8ch;
  font-size: clamp(3.2rem, 4.8vw, 4.8rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
  word-spacing: 0.08em;
}

.coming-soon-page {
  position: relative;
  min-height: min(680px, 72vh);
  padding: clamp(40px, 7vw, 88px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-dark);
  color: var(--color-on-dark);
}

.coming-soon-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(248, 247, 243, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 247, 243, 0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(135deg, #000, transparent 74%);
  pointer-events: none;
}

.coming-soon-marker {
  position: absolute;
  top: 42px;
  right: 42px;
  width: 110px;
  height: 48px;
  border-block: 1px solid rgba(248, 247, 243, 0.16);
}

.coming-soon-marker span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
}

.coming-soon-marker span:nth-child(2) {
  width: 48px;
  height: 1px;
  border-radius: 0;
  background: rgba(248, 247, 243, 0.25);
}

.coming-soon-marker span:nth-child(3) {
  width: 1px;
  height: 48px;
  border-radius: 0;
  background: rgba(248, 247, 243, 0.25);
}

.coming-soon-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.coming-soon-copy .eyebrow {
  color: var(--accent);
}

.coming-soon-copy h1 {
  margin: 20px 0 24px;
  color: var(--color-on-dark);
  font-size: clamp(4rem, 9vw, 8.5rem);
  font-weight: var(--font-weight-display);
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-transform: uppercase;
}

.coming-soon-copy > p:not(.eyebrow) {
  max-width: 52ch;
  margin: 0;
  color: #b8b8bd;
  line-height: 1.7;
}

.coming-soon-page .button--primary {
  border-color: var(--color-on-dark);
  background: var(--color-on-dark);
  color: var(--text-strong);
}

.coming-soon-index {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #77777f;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.legal-page {
  padding-top: 0;
}

.legal-page .page-shell {
  padding: 0 0 clamp(72px, 9vw, 120px);
}

.legal-page .shell--tight {
  width: var(--content-width);
}

.legal-page .section-stack {
  gap: 0;
}

.legal-page .section-stack > * {
  min-width: 0;
}

.legal-page .legal-header {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: clamp(40px, 7vw, 76px) 0 clamp(52px, 8vw, 92px);
}

.legal-page .legal-header > .legal-nav,
.legal-page .legal-header > [data-legal-nav] {
  display: none;
}

.language-menu--header {
  flex: 0 0 auto;
  width: 190px;
  margin: 0;
}

.language-menu--header summary {
  width: 100%;
  justify-content: space-between;
}

.language-menu--header .language-menu-list {
  right: 0;
  left: auto;
  width: max-content;
  max-width: min(260px, calc(100vw - 24px));
  max-height: min(70vh, 680px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.legal-page .legal-nav-link {
  position: relative;
  flex: 0 0 auto;
  min-height: auto;
  padding: 0 13px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-soft);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 160ms cubic-bezier(0.25, 1, 0.5, 1);
}

.legal-page .legal-nav-link[aria-current="page"] {
  background: transparent;
  color: var(--text-strong);
}

.legal-page .legal-nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}

.legal-page .legal-panel {
  min-height: 410px;
  padding: clamp(34px, 6vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 0;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(rgba(248, 247, 243, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 247, 243, 0.035) 1px, transparent 1px),
    var(--surface-dark);
  background-size: 48px 48px, 48px 48px, auto;
  box-shadow: none;
}

/* The support destination uses a different hero structure than marketing pages. */
.legal-page:has(.support-index) .legal-header {
  padding: clamp(28px, 4vw, 48px) 0 clamp(36px, 5vw, 56px);
}

.legal-page:has(.support-index) .legal-panel {
  min-height: 360px;
  padding: clamp(30px, 5vw, 58px);
}

.legal-page .legal-panel .eyebrow {
  color: var(--accent);
}

.legal-page .legal-title {
  max-width: 15ch;
  margin: 18px 0 22px;
  color: var(--color-on-dark);
  font-size: clamp(3.2rem, 7vw, 6.8rem);
  font-weight: var(--font-weight-display);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.legal-page .legal-copy {
  max-width: 68ch;
  margin: 0;
  color: #b8b8bd;
  font-size: 1rem;
  line-height: 1.72;
}

.legal-page .legal-panel .meta-row {
  margin-top: 28px;
}

.legal-page .legal-panel .meta-pill {
  border-color: rgba(248, 247, 243, 0.14);
  background: rgba(248, 247, 243, 0.07);
  color: #d7d7dc;
}

.legal-page .legal-panel .button--ghost {
  border-color: rgba(248, 247, 243, 0.22);
  background: transparent;
  color: var(--color-on-dark);
}

.legal-page .document {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 0;
  gap: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.legal-page .document .section {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
  gap: 14px clamp(30px, 7vw, 92px);
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.legal-page .document .section:first-child {
  border-top: 1px solid var(--line);
}

.legal-page .document .section > h2 {
  grid-column: 1;
  align-self: start;
  font-size: 1.1rem;
  line-height: 1.3;
}

.legal-page .document .section > :not(h2) {
  grid-column: 2;
}

.legal-page .document p,
.legal-page .document li {
  font-size: 0.98rem;
  line-height: 1.78;
}

.legal-page .document a {
  overflow-wrap: anywhere;
}

/* The account and legal pages use the same light ShapeVision editorial surface. */
.legal-page .legal-header {
  padding: clamp(40px, 7vw, 76px) 0 clamp(38px, 6vw, 68px);
}

.legal-page .legal-panel {
  min-height: 0;
  padding: 0;
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.legal-page .legal-panel .eyebrow {
  color: var(--text-soft);
}

.legal-page .legal-title {
  max-width: 20ch;
  margin: 16px 0 20px;
  color: var(--text-strong);
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 1.04;
}

.legal-page .legal-copy {
  max-width: 68ch;
  color: var(--text-soft);
}

.legal-page .legal-panel .meta-row {
  margin-top: 22px;
}

.legal-page .legal-panel .meta-pill {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text-soft);
}

.legal-page .document .section > h2 {
  color: var(--text-strong);
}

.legal-page .document .section a:not(.button) {
  color: var(--text-strong);
  text-decoration-color: var(--accent);
}

.legal-page .document .section a:not(.button):hover {
  color: var(--accent-strong);
}

@media (max-width: 760px) {
  .legal-page .legal-header {
    padding-top: 40px;
  }

  .legal-page .legal-panel {
    min-height: 0;
    border-radius: 0;
  }
}

@media (max-width: 760px) {
  .coming-soon-page {
    min-height: 600px;
    padding: 30px 24px;
    grid-template-columns: 1fr;
  }

  .coming-soon-marker {
    top: 24px;
    right: 24px;
    width: 82px;
  }

  .coming-soon-copy h1 {
    font-size: clamp(3.4rem, 19vw, 5.6rem);
  }

  .coming-soon-index {
    display: none;
  }

  .legal-page .legal-nav-link {
    width: auto;
  }

  .legal-page .legal-panel {
    min-height: 360px;
    border-radius: 24px;
  }

  .legal-page .legal-title {
    font-size: clamp(2.7rem, 13vw, 4.2rem);
  }

  .legal-page .document .section {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 30px 0;
  }

  .legal-page .document .section > h2,
  .legal-page .document .section > :not(h2) {
    grid-column: 1;
  }
}

@media (max-width: 1040px) {
  .site-header:has(.language-menu--header) {
    grid-template-columns: minmax(0, 1fr) auto auto auto;
  }

  .site-header:has(.language-menu--header) .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .site-header:has(.language-menu--header) .site-menu-toggle {
    grid-column: 2;
    grid-row: 1;
  }

  .site-header:has(.language-menu--header) .header-cta {
    grid-column: 3;
    grid-row: 1;
  }

  .site-header:has(.language-menu--header) .language-menu--header {
    grid-column: 4;
    grid-row: 1;
  }

  .site-header:has(.language-menu--header) .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 620px) {
  .header:has(.language-menu--header) .nav-wrap {
    gap: 8px;
  }

  .header:has(.language-menu--header) .language-menu--header {
    width: 46px;
  }

  .header:has(.language-menu--header) .language-menu--header summary {
    justify-content: center;
    gap: 0;
    padding: 0;
  }

  .header:has(.language-menu--header) .language-menu-current {
    display: none;
  }

  .header:has(.language-menu--header) .language-menu--header summary::after {
    font-size: 0.75rem;
  }

  .header:has(.language-menu--header) .language-menu-list {
    width: min(248px, calc(100vw - 24px));
  }

  [data-site-header] {
    min-height: 69px;
  }

  .site-header:has(.language-menu--header) {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
  }

  .site-header:has(.language-menu--header) .site-menu-toggle {
    grid-column: 2;
  }

  .site-header:has(.language-menu--header) .language-menu--header {
    grid-column: 3;
    width: 46px;
  }

  .language-menu--header summary {
    justify-content: center;
    gap: 0;
    padding: 0;
  }

  .language-menu--header summary::after,
  .language-menu--header .language-menu-current {
    display: none;
  }
}

@media (max-width: 560px) {
  .home-hero-title {
    max-width: 9ch;
    font-size: clamp(3rem, 13.5vw, 4rem);
  }
}

/* Shared motion system for marketing, editorial, support and legal pages. */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: sv-page-out 140ms cubic-bezier(0.7, 0, 0.84, 0) both;
  mix-blend-mode: normal;
}

::view-transition-new(root) {
  animation: sv-page-in 320ms cubic-bezier(0.16, 1, 0.3, 1) both;
  mix-blend-mode: normal;
}

@keyframes sv-page-out {
  to { opacity: 0; }
}

@keyframes sv-page-in {
  from { opacity: 0; }
}

.site-header-wrap {
  transition: transform 280ms cubic-bezier(0.25, 1, 0.5, 1);
}

.site-header-wrap.is-scrolled {
  transform: translateY(-7px);
}

.site-header {
  transition:
    transform 280ms cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow 280ms cubic-bezier(0.25, 1, 0.5, 1),
    background-color 280ms cubic-bezier(0.25, 1, 0.5, 1);
}

.site-header-wrap.is-scrolled .site-header {
  background: rgba(248, 247, 243, 0.97);
  box-shadow: var(--card-shadow);
}

.site-nav-link {
  position: relative;
}

.button:active,
.site-nav-link:active {
  transform: translateY(0) scale(0.975);
}

.home-model-stage::after {
  position: absolute;
  z-index: 5;
  top: 11%;
  right: 8%;
  left: 8%;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.34);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translateY(-30px) scaleX(0.2);
}

.motion-ready .home-model-stage.is-visible::after {
  animation: sv-model-scan 3.8s 700ms cubic-bezier(0.65, 0, 0.35, 1) both;
}

@keyframes sv-model-scan {
  0% { opacity: 0; transform: translateY(-30px) scaleX(0.2); }
  14% { opacity: 0.75; transform: translateY(0) scaleX(1); }
  78% { opacity: 0.75; transform: translateY(510px) scaleX(1); }
  100% { opacity: 0; transform: translateY(560px) scaleX(0.25); }
}

.motion-ready [data-motion] {
  --motion-x: 0px;
  --motion-y: 28px;
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.motion-ready [data-motion="row"] {
  --motion-x: -26px;
  --motion-y: 0px;
}

.motion-ready [data-motion="model"] {
  --motion-x: 24px;
  --motion-y: 0px;
}

.motion-ready [data-motion]:not(.is-visible) {
  opacity: 0;
  transform: translate3d(var(--motion-x), var(--motion-y), 0) scale(0.99);
}

.motion-ready [data-motion].is-visible {
  transition:
    opacity 460ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 460ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--motion-order, 0) * 55ms);
}

.motion-ready [data-motion="hero"].is-visible > * {
  animation: sv-hero-rise 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.motion-ready [data-motion="hero"].is-visible > :nth-child(2) { animation-delay: 90ms; }
.motion-ready [data-motion="hero"].is-visible > :nth-child(3) { animation-delay: 180ms; }
.motion-ready [data-motion="hero"].is-visible > :nth-child(4) { animation-delay: 270ms; }

@keyframes sv-hero-rise {
  from { opacity: 0; transform: translateY(24px); }
}

.home-capability-row,
.home-resource,
.home-flow-step {
  transition:
    transform 260ms cubic-bezier(0.25, 1, 0.5, 1),
    border-color 260ms cubic-bezier(0.25, 1, 0.5, 1),
    background-color 260ms cubic-bezier(0.25, 1, 0.5, 1);
}

@media (hover: hover) and (pointer: fine) {
  .home-capability-row:hover,
  .home-flow-step:hover {
    transform: translateX(7px);
  }

  .home-resource:hover {
    transform: translateY(-6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root),
  .motion-ready [data-motion],
  .motion-ready [data-motion].is-visible,
  .motion-ready [data-motion="hero"].is-visible > *,
  .motion-ready .home-model-stage.is-visible::after {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Homepage narrative refresh: 3D hero, product stories, utilities and FAQ. */
[data-route-key="home"] .page-shell {
  padding-top: 0;
}

[data-route-key="home"] .page-root {
  gap: 0;
}

.home-hero {
  grid-template-columns: minmax(360px, 0.88fr) minmax(500px, 1.12fr);
  gap: clamp(32px, 5vw, 72px);
  min-height: min(760px, calc(100svh - 88px));
  padding: clamp(28px, 4vw, 52px) 0 clamp(64px, 8vw, 96px);
  align-items: center;
}

.home-hero-copy {
  min-height: auto;
  padding: 0;
  justify-content: center;
}

.home-hero-copy .eyebrow {
  margin-bottom: clamp(22px, 3vw, 34px);
}

.home-hero-title {
  max-width: 9.2ch;
  margin: 0;
  font-size: clamp(4rem, 6.4vw, 6.7rem);
  font-weight: var(--font-weight-display);
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-transform: none;
}

.home-hero-accent {
  color: var(--accent);
}

.home-hero-intro {
  max-width: 47ch;
  margin-top: 30px;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.7;
}

.home-hero .hero-actions {
  margin-top: 32px;
}

.home-model-stage {
  min-height: 680px;
  border: 1px solid rgba(248, 247, 243, 0.08);
  border-radius: 42px;
  background:
    radial-gradient(circle at 50% 42%, rgba(16, 185, 129, 0.1), transparent 30%),
    linear-gradient(rgba(248, 247, 243, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 247, 243, 0.035) 1px, transparent 1px),
    var(--surface-dark);
  background-size: auto, 52px 52px, 52px 52px, auto;
  box-shadow: 0 28px 70px rgba(14, 14, 17, 0.15);
}

.home-model {
  inset: 10px 0 22px;
}

.home-model-stage::after {
  right: 10%;
  left: 10%;
}

.home-product,
.home-resources,
.home-faq {
  padding: clamp(88px, 10vw, 144px) 0;
  border-top: 1px solid var(--line);
}

.home-product-heading,
.home-resource-heading {
  display: grid;
  grid-template-columns: minmax(150px, 0.4fr) minmax(0, 1.6fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: start;
}

.home-product-heading h2,
.home-resource-heading h2,
.home-faq-heading h2 {
  max-width: 13ch;
  margin: 0;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.7vw, 5.6rem);
  font-weight: var(--font-weight-display);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.home-product-heading > div > p,
.home-resource-heading > div > p {
  max-width: 53ch;
  margin: 24px 0 0;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.home-product-stories {
  display: grid;
  gap: clamp(24px, 3vw, 38px);
  margin-top: clamp(56px, 7vw, 88px);
}

.home-product-story {
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(420px, 1.18fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
}

.home-product-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(42px, 6vw, 78px);
}

.home-product-index {
  margin-bottom: auto;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.home-product-kicker {
  margin: 52px 0 14px;
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.home-product-title {
  max-width: 12ch;
  margin: 0;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: clamp(2.45rem, 4.4vw, 4.35rem);
  font-weight: var(--font-weight-display);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.home-product-description {
  max-width: 43ch;
  margin: 24px 0 0;
  color: var(--text-muted);
  line-height: 1.72;
}

.home-product-link {
  margin-top: 32px;
  color: var(--color-link);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration-color: var(--color-link-underline);
  text-underline-offset: 0.2em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.home-product-link:hover,
.home-product-link:focus-visible {
  color: var(--color-link-hover);
  text-decoration-color: var(--color-link-underline-hover);
}

.home-product-media {
  position: relative;
  min-width: 0;
  min-height: 610px;
  margin: 0;
  overflow: hidden;
  background: #171719;
}

.home-product-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14, 14, 17, 0.16), transparent 22%);
  content: "";
  pointer-events: none;
}

.home-product-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.84) contrast(1.03);
}

.home-product-image--analysis {
  object-position: 50% 10%;
}

.home-product-image--program {
  object-position: 50% 61%;
}

.home-product-image--progression {
  object-position: 50% 8%;
}

.home-product-story--analysis {
  border-color: var(--surface-dark);
  background: var(--surface-dark);
}

.home-product-story--analysis .home-product-copy {
  color: var(--color-on-dark);
}

.home-product-story--analysis .home-product-kicker,
.home-product-story--analysis .home-product-description {
  color: #b8b8bd;
}

.home-product-story--analysis .home-product-title,
.home-product-story--analysis .home-product-link {
  color: var(--color-on-dark);
}

.home-product-story--analysis .home-product-link:hover,
.home-product-story--analysis .home-product-link:focus-visible {
  color: var(--accent);
}

.home-product-story--program {
  border-inline: 0;
  border-radius: 0;
  background: transparent;
}

.home-product-story--program .home-product-media {
  order: -1;
}

.home-product-story--program .home-product-media::after {
  background: linear-gradient(270deg, rgba(14, 14, 17, 0.12), transparent 22%);
}

.home-product-story--progression {
  background: color-mix(in srgb, var(--accent-pale) 72%, var(--bg-elevated));
}

.home-resources {
  background: transparent;
}

.home-resource-list {
  margin-top: clamp(48px, 6vw, 72px);
  border-top: 1px solid var(--line-strong);
}

.home-resource-row {
  border-bottom: 1px solid var(--line-strong);
}

.home-resource-row > a {
  min-height: 150px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: clamp(20px, 4vw, 54px);
  align-items: center;
  padding: 28px 0;
  color: var(--text-strong);
  text-decoration: none;
}

.home-resource-index {
  align-self: start;
  padding-top: 3px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.home-resource-kicker {
  margin: 0 0 8px;
  color: var(--text-soft);
  font-size: 0.7rem;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-resource-row h3 {
  max-width: 28ch;
  margin: 0;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 2.15rem);
  font-weight: var(--font-weight-display);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.home-resource-description {
  max-width: 60ch;
  margin: 10px 0 0;
  color: var(--text-muted);
  line-height: 1.62;
}

.home-resource-action {
  color: var(--text-strong);
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
  transition: color 160ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.home-resource-row > a:hover .home-resource-action,
.home-resource-row > a:focus-visible .home-resource-action {
  color: var(--accent);
  transform: translateX(5px);
}

.home-faq {
  display: grid;
  grid-template-columns: minmax(240px, 0.68fr) minmax(0, 1.32fr);
  gap: clamp(44px, 8vw, 110px);
  align-items: start;
}

.home-faq-heading {
  position: sticky;
  top: 124px;
}

.home-faq-heading .eyebrow {
  margin-bottom: 24px;
}

.home-faq-heading h2 {
  max-width: 9ch;
}

.home-faq-list {
  border-top: 1px solid var(--line-strong);
}

.home-faq-item {
  border-bottom: 1px solid var(--line-strong);
}

.home-faq-item summary {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  color: var(--text-strong);
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
  font-weight: 720;
  letter-spacing: -0.025em;
  line-height: 1.25;
  cursor: pointer;
  list-style: none;
}

.home-faq-item summary::-webkit-details-marker {
  display: none;
}

.home-faq-symbol {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--text-strong);
  font-size: 1.25rem;
  font-weight: 500;
  transition: color 180ms ease, border-color 180ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.home-faq-item[open] .home-faq-symbol {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(45deg);
}

.home-faq-item > div {
  padding: 0 56px 26px 0;
}

.home-faq-item p {
  max-width: 62ch;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.home-final-cta {
  margin-bottom: clamp(64px, 8vw, 104px);
  padding: clamp(44px, 6vw, 72px);
  border-radius: var(--radius-lg);
}

@media (max-width: 980px) {
  .home-hero {
    grid-template-columns: minmax(310px, 0.88fr) minmax(400px, 1.12fr);
  }

  .home-model-stage {
    min-height: 620px;
  }

  .home-product-story {
    grid-template-columns: minmax(290px, 0.9fr) minmax(350px, 1.1fr);
    min-height: 560px;
  }

  .home-product-media {
    min-height: 560px;
  }
}

@media (max-width: 820px) {
  .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: clamp(58px, 10vw, 88px);
  }

  .home-hero-copy {
    max-width: 660px;
  }

  .home-model-stage {
    min-height: 680px;
  }

  .home-product-heading,
  .home-resource-heading,
  .home-faq {
    grid-template-columns: 1fr;
  }

  .home-product-heading,
  .home-resource-heading {
    gap: 22px;
  }

  .home-product-story {
    grid-template-columns: 1fr;
  }

  .home-product-story--program .home-product-media {
    order: 0;
  }

  .home-product-media {
    min-height: 620px;
  }

  .home-product-copy {
    min-height: 460px;
  }

  .home-faq-heading {
    position: static;
  }

  .home-faq-heading h2 {
    max-width: none;
  }

  .home-resource-row > a {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .home-resource-action {
    grid-column: 2;
  }
}

@media (max-width: 620px) {
  .home-hero {
    gap: 46px;
    padding: 54px 0 72px;
  }

  .home-hero-copy .eyebrow {
    margin-bottom: 20px;
  }

  .home-hero-title {
    max-width: 9ch;
    font-size: clamp(3.25rem, 15vw, 4.45rem);
    line-height: 1.12;
  }

  .home-hero-intro {
    margin-top: 24px;
  }

  .home-model-stage {
    min-height: 550px;
    border-radius: var(--radius-lg);
  }

  .home-model {
    inset: 6px 0 16px;
  }

  .home-product,
  .home-resources,
  .home-faq {
    padding: 76px 0;
  }

  .home-product-heading h2,
  .home-resource-heading h2,
  .home-faq-heading h2 {
    font-size: clamp(2.7rem, 12vw, 3.65rem);
  }

  .home-product-stories {
    margin-top: 48px;
  }

  .home-product-story {
    border-radius: var(--radius-lg);
  }

  .home-product-story--program {
    border-radius: 0;
  }

  .home-product-copy {
    min-height: 430px;
    padding: 34px 26px 40px;
  }

  .home-product-kicker {
    margin-top: 40px;
  }

  .home-product-title {
    font-size: clamp(2.45rem, 11vw, 3.35rem);
  }

  .home-product-media {
    min-height: 480px;
  }

  .home-resource-row > a {
    min-height: 0;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 18px;
    padding: 28px 0;
  }

  .home-resource-action {
    white-space: normal;
  }

  .home-faq-item summary {
    min-height: 82px;
  }

  .home-faq-item > div {
    padding-right: 0;
  }

  .home-final-cta {
    margin-bottom: 48px;
    padding: 38px 26px;
    border-radius: var(--radius-lg);
  }
}

/* Final homepage simplification overrides. */
[data-route-key="home"],
[data-route-key="home"] .page-shell,
[data-route-key="home"] .dynamic-page,
[data-route-key="home"] .page-root {
  background: var(--color-canvas);
}

[data-route-key="home"] .page-root {
  gap: 0;
}

.home-hero {
  grid-template-columns: minmax(360px, 0.82fr) minmax(500px, 1.18fr);
  gap: clamp(28px, 5vw, 68px);
  min-height: min(760px, calc(100svh - 78px));
  padding: clamp(20px, 3.2vw, 36px) 0 clamp(48px, 6vw, 72px);
  align-items: start;
}

.home-hero-copy {
  min-height: auto;
  padding: 0;
}

.home-hero-title {
  max-width: 9.6ch;
  font-size: clamp(4rem, 6vw, 6.25rem);
  font-weight: var(--font-weight-display);
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-transform: none;
}

.home-model-stage {
  min-height: 690px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-model {
  inset: 8px 0 20px;
}

.home-model-stage::after {
  display: none;
}

.home-product-heading {
  max-width: 850px;
  margin: 0 auto;
  display: block;
  text-align: center;
}

.home-product-heading .eyebrow {
  justify-content: center;
  margin-bottom: 22px;
}

.home-product-heading h2 {
  max-width: 14ch;
  margin: 0 auto;
  font-size: clamp(3rem, 5.3vw, 5rem);
  font-weight: var(--font-weight-display);
}

[data-route-key="home"] .home-product,
[data-route-key="home"] .home-features,
[data-route-key="home"] .home-guides,
[data-route-key="home"] .home-faq {
  padding-block: clamp(64px, 7vw, 88px);
}

[data-route-key="home"] .home-screen-grid,
[data-route-key="home"] .home-feature-grid,
[data-route-key="home"] .home-guide-list,
[data-route-key="home"] .home-faq-list {
  margin-top: clamp(36px, 4.5vw, 52px);
}

.home-faq {
  display: block;
}

.home-faq-heading {
  position: static;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.home-faq-heading .eyebrow {
  justify-content: center;
}

.home-faq-heading h2 {
  max-width: none;
}

.home-faq-list {
  width: min(840px, 100%);
  margin: clamp(46px, 6vw, 68px) auto 0;
}

.home-final-cta {
  min-height: 280px;
  margin-bottom: clamp(64px, 8vw, 104px);
  padding: clamp(44px, 6vw, 68px);
  border-radius: var(--radius-lg);
}

@media (max-width: 900px) {
  .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 72px;
  }

  .home-model-stage {
    min-height: 650px;
  }
}

@media (max-width: 700px) {
  .home-hero {
    gap: 30px;
    padding: 36px 0 56px;
  }

  .home-hero-copy {
    min-height: auto;
  }

  .home-hero-title {
    max-width: 9.4ch;
    font-size: clamp(3.2rem, 14.7vw, 4.4rem);
  }

  .home-model-stage {
    min-height: 540px;
    border-radius: 0;
  }

  .home-product-heading h2,
  .home-faq-heading h2 {
    font-size: clamp(2.7rem, 12vw, 3.55rem);
  }

  [data-route-key="home"] .home-product,
  [data-route-key="home"] .home-features,
  [data-route-key="home"] .home-guides,
  [data-route-key="home"] .home-faq {
    padding-block: 56px;
  }

  [data-route-key="home"] .home-screen-grid,
  [data-route-key="home"] .home-feature-grid,
  [data-route-key="home"] .home-guide-list,
  [data-route-key="home"] .home-faq-list {
    margin-top: 32px;
  }

  .home-final-cta {
    min-height: 330px;
    margin-bottom: 48px;
    padding: 38px 26px;
    border-radius: var(--radius-lg);
  }
}

/* ShapeVision editorial direction — ivory, anatomy and emerald.
   Shared by the public FR/EN/ES pages; no native app styles are changed. */
::selection { background: #bde6d3; color: #171717; }

.button {
  min-height: 48px;
  padding: 12px 20px;
  border-radius: var(--radius-button);
  font-weight: 700;
  line-height: 1.35;
  white-space: normal;
}

.button:is(.button--primary, .button--accent, .button--app-store) {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-strong);
}

.button:is(.button--primary, .button--accent, .button--app-store):is(:hover, :focus-visible) {
  background: #10b981;
  border-color: #10b981;
  color: var(--text-strong);
}

.button:is(.button--ghost, .button--light, .button--dark-ghost) {
  background: transparent;
  border-color: #b9c5b8;
  color: var(--text-strong);
}

.button:is(.button--ghost, .button--light, .button--dark-ghost):hover {
  background: var(--color-accent-pale);
  border-color: var(--accent-strong);
}

.button:active { transform: translateY(1px); }
.button:is(:disabled, [aria-disabled="true"], .button--disabled) {
  background: var(--color-surface-muted);
  border-color: var(--line);
  color: var(--text-muted);
  cursor: not-allowed;
  transform: none;
}

.header-cta .button { min-height: 44px; }
.eyebrow { color: var(--accent-strong); font-weight: 700; }

.home-hero-title {
  max-width: 12ch;
  font-family: var(--font-impact);
  font-size: clamp(4.2rem, 7.1vw, 6.8rem);
  font-weight: var(--font-weight-impact);
  line-height: 1.02;
  letter-spacing: -0.01em;
  word-spacing: normal;
  text-transform: uppercase;
  text-wrap: balance;
}
.home-hero-accent { display: block; color: var(--accent); text-decoration: none; }
.home-hero-intro { color: var(--text-muted); max-width: 44ch; }
.home-hero .hero-actions { gap: 12px; }
.home-download-qr { background: transparent; border: 0; box-shadow: none; padding-left: 0; }

.home-product-heading h2,
.home-feature-heading h2,
.home-guide-heading h2,
.home-faq-heading h2,
.home-final-cta h2 {
  font-family: var(--font-impact);
  font-weight: var(--font-weight-impact);
  font-size: clamp(2.65rem, 4.5vw, 4.2rem);
  line-height: 1.03;
  letter-spacing: 0;
  text-transform: uppercase;
  max-width: 24ch;
}
.home-product-heading h2 { max-width: 26ch; }
.home-screen-caption h3 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); line-height: 1.25; }
.home-screen-caption p,
.home-screen-caption p span,
.home-feature-item > span,
.home-guide-link > span { color: var(--accent-strong); }
.home-screen-frame { background: var(--color-surface-muted); border-color: var(--line); }

/* Neutral ivory paper; emerald is reserved for actions and accents. */
.home-final-cta,
.seo-page .cta-band,
.cta-band--dark,
.article-cta,
.support-card--store {
  background: var(--color-accent-pale);
  border-color: transparent;
  color: var(--text-strong);
  box-shadow: none;
}
.home-final-cta h2,
.cta-band h2,
.cta-band--dark .cta-title,
.cta-band--dark .footer-title,
.article-cta strong,
.support-card--store h2 { color: var(--text-strong); }
.home-final-cta .eyebrow,
.cta-band .eyebrow,
.support-card--store .eyebrow,
.support-card--store a { color: var(--accent-strong); }
.cta-band p,
.cta-band--dark .cta-copy,
.cta-band--dark .stat-label,
.article-cta p,
.support-card--store p { color: var(--text-muted); opacity: 1; }
.article-cta { padding: clamp(1.3rem, 3vw, 2rem); border-radius: 14px; }
.article-cta strong { font-size: 1.2rem; line-height: 1.4; }
.article-cta .button { margin-top: 0.25rem; }
.cta-band h2 { max-width: 28ch; }
.visual-stage,
.product-shot { background: var(--color-surface-muted); box-shadow: none; }
.visual-stage__label { color: var(--accent-strong); }
.visual-stage::before { border-color: var(--line); }
.visual-stage__image { filter: drop-shadow(0 12px 20px rgb(23 34 29 / 0.08)); }

/* A wide reading column with a compact, genuinely secondary table of contents. */
.seo-page:has(.article-body) { --shell: min(1280px, calc(100% - 3rem)); --content-width: var(--shell); }
.seo-page .article-layout {
  grid-template-columns: minmax(0, 190px) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
}
.seo-page .article-body { width: 100%; max-width: 960px; min-width: 0; }
.seo-page .article-body :is(p, li) {
  color: #393935;
  font-size: 1.0625rem;
  line-height: 1.8;
}
.seo-page .article-body :is(p, li) strong { color: var(--accent-strong); font-weight: 700; }
.seo-page .article-body li::marker { color: var(--accent-strong); }
.seo-page .article-body :is(h2, h3) {
  max-width: none;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  text-wrap: pretty;
}
.seo-page .article-body h2 { font-size: clamp(1.75rem, 2.6vw, 2.4rem); margin-top: 3.5rem; }
.seo-page .article-body h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); color: var(--accent-strong); }
.seo-page .article-aside { max-height: calc(100svh - 8rem); overflow-y: auto; }
.seo-page .article-aside strong { color: var(--accent-strong); font-size: 0.75rem; }
.seo-page .article-aside a { padding-block: 5px; line-height: 1.5; }
.seo-page .article-answer {
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background: var(--color-canvas-elevated);
  border: 0;
  border-radius: 14px;
}
.seo-page .article-answer p { max-width: none; color: var(--text-strong); font-weight: 600; }
.seo-page .article-body .article-cta p { color: var(--text-muted); }
.seo-page .article-body .article-sources,
.seo-page .article-body .article-sources li { font-size: 0.875rem; }
.seo-page .article-body .note { border: 0; background: var(--color-canvas-elevated); border-radius: 12px; }
.seo-page .article-body .comparison-table { font-size: 1rem; line-height: 1.6; }
.seo-page .comparison-table th { background: var(--color-accent-pale); color: var(--accent-strong); }
.seo-page .comparison-table td { overflow-wrap: anywhere; hyphens: auto; }
.seo-page .comparison-table tbody tr:nth-child(even) { background: rgb(245 245 245 / 0.5); }
.seo-page .page-hero h1 {
  font-family: var(--font-impact);
  font-weight: var(--font-weight-impact);
  line-height: 1.02;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: clamp(2.45rem, 5.15vw, 4.95rem);
  max-width: 24ch;
}
.seo-page:has(.article-body) .page-hero h1 { max-width: 28ch; }
.seo-page:has(.article-body) .page-hero { padding-block: clamp(2rem, 4vw, 3.5rem); }
.seo-page .page-hero-grid--solo { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 900px) {
  .seo-page .article-layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .seo-page .article-aside { position: static; max-height: none; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
  .seo-page .article-aside a { display: inline-block; margin: 0 1rem 0.5rem 0; }
  .home-hero-title { max-width: 15ch; font-size: clamp(3.6rem, 9.4vw, 5.65rem); }
}
@media (max-width: 600px) {
  .seo-page:has(.article-body) { --shell: calc(100% - 2rem); }
  .home-hero-title { font-size: clamp(2.95rem, 12.3vw, 4.5rem); max-width: 13ch; }
  .home-product-heading h2, .home-feature-heading h2, .home-guide-heading h2,
  .home-faq-heading h2, .home-final-cta h2 { font-size: clamp(2.125rem, 8.5vw, 3rem); }
  .seo-page .article-body :is(p, li) { font-size: 1rem; line-height: 1.75; }
  .seo-page .article-body .comparison-table { font-size: 0.85rem; }
  .seo-page .comparison-table :is(th, td) { padding: 0.7rem 0.5rem; }
  .home-final-cta { min-height: 0; padding: 28px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
  .button:hover, .button:active { transform: none; }
}

.section--night { background: var(--color-accent-pale); color: var(--text-strong); }
.section--night :is(h2, h3) { color: var(--text-strong); }
.section--night .eyebrow { color: var(--accent-strong); }
.section--night :is(.section-heading p, .process-step p) { color: var(--text-muted); }
.section--night .process-step { border-color: var(--line-strong); }
.section--night .process-step::before { color: var(--accent-strong); }
.section--night a { text-decoration-color: var(--accent); text-underline-offset: 0.2em; }
.download-handoff { background: var(--color-accent-pale); color: var(--text-strong); box-shadow: none; }
.download-handoff::before { display: none; }
.download-handoff__copy h2 { color: var(--text-strong); }
.download-handoff__copy > p:not(.eyebrow) { color: var(--text-muted); }
.download-handoff__copy .eyebrow { color: var(--accent-strong); }
.download-handoff__steps li { border-color: var(--line); }
.download-handoff__steps li > span { color: var(--accent-strong); }

/* Tool results follow the same light reading surface as the guides. */
.calculator-result, .e1rm-result-panel, .calorie-result-panel {
  --white: var(--text-strong);
  --emerald: var(--accent-strong);
  background: var(--color-accent-pale);
  color: var(--text-strong);
}
:is(.calculator-result, .e1rm-result-panel, .calorie-result-panel) :is(h2, h3, code) { color: var(--text-strong); }
:is(.calculator-result, .e1rm-result-panel, .calorie-result-panel) :is(p, span, dt, small, em) { color: var(--text-muted); }
:is(.e1rm-result-panel, .calorie-result-panel) .eyebrow { color: var(--accent-strong); }
:is(.e1rm-formula, .calorie-primary-result, .calorie-start-range, .calorie-goal-result) { border-color: var(--line-strong); }
.protein-planner__stage {
  --color-on-dark: var(--text-strong);
  --night: var(--color-canvas-elevated);
  --emerald: var(--accent-strong);
  --protein-training: #9a632b;
  background: var(--color-canvas-elevated);
  color: var(--text-strong);
}
.protein-planner__total span, .protein-planner__graph-help { color: var(--text-muted); }
.protein-chart-wrap { scrollbar-color: #b9c5b8 transparent; }
.protein-chart__grid line { stroke: var(--line); }
.protein-chart__grid text, .protein-chart__lane-times { fill: var(--text-muted); }
.protein-chart__lane-track, .protein-chart__baseline { stroke: #c4cec0; }
.protein-chart__marker line, .protein-chart__hover > line { stroke: var(--text-muted); }
.protein-chart__hover rect { fill: var(--text-strong); }
.protein-chart__hover text { fill: var(--color-surface-strong); }
.protein-chart__marker-label { fill: var(--text-strong); }
.protein-chart__area { fill: rgb(16 185 129 / 0.09); }
.download-handoff__steps p { color: var(--text-strong); }
.download-handoff__steps li:last-child { border-bottom-color: var(--line); }
.download-handoff__action .button--ghost { border-color: #b9c5b8; color: var(--text-strong); }

/* Show complete in-app captures without App Store artwork. */
.home-screen-frame img[src*="inapp-"] { object-fit: contain; }
.product-shot:has(img[src*="inapp-"]) { min-height: 0; background: transparent; }
.product-shot img[src*="inapp-"] { height: auto; min-height: 0; object-fit: contain; }
.download-handoff__qr { border-color: var(--line); background: var(--color-surface-strong); }
.download-handoff__qr > span, .download-handoff__qr > small { color: var(--accent-strong); }
.download-handoff__qr > strong { color: var(--text-strong); }

/* In-app captures have a natural phone ratio and no promotional frame. */
.product-shot:has(img[src*="inapp-"]) { width: min(100%, 340px); margin-inline: auto; border-radius: 24px; border: 1px solid var(--line); overflow: hidden; }
.home-screen-frame:has(img[src*="inapp-"]) { background: transparent; }

/* Small reading text stays graphite; its markers use the single brand green. */
.eyebrow,
.home-screen-caption p, .home-screen-caption p span,
.home-feature-item > span, .home-guide-link > span,
.seo-page .article-body :is(p, li) strong,
.seo-page .article-body h3, .seo-page .article-aside strong,
.seo-page .comparison-table th { color: var(--text-strong); }
.home-screen-caption p span, .home-feature-item > span,
.home-guide-link > span { color: var(--accent); }
.home-screen-link, .home-guide-link__action { color: var(--text-strong); text-decoration-color: var(--accent); }

/* Four product steps; keep set-entry controls readable on medium screens. */
@media (min-width: 701px) and (max-width: 1050px) {
  .home-screen-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
}

/* The fifth category shows strength thresholds, the 3D scores, and rest timing. */
.home-more-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 32px);
  align-items: center;
  margin-top: clamp(64px, 8vw, 112px);
}
.home-more-copy { min-width: 0; }
.home-more-copy .eyebrow span { color: var(--accent); margin-right: 12px; }
.home-more-copy h3 { margin: 18px 0 28px; font-size: clamp(1.75rem, 2.1vw, 2.25rem); line-height: 1.12; }
.home-more-copy dl { margin: 0; display: grid; gap: 24px; }
.home-more-copy dt { font-weight: 700; color: var(--text-strong); margin-bottom: 7px; }
.home-more-copy dd { margin: 0; color: var(--text-muted); line-height: 1.65; }
.home-more-screens { grid-column: span 3; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 32px); min-width: 0; }
.home-more-screen { margin: 0; min-width: 0; }
.home-more-screen figcaption { margin-top: 14px; color: var(--text-muted); font-size: .85rem; line-height: 1.5; }
@media (max-width: 1050px) {
  .home-more-features { grid-template-columns: 1fr; gap: 36px; }
  .home-more-copy { max-width: 650px; padding-right: 0; }
  .home-more-screens { grid-column: auto; }
}
@media (max-width: 700px) {
  .home-more-screens { grid-template-columns: repeat(3, 82vw); overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
  .home-more-screen { scroll-snap-align: start; }
}

/* ShapeVision website art direction: neutral canvas, graphite type, app emerald. */
:root {
  --color-canvas: #f7f7f8;
  --color-canvas-elevated: #f0f0f2;
  --color-surface: #ffffff;
  --color-surface-strong: #ffffff;
  --color-surface-muted: #f0f0f2;
  --color-surface-dark: #2a2a2f;
  --color-surface-dark-soft: #35353b;
  --color-line: rgba(14, 14, 17, 0.1);
  --color-line-strong: rgba(14, 14, 17, 0.16);
  --color-text: #303137;
  --color-text-strong: #0e0e11;
  --color-text-muted: #64666f;
  --color-text-soft: #64666f;
  --color-accent: #10b981;
  --color-accent-strong: #10b981;
  --color-accent-soft: rgb(16 185 129 / 0.1);
  --color-accent-pale: #f7f7f8;
  --color-link-underline: rgb(16 185 129 / 0.32);
  --color-link-underline-hover: #10b981;
  --color-link: #0e0e11;
  --color-link-hover: #0e0e11;
  --font-body: "DM Sans", sans-serif;
  --font-display: "DM Sans", sans-serif;
  --font-impact: "DM Sans", sans-serif;
  --font-weight-impact: 700;
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 22px;
  --radius-button: 999px;
  --hero-shadow: 0 16px 48px rgb(14 14 17 / 0.07);
  --card-shadow: 0 8px 28px rgb(14 14 17 / 0.045);
}

html { scroll-padding-top: 92px; }
body.site-body { background: var(--color-canvas); color: var(--color-text); }
h1, h2, h3, h4, h5, h6, .display-title { font-family: var(--font-display); letter-spacing: -0.045em; }
h1, h2, .display-title { text-transform: none; }
.site-header-wrap {
  padding: 0;
  border-bottom: 1px solid rgb(14 14 17 / 0.07);
  background: rgb(247 247 248 / 0.88);
  backdrop-filter: blur(16px);
}
.site-header { min-height: 72px; padding: 0; border-radius: 0; background: transparent; box-shadow: none; }
.brand-title { font-size: 1.06rem; letter-spacing: -0.045em; }
.site-nav { gap: 3px; }
.site-nav-link {
  min-height: 40px;
  padding-inline: 13px;
  border: 0;
  border-radius: 999px;
  color: var(--color-text);
  font-size: 0.84rem;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}
.site-nav-link:hover, .site-nav-link:focus-visible { background: #f0f0f2; border: 0; transform: none; }
.site-nav-link[aria-current="page"] { background: #e9e9ec; border: 0; color: var(--color-text-strong); }
.site-nav-link::after { display: none; }
.site-header .button--primary, .button--primary, .button--app-store {
  min-height: 42px;
  padding: 0 19px;
  border: 0;
  border-radius: 999px;
  background: var(--color-surface-dark);
  color: #fff;
  box-shadow: none;
  transition: background-color 180ms ease, transform 180ms ease;
}
.site-header .button--primary:hover, .button--primary:hover, .button--app-store:hover { background: #17171b; transform: translateY(-1px); }
.button:is(.button--primary, .button--accent, .button--app-store) { background: #2a2a2f; border-color: #2a2a2f; color: #fff; box-shadow: none; }
.button:is(.button--primary, .button--accent, .button--app-store):is(:hover, :focus-visible) { background: #17171b; border-color: #17171b; color: #fff; }
.home-hero .hero-actions .button--app-store { background: #2a2a2f; border-color: #2a2a2f; color: #fff; opacity: 1; }
.home-hero .hero-actions .button--app-store:is(:hover, :focus-visible) { background: #17171b; border-color: #17171b; }
.eyebrow { color: var(--color-text-strong); letter-spacing: 0.055em; }
.hero-title, .section-title, .card-title, .cta-title, .legal-title { letter-spacing: -0.055em; }
.hero-copy, .section-intro, .card-copy, .cta-copy, .meta-copy, .download-note, .legal-copy { color: var(--color-text-muted); }
.card, .surface, .support-card, .feature-card, .resource-card, .tool-card, .guide-card {
  border-color: var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--card-shadow);
}
a:not(.button):not(.site-nav-link):not(.brand) { text-decoration-color: rgb(16 185 129 / 0.38); text-underline-offset: 0.2em; }
a:not(.button):not(.site-nav-link):not(.brand):hover { text-decoration-color: var(--color-accent); }
.button, .button--secondary, .button--ghost { border-radius: 999px; }
.feature-rail, .article-layout, .download-feature-section, .support-section, .seo-page .article-body { color: var(--color-text); }
.feature-rail-item, .article-section, .support-section, .support-card, .download-feature, .download-support { border-color: var(--color-line); }
.home-hero { background: linear-gradient(180deg, #f7f7f8 0%, #fff 100%); }
.home-hero-intro { max-width: 48ch; color: #4b4d54; font-size: clamp(1.05rem, 1.35vw, 1.2rem); line-height: 1.55; }
.home-hero-title, .seo-page .page-hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.8rem, 6vw, 5.2rem); line-height: 1.02; letter-spacing: -0.06em; text-transform: none; text-wrap: balance; }
.seo-page .page-hero { border-bottom-color: transparent; }
.page-hero__answer { border: 0; border-radius: var(--radius-sm); background: var(--color-surface); box-shadow: var(--card-shadow); }
.home-model-stage { position: relative; isolation: isolate; }
.home-model-stage:has(.home-model[data-model-state="loading"])::before,
.home-model-stage:has(.home-model[data-model-state="error"])::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: min(31vw, 270px);
  aspect-ratio: 900 / 1957;
  padding: 6px;
  border: 1px solid #3f4146;
  border-radius: 34px;
  background: url("/preview-assets/marketing/inapp-analysis-202609.webp?v=dbdf1754983f932c") center / 100% 100% no-repeat, #17181a;
  box-shadow: 0 0 0 1px #17181a, 0 22px 48px rgb(14 14 17 / 0.13);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.home-model-stage:has(.home-model[data-model-state="loading"]) .home-model { opacity: 0; pointer-events: none; }
.home-model-stage:has(.home-model[data-model-state="ready"])::before { opacity: 0; transition: opacity 350ms ease; }
.home-model-stage:has(.home-model[data-model-state="ready"]) .home-model { opacity: 1; transition: opacity 350ms ease; }
.resource-list { border-top: 0; }
.resource-link--article { grid-template-columns: minmax(7rem, 0.16fr) 5.5rem minmax(0, 1fr) auto; gap: 1.25rem; min-height: 6.5rem; padding: 1.1rem 0; border-top: 1px solid var(--color-line); border-bottom: 0; transition: background-color 180ms ease, padding 180ms ease; }
.resource-link--article:last-child { border-bottom: 1px solid var(--color-line); }
.resource-link--article:hover { padding-inline: 0.75rem; background: rgb(16 185 129 / 0.045); }
.resource-link__thumbnail { width: 5.5rem; border-radius: 0.6rem; }
.resource-link__type { color: var(--color-text-muted); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; }
.resource-link h3 { font-size: clamp(1.1rem, 1.55vw, 1.35rem); line-height: 1.3; }
.resource-link p { max-width: 68ch; font-size: 0.9rem; line-height: 1.55; }
.resource-link__arrow { color: var(--color-text-muted); transition: color 180ms ease, transform 180ms ease; }
.resource-link:hover .resource-link__arrow { color: var(--color-accent); transform: translate(2px, -2px); }
.guide-search { border-radius: 999px; border-color: var(--color-line); box-shadow: none; }
.guide-search:focus-within { border-color: var(--color-accent); box-shadow: 0 0 0 3px rgb(16 185 129 / 0.12); }
.home-screen-frame, .product-shot:has(img[src*="inapp-"]) { border-color: #3f4146; box-shadow: 0 0 0 1px #17181a, 0 20px 48px rgb(14 14 17 / 0.12); }
.home-screen-frame img, .product-shot img[src*="inapp-"] { display: block; }
.home-screen-grid { align-items: start; }
.home-screen-caption, .home-screen-link, .home-guide-link { color: var(--color-text); }
.home-screen-link, .home-guide-link__action { text-decoration: none; }
.home-screen-link:hover, .home-guide-link:hover { color: var(--color-text-strong); }
.home-feature-item > span, .home-guide-link > span, .home-screen-caption p span { color: var(--color-accent); }
.footer-grid { border-color: var(--color-line); }
.footer-link { color: var(--color-text-muted); text-decoration: none; }
.footer-link:hover { color: var(--color-text-strong); text-decoration: none; }
:focus-visible { outline-color: var(--color-accent); }

@media (max-width: 950px) {
  .site-header-wrap { padding: 0; }
  .site-header { min-height: 68px; }
  .site-nav { background: var(--color-canvas); box-shadow: 0 18px 28px rgb(14 14 17 / 0.08); }
}
@media (max-width: 700px) {
  .home-hero-intro { font-size: 1rem; }
  .home-screen-grid { row-gap: 34px; }
  .home-screen-frame, .product-shot:has(img[src*="inapp-"]) { border-radius: 22px; }
  .home-hero-title, .seo-page .page-hero h1 { font-size: clamp(2.5rem, 10vw, 3.4rem); }
  .resource-link--article { grid-template-columns: minmax(0, 1fr) auto; gap: 0.35rem 0.8rem; padding: 1rem 0; }
  .resource-link__type { grid-column: 1; grid-row: 1; }
  .resource-link__thumbnail { grid-column: 1; grid-row: 2; width: 4.25rem; }
  .resource-link--article > div { grid-column: 1; grid-row: 3; }
  .resource-link__arrow { grid-column: 2; grid-row: 1 / span 3; }
  .home-model-stage:has(.home-model[data-model-state="loading"])::before,
  .home-model-stage:has(.home-model[data-model-state="error"])::before { width: min(62vw, 250px); border-radius: 30px; }
  .home-model-stage { min-height: 505px; }
  .home-model-stage::before { content: ""; position: absolute; z-index: 1; top: 0; left: 50%; width: min(53vw, 228px); aspect-ratio: 900 / 1957; padding: 7px; border: 2px solid #3f4146; border-radius: 34px; background-image: url("/preview-assets/marketing/inapp-analysis-202609.webp?v=dbdf1754983f932c"); background-position: center; background-size: 100% 100%; background-repeat: no-repeat; background-origin: content-box; background-clip: content-box; background-color: #17181a; box-shadow: 0 0 0 1px #17181a, 0 22px 48px rgb(14 14 17 / 0.13); transform: translateX(-50%); }
  .home-model-stage .home-model { opacity: 0 !important; pointer-events: none !important; }
}

@media (max-width: 760px) {
  .legal-page .legal-panel { min-height: 0; border-radius: 0; }
}
