/* Investonaute redesign 2026-07-19
   Native HTML/CSS design system. Dark by default, optional light theme. */

:root,
html[data-theme="dark"] {
  color-scheme: dark;
  --surface-canvas: #0b1016;
  --surface-1: #10171f;
  --surface-2: #151e28;
  --surface-3: #1b2632;
  --text-1: #f3f1eb;
  --text-2: #aeb8c4;
  --text-3: #7f8b99;
  --line: rgba(226, 232, 240, 0.14);
  --line-strong: rgba(226, 232, 240, 0.26);
  --accent: #d7a447;
  --accent-strong: #efc36c;
  --accent-ink: #171107;
  --accent-soft: rgba(215, 164, 71, 0.12);
  --danger: #ff8178;
  --success: #68d39b;
  --warning: #efc36c;
  --shadow-soft: 0 18px 52px rgba(0, 0, 0, 0.24);
  --shadow-lift: 0 28px 80px rgba(0, 0, 0, 0.36);
  --radius-card: 18px;
  --radius-control: 11px;
  --container: 1260px;
  --header-height: 74px;
  --font-sans: "Aptos", "Segoe UI Variable Display", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --transition: 220ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Aliases used by the original component layer. */
  --color-navy: var(--text-1);
  --color-blue: var(--accent);
  --color-sky: var(--accent-strong);
  --color-gold: var(--accent);
  --color-bg: var(--surface-canvas);
  --color-white: var(--surface-1);
  --color-text: var(--text-1);
  --color-muted: var(--text-2);
  --color-border: var(--line);
  --color-success: var(--success);
  --color-error: var(--danger);
  --color-blue-soft: var(--accent-soft);
  --color-sky-soft: var(--surface-2);
  --color-gold-soft: var(--accent-soft);
  --color-navy-soft: var(--surface-2);
  --shadow-sm: var(--shadow-soft);
  --shadow-md: var(--shadow-lift);
}

html[data-theme="light"] {
  color-scheme: light;
  --surface-canvas: #f2f3f2;
  --surface-1: #ffffff;
  --surface-2: #e9ecea;
  --surface-3: #dde2df;
  --text-1: #101820;
  --text-2: #53606c;
  --text-3: #59636d;
  --line: rgba(16, 24, 32, 0.13);
  --line-strong: rgba(16, 24, 32, 0.25);
  --accent: #9a6200;
  --accent-strong: #754a00;
  --accent-ink: #ffffff;
  --accent-soft: rgba(154, 98, 0, 0.09);
  --danger: #b42318;
  --success: #157347;
  --warning: #8a5900;
  --shadow-soft: 0 18px 50px rgba(17, 28, 36, 0.08);
  --shadow-lift: 0 28px 80px rgba(17, 28, 36, 0.13);
}

html {
  scroll-padding-top: calc(var(--header-height) + 20px);
  background: var(--surface-canvas);
}

body {
  background: var(--surface-canvas);
  color: var(--text-1);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 4px;
}

a {
  color: var(--accent-strong);
}

a:hover {
  color: var(--text-1);
}

h1,
h2,
h3,
h4 {
  color: var(--text-1);
  font-weight: 720;
  letter-spacing: -0.042em;
  line-height: 1.04;
  overflow-wrap: normal;
  text-wrap: balance;
}

h1 {
  max-width: 16ch;
  margin-bottom: 1.35rem;
  font-size: clamp(2.75rem, 5.2vw, 5rem);
}

h2 {
  max-width: 19ch;
  font-size: clamp(2rem, 3.8vw, 3.55rem);
}

h3 {
  font-size: clamp(1.12rem, 2vw, 1.42rem);
  letter-spacing: -0.025em;
  line-height: 1.18;
}

p,
li,
dd,
td,
th {
  text-wrap: pretty;
}

.container {
  width: min(calc(100% - clamp(2rem, 6vw, 5rem)), var(--container));
}

.container--narrow {
  width: min(calc(100% - 2rem), 820px);
}

.section {
  padding-block: clamp(4.75rem, 9vw, 8.25rem);
}

.section--compact {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.section--tint,
.section--blue-soft,
.section--navy {
  border-block: 1px solid var(--line);
  background: var(--surface-1);
  color: var(--text-1);
}

.section--navy h2,
.section--navy h3,
.section--navy p,
.section--navy li {
  color: inherit;
}

.section-header {
  gap: 0.85rem;
  max-width: 720px;
  margin-bottom: clamp(2.25rem, 5vw, 4rem);
}

.section-header--split {
  display: block;
  max-width: 760px;
}

.section-header--split > :last-child {
  margin-top: 1.25rem;
}

.section-header p,
.lead,
.page-hero__intro {
  max-width: 62ch;
  color: var(--text-2);
  font-size: clamp(1.03rem, 1.5vw, 1.2rem);
}

.eyebrow,
.page-context {
  display: block;
  width: fit-content;
  margin-bottom: 1rem;
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 680;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
}

.eyebrow::before {
  display: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration-thickness: 1px;
}

.text-link:hover {
  color: var(--text-1);
}

.skip-link {
  border-radius: var(--radius-control);
  background: var(--accent);
  color: var(--accent-ink);
}

/* Header and navigation */
.info-bar {
  z-index: 52;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 0.84rem;
  font-weight: 560;
  text-align: left;
}

.info-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  min-height: 36px;
}

.info-bar a {
  display: inline-flex;
  color: var(--text-1);
  padding: 0;
  font-weight: 700;
}

.site-header {
  top: 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-canvas) 88%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  backdrop-filter: blur(18px) saturate(125%);
}

.header-inner {
  min-height: var(--header-height);
}

.site-header .brand,
.site-footer .brand {
  display: inline-flex;
  border-radius: 12px;
  background: #f5f6f3;
  padding: 0.38rem 0.58rem;
}

.site-header .brand {
  align-items: flex-start;
  flex-direction: column;
  gap: 0.18rem;
}

.site-footer .brand {
  align-items: flex-start;
  flex-direction: column;
  gap: 0.18rem;
}

.site-footer .brand img {
  margin-bottom: 0;
}

.brand img {
  width: 174px;
}

.brand__tagline {
  display: block;
  max-width: 174px;
  color: #405064;
  font-size: 0.55rem;
  font-weight: 760;
  letter-spacing: 0.035em;
  line-height: 1.18;
  text-transform: uppercase;
}

.site-nav {
  background: var(--surface-canvas);
}

.nav-list a {
  color: var(--text-2);
  font-size: 0.94rem;
  font-weight: 620;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--text-1);
}

.nav-toggle,
.theme-toggle {
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface-1);
  color: var(--text-1);
}

.theme-toggle {
  min-height: 42px;
  padding: 0.55rem 0.75rem;
  font: 650 0.83rem/1 var(--font-sans);
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.theme-toggle:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.button {
  min-height: 48px;
  border-radius: var(--radius-control);
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.78rem 1.15rem;
  font-weight: 720;
  white-space: nowrap;
  box-shadow: none;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}

.button:hover {
  transform: translateY(-2px);
  background: var(--accent-strong);
  color: var(--accent-ink);
  box-shadow: none;
}

.button:active,
.theme-toggle:active,
.nav-toggle:active {
  transform: translateY(1px) scale(0.985);
}

.button--secondary,
.button--ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--text-1);
}

.button--secondary:hover,
.button--ghost:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text-1);
}

.button--danger {
  border-color: color-mix(in srgb, var(--danger) 45%, transparent);
  background: transparent;
  color: var(--danger);
}

.button-group {
  align-items: center;
  gap: 0.8rem;
}

/* Homepage */
.home-hero {
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.home-hero::before {
  display: none;
}

.home-hero__grid {
  display: grid;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
  min-height: clamp(620px, calc(100dvh - 110px), 760px);
}

.home-hero__copy {
  position: relative;
  z-index: 1;
}

.home-hero h1 {
  max-width: 10ch;
  font-size: clamp(3.35rem, 6.2vw, 6.1rem);
  letter-spacing: -0.062em;
}

.home-hero .lead {
  max-width: 52ch;
  margin-bottom: 1.7rem;
}

.home-hero__media,
.editorial-photo {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: var(--surface-2);
  box-shadow: var(--shadow-lift);
}

.home-hero__media {
  aspect-ratio: 4 / 3;
}

.home-hero__media::after,
.editorial-photo::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: inherit;
  pointer-events: none;
  content: "";
}

.home-hero__media img,
.editorial-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-proof {
  border-block: 1px solid var(--line);
  background: var(--surface-1);
}

.proof-rail {
  display: grid;
  border-bottom: 1px solid var(--line);
}

.proof-rail p {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding: 1.35rem 0;
}

.proof-rail strong {
  color: var(--text-1);
  font-size: 0.96rem;
}

.proof-rail span {
  color: var(--text-2);
  font-size: 0.9rem;
}

.home-proof__risk {
  padding-top: 1.35rem;
}

.home-proof__risk .notice {
  margin: 0;
}

.home-method__grid,
.home-outcomes__grid,
.home-workshop__grid,
.home-credibility__grid {
  display: grid;
  gap: clamp(2.5rem, 7vw, 6rem);
}

.method-sequence {
  display: grid;
  border-top: 1px solid var(--line-strong);
}

.method-sequence article {
  min-height: 170px;
  border-bottom: 1px solid var(--line);
  padding: 1.55rem 0;
}

.method-sequence h3 {
  margin-bottom: 0.55rem;
  color: var(--accent-strong);
}

.method-sequence p {
  max-width: 34ch;
  margin: 0;
  color: var(--text-2);
}

.home-learning-path {
  margin-bottom: 2rem;
}

.home-outcomes {
  padding-block: clamp(4.5rem, 7vw, 6.5rem);
}

.home-outcomes__grid {
  align-items: start;
}

.home-outcomes__intro {
  max-width: 23rem;
}

.home-outcomes__intro h2 {
  max-width: 12ch;
  margin-bottom: 1rem;
  text-wrap: balance;
}

.home-outcomes__intro p {
  max-width: 34ch;
  margin: 0;
  color: var(--text-2);
}

.home-outcomes .home-outcome-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.75rem, 3vw, 3rem) clamp(2rem, 4vw, 4.5rem);
  margin: 0;
  padding-left: clamp(1.75rem, 3vw, 3.25rem);
  border: 0;
  border-left: 1px solid var(--line-strong);
}

.home-outcome-list li:nth-child(n) {
  display: grid;
  grid-column: auto;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  align-items: start;
  gap: 0.85rem;
  min-height: 0;
  padding: 0;
  border: 0;
}

.home-outcome-list span {
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.05em;
}

.home-outcome-list p {
  max-width: 30ch;
  margin: 0;
  color: var(--text-1);
  font-size: clamp(1.05rem, 1.35vw, 1.3rem);
  font-weight: 650;
  line-height: 1.35;
  text-wrap: pretty;
}

.home-workshop__grid {
  align-items: center;
}

.editorial-photo {
  aspect-ratio: 3 / 2;
}

.monthly-rhythm {
  margin-block: 1.8rem;
  border-top: 1px solid var(--line-strong);
}

.monthly-rhythm p {
  display: grid;
  gap: 0.2rem;
  margin: 0;
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.monthly-rhythm strong {
  color: var(--text-1);
}

.monthly-rhythm span {
  color: var(--text-2);
}

.home-credibility__grid {
  align-items: start;
}

.founder-note {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.founder-note dl {
  margin-block: 2rem;
  border-top: 1px solid var(--line-strong);
}

.founder-note dl div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 0;
}

.founder-note dt {
  color: var(--text-3);
  font-size: 0.82rem;
  font-weight: 700;
}

.founder-note dd {
  margin: 0;
  color: var(--text-2);
}

.home-final-cta {
  min-height: 290px;
}

/* Shared marketing pages */
.page-hero {
  border-bottom: 1px solid var(--line);
  background: var(--surface-1);
  padding-block: clamp(2.75rem, 6vw, 5.5rem);
}

.page-hero h1 {
  max-width: 19ch;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
}

.page-hero__grid {
  display: grid;
  align-items: center;
  gap: clamp(2.5rem, 7vw, 6rem);
}

.page-hero__visual {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  background: var(--surface-2);
  box-shadow: var(--shadow-soft);
}

.page-hero__visual img {
  width: 100%;
  height: 100%;
  max-height: 470px;
  object-fit: contain;
}

.page-hero__visual img[src$=".webp"] {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.breadcrumbs {
  margin-bottom: 1.7rem;
  color: var(--text-3);
  font-size: 0.84rem;
}

.breadcrumbs a {
  color: var(--text-2);
}

.breadcrumbs li:not(:last-child)::after {
  color: var(--text-3);
}

.grid,
.split {
  gap: clamp(1.2rem, 3vw, 2.25rem);
}

.split {
  align-items: center;
}

.card,
.price-card,
.form-card,
.auth-aside,
.module-card,
.legal-content,
.terms-article,
.member-section,
.subscription-card,
.checkout-summary,
.onboarding-result {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface-1);
  color: var(--text-1);
  box-shadow: none;
}

.card {
  padding: clamp(1.4rem, 3vw, 2rem);
}

.card--accent,
.card--gold,
.card--sky {
  border-top-color: var(--accent);
}

.card p,
.price-card p,
.auth-aside p,
.module-card p {
  color: var(--text-2);
}

.support-tier-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.support-tier-card__footer {
  display: grid;
  justify-items: start;
  gap: 0.85rem;
  margin-top: auto;
  padding-top: clamp(1.4rem, 3vw, 2rem);
}

.support-tier-card__footer .capacity-note {
  width: 100%;
  margin: 0;
}

.card .support-plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0;
  color: var(--text-1);
}

.support-plan-price strong {
  color: var(--text-1);
  font-family: var(--font-mono);
  font-size: clamp(1.9rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.support-plan-price span {
  color: var(--text-2);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.icon-tile {
  display: none;
}

.illustration-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface-2);
  padding: clamp(1rem, 3vw, 2rem);
}

.illustration-panel img {
  width: 100%;
}

.value-list,
.value-list--large {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.value-list li {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
  color: var(--text-1);
  font-weight: 650;
}

.value-list li:nth-child(odd) {
  padding-right: 1rem;
}

.value-list li:nth-child(even) {
  padding-left: 1rem;
}

.pillar-rail,
.problem-grid,
.level-grid,
.ninety-days,
.monthly-cycle,
.channel-grid {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--line);
}

.pillar-rail > *,
.problem-grid > *,
.level-grid > *,
.ninety-days > *,
.monthly-cycle > *,
.channel-grid > * {
  margin: 0;
  background: var(--surface-1);
  padding: clamp(1.4rem, 3vw, 2.1rem);
}

.pillar-rail span,
.pillar-rail strong,
.problem-grid span,
.level-grid span,
.ninety-days span,
.monthly-cycle span,
.channel-grid article > span:first-child {
  color: var(--accent-strong);
  font: 700 0.8rem/1.2 var(--font-mono);
}

.comparison-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--line);
  gap: 1px;
}

.comparison-panel > * {
  background: var(--surface-1);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.comparison-panel--light {
  background: var(--line);
}

.check-list,
.minus-list,
.lesson-list {
  display: grid;
  gap: 0.7rem;
  margin: 1.25rem 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.minus-list li,
.lesson-list li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--text-2);
}

.check-list li::before,
.lesson-list li::before {
  position: absolute;
  left: 0;
  color: var(--accent-strong);
  content: "+";
}

.minus-list li::before {
  position: absolute;
  left: 0;
  color: var(--danger);
  content: "-";
}

.badge,
.tag,
.status-pill {
  border-color: var(--line-strong);
  background: var(--surface-2);
  color: var(--text-1);
}

.badge--gold,
.tag:not(.tag--neutral) {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

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

.outcome-list li {
  border-bottom: 1px solid var(--line);
}

.outcome-list span,
.learning-path > li > span,
.module-number {
  color: var(--accent-strong);
  font-family: var(--font-mono);
}

.learning-path {
  padding: 0;
  list-style: none;
}

.learning-path > li {
  border-color: var(--line);
  background: transparent;
}

/* Pricing */
.pricing-section {
  color: var(--text-1);
}

.pricing-toggle {
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-1);
  padding: 0.28rem;
}

.pricing-toggle label span {
  border-radius: 999px;
  color: var(--text-2);
}

.pricing-toggle input:checked + span {
  background: var(--accent);
  color: var(--accent-ink);
}

.pricing-grid {
  align-items: start;
  gap: 1.25rem;
}

.price-card {
  display: grid;
  gap: 1rem;
  padding: clamp(1.5rem, 4vw, 2.4rem);
}

.price-card--featured {
  border-color: var(--accent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--accent) 42%, transparent);
}

.price-card__label {
  position: static;
  width: fit-content;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  padding: 0.35rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.price-line strong,
.price-total strong {
  color: var(--text-1);
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: -0.06em;
}

.price-line span,
.billing-line,
.annual-reference,
.saving-line,
.price-footnote,
.price-risk,
.capacity-note {
  color: var(--text-2);
}

.price-card .button {
  width: 100%;
}

.price-details {
  border-top: 1px solid var(--line);
}

.price-details summary {
  padding: 0.9rem 0;
  color: var(--accent-strong);
  font-weight: 680;
  cursor: pointer;
}

.price-details .check-list {
  margin-top: 0.25rem;
}

.pricing-clarity {
  border-color: var(--line);
  color: var(--text-2);
}

/* Accordions and long-form content */
.accordion-list {
  border-top: 1px solid var(--line-strong);
}

.accordion-item {
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.accordion-trigger {
  min-height: 62px;
  color: var(--text-1);
  font-weight: 660;
}

.accordion-trigger:hover {
  color: var(--accent-strong);
}

.accordion-panel {
  color: var(--text-2);
  padding-bottom: 1.35rem;
}

.faq-group {
  scroll-margin-top: calc(var(--header-height) + 2rem);
}

.faq-group + .faq-group {
  margin-top: clamp(3rem, 7vw, 5.5rem);
}

.search-panel,
.module-filters {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface-1);
}

/* FAQ search: a functional directory tool, not a generic form card. */
.faq-directory-section {
  padding-top: clamp(3.25rem, 6vw, 5.25rem);
}

.faq-page .faq-search-panel {
  position: relative;
  z-index: 1;
  top: auto;
  display: grid;
  gap: clamp(1.35rem, 3vw, 2rem);
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
  border-color: var(--line-strong);
  background: var(--surface-1);
  padding: clamp(1.35rem, 3.5vw, 2.15rem);
  box-shadow: none;
}

.faq-search-panel__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.faq-search-panel__head h2 {
  max-width: 19ch;
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.faq-search-panel__head > div > p {
  max-width: 48ch;
  margin: 0.7rem 0 0;
  color: var(--text-2);
}

.faq-search-panel .results-count {
  display: grid;
  min-width: 136px;
  margin: 0;
  border-left: 1px solid var(--line-strong);
  padding-left: 1.4rem;
}

.faq-search-panel .results-count strong {
  color: var(--accent-strong);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 720;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.faq-search-panel .results-count span {
  max-width: 12ch;
  margin-top: 0.5rem;
  color: var(--text-2);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.25;
}

.faq-search-panel__field {
  display: grid;
  gap: 0.55rem;
}

.faq-search-panel__field label {
  color: var(--text-1);
  font-weight: 680;
}

.faq-search-panel__field input {
  width: 100%;
  min-height: 60px;
  border-color: var(--line-strong);
  background: var(--surface-canvas);
  padding: 0.95rem 1.1rem;
  color: var(--text-1);
  font-size: 1.03rem;
}

.faq-search-panel__field input:hover {
  border-color: var(--accent);
}

.faq-search-panel__field > p {
  margin: 0;
  color: var(--text-3);
  font-size: 0.82rem;
}

@media (max-width: 640px) {
  .faq-search-panel__head {
    grid-template-columns: 1fr;
  }

  .faq-search-panel .results-count {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
    gap: 0.75rem;
    min-width: 0;
    border-top: 1px solid var(--line-strong);
    border-left: 0;
    padding-top: 1rem;
    padding-left: 0;
  }

  .faq-search-panel .results-count span {
    max-width: none;
    margin-top: 0;
  }
}

.module-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.65rem;
}

.module-filters button {
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  padding: 0.62rem 0.9rem;
  font-weight: 650;
}

.module-filters button[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.module-list {
  display: grid;
  gap: 1rem;
}

.module-card {
  padding: clamp(1.4rem, 3vw, 2rem);
}

.module-card__header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.15rem;
}

.module-card__header h2 {
  max-width: none;
  margin-top: 0.85rem;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.14;
}

.module-number {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface-2);
}

.module-details {
  margin-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.module-details summary {
  padding: 1rem 0;
  color: var(--text-1);
  font-weight: 680;
  cursor: pointer;
}

.module-details summary:hover {
  color: var(--accent-strong);
}

.module-details__content {
  display: grid;
  gap: 1px;
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);
}

.module-details__content > section {
  background: var(--surface-2);
  padding: clamp(1rem, 3vw, 1.5rem);
}

.module-details__content h3 {
  font-size: 1.05rem;
}

.practice-grid {
  gap: 1rem;
}

/* Notices, forms and tables */
.notice {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text-2);
  padding: 1rem 1.15rem;
}

.notice p {
  color: inherit;
}

.notice--risk,
.notice--warning,
.notice--nonlisted {
  border-left-color: var(--warning);
  background: color-mix(in srgb, var(--warning) 8%, var(--surface-2));
}

.section--navy .notice--nonlisted {
  color: var(--text-1);
}

.section--navy .notice--nonlisted strong {
  color: var(--accent-strong);
}

.notice--success {
  border-left-color: var(--success);
  background: color-mix(in srgb, var(--success) 8%, var(--surface-2));
}

.form-card,
.auth-aside,
.checkout-summary,
.onboarding-result {
  padding: clamp(1.4rem, 4vw, 2.35rem);
}

.field,
.form-grid {
  gap: 0.7rem;
}

.field label,
.fieldset-label,
legend {
  color: var(--text-1);
  font-weight: 680;
}

input,
select,
textarea {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--surface-2);
  color: var(--text-1);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-3);
  opacity: 1;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field-help {
  color: var(--text-2);
}

.field-error {
  color: var(--danger);
}

.choice-stack label,
.choice-grid label,
.choice-inline label,
.choice-cards label,
.checkbox-field,
.setting-list label {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--text-1);
}

.choice-stack label:has(input:checked),
.choice-grid label:has(input:checked),
.choice-inline label:has(input:checked),
.choice-cards label:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.table-scroll {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface-1);
}

table {
  color: var(--text-1);
}

caption,
th,
td {
  border-color: var(--line);
}

thead {
  background: var(--surface-2);
}

td,
tbody th {
  color: var(--text-2);
}

/* Community access matrix: explicit dark palette prevents light-only colors
   from inheriting dark-theme text tokens and losing contrast. */
html[data-theme="dark"] .community-access-section {
  border-color: #243447;
  background: #0c1520;
}

html[data-theme="dark"] .community-access-section .section-header .eyebrow {
  color: #e8b95c;
}

html[data-theme="dark"] .community-access-section .section-header h2 {
  color: #f5f3ed;
}

html[data-theme="dark"] .community-access-section .section-header > p:last-child {
  color: #bdc8d4;
}

html[data-theme="dark"] .community-comparison-shell {
  border-color: #35495d;
  background: #101923;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .community-comparison-shell::before {
  background: linear-gradient(90deg, #4e8bc4 0 62%, #d7a447 62% 100%);
}

html[data-theme="dark"] .community-comparison thead th {
  color: #f5f3ed;
}

html[data-theme="dark"] .community-comparison thead th:first-child {
  background: #0b1723;
}

html[data-theme="dark"] .community-comparison thead th:nth-child(2) {
  background: #142b40;
}

html[data-theme="dark"] .community-comparison thead th:nth-child(3) {
  background: #193753;
}

html[data-theme="dark"] .community-comparison .comparison-heading small {
  color: #b8d8f5;
}

html[data-theme="dark"] .community-comparison .comparison-heading strong {
  color: #ffffff;
}

html[data-theme="dark"] .community-comparison .comparison-heading--circle small {
  color: #f3d383;
}

html[data-theme="dark"] .community-comparison tbody th {
  border-color: #2c3c4d;
  background: #121d28;
}

html[data-theme="dark"] .community-comparison tbody td {
  border-color: #2c3c4d;
}

html[data-theme="dark"] .community-comparison tbody td:nth-child(2) {
  background: #152433;
}

html[data-theme="dark"] .community-comparison tbody td:nth-child(3) {
  border-left-color: #4b4838;
  background: #1d2a38;
}

html[data-theme="dark"] .community-comparison tbody tr:hover th {
  background: #182838;
}

html[data-theme="dark"] .community-comparison tbody tr:hover td:nth-child(2) {
  background: #1b3043;
}

html[data-theme="dark"] .community-comparison tbody tr:hover td:nth-child(3) {
  background: #253647;
}

html[data-theme="dark"] .community-comparison .comparison-feature__index {
  border-color: #3a6484;
  background: #0f2a40;
  color: #f1ca72;
}

html[data-theme="dark"] .community-comparison .comparison-feature > span:last-child {
  color: #f1f3f5;
}

html[data-theme="dark"] .community-comparison .comparison-feature small {
  color: #b8c4d0;
}

html[data-theme="dark"] .community-comparison .status-pill--included {
  border-color: #34704d;
  background: #173629;
  color: #c9f3d7;
}

html[data-theme="dark"] .community-comparison .status-pill--priority {
  border-color: #416fa8;
  background: #17365c;
  color: #d5e7ff;
}

html[data-theme="dark"] .community-comparison .status-pill--scheduled {
  border-color: #79642c;
  background: #3b311d;
  color: #ffe09a;
}

html[data-theme="dark"] .community-comparison .status-pill--unavailable {
  border-color: #46515d;
  background: #252e38;
  color: #cbd2da;
}

html[data-theme="dark"] .community-comparison-note {
  border-color: #35495d;
  background: #101d29;
}

html[data-theme="dark"] .community-comparison-note > span {
  background: #d7a447;
  color: #111820;
}

html[data-theme="dark"] .community-comparison-note p {
  color: #c2ccd6;
}

html[data-theme="dark"] .community-comparison-note strong {
  color: #f5f3ed;
}

/* Pricing comparison: an editorial matrix, not a generic data table. */
.pricing-comparison__intro {
  max-width: 880px;
}

.pricing-comparison__intro h2 {
  max-width: 20ch;
  margin: 0;
}

.pricing-comparison__intro > p {
  max-width: 46ch;
  margin: 0;
  color: var(--text-2);
  text-wrap: pretty;
}

.pricing-comparison {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  background: var(--surface-canvas);
  box-shadow: var(--shadow-soft);
}

.pricing-comparison .comparison-table {
  width: 100%;
  min-width: 0;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.pricing-comparison .comparison-table thead {
  background: transparent;
}

.pricing-comparison .comparison-table thead th {
  width: 32%;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: clamp(1.35rem, 3vw, 2rem);
  background: var(--surface-2);
  color: var(--text-1);
  text-align: left;
  vertical-align: bottom;
}

.pricing-comparison .comparison-table thead th:first-child {
  width: 36%;
  background: var(--surface-canvas);
}

.comparison-table__axis > span,
.comparison-plan > small {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-3);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.comparison-table__axis > strong {
  display: block;
  max-width: 13ch;
  color: var(--text-1);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.15;
}

.comparison-plan {
  display: grid;
  gap: 0.25rem;
}

.comparison-plan__name {
  color: var(--text-1);
  font-size: clamp(0.98rem, 1.4vw, 1.12rem);
  font-weight: 740;
  line-height: 1.2;
}

.comparison-plan__price {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.comparison-plan__price strong {
  color: var(--text-1);
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 2.3vw, 1.85rem);
  letter-spacing: -0.05em;
  line-height: 1;
}

.comparison-plan__price span {
  color: var(--text-3);
  font-size: 0.75rem;
  font-weight: 650;
}

.pricing-comparison .comparison-table__circle {
  border-left: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
  background: color-mix(in srgb, var(--accent) 7%, var(--surface-1));
}

.pricing-comparison .comparison-table thead .comparison-table__circle {
  background: color-mix(in srgb, var(--accent) 10%, var(--surface-2));
  box-shadow: inset 0 3px 0 var(--accent);
}

.pricing-comparison .comparison-table__circle .comparison-plan > small {
  color: var(--accent-strong);
}

.pricing-comparison .comparison-table__group th {
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 1rem clamp(1.35rem, 3vw, 2rem);
  background: var(--surface-canvas);
  color: var(--accent-strong);
  font-size: 0.73rem;
  font-weight: 780;
  letter-spacing: 0.09em;
  line-height: 1.3;
  text-align: left;
  text-transform: uppercase;
}

.pricing-comparison .comparison-table tbody tr:not(.comparison-table__group) > * {
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 1.1rem clamp(1.35rem, 3vw, 2rem);
  background: var(--surface-1);
  text-align: left;
  vertical-align: middle;
}

.pricing-comparison .comparison-table tbody tr:not(.comparison-table__group) > th {
  color: var(--text-1);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.4;
}

.pricing-comparison .comparison-status {
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.45;
}

.pricing-comparison .comparison-status[data-status="unavailable"] {
  color: var(--text-3);
}

.pricing-comparison .comparison-status[data-status="conditional"] {
  color: var(--accent-strong);
  font-weight: 680;
}

.pricing-comparison .comparison-table__circle[data-status="included"] {
  color: var(--text-1);
  font-weight: 650;
}

.pricing-comparison .comparison-table tbody:last-child tr:last-child > * {
  border-bottom: 0;
}

.cta-panel {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  background: var(--surface-2);
  color: var(--text-1);
  padding: clamp(1.6rem, 5vw, 3.5rem);
}

.cta-panel p {
  color: var(--text-2);
}

/* Legal, authentication and account surfaces */
.legal-content,
.terms-content {
  color: var(--text-2);
}

.legal-content h2,
.legal-content h3,
.terms-content h2,
.terms-content h3 {
  color: var(--text-1);
}

.terms-layout,
.privacy-layout {
  gap: clamp(2rem, 5vw, 4rem);
}

.terms-toc__inner,
.privacy-toc,
.legal-mentions-toc,
.cgv-toc {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface-1);
}

.terms-toc a,
.privacy-toc a,
.legal-mentions-toc a,
.cgv-toc a {
  color: var(--text-2);
}

.terms-toc a:hover,
.privacy-toc a:hover,
.legal-mentions-toc a:hover,
.cgv-toc a:hover {
  color: var(--accent-strong);
}

.terms-article {
  border-width: 1px 0 0;
  border-radius: 0;
  background: transparent;
  padding: clamp(1.7rem, 4vw, 2.5rem) 0;
}

.terms-article:first-child {
  border-top-color: var(--line-strong);
}

.terms-article__title,
.legal-updated,
.terms-law-note,
.terms-final-note {
  color: var(--text-2);
}

.terms-summary-grid,
.terms-renewal-grid,
.privacy-data-grid,
.privacy-storage-list {
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--line);
}

.terms-summary-grid > *,
.terms-renewal-grid > *,
.privacy-data-grid > *,
.privacy-storage-list > * {
  background: var(--surface-1);
}

/* Legal identity overview: neutral, high-contrast and distinct from the document. */
.legal-identity-overview {
  background: var(--surface-1);
}

.legal-identity-overview::after {
  display: none;
}

.legal-identity-overview .section-header {
  max-width: 780px;
}

.legal-identity-overview .section-header h2 {
  max-width: 15ch;
  color: var(--text-1);
}

.legal-identity-overview .section-header > p {
  color: var(--text-2);
}

.legal-identity-overview .eyebrow,
.legal-identity-overview .terms-summary-grid small {
  color: var(--accent-strong);
}

.legal-identity-overview .terms-summary-grid {
  border-color: var(--line-strong);
  background: var(--line);
  box-shadow: none;
}

.legal-identity-overview .terms-summary-grid article {
  border: 0;
  border-radius: 0;
  background: var(--surface-2);
  color: var(--text-1);
  box-shadow: none;
}

.legal-identity-overview .terms-summary-grid h3 {
  color: var(--text-1);
}

.legal-identity-overview .terms-summary-grid p {
  color: var(--text-2);
}

.legal-identity-overview .terms-summary-icon,
.legal-identity-overview .terms-summary-icon--navy,
.legal-identity-overview .terms-summary-icon--gold,
.legal-identity-overview .terms-summary-icon--sky {
  border: 1px solid var(--line-strong);
  background: var(--surface-3);
  color: var(--accent-strong);
  box-shadow: none;
}

.legal-identity-overview .terms-summary-grid article:first-child .terms-summary-icon {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.auth-shell,
.checkout-layout,
.onboarding-shell {
  align-items: start;
  gap: clamp(1.2rem, 4vw, 2.5rem);
}

.auth-aside {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.success-mark {
  background: color-mix(in srgb, var(--success) 13%, var(--surface-2));
  color: var(--success);
}

.cancellation-steps {
  border-color: var(--line);
  background: var(--surface-1);
}

.cancellation-steps span {
  color: var(--text-2);
}

.cancellation-steps .is-active {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

/* Member demo uses an app shell instead of marketing-page rhythm. */
body[data-page="espace-membre-demo.html"] .info-bar,
body[data-page="espace-membre-demo.html"] .site-footer {
  display: none;
}

.member-hero {
  border-bottom: 1px solid var(--line);
  background: var(--surface-1);
  color: var(--text-1);
}

.member-hero h1 {
  max-width: none;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
}

.member-shell {
  background: var(--surface-canvas);
}

.member-layout {
  gap: 1.2rem;
}

.member-sidebar {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface-1);
}

.member-sidebar a {
  color: var(--text-2);
}

.member-sidebar a:hover,
.member-sidebar a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--text-1);
}

.member-content {
  gap: 1.2rem;
}

.member-section {
  padding: clamp(1.25rem, 4vw, 2rem);
}

.member-section__head {
  border-color: var(--line);
}

.metric-row,
.dashboard-preview {
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);
}

.metric-row article,
.dashboard-card {
  border: 0;
  border-radius: 0;
  background: var(--surface-2);
}

.metric-row small,
.dashboard-card small,
.member-section small {
  color: var(--text-3);
}

.progress {
  background: var(--surface-3);
}

.progress span {
  background: var(--accent);
}

.member-focus,
.community-preview,
.subscription-card,
.end-date-card {
  border-color: var(--line);
  background: var(--surface-2);
}

.member-modules article,
.agenda-list article,
.setting-list label {
  border-color: var(--line);
  background: transparent;
}

.member-modules .is-current {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* Footer and consent */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface-1);
  color: var(--text-2);
}

.site-footer p,
.site-footer li,
.footer-risk {
  color: var(--text-2);
}

.footer-title {
  color: var(--text-1);
  font-size: 0.95rem;
  letter-spacing: 0;
}

.footer-links a,
.footer-links button {
  color: var(--text-2);
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--accent-strong);
}

.footer-bottom {
  border-color: var(--line);
}

.placeholder {
  border-color: color-mix(in srgb, var(--warning) 42%, transparent);
  background: color-mix(in srgb, var(--warning) 9%, var(--surface-2));
  color: var(--warning);
}

.cookie-banner,
.cookie-dialog__inner {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  background: var(--surface-1);
  color: var(--text-1);
  box-shadow: var(--shadow-lift);
}

.cookie-banner p,
.cookie-dialog p,
.preference-row p {
  color: var(--text-2);
}

.preference-row {
  border-color: var(--line);
}

.back-to-top {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text-1);
  box-shadow: var(--shadow-soft);
}

.back-to-top:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

/* Motion communicates hierarchy and feedback only. */
.js .reveal {
  transform: translateY(18px);
  opacity: 0;
}

.js .reveal.is-visible {
  transform: translateY(0);
  opacity: 1;
  transition: transform 620ms cubic-bezier(0.16, 1, 0.3, 1), opacity 620ms ease;
}

@media (min-width: 680px) {
  .proof-rail {
    grid-template-columns: 1.2fr 0.9fr 1fr;
  }

  .proof-rail p {
    padding: 1.35rem 1.4rem;
  }

  .proof-rail p:first-child {
    padding-left: 0;
  }

  .proof-rail p + p {
    border-left: 1px solid var(--line);
  }

  .method-sequence,
  .module-details__content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .method-sequence article:nth-child(odd) {
    padding-right: 1.5rem;
  }

  .method-sequence article:nth-child(even) {
    border-left: 1px solid var(--line);
    padding-left: 1.5rem;
  }

  .pricing-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .pillar-rail,
  .problem-grid,
  .level-grid,
  .ninety-days,
  .monthly-cycle,
  .channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .home-hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  }

  .home-method__grid {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  }

  .home-outcomes__grid {
    grid-template-columns: minmax(280px, 0.68fr) minmax(0, 1.32fr);
  }

  .home-workshop__grid {
    grid-template-columns: minmax(0, 1.06fr) minmax(330px, 0.94fr);
  }

  .home-credibility__grid {
    grid-template-columns: minmax(290px, 0.72fr) minmax(0, 1.28fr);
  }

  .page-hero__grid,
  .split {
    grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  }

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

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

  .grid--3 > *:nth-child(odd) {
    grid-column: span 7;
  }

  .grid--3 > *:nth-child(even) {
    grid-column: span 5;
  }

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

  .pillar-rail,
  .monthly-cycle {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .level-grid,
  .ninety-days {
    grid-template-columns: 1.15fr 0.95fr 0.9fr;
  }
}

@media (min-width: 1024px) {
  .home-learning-path {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-top: 1px solid var(--line-strong);
  }

  .home-learning-path > li {
    display: block;
    border-bottom: 0;
    padding: 1.3rem 1.1rem 1.3rem 0;
  }

  .home-learning-path > li + li {
    border-left: 1px solid var(--line);
    padding-left: 1.1rem;
  }

  .home-learning-path > li > span {
    display: block;
    margin-bottom: 1.5rem;
    font-size: 0.82rem;
  }

  .member-layout {
    grid-template-columns: 250px minmax(0, 1fr);
  }
}

@media (min-width: 1280px) {
  .site-nav {
    gap: 0.55rem;
  }

  .nav-list {
    gap: 0;
  }

  .nav-list a {
    padding: 0.62rem 0.58rem;
    font-size: 0.83rem;
  }

  .nav-actions {
    gap: 0.45rem;
    margin-left: 0.2rem;
  }

  .nav-actions .button,
  .nav-actions .theme-toggle {
    font-size: 0.82rem;
  }
}

@media (max-width: 1279px) {
  .site-header {
    background: var(--surface-canvas);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .site-nav {
    top: var(--nav-top, var(--header-height));
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    height: calc(100dvh - var(--nav-top, var(--header-height)));
    min-height: 0;
    background: var(--surface-canvas);
  }

  body.menu-open {
    overflow: hidden;
  }
}

@media (max-width: 899px) {
  .home-hero__grid {
    min-height: 0;
  }

  .home-hero h1 {
    max-width: 12ch;
    font-size: clamp(3rem, 13vw, 5.4rem);
  }

  .home-hero__media {
    max-height: 540px;
  }

  .home-outcomes__grid {
    gap: 2.5rem;
  }

  .home-outcomes__intro {
    max-width: 34rem;
  }

  .founder-note,
  .auth-aside {
    position: static;
  }

  .pricing-comparison__intro {
    display: grid;
    gap: 1.15rem;
  }

  .pricing-comparison {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .pricing-comparison .comparison-table,
  .pricing-comparison .comparison-table thead,
  .pricing-comparison .comparison-table tbody {
    display: block;
    width: 100%;
  }

  .pricing-comparison .comparison-table thead tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .pricing-comparison .comparison-table thead th:first-child {
    display: none;
  }

  .pricing-comparison .comparison-table thead th {
    display: block;
    width: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    padding: 1rem;
    background: var(--surface-1);
  }

  .pricing-comparison .comparison-table thead .comparison-table__circle {
    border-color: color-mix(in srgb, var(--accent) 48%, transparent);
    background: color-mix(in srgb, var(--accent) 8%, var(--surface-1));
  }

  .comparison-plan__price {
    display: grid;
    gap: 0.3rem;
    margin-top: 0.75rem;
  }

  .pricing-comparison .comparison-table tbody {
    margin-top: 1.4rem;
  }

  .pricing-comparison .comparison-table tbody + tbody {
    margin-top: 2rem;
  }

  .pricing-comparison .comparison-table__group {
    display: block;
  }

  .pricing-comparison .comparison-table__group th {
    display: block;
    width: 100%;
    border-bottom: 1px solid var(--line-strong);
    padding: 0.7rem 0;
    background: transparent;
  }

  .pricing-comparison .comparison-table tbody tr:not(.comparison-table__group) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 1rem;
    border-bottom: 1px solid var(--line);
    padding: 1.05rem 0;
  }

  .pricing-comparison .comparison-table tbody tr:not(.comparison-table__group) > * {
    display: block;
    width: auto;
    border: 0;
    padding: 0;
    background: transparent;
  }

  .pricing-comparison .comparison-table tbody tr:not(.comparison-table__group) > th {
    grid-column: 1 / -1;
  }

  .pricing-comparison .comparison-status::before {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--text-3);
    content: attr(data-plan);
    font-size: 0.68rem;
    font-weight: 740;
    letter-spacing: 0.06em;
    line-height: 1.3;
    text-transform: uppercase;
  }

  .pricing-comparison .comparison-table tbody .comparison-table__circle {
    border-left: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
    padding-left: 1rem;
  }

  .pricing-comparison .comparison-table tbody:last-child tr:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 679px) {
  .info-bar__inner {
    display: flex;
    justify-content: space-between;
    gap: 0.7rem;
    min-height: 42px;
  }

  .info-bar__inner span {
    display: none;
  }

  .info-bar__inner a {
    margin-inline: auto;
  }

  .site-header .brand img {
    width: 150px;
  }

  .section {
    padding-block: 4.25rem;
  }

  .home-outcomes {
    padding-block: 4rem;
  }

  .home-outcomes .home-outcome-list {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    padding-left: 0;
    border-left: 0;
  }

  .home-outcome-list li:nth-child(n) {
    grid-template-columns: 2.2rem minmax(0, 1fr);
  }

  .home-hero {
    padding-top: 2.25rem;
  }

  .home-hero h1 {
    font-size: clamp(3rem, 15vw, 4.4rem);
  }

  .proof-rail p + p {
    border-top: 1px solid var(--line);
  }

  .value-list,
  .value-list--large {
    grid-template-columns: 1fr;
  }

  .value-list li:nth-child(odd),
  .value-list li:nth-child(even) {
    padding-inline: 0;
  }

  .module-card__header {
    grid-template-columns: 1fr;
  }

  .button,
  .button-group > .button {
    width: 100%;
    white-space: normal;
  }

  .button-group .text-link {
    width: 100%;
  }

  .founder-note dl div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .cta-panel {
    display: grid;
  }

  .pricing-comparison__intro h2 {
    max-width: 16ch;
  }

  .comparison-plan__name {
    font-size: 0.9rem;
  }

  .comparison-plan__price strong {
    font-size: 1.35rem;
  }

  .pricing-comparison .comparison-table thead th {
    padding: 0.9rem;
  }

  .pricing-comparison .comparison-table tbody tr:not(.comparison-table__group) {
    column-gap: 0.75rem;
  }

  .pricing-comparison .comparison-table tbody .comparison-table__circle {
    padding-left: 0.75rem;
  }
}

@media (max-width: 519px) {
  .pricing-comparison .comparison-table thead tr,
  .pricing-comparison .comparison-table tbody tr:not(.comparison-table__group) {
    grid-template-columns: 1fr;
  }

  .pricing-comparison .comparison-table tbody tr:not(.comparison-table__group) > th {
    grid-column: auto;
  }

  .pricing-comparison .comparison-table tbody .comparison-table__circle {
    padding-left: 1rem;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    transform: none;
    opacity: 1;
  }
}

html[data-reduced-motion="true"] {
  scroll-behavior: auto;
}

html[data-reduced-motion="true"] *,
html[data-reduced-motion="true"] *::before,
html[data-reduced-motion="true"] *::after {
  scroll-behavior: auto !important;
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

html[data-reduced-motion="true"] .js .reveal,
html[data-reduced-motion="true"] .reveal {
  transform: none;
  opacity: 1;
}

.terms-document-head h2 {
  color: #ffffff;
}

@media print {
  .theme-toggle,
  .info-bar,
  .site-header,
  .site-footer,
  .cookie-banner,
  .cookie-dialog,
  .back-to-top {
    display: none !important;
  }

  body,
  .section,
  .page-hero,
  .card,
  .terms-article {
    background: #ffffff !important;
    color: #111111 !important;
  }
}
