@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700;800&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --bg-main: #f4f6ff;
  --bg-elev: #ffffff;
  --bg-soft: #f8f9ff;
  --text: #0f1530;
  --text-muted: #4f5a7a;
  --line: rgba(15, 28, 68, 0.14);
  --accent: #5e4bff;
  --accent-2: #ff6fd8;
  --accent-3: #23d5ab;
  --card: #ffffff;
  --card-elev: #ffffff;
  --shadow-lg: 0 30px 70px rgba(23, 28, 61, 0.18);
  --radius: 24px;
  --shell: min(1120px, calc(100vw - 2rem));
  --experience-height-step: 100px;
  --phone-screen-offset-top: 4px;
  --phone-screen-offset-bottom: 4px;
  --phone-screen-side-gap: 4px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 15% 12%, #dde6ff 0%, transparent 42%),
    radial-gradient(circle at 90% -5%, rgba(94, 75, 255, 0.18), transparent 30%),
    radial-gradient(circle at 50% 95%, rgba(35, 213, 171, 0.15), transparent 40%),
    var(--bg-main);
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.85rem;
}

.skip-link:focus {
  left: 1rem;
  background: var(--accent);
  color: #fff;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  z-index: 999;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg-elev) 86%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header__shell {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand img {
  width: 118px;
  filter: none;
  transition: filter 0.2s ease;
}

.brand .brand-logo-word--header {
  --brand-logo-width: 118px;
  --brand-logo-height: 48px;
  width: var(--brand-logo-width);
  height: var(--brand-logo-height);
  margin: 0;
  vertical-align: middle;
  color: #111c40;
}

:root[data-theme='dark'] .brand .brand-logo-word--header,
:root:not([data-theme='light']) .brand .brand-logo-word--header {
  color: #f4f8ff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .brand .brand-logo-word--header {
    color: #f4f8ff;
  }
}

@media (max-width: 760px) {
  :root[data-theme='light'] .brand .brand-logo-word--header {
    color: #111c40;
  }
}

@media (max-width: 760px) and (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) .brand .brand-logo-word--header {
    color: #111c40;
  }
}

:root[data-theme='light'] .brand img {
  filter: invert(1) hue-rotate(180deg) saturate(115%);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) .brand img {
    filter: invert(1) hue-rotate(180deg) saturate(115%);
  }
}

.header__nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header__nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  padding: 0.35rem 0.15rem;
}

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

.theme-toggle {
  margin-left: 0.75rem;
  width: 84px;
  height: 34px;
  position: relative;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg-elev) 86%, transparent);
  color: var(--text);
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 2px;
  gap: 0;
  cursor: pointer;
  overflow: hidden;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    background-color 0.2s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: color-mix(in oklab, var(--accent) 45%, transparent);
}

.theme-toggle__option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  font-size: 0.9rem;
  line-height: 1;
  opacity: 0.65;
  color: var(--text);
  transition: color 0.2s ease, opacity 0.2s ease;
  position: relative;
  z-index: 2;
}

.theme-toggle__option--sun {
  color: #0f172a;
}

.theme-toggle__option--moon {
  color: var(--text);
}

.theme-toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  width: 50%;
  height: calc(100% - 4px);
  border-radius: 999px;
  background: linear-gradient(130deg, var(--accent), var(--accent-2));
  box-shadow: 0 4px 16px color-mix(in oklab, var(--accent) 35%, transparent);
  transition: transform 0.28s cubic-bezier(0.25, 0.75, 0.2, 1);
  z-index: 0;
}

:root[data-theme='dark'] .theme-toggle__thumb,
.theme-toggle[data-theme='dark'] .theme-toggle__thumb {
  transform: translateX(100%);
}

:root:not([data-theme='dark']) .theme-toggle__thumb,
.theme-toggle[data-theme='light'] .theme-toggle__thumb {
  transform: translateX(0%);
}

:root:not([data-theme='dark']) .theme-toggle__option--sun,
.theme-toggle[data-theme='light'] .theme-toggle__option--sun,
:root[data-theme='light'] .theme-toggle__option--sun {
  opacity: 1;
}

:root[data-theme='dark'] .theme-toggle__option--moon,
.theme-toggle[data-theme='dark'] .theme-toggle__option--moon {
  color: #f8fafc;
  opacity: 1;
}

:root[data-theme='dark'] .theme-toggle__option--sun,
.theme-toggle[data-theme='dark'] .theme-toggle__option--sun {
  opacity: 0.45;
}

:root:not([data-theme='dark']) .theme-toggle__option--moon,
.theme-toggle[data-theme='light'] .theme-toggle__option--moon,
:root[data-theme='light'] .theme-toggle__option--moon {
  opacity: 0.45;
}

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

.menu-toggle {
  display: none;
}

.button {
  display: inline-block;
  text-decoration: none;
  padding: 0.72rem 1.05rem;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: white;
  font-weight: 700;
}

.button--ghost,
.button--outline {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  box-shadow: none;
}

.button--outline {
  border-color: color-mix(in oklab, var(--text) 20%, transparent);
}

.button:hover,
.button:focus-visible,
.button--ghost:hover,
.button--outline:hover,
.button--ghost:focus-visible,
.button--outline:focus-visible {
  transform: translateY(-1px);
}

.section {
  padding: 4rem 0;
}

.section:not(:first-of-type) {
  position: relative;
}

.eyebrow {
  margin: 0 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: color-mix(in oklab, var(--accent) 78%, var(--text-muted));
  font-weight: 700;
  font-size: 0.78rem;
}

:root[data-theme='dark'] .eyebrow {
  color: #1c2748;
}

:root[data-theme='dark'] .section--social .eyebrow {
  color: #dce4ff;
}

:root[data-theme='dark'] .section--experience .eyebrow {
  color: #dce4ff;
}

:root[data-theme='dark'] .section--pillars .eyebrow {
  color: #111c40;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 3.6vw + 1rem, 3.4rem);
  line-height: 1.08;
  margin-bottom: 0.85rem;
}

h2 {
  font-size: clamp(1.55rem, 2vw + 1rem, 2.45rem);
  margin-bottom: 0.85rem;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.55rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-lg);
}

.section--hero .hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.86fr);
  gap: clamp(1rem, 3vw, 2.6rem);
  align-items: center;
  position: relative;
}

.hero-brand-stack {
  position: relative;
  width: min(245px, 42vw);
  aspect-ratio: 2.45 / 1;
  margin: -0.25rem auto auto;
  padding: 0.62rem 1.15rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(5, 10, 25, 0.26), rgba(5, 10, 25, 0.42)),
    url("assets/logos/globe.svg") center / cover no-repeat;
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.34),
    0 0 34px rgba(66, 177, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-brand-globe {
  position: relative;
  z-index: 1;
  width: 92%;
  height: auto;
  display: block;
  margin: 0;
  object-fit: contain;
  object-position: center;
  filter:
    drop-shadow(0 4px 10px rgba(0, 0, 0, 0.48))
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.08));
  transition: filter 0.2s ease;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) .brand img {
    content: url("assets/logos/gathr-typeface-header.png?v=3");
    filter: none;
  }
}

:root[data-theme='light'] .brand img {
  content: url("assets/logos/gathr-typeface-header.png?v=3");
  filter: none;
}

.hero__copy {
  color: var(--text);
}

.hero-headline-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 24px;
  min-height: clamp(430px, 42vw, 570px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.4rem, 2.5vw, 2.2rem) clamp(1.2rem, 2.5vw, 2rem) clamp(1.35rem, 2.5vw, 2rem);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-lg);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 34%, rgba(4, 9, 26, 0.02), rgba(4, 9, 26, 0.28) 58%, rgba(4, 9, 26, 0.5) 100%),
    linear-gradient(180deg, rgba(4, 9, 26, 0.08) 0%, rgba(4, 9, 26, 0.28) 54%, rgba(4, 9, 26, 0.7) 100%);
  z-index: 1;
}

.hero-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  display: block;
  filter: saturate(1.08) contrast(1.08) brightness(0.92);
}

.hero-headline-panel > *:not(.hero-media):not(.hero-media *) {
  position: relative;
  z-index: 2;
}

:root[data-theme='light'] .hero__copy h1,
:root:not([data-theme='dark']) .hero__copy h1,
:root[data-theme='light'] .hero__copy p,
:root:not([data-theme='dark']) .hero__copy p,
:root[data-theme='light'] .hero__copy .hero__bullets li,
:root:not([data-theme='dark']) .hero__copy .hero__bullets li {
  color: #0f1530;
  background: linear-gradient(110deg, #0f1530 0%, #27376f 62%, #4f5a7a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

:root[data-theme='dark'] .hero__copy h1,
:root:not([data-theme='light']) .hero__copy h1,
:root[data-theme='dark'] .hero__copy p,
:root:not([data-theme='light']) .hero__copy p,
:root[data-theme='dark'] .hero__copy .hero__bullets li,
:root:not([data-theme='light']) .hero__copy .hero__bullets li {
  color: #1c2748;
  background: none;
  -webkit-text-fill-color: initial;
  background-clip: initial;
}

:root[data-theme='dark'] .hero__bullets li,
:root:not([data-theme='light']) .hero__bullets li {
  border-color: rgba(28, 39, 72, 0.7);
  color: #1c2748;
}

:root[data-theme='dark'] .hero__actions .button--outline,
:root:not([data-theme='light']) .hero__actions .button--outline {
  color: #1c2748;
  border-color: #1c2748;
}

.hero-headline-panel h1,
:root[data-theme='light'] .hero-headline-panel h1,
:root:not([data-theme='dark']) .hero-headline-panel h1,
:root[data-theme='dark'] .hero-headline-panel h1,
:root:not([data-theme='light']) .hero-headline-panel h1 {
  color: #f4f7ff;
  background: none;
  -webkit-text-fill-color: #f4f7ff;
  margin-bottom: 0;
  text-shadow:
    0 2px 18px rgba(4, 9, 26, 0.56),
    0 1px 3px rgba(4, 9, 26, 0.72);
}

.hero-title {
  display: grid;
  gap: 0.22em;
  max-width: 100%;
}

.hero-title__lead,
.hero-title__sub {
  display: block;
}

.hero-title__lead {
  font-size: clamp(1.74rem, 3.05vw, 2.88rem);
  line-height: 0.95;
  white-space: nowrap;
  color: #f2fbff;
  background: linear-gradient(92deg, #ffffff 0%, #d8f6ff 34%, #7bdcff 67%, #c8ffe2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 0 18px rgba(77, 184, 255, 0.24),
    0 7px 24px rgba(0, 0, 0, 0.62);
}

.hero-title__sub {
  width: max-content;
  margin-left: clamp(7.15rem, 16.2vw, 15.3rem);
  font-size: clamp(1.14rem, 1.94vw, 1.68rem);
  line-height: 1;
  font-weight: 600;
  color: #dcfff2;
  -webkit-text-fill-color: #dcfff2;
  text-shadow:
    0 0 14px rgba(108, 255, 191, 0.26),
    0 4px 18px rgba(0, 0, 0, 0.62);
}

:root[data-theme='light'] .hero-media::after,
:root:not([data-theme='dark']) .hero-media::after {
  background:
    radial-gradient(circle at 50% 34%, rgba(4, 9, 26, 0.02), rgba(4, 9, 26, 0.22) 58%, rgba(4, 9, 26, 0.4) 100%),
    linear-gradient(180deg, rgba(4, 9, 26, 0.03) 0%, rgba(4, 9, 26, 0.18) 54%, rgba(4, 9, 26, 0.62) 100%);
}

.hero__phone {
  transform: translateX(-0.8rem);
}

.hero__copy p {
  max-width: 65ch;
}

.hero__actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin: 1.15rem 0 1rem;
}

.hero__bullets {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  color: var(--text-muted);
}

.hero__bullets li {
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  background: var(--bg-elev);
  border: 1px dashed var(--line);
}

.phone-shell {
  position: relative;
  width: min(360px, 100%);
  margin: 0 auto;
  border-radius: 34px;
  background: linear-gradient(150deg, #0f1633, #121f4f);
  padding: 0;
  aspect-ratio: 390 / 844;
  box-shadow: var(--shadow-lg);
  border: 1px solid color-mix(in oklab, var(--accent) 25%, transparent);
  overflow: hidden;
}

.phone-shell__notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: block;
  width: 94px;
  height: 8px;
  border-radius: 999px;
  background: color-mix(in oklab, #ffffff 20%, transparent);
  margin: 0;
}

.phone-shell img {
  position: absolute;
  left: var(--phone-screen-side-gap);
  right: var(--phone-screen-side-gap);
  top: var(--phone-screen-offset-top);
  height: calc(100% - (var(--phone-screen-offset-top) + var(--phone-screen-offset-bottom)));
  width: calc(100% - var(--phone-screen-side-gap) * 2);
  object-fit: cover;
  object-position: center top;
  border-radius: 28px;
  border: 1px solid color-mix(in oklab, #ffffff 18%, transparent);
  margin: 0;
  box-sizing: border-box;
}

.proof__grid,
.pillars-grid,
.social-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.proof__grid .card,
.pillars-grid article,
.social-grid blockquote {
  background: var(--card);
  border: 1px solid var(--line);
}

.pillars-grid article {
  border-radius: 20px;
  padding: 1rem;
}

.pillars-grid article p {
  margin: 0;
  color: var(--text-muted);
}

.card__value {
  font-size: 1.24rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: var(--accent);
}

:root[data-theme='light'] .proof .card__value {
  color: #185391;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) .proof .card__value {
    color: #185391;
  }
}

.card__text {
  margin: 0;
  color: var(--text-muted);
}

.section--experience {
  position: relative;
}

.experience-layout {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: clamp(1.25rem, 3vw, 2.4rem);
  align-items: start;
}

.journey-list {
  display: grid;
  gap: 0.65rem;
}

.journey-step {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.78rem 0.95rem;
  background: var(--card-elev);
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.journey-step:hover,
.journey-step:focus-visible,
.journey-step.is-active {
  transform: translateY(-1px);
  border-color: color-mix(in oklab, var(--accent) 72%, transparent);
  box-shadow: 0 12px 24px color-mix(in oklab, var(--accent) 14%, transparent);
}

.journey-step.is-active {
  background: color-mix(in oklab, var(--accent) 7%, var(--card-elev));
}

.journey-step__meta {
  margin: 0 0 0.25rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.journey-step h3 {
  margin-bottom: 0.35rem;
}

.journey-step p {
  margin: 0;
  color: var(--text-muted);
}

.journey-phone {
  position: sticky;
  top: 100px;
  z-index: 3;
}

.journey-phone .phone-shell {
  width: min(380px, 100%);
}

.journey-caption {
  margin-top: 0.8rem;
  color: var(--text);
  text-align: center;
  min-height: 3rem;
}

.social-grid blockquote {
  margin: 0;
  border-radius: 18px;
  padding: 1rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.5;
}

.social-grid blockquote::before {
  content: "“";
  font-size: 1.5rem;
  color: var(--accent);
}

.download-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.section--download {
  text-align: center;
}

.section--download p {
  color: var(--text-muted);
  margin-inline: auto;
  max-width: 58ch;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0 2rem;
  margin-top: 1rem;
}

.footer__grid {
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-muted);
}

.footer__links {
  display: flex;
  gap: 1rem;
}

.footer__links a {
  text-decoration: none;
}

.footer__links a:hover,
.footer__links a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.phone-screen {
  transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.34s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 1;
  transform: translateY(0);
}

.phone-screen.slide-up,
.phone-screen.slide-down {
  opacity: 0;
}

.phone-screen.slide-up {
  transform: translateY(-20px);
}

.phone-screen.slide-down {
  transform: translateY(20px);
}

.phone-screen.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 940px) {
  .header__nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 73px;
    background: color-mix(in oklab, var(--bg-elev) 90%, transparent);
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    display: none;
  }

  .header__nav.is-open {
    display: flex;
  }

  .menu-toggle {
    margin-left: auto;
    display: inline-flex;
    border: 1px solid var(--line);
    background: transparent;
    border-radius: 12px;
    color: var(--text);
    padding: 0.45rem 0.8rem;
  }

  .section {
    padding: 2.75rem 0;
  }

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

  .hero-title {
    gap: 0.16em;
  }

  .hero-title__lead {
    font-size: clamp(1.9rem, 7vw, 3.18rem);
    white-space: nowrap;
  }

  .hero-title__sub {
    justify-self: end;
    margin-left: 0;
    margin-right: 0;
    font-size: clamp(1.18rem, 4.4vw, 1.95rem);
  }

  .proof__grid,
  .pillars-grid,
  .social-grid {
    grid-template-columns: 1fr;
  }

  .experience-layout,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .experience-layout {
    display: flex;
    flex-direction: column-reverse;
    gap: 1.25rem;
  }

  .journey-phone {
    position: static;
    margin-bottom: 1rem;
  }
}

@media (max-width: 560px) {
  .hero-title__lead {
    font-size: clamp(1.72rem, 8.2vw, 2.72rem);
  }

  .hero-title__sub {
    margin-right: 0;
    font-size: clamp(1.05rem, 4.7vw, 1.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-main: #050913;
    --bg-elev: #0a1223;
    --bg-soft: #101b31;
    --text: #e8f0ff;
    --text-muted: #a5b5d9;
    --line: rgba(181, 204, 255, 0.22);
    --card: rgba(12, 20, 40, 0.92);
    --card-elev: rgba(11, 19, 37, 0.95);
    --shadow-lg: 0 28px 56px rgba(2, 8, 20, 0.58);
    color-scheme: dark;
  }
}

:root[data-theme='light'] {
  --bg-main: #f4f6ff;
  --bg-elev: #ffffff;
  --bg-soft: #f8f9ff;
  --text: #0f1530;
  --text-muted: #4f5a7a;
  --line: rgba(15, 28, 68, 0.14);
  --accent: #5e4bff;
  --accent-2: #ff6fd8;
  --accent-3: #23d5ab;
  --card: #ffffff;
  --card-elev: #ffffff;
  --shadow-lg: 0 30px 70px rgba(23, 28, 61, 0.18);
  --radius: 24px;
  color-scheme: light;
}

:root[data-theme='dark'] {
  --bg-main: #050913;
  --bg-elev: #0a1223;
  --bg-soft: #101b31;
  --text: #e8f0ff;
  --text-muted: #a5b5d9;
  --line: rgba(181, 204, 255, 0.22);
  --card: rgba(12, 20, 40, 0.92);
  --card-elev: rgba(11, 19, 37, 0.95);
  --shadow-lg: 0 28px 56px rgba(2, 8, 20, 0.58);
  --radius: 24px;
  color-scheme: dark;
}

:where(.button, .button--outline, .button--ghost):focus-visible {
  outline: 3px solid color-mix(in oklab, var(--accent) 45%, transparent);
  outline-offset: 2px;
}

/* Offline polish pass: install CTAs, walkthrough progress, and QR download panel. */
.hero__bullets {
  display: grid;
  gap: 0.75rem;
}

.hero__bullets li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid color-mix(in oklab, var(--line) 76%, transparent);
  border-radius: 18px;
  background:
    linear-gradient(135deg, color-mix(in oklab, var(--bg-elev) 82%, transparent), color-mix(in oklab, var(--bg-main) 82%, transparent));
  box-shadow: 0 14px 34px rgba(15, 35, 76, 0.06);
}

.hero__bullet-icon {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #185391, #25b68a);
  box-shadow: 0 10px 24px rgba(24, 83, 145, 0.24);
}

.hero__bullets strong,
.hero__bullets small {
  display: block;
}

.hero__bullets strong {
  color: var(--text);
  font-size: 0.98rem;
}

.hero__bullets small {
  margin-top: 0.12rem;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.journey-progress {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 1.25rem 0 1.4rem;
}

.journey-progress span {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 2.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-muted);
  background: color-mix(in oklab, var(--bg-elev) 74%, transparent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.journey-progress span.is-complete {
  color: #185391;
  border-color: color-mix(in oklab, #25b68a 55%, var(--line));
  background: color-mix(in oklab, #25b68a 12%, var(--bg-elev));
}

.journey-progress span.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #185391, #25b68a);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(24, 83, 145, 0.2);
}

.journey-step {
  position: relative;
}

.journey-step::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 999px;
  background: transparent;
}

.journey-step.is-active::before {
  background: linear-gradient(180deg, #185391, #25b68a);
}

.journey-phone__eyebrow {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  margin-top: 1.2rem;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 82% 20%, rgba(37, 182, 138, 0.16), transparent 32%),
    linear-gradient(135deg, color-mix(in oklab, var(--bg-elev) 88%, transparent), color-mix(in oklab, var(--bg-main) 86%, transparent));
  box-shadow: 0 24px 58px rgba(18, 31, 68, 0.09);
}

.download-panel__copy p {
  max-width: 58ch;
}

.download-qr {
  width: min(190px, 34vw);
  margin: 0;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  color: #203050;
  text-align: center;
  box-shadow: 0 18px 42px rgba(18, 31, 68, 0.12);
}

.download-qr img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.download-qr figcaption {
  margin-top: 0.55rem;
  font-size: 0.82rem;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .download-panel {
    grid-template-columns: 1fr;
  }

  .download-qr {
    width: min(220px, 100%);
  }
}

@media (max-width: 560px) {
  .journey-progress {
    gap: 0.32rem;
  }

  .journey-progress span {
    min-height: 1.85rem;
    font-size: 0.7rem;
  }
}

/* Final polish overrides: hero chips, walkthrough progress, and QR download panel. */
.hero__bullets {
  display: grid;
  gap: 0.75rem;
}

.hero__bullets li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid color-mix(in oklab, var(--line) 76%, transparent);
  border-radius: 18px;
  background: linear-gradient(135deg, color-mix(in oklab, var(--bg-elev) 82%, transparent), color-mix(in oklab, var(--bg-main) 82%, transparent));
  box-shadow: 0 14px 34px rgba(15, 35, 76, 0.06);
}

.hero__bullet-icon {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #185391, #25b68a);
  box-shadow: 0 10px 24px rgba(24, 83, 145, 0.24);
}

.hero__bullets strong,
.hero__bullets small {
  display: block;
}

.hero__bullets strong {
  color: var(--text);
  font-size: 0.98rem;
}

.hero__bullets small {
  margin-top: 0.12rem;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.journey-progress {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 1.25rem 0 1.4rem;
}

.journey-progress span {
  display: grid;
  place-items: center;
  min-height: 2.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-muted);
  background: color-mix(in oklab, var(--bg-elev) 74%, transparent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.journey-progress span.is-complete {
  color: #185391;
  border-color: color-mix(in oklab, #25b68a 55%, var(--line));
  background: color-mix(in oklab, #25b68a 12%, var(--bg-elev));
}

.journey-progress span.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #185391, #25b68a);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(24, 83, 145, 0.2);
}

.journey-step.is-active::before {
  background: linear-gradient(180deg, #185391, #25b68a);
}

.journey-phone__eyebrow {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  margin-top: 1.2rem;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: radial-gradient(circle at 82% 20%, rgba(37, 182, 138, 0.16), transparent 32%), linear-gradient(135deg, color-mix(in oklab, var(--bg-elev) 88%, transparent), color-mix(in oklab, var(--bg-main) 86%, transparent));
  box-shadow: 0 24px 58px rgba(18, 31, 68, 0.09);
}

.download-panel__copy p {
  max-width: 58ch;
}

.download-qr {
  width: min(190px, 34vw);
  margin: 0;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  color: #203050;
  text-align: center;
  box-shadow: 0 18px 42px rgba(18, 31, 68, 0.12);
}

.download-qr img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.download-qr figcaption {
  margin-top: 0.55rem;
  font-size: 0.82rem;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .download-panel {
    grid-template-columns: 1fr;
  }

  .download-qr {
    width: min(220px, 100%);
  }
}

@media (max-width: 560px) {
  .journey-progress {
    gap: 0.32rem;
  }

  .journey-progress span {
    min-height: 1.85rem;
    font-size: 0.7rem;
  }
}

/* Mobile walkthrough pairing: keep active step context attached to the phone preview. */
.journey-mobile-step,
.journey-phone-progress {
  display: none;
}

@media (max-width: 760px) {
  .section--experience > .shell > .journey-progress {
    display: none;
  }

  .experience-layout {
    align-items: start;
  }

  .journey-phone {
    order: -1;
    position: sticky;
    top: 88px;
    z-index: 4;
    padding: 0.85rem 0.75rem 1rem;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: color-mix(in oklab, var(--bg-elev) 90%, transparent);
    box-shadow: 0 22px 54px rgba(18, 31, 68, 0.12);
    backdrop-filter: blur(14px);
  }

  .journey-mobile-step {
    display: grid;
    gap: 0.35rem;
    margin: 0 0 0.85rem;
    text-align: center;
  }

  .journey-phone-progress {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.32rem;
    margin-bottom: 0.45rem;
  }

  .journey-phone-progress span {
    display: grid;
    place-items: center;
    min-height: 1.7rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--text-muted);
    background: color-mix(in oklab, var(--bg-elev) 74%, transparent);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.06em;
  }

  .journey-phone-progress span.is-complete {
    color: #185391;
    border-color: color-mix(in oklab, #25b68a 55%, var(--line));
    background: color-mix(in oklab, #25b68a 12%, var(--bg-elev));
  }

  .journey-phone-progress span.is-active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #185391, #25b68a);
    box-shadow: 0 10px 22px rgba(24, 83, 145, 0.18);
  }

  .journey-mobile-step .journey-step__meta {
    margin: 0;
  }

  .journey-mobile-step h3 {
    margin: 0;
    font-size: clamp(1.18rem, 5vw, 1.55rem);
    line-height: 1.05;
  }

  .journey-mobile-step p:last-child {
    margin: 0 auto;
    max-width: 31ch;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.35;
  }

  .journey-phone .phone-shell {
    width: min(255px, 68vw);
    margin-inline: auto;
  }

  .journey-phone .journey-caption {
    display: none;
  }

  .journey-list {
    margin-top: 1rem;
  }
}

@media (max-width: 420px) {
  .journey-phone {
    top: 82px;
    padding: 0.75rem 0.6rem 0.85rem;
  }

  .journey-phone .phone-shell {
    width: min(232px, 66vw);
  }

  .journey-phone-progress span {
    min-height: 1.55rem;
    font-size: 0.62rem;
  }
}

/* Mobile walkthrough correction: active step context sits beside the phone, not stacked away from it. */
@media (max-width: 760px) {
  .journey-phone {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(145px, 38vw);
    grid-template-areas:
      "label label"
      "step phone";
    align-items: center;
    gap: 0.65rem 0.75rem;
    top: 78px;
    padding: 0.7rem;
  }

  .journey-phone__eyebrow {
    grid-area: label;
    margin: 0;
    text-align: left;
  }

  .journey-mobile-step {
    grid-area: step;
    align-self: center;
    gap: 0.3rem;
    margin: 0;
    text-align: left;
  }

  .journey-phone-progress {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.28rem;
    margin: 0 0 0.3rem;
    max-width: 9.2rem;
  }

  .journey-phone-progress span {
    min-height: 1.42rem;
    font-size: 0.58rem;
  }

  .journey-mobile-step h3 {
    font-size: clamp(1rem, 4.3vw, 1.28rem);
    line-height: 1.02;
  }

  .journey-mobile-step p:last-child {
    margin: 0;
    max-width: 22ch;
    font-size: 0.78rem;
    line-height: 1.28;
  }

  .journey-phone .phone-shell {
    grid-area: phone;
    width: min(188px, 38vw);
    margin-inline: auto;
  }
}

@media (max-width: 420px) {
  .journey-phone {
    grid-template-columns: minmax(0, 1fr) minmax(130px, 37vw);
    gap: 0.5rem;
    top: 74px;
    padding: 0.6rem;
  }

  .journey-phone__eyebrow {
    font-size: 0.66rem;
  }

  .journey-phone-progress {
    max-width: 7.8rem;
    gap: 0.22rem;
  }

  .journey-phone-progress span {
    min-height: 1.25rem;
    font-size: 0.52rem;
  }

  .journey-mobile-step .journey-step__meta {
    font-size: 0.68rem;
  }

  .journey-mobile-step h3 {
    font-size: clamp(0.95rem, 4vw, 1.08rem);
  }

  .journey-mobile-step p:last-child {
    font-size: 0.72rem;
  }

  .journey-phone .phone-shell {
    width: min(150px, 37vw);
  }
}

/* Mobile walkthrough scroll-story: one active tooltip plus phone, with slide motion. */
@media (max-width: 760px) {
  .section--experience {
    min-height: 430vh;
  }

  .section--experience .experience-layout {
    display: block;
  }

  .section--experience .journey-list {
    display: none;
  }

  .journey-phone {
    min-height: min(72vh, 620px);
    align-content: center;
  }

  .journey-mobile-step {
    position: relative;
    overflow: hidden;
  }

  .journey-mobile-step.is-sliding {
    animation-duration: 360ms;
    animation-timing-function: cubic-bezier(0.2, 0.85, 0.22, 1);
    animation-fill-mode: both;
  }

  .journey-mobile-step.is-sliding.slide-up {
    animation-name: mobileStepSlideUp;
  }

  .journey-mobile-step.is-sliding.slide-down {
    animation-name: mobileStepSlideDown;
  }
}

@keyframes mobileStepSlideUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mobileStepSlideDown {
  from {
    opacity: 0;
    transform: translateY(-22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile walkthrough v2: centered phone story with progress above and moment copy below. */
@media (max-width: 760px) {
  .section--experience {
    min-height: 430vh;
  }

  .section--experience .journey-list {
    display: none;
  }

  .section--experience .experience-layout {
    display: block;
  }

  .journey-phone {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "progress"
      "label"
      "phone"
      "step";
    justify-items: center;
    align-content: center;
    gap: 0.7rem;
    min-height: min(76vh, 650px);
    top: 76px;
    padding: 1rem 0.85rem 1.1rem;
    text-align: center;
  }

  .journey-phone-progress {
    grid-area: progress;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.32rem;
    width: min(315px, 100%);
    margin: 0 auto 0.1rem;
  }

  .journey-phone-progress span {
    display: grid;
    place-items: center;
    min-height: 1.85rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--text-muted);
    background: color-mix(in oklab, var(--bg-elev) 76%, transparent);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.06em;
  }

  .journey-phone-progress span.is-complete {
    color: #185391;
    border-color: color-mix(in oklab, #25b68a 55%, var(--line));
    background: color-mix(in oklab, #25b68a 12%, var(--bg-elev));
  }

  .journey-phone-progress span.is-active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #185391, #25b68a);
    box-shadow: 0 12px 24px rgba(24, 83, 145, 0.2);
  }

  .journey-phone__eyebrow {
    grid-area: label;
    margin: 0;
    text-align: center;
  }

  .journey-phone .phone-shell {
    grid-area: phone;
    width: min(240px, 66vw);
    margin: 0 auto;
  }

  .journey-mobile-step {
    grid-area: step;
    display: grid;
    justify-items: center;
    gap: 0.35rem;
    width: min(330px, 100%);
    margin: 0.1rem auto 0;
    text-align: center;
  }

  .journey-mobile-step .journey-step__meta {
    margin: 0;
  }

  .journey-mobile-step h3 {
    margin: 0;
    font-size: clamp(1.18rem, 5.2vw, 1.55rem);
    line-height: 1.04;
  }

  .journey-mobile-step p:last-child {
    margin: 0;
    max-width: 30ch;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.35;
  }

  .journey-phone .journey-caption {
    display: none;
  }
}

@media (max-width: 420px) {
  .journey-phone {
    top: 72px;
    gap: 0.55rem;
    min-height: min(74vh, 620px);
    padding: 0.8rem 0.7rem 0.95rem;
  }

  .journey-phone-progress {
    width: min(292px, 100%);
    gap: 0.24rem;
  }

  .journey-phone-progress span {
    min-height: 1.62rem;
    font-size: 0.58rem;
  }

  .journey-phone .phone-shell {
    width: min(218px, 64vw);
  }

  .journey-mobile-step h3 {
    font-size: clamp(1.06rem, 4.8vw, 1.28rem);
  }

  .journey-mobile-step p:last-child {
    font-size: 0.82rem;
  }
}

/* Mobile walkthrough order tweak: label first, in-preview counter directly below it. */
@media (max-width: 760px) {
  .journey-phone {
    grid-template-areas:
      "label"
      "progress"
      "phone"
      "step";
  }

  .journey-phone__eyebrow {
    margin-bottom: -0.15rem;
  }

  .journey-phone-progress {
    margin: 0 auto 0.15rem;
  }
}

/* Mobile walkthrough v3: progress strip below phone, above moment copy. */
@media (max-width: 760px) {
  .journey-phone {
    grid-template-areas:
      "label"
      "phone"
      "progress"
      "step";
  }

  .journey-phone-progress {
    width: min(245px, 72vw);
    height: 0.58rem;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.22rem;
    margin: -0.08rem auto 0.05rem;
    padding: 0.12rem;
    border: 1px solid color-mix(in oklab, var(--line) 72%, transparent);
    border-radius: 999px;
    background: color-mix(in oklab, var(--bg-elev) 78%, transparent);
    box-shadow: inset 0 1px 2px rgba(18, 31, 68, 0.08);
  }

  .journey-phone-progress span {
    min-height: 0;
    height: 100%;
    border: 0;
    border-radius: 999px;
    background: color-mix(in oklab, var(--text-muted) 18%, transparent);
    box-shadow: none;
  }

  .journey-phone-progress span.is-complete {
    background: color-mix(in oklab, #25b68a 64%, #185391);
  }

  .journey-phone-progress span.is-active {
    background: linear-gradient(90deg, #185391, #25b68a);
    box-shadow: 0 0 14px rgba(37, 182, 138, 0.34);
  }
}

@media (max-width: 420px) {
  .journey-phone-progress {
    width: min(220px, 72vw);
    height: 0.52rem;
  }
}

/* Post-hero typography consistency: one visual language for all content sections. */
:root[data-theme='light'] main .section:not(.section--hero) {
  --post-hero-heading: #0f1530;
  --post-hero-accent: #185391;
  --post-hero-body: #4f5a7a;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) main .section:not(.section--hero) {
    --post-hero-heading: #0f1530;
    --post-hero-accent: #185391;
    --post-hero-body: #4f5a7a;
  }
}

:root[data-theme='dark'] main .section:not(.section--hero),
:root:not([data-theme='light']) main .section:not(.section--hero) {
  --post-hero-heading: #f4f8ff;
  --post-hero-accent: #b9cbff;
  --post-hero-body: #dfeaff;
}

:root[data-theme='dark'] main .section:not(.section--hero) h2,
:root[data-theme='dark'] main .section:not(.section--hero) h3,
:root[data-theme='dark'] main .section:not(.section--hero) .card__value,
:root[data-theme='dark'] main .section:not(.section--hero) .feature-card h3,
:root[data-theme='dark'] main .section:not(.section--hero) .journey-step h3,
:root[data-theme='dark'] main .section:not(.section--hero) .journey-mobile-step h3,
:root:not([data-theme='light']) main .section:not(.section--hero) h2,
:root:not([data-theme='light']) main .section:not(.section--hero) h3,
:root:not([data-theme='light']) main .section:not(.section--hero) .card__value,
:root:not([data-theme='light']) main .section:not(.section--hero) .feature-card h3,
:root:not([data-theme='light']) main .section:not(.section--hero) .journey-step h3,
:root:not([data-theme='light']) main .section:not(.section--hero) .journey-mobile-step h3 {
  color: var(--post-hero-heading);
  -webkit-text-fill-color: var(--post-hero-heading);
}

:root[data-theme='dark'] main .section:not(.section--hero) .eyebrow,
:root[data-theme='dark'] main .section:not(.section--hero) .journey-step__meta,
:root:not([data-theme='light']) main .section:not(.section--hero) .eyebrow,
:root:not([data-theme='light']) main .section:not(.section--hero) .journey-step__meta {
  color: var(--post-hero-accent);
  -webkit-text-fill-color: var(--post-hero-accent);
}

:root[data-theme='dark'] main .section:not(.section--hero) .card__text,
:root[data-theme='dark'] main .section:not(.section--hero) .feature-card p,
:root[data-theme='dark'] main .section:not(.section--hero) .journey-step p:not(.journey-step__meta),
:root[data-theme='dark'] main .section:not(.section--hero) .journey-mobile-step p:last-child,
:root[data-theme='dark'] main .section:not(.section--hero) .social-grid blockquote,
:root[data-theme='dark'] main .section:not(.section--hero) .download-panel__copy p,
:root[data-theme='dark'] main .section:not(.section--hero) .download-qr figcaption,
:root:not([data-theme='light']) main .section:not(.section--hero) .card__text,
:root:not([data-theme='light']) main .section:not(.section--hero) .feature-card p,
:root:not([data-theme='light']) main .section:not(.section--hero) .journey-step p:not(.journey-step__meta),
:root:not([data-theme='light']) main .section:not(.section--hero) .journey-mobile-step p:last-child,
:root:not([data-theme='light']) main .section:not(.section--hero) .social-grid blockquote,
:root:not([data-theme='light']) main .section:not(.section--hero) .download-panel__copy p,
:root:not([data-theme='light']) main .section:not(.section--hero) .download-qr figcaption {
  color: var(--post-hero-body);
  -webkit-text-fill-color: var(--post-hero-body);
}

:root[data-theme='dark'] main .section:not(.section--hero) .card__value,
:root:not([data-theme='light']) main .section:not(.section--hero) .card__value {
  color: var(--post-hero-heading) !important;
  -webkit-text-fill-color: var(--post-hero-heading) !important;
}

/* Download panel final layout: centered actions with QR directly below. */
.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  text-align: center;
}

.download-panel__copy {
  display: grid;
  justify-items: center;
  width: 100%;
}

.download-panel__copy p {
  margin-inline: auto;
}

.download-actions {
  justify-content: center;
  align-items: center;
  width: 100%;
}

.button--icon {
  width: 3rem;
  min-width: 3rem;
  height: 3rem;
  padding: 0;
  display: inline-grid;
  place-items: center;
}

.share-icon {
  width: 1.18rem;
  height: 1.18rem;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.download-qr {
  margin-inline: auto;
}

.download-qr figcaption {
  display: none;
}

:root[data-theme='light'] main .section:not(.section--hero) h2,
:root[data-theme='light'] main .section:not(.section--hero) h3,
:root[data-theme='light'] main .section:not(.section--hero) .card__value,
:root[data-theme='light'] main .section:not(.section--hero) .feature-card h3,
:root[data-theme='light'] main .section:not(.section--hero) .journey-step h3,
:root[data-theme='light'] main .section:not(.section--hero) .journey-mobile-step h3 {
  color: var(--post-hero-heading);
  -webkit-text-fill-color: var(--post-hero-heading);
}

:root[data-theme='light'] main .section:not(.section--hero) .eyebrow,
:root[data-theme='light'] main .section:not(.section--hero) .journey-step__meta {
  color: var(--post-hero-accent);
  -webkit-text-fill-color: var(--post-hero-accent);
}

:root[data-theme='light'] main .section:not(.section--hero) .card__text,
:root[data-theme='light'] main .section:not(.section--hero) .feature-card p,
:root[data-theme='light'] main .section:not(.section--hero) .journey-step p:not(.journey-step__meta),
:root[data-theme='light'] main .section:not(.section--hero) .journey-mobile-step p:last-child,
:root[data-theme='light'] main .section:not(.section--hero) .social-grid blockquote,
:root[data-theme='light'] main .section:not(.section--hero) .download-panel__copy p,
:root[data-theme='light'] main .section:not(.section--hero) .download-qr figcaption {
  color: var(--post-hero-body);
  -webkit-text-fill-color: var(--post-hero-body);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) main .section:not(.section--hero) h2,
  :root:not([data-theme='dark']) main .section:not(.section--hero) h3,
  :root:not([data-theme='dark']) main .section:not(.section--hero) .card__value,
  :root:not([data-theme='dark']) main .section:not(.section--hero) .feature-card h3,
  :root:not([data-theme='dark']) main .section:not(.section--hero) .journey-step h3,
  :root:not([data-theme='dark']) main .section:not(.section--hero) .journey-mobile-step h3 {
    color: var(--post-hero-heading);
    -webkit-text-fill-color: var(--post-hero-heading);
  }

  :root:not([data-theme='dark']) main .section:not(.section--hero) .eyebrow,
  :root:not([data-theme='dark']) main .section:not(.section--hero) .journey-step__meta {
    color: var(--post-hero-accent);
    -webkit-text-fill-color: var(--post-hero-accent);
  }

  :root:not([data-theme='dark']) main .section:not(.section--hero) .card__text,
  :root:not([data-theme='dark']) main .section:not(.section--hero) .feature-card p,
  :root:not([data-theme='dark']) main .section:not(.section--hero) .journey-step p:not(.journey-step__meta),
  :root:not([data-theme='dark']) main .section:not(.section--hero) .journey-mobile-step p:last-child,
  :root:not([data-theme='dark']) main .section:not(.section--hero) .social-grid blockquote,
  :root:not([data-theme='dark']) main .section:not(.section--hero) .download-panel__copy p,
  :root:not([data-theme='dark']) main .section:not(.section--hero) .download-qr figcaption {
    color: var(--post-hero-body);
    -webkit-text-fill-color: var(--post-hero-body);
  }
}

/* Mobile walkthrough gap fix: keep the scroll story compact after Moment 6. */
@media (max-width: 760px) {
  .section--experience {
    min-height: calc(100svh + 560px);
    padding-bottom: clamp(2.5rem, 8vh, 4rem);
  }

  .section--experience .experience-layout {
    min-height: calc(100svh + 220px);
  }
}

@media (max-width: 420px) {
  .section--experience {
    min-height: calc(100svh + 480px);
  }

  .section--experience .experience-layout {
    min-height: calc(100svh + 180px);
  }
}

/* Mobile walkthrough gap fix v2: tighter release after final moment. */
@media (max-width: 760px) {
  .section--experience {
    min-height: calc(100svh + 360px);
    padding-bottom: clamp(1.2rem, 4vh, 2.25rem);
  }

  .section--experience .experience-layout {
    min-height: calc(100svh + 80px);
  }
}

@media (max-width: 420px) {
  .section--experience {
    min-height: calc(100svh + 320px);
  }

  .section--experience .experience-layout {
    min-height: calc(100svh + 60px);
  }
}

/* Light header logo visual size match. */
:root[data-theme='light'] .brand img {
  width: 96px;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) .brand img {
    width: 96px;
  }
}

/* Header logo mode parity: identical box/geometry, color-only swap. */
.brand img {
  width: 118px;
}

:root[data-theme='light'] .brand img {
  content: url("assets/logos/gathr-typeface-header.png?v=4");
  width: 118px;
  filter: none;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) .brand img {
    content: url("assets/logos/gathr-typeface-header.png?v=4");
    width: 118px;
    filter: none;
  }
}

/* Desktop hero baseline alignment: video card and phone top edges match. */
@media (min-width: 941px) {
  .section--hero .hero {
    align-items: start;
  }

  .hero__phone {
    align-self: start;
    transform: translateX(-0.8rem);
  }
}

/* Desktop walkthrough fit: phone aligns to Moment 1-6 stack and uses bottom progress strip. */
@media (min-width: 941px) {
  .section--experience > .shell > .journey-progress {
    display: none;
  }

  .experience-layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
    align-items: start;
  }

  .journey-phone {
    display: grid;
    grid-template-areas:
      "phone"
      "progress";
    justify-items: center;
    align-self: start;
    top: 92px;
  }

  .journey-phone__eyebrow,
  .journey-phone .journey-caption,
  .journey-mobile-step {
    display: none;
  }

  .journey-phone .phone-shell {
    grid-area: phone;
    width: clamp(260px, 18vw, 286px);
    margin: 0 auto;
  }

  .journey-phone-progress {
    grid-area: progress;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.24rem;
    width: clamp(230px, 16vw, 260px);
    height: 0.62rem;
    margin: 0.72rem auto 0;
    padding: 0.12rem;
    border: 1px solid color-mix(in oklab, var(--line) 72%, transparent);
    border-radius: 999px;
    background: color-mix(in oklab, var(--bg-elev) 78%, transparent);
    box-shadow: inset 0 1px 2px rgba(18, 31, 68, 0.08);
  }

  .journey-phone-progress span {
    min-height: 0;
    height: 100%;
    border: 0;
    border-radius: 999px;
    background: color-mix(in oklab, var(--text-muted) 18%, transparent);
    box-shadow: none;
  }

  .journey-phone-progress span.is-complete {
    background: color-mix(in oklab, #25b68a 64%, #185391);
  }

  .journey-phone-progress span.is-active {
    background: linear-gradient(90deg, #185391, #25b68a);
    box-shadow: 0 0 14px rgba(37, 182, 138, 0.34);
  }
}

/* Desktop walkthrough hover guard: prevent stationary mouse from re-selecting cards during scroll. */
@media (min-width: 941px) {
  .journey-list.is-hover-guarded .journey-step {
    pointer-events: none;
  }
}

/* Tablet walkthrough: use the desktop-style card rail plus compact phone preview. */
@media (min-width: 761px) and (max-width: 940px) {
  .section--experience > .shell > .journey-progress {
    display: none;
  }

  .experience-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 300px);
    gap: clamp(1rem, 2.4vw, 1.75rem);
    align-items: start;
  }

  .journey-list {
    display: grid;
    gap: 0.58rem;
    margin-top: 0;
  }

  .journey-step {
    padding: 0.68rem 0.82rem;
    border-radius: 16px;
  }

  .journey-step__meta {
    margin-bottom: 0.18rem;
    font-size: 0.68rem;
  }

  .journey-step h3 {
    margin-bottom: 0.24rem;
    font-size: clamp(0.98rem, 1.75vw, 1.12rem);
  }

  .journey-step p {
    font-size: clamp(0.78rem, 1.45vw, 0.9rem);
    line-height: 1.35;
  }

  .journey-phone {
    display: grid;
    grid-template-areas:
      "phone"
      "progress";
    justify-items: center;
    align-self: start;
    position: sticky;
    top: 88px;
    z-index: 3;
    margin-bottom: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    text-align: initial;
  }

  .journey-phone__eyebrow,
  .journey-phone .journey-caption,
  .journey-mobile-step {
    display: none;
  }

  .journey-phone .phone-shell {
    grid-area: phone;
    width: clamp(230px, 31vw, 276px);
    margin: 0 auto;
  }

  .journey-phone-progress {
    grid-area: progress;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.22rem;
    width: clamp(210px, 28vw, 252px);
    height: 0.58rem;
    margin: 0.66rem auto 0;
    padding: 0.11rem;
    border: 1px solid color-mix(in oklab, var(--line) 72%, transparent);
    border-radius: 999px;
    background: color-mix(in oklab, var(--bg-elev) 78%, transparent);
    box-shadow: inset 0 1px 2px rgba(18, 31, 68, 0.08);
  }

  .journey-phone-progress span {
    min-height: 0;
    height: 100%;
    border: 0;
    border-radius: 999px;
    background: color-mix(in oklab, var(--text-muted) 18%, transparent);
    box-shadow: none;
  }

  .journey-phone-progress span.is-complete {
    background: color-mix(in oklab, #25b68a 64%, #185391);
  }

  .journey-phone-progress span.is-active {
    background: linear-gradient(90deg, #185391, #25b68a);
    box-shadow: 0 0 14px rgba(37, 182, 138, 0.34);
  }
}

/* Desktop hero support cleanup: compact symmetrical feature strip. */
@media (min-width: 941px) {
  .hero__copy p {
    max-width: 58ch;
  }

  .hero__actions {
    margin: 1rem 0 0.95rem;
  }

  .hero__bullets {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 0.9rem;
  }

  .hero__bullets li {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 0.45rem;
    padding: 0.9rem 0.75rem;
    min-height: 132px;
  }

  .hero__bullet-icon {
    width: 2.15rem;
    height: 2.15rem;
  }

  .hero__bullets strong {
    font-size: 0.92rem;
  }

  .hero__bullets small {
    max-width: 17ch;
    font-size: 0.78rem;
  }
}

/* Hero CTA relocation: phone-side actions with left-side feature strip alignment. */
.brand-word {
  font-style: italic;
}

.brand-logo-word {
  --brand-logo-size: 3.82em;
  --brand-logo-width: 2.93em;
  --brand-logo-height: 1.45em;
  display: inline-block;
  width: var(--brand-logo-width);
  height: var(--brand-logo-height);
  margin-inline: -0.06em 0.06em;
  vertical-align: -0.24em;
  line-height: 1;
  color: #185391;
  background: url("assets/logos/gathr-typeface-header.svg") center / var(--brand-logo-size) var(--brand-logo-size) no-repeat;
}

.brand-logo-word.is-svg-ready {
  background: none;
}

.brand-logo-word__svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.brand-logo-word__svg .cls-2 {
  fill: #ff2a1f !important;
  stroke: #ff2a1f;
  stroke-width: 8;
  stroke-linejoin: round;
  paint-order: stroke fill;
}

:root[data-theme='dark'] .brand-logo-word__svg .cls-2,
:root:not([data-theme='light']) .brand-logo-word__svg .cls-2 {
  fill: #ff2a1f !important;
  stroke: #ff2a1f;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .brand-logo-word__svg .cls-2 {
    fill: #ff2a1f !important;
    stroke: #ff2a1f;
  }
}

.brand-logo-word__svg .cls-1,
.brand-logo-word__svg .cls-3 {
  stroke: currentColor;
  stroke-width: 6;
  stroke-linejoin: miter;
  stroke-miterlimit: 2;
  paint-order: stroke fill;
}

.brand-inline-phrase {
  white-space: nowrap;
}

.button .brand-logo-word {
  --brand-logo-size: 3.46em;
  --brand-logo-width: 3.28em;
  --brand-logo-height: 1.61em;
  height: 1.58em;
  margin-inline: -0.01em 0;
  vertical-align: -0.35em;
  color: inherit;
}

:root[data-theme='dark'] .button .brand-logo-word,
:root:not([data-theme='light']) .button .brand-logo-word {
  color: inherit;
}

.button .brand-logo-word__svg .cls-1,
.button .brand-logo-word__svg .cls-3 {
  stroke-width: 14;
}

.brand .brand-logo-word__svg .cls-1,
.brand .brand-logo-word__svg .cls-3 {
  stroke-width: 8;
}

h2 .brand-logo-word {
  --brand-logo-size: 3.98em;
  --brand-logo-width: 3em;
  --brand-logo-height: 1.47em;
  margin-inline: 0.01em 0.02em;
  vertical-align: -0.25em;
}

:root[data-theme='light'] h2 .brand-logo-word {
  color: #0f1530;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) h2 .brand-logo-word {
    color: #0f1530;
  }
}

.footer .brand-logo-word {
  --brand-logo-size: 3.42em;
  --brand-logo-width: 2.76em;
  --brand-logo-height: 1.08em;
  margin-inline: -0.04em 0.04em;
}

:root[data-theme='light'] .footer .brand-logo-word {
  color: #111c40;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) .footer .brand-logo-word {
    color: #111c40;
  }
}

.eyebrow .brand-logo-word {
  --brand-logo-size: 3.64em;
  --brand-logo-width: 2.93em;
  height: 1.2em;
  margin-inline: -0.05em 0.04em;
  vertical-align: -0.28em;
}

:root[data-theme='dark'] .brand-logo-word,
:root:not([data-theme='light']) .brand-logo-word {
  color: #f4f8ff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .brand-logo-word {
    color: #f4f8ff;
  }
}

@media (max-width: 760px) {
  h2 .brand-logo-word {
    --brand-logo-size: 3.72em;
    --brand-logo-width: 2.73em;
    --brand-logo-height: 1.34em;
    margin-inline: 0 0.02em;
    vertical-align: -0.24em;
  }
}

.hero__phone {
  display: grid;
  justify-items: center;
}

.hero__actions--phone {
  justify-content: center;
  margin: 1rem 0 0;
}

@media (min-width: 941px) {
  .hero__bullets {
    margin-top: 1.05rem;
  }

  .hero__actions--phone {
    width: min(360px, 100%);
    margin-top: 1rem;
  }

  .hero__actions--phone .button {
    flex: 1 1 auto;
    text-align: center;
  }
}

@media (max-width: 940px) {
  .hero__actions--phone {
    margin-top: 1rem;
  }
}

/* Desktop hero phone scale: keep phone supportive, not dominant. */
@media (min-width: 941px) {
  .hero__phone .phone-shell {
    width: clamp(285px, 20vw, 330px);
  }

  .hero__actions--phone {
    width: clamp(285px, 20vw, 330px);
    margin-top: 0.7rem;
    gap: 0.55rem;
  }

  .hero__actions--phone .button {
    padding-inline: 0.85rem;
    font-size: 0.9rem;
  }
}

/* Dark-mode hero contrast fixes. */
@media (min-width: 941px) {
  .hero__bullets .hero__bullet-icon {
    display: none;
  }
}

:root[data-theme='dark'] .hero__bullets li,
:root:not([data-theme='light']) .hero__bullets li {
  background: rgba(238, 243, 255, 0.08);
  border-color: rgba(230, 239, 255, 0.24);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

:root[data-theme='dark'] .hero__bullets strong,
:root:not([data-theme='light']) .hero__bullets strong {
  color: #f4f8ff;
  -webkit-text-fill-color: #f4f8ff;
}

:root[data-theme='dark'] .hero__bullets small,
:root:not([data-theme='light']) .hero__bullets small {
  color: #d7e4ff;
  -webkit-text-fill-color: #d7e4ff;
}

:root[data-theme='dark'] .hero__actions--phone .button--outline,
:root:not([data-theme='light']) .hero__actions--phone .button--outline {
  color: #f4f8ff;
  -webkit-text-fill-color: #f4f8ff;
  border-color: rgba(235, 242, 255, 0.46);
  background: rgba(238, 243, 255, 0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

:root[data-theme='dark'] .hero__actions--phone .button--outline:hover,
:root:not([data-theme='light']) .hero__actions--phone .button--outline:hover,
:root[data-theme='dark'] .hero__actions--phone .button--outline:focus-visible,
:root:not([data-theme='light']) .hero__actions--phone .button--outline:focus-visible {
  border-color: rgba(235, 242, 255, 0.72);
  background: rgba(238, 243, 255, 0.14);
}

/* Dark-mode hero feature cards: darker surface for stronger text contrast. */
:root[data-theme='dark'] .hero__bullets li,
:root:not([data-theme='light']) .hero__bullets li {
  background: rgba(15, 25, 49, 0.72);
  border-color: rgba(230, 239, 255, 0.3);
}

/* Dark-mode hero feature cards: apply cleanup on mobile too. */
.hero__bullets .hero__bullet-icon {
  display: none;
}

:root[data-theme='dark'] .hero__bullets li,
:root:not([data-theme='light']) .hero__bullets li {
  grid-template-columns: 1fr;
  background: rgba(12, 22, 45, 0.78);
  border-color: rgba(230, 239, 255, 0.32);
}

:root[data-theme='dark'] .hero__bullets strong,
:root:not([data-theme='light']) .hero__bullets strong {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

:root[data-theme='dark'] .hero__bullets small,
:root:not([data-theme='light']) .hero__bullets small {
  color: #e4edff;
  -webkit-text-fill-color: #e4edff;
}

/* Mobile hero phone fit: keep top phone and CTAs visible together. */
@media (max-width: 760px) {
  .section--hero .hero__phone .phone-shell {
    width: min(300px, 62vw);
  }

  .section--hero .hero__actions--phone {
    width: min(340px, calc(100vw - 2rem));
    justify-content: center;
    margin-top: 0.8rem;
  }
}

@media (max-width: 420px) {
  .section--hero .hero__phone .phone-shell {
    width: min(270px, 60vw);
  }

  .section--hero .hero__actions--phone {
    gap: 0.55rem;
  }

  .section--hero .hero__actions--phone .button {
    padding: 0.68rem 0.82rem;
    font-size: 0.9rem;
  }
}

/* Dark-mode mobile hero card text contrast: target actual card copy. */
:root[data-theme='dark'] .hero__bullets li strong,
:root:not([data-theme='light']) .hero__bullets li strong {
  color: #f8fbff !important;
  -webkit-text-fill-color: #f8fbff !important;
  opacity: 1;
}

:root[data-theme='dark'] .hero__bullets li small,
:root:not([data-theme='light']) .hero__bullets li small {
  color: #dce8ff !important;
  -webkit-text-fill-color: #dce8ff !important;
  opacity: 1;
}

/* Final dark-mode contrast lock: hero feature cards and proof cards. */
:root[data-theme='dark'] .hero__copy .hero__bullets li,
:root:not([data-theme='light']) .hero__copy .hero__bullets li {
  background: #101a33 !important;
  border-color: rgba(231, 240, 255, 0.38) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34) !important;
}

:root[data-theme='dark'] .hero__copy .hero__bullets li strong,
:root:not([data-theme='light']) .hero__copy .hero__bullets li strong {
  color: #ffffff !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: #ffffff !important;
}

:root[data-theme='dark'] .hero__copy .hero__bullets li small,
:root:not([data-theme='light']) .hero__copy .hero__bullets li small {
  color: #dfeaff !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: #dfeaff !important;
}

:root[data-theme='dark'] .proof .card,
:root:not([data-theme='light']) .proof .card {
  background: #101a33 !important;
  border-color: rgba(231, 240, 255, 0.28) !important;
}

:root[data-theme='dark'] .proof .card__value,
:root:not([data-theme='light']) .proof .card__value {
  color: #ffffff !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: #ffffff !important;
}

:root[data-theme='dark'] .proof .card__text,
:root:not([data-theme='light']) .proof .card__text {
  color: #dfeaff !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: #dfeaff !important;
}

/* Audit polish 2026-05-31: anchor offsets, spacing, contrast, and copy hierarchy. */
html {
  scroll-padding-top: 96px;
}

.section {
  scroll-margin-top: 96px;
}

.section--proof,
.section--pillars {
  padding-block: clamp(2.7rem, 5vw, 4rem);
}

.section--proof {
  padding-bottom: clamp(1.9rem, 3.5vw, 2.8rem);
}

.section--pillars {
  padding-top: clamp(1.9rem, 3.5vw, 2.8rem);
}

.section--social {
  padding-bottom: clamp(2rem, 3.5vw, 2.8rem);
}

.section--download {
  padding-top: clamp(2rem, 3.8vw, 3rem);
}

.section--proof h2,
.section--social h2,
.section--download h2 {
  max-width: 100%;
}

.section--download h2,
.section--social h2 {
  margin-inline: auto;
}

.eyebrow {
  color: color-mix(in oklab, #185391 70%, var(--accent));
}

.hero__copy > p {
  color: #263152;
}

.button {
  background: linear-gradient(135deg, #185391 0%, #5e4bff 55%, #ff5ecb 100%);
}

.button {
  background: linear-gradient(135deg, #185391 0%, #0b8fa6 52%, #16b879 100%);
}

.button--ghost,
.button--outline {
  background: transparent;
}

@media (min-width: 761px) {
  .header__nav .button--ghost {
    background: linear-gradient(135deg, #185391 0%, #0b8fa6 52%, #16b879 100%);
    border-color: transparent;
    color: #fff;
  }

  .header__nav .button--ghost .brand-logo-word {
    color: #fff;
    -webkit-text-fill-color: #fff;
  }

  .header__nav .button--ghost .brand-logo-word__svg .cls-1,
  .header__nav .button--ghost .brand-logo-word__svg .cls-3 {
    stroke: #fff;
  }
}

.download-panel__copy p {
  color: #34415f;
}

:root[data-theme='dark'] .eyebrow,
:root:not([data-theme='light']) .eyebrow,
:root[data-theme='dark'] .section--pillars .eyebrow,
:root:not([data-theme='light']) .section--pillars .eyebrow,
:root[data-theme='dark'] .section--download .eyebrow,
:root:not([data-theme='light']) .section--download .eyebrow,
:root[data-theme='dark'] .section--proof .eyebrow,
:root:not([data-theme='light']) .section--proof .eyebrow {
  color: #b9cbff;
}

:root[data-theme='dark'] .hero__copy > p,
:root:not([data-theme='light']) .hero__copy > p {
  color: #111c40 !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: #111c40 !important;
}

:root[data-theme='dark'] .hero__copy > p .brand-logo-word,
:root:not([data-theme='light']) .hero__copy > p .brand-logo-word,
:root[data-theme='light'] .hero__copy > p .brand-logo-word {
  color: #111c40 !important;
  -webkit-text-fill-color: #111c40 !important;
  margin-left: 0.1em;
}

:root[data-theme='dark'] .hero__actions--phone .button--outline,
:root:not([data-theme='light']) .hero__actions--phone .button--outline,
:root[data-theme='dark'] .download-actions .button--outline,
:root:not([data-theme='light']) .download-actions .button--outline {
  color: #f3f7ff;
  -webkit-text-fill-color: #f3f7ff;
  border-color: rgba(233, 241, 255, 0.58);
  background: rgba(241, 246, 255, 0.1);
}

:root[data-theme='dark'] .download-panel__copy p,
:root:not([data-theme='light']) .download-panel__copy p,
:root[data-theme='dark'] .download-qr figcaption,
:root:not([data-theme='light']) .download-qr figcaption {
  color: #dfeaff;
}

:root[data-theme='dark'] .journey-phone-progress,
:root:not([data-theme='light']) .journey-phone-progress {
  background: rgba(228, 237, 255, 0.12);
  border-color: rgba(228, 237, 255, 0.28);
}

:root[data-theme='dark'] .journey-phone-progress span,
:root:not([data-theme='light']) .journey-phone-progress span {
  background: rgba(223, 234, 255, 0.24);
}

:root[data-theme='dark'] .journey-mobile-step .journey-step__meta,
:root:not([data-theme='light']) .journey-mobile-step .journey-step__meta {
  color: #b9cbff;
  -webkit-text-fill-color: #b9cbff;
}

.social-grid blockquote::before {
  content: none;
}

:root[data-theme='dark'] .social-grid blockquote::before,
:root:not([data-theme='light']) .social-grid blockquote::before {
  content: none;
}

@media (min-width: 941px) {
  .section--proof h2,
  .section--social h2 {
    max-width: 100%;
  }

  .section--proof {
    padding-top: 3rem;
  }

  .section--pillars {
    padding-bottom: 3rem;
  }

  .section--social {
    padding-top: 3.2rem;
  }

  .section--download {
    padding-top: 2.75rem;
  }
}

@media (max-width: 940px) {
  html {
    scroll-padding-top: 88px;
  }

  .section {
    scroll-margin-top: 88px;
  }

  .section--proof,
  .section--pillars,
  .section--social,
  .section--download {
    padding-block: 2.35rem;
  }

  .section--proof h2,
  .section--social h2,
  .section--download h2 {
    max-width: 100%;
  }

  .section--proof h2,
  .section--pillars h2,
  .section--social h2,
  .section--download h2 {
    line-height: 1.08;
  }
}

@media (max-width: 420px) {
  html {
    scroll-padding-top: 82px;
  }

  .section {
    scroll-margin-top: 82px;
  }

  .hero-headline-panel {
    min-height: clamp(390px, 108vw, 430px);
  }
}

/* Encoding-safe theme toggle icons. */
.theme-toggle__option {
  display: grid;
  place-items: center;
  font-size: 0;
  line-height: 0;
  position: relative;
  z-index: 2;
}

.theme-toggle__option::before {
  content: "";
  display: block;
  width: 15px;
  height: 15px;
}

.theme-toggle__option--sun::before {
  background:
    radial-gradient(circle at center, currentColor 0 3.8px, transparent 4.2px),
    conic-gradient(
      from 0deg,
      transparent 0 7deg,
      currentColor 7deg 15deg,
      transparent 15deg 45deg,
      currentColor 45deg 53deg,
      transparent 53deg 90deg,
      currentColor 90deg 98deg,
      transparent 98deg 135deg,
      currentColor 135deg 143deg,
      transparent 143deg 180deg,
      currentColor 180deg 188deg,
      transparent 188deg 225deg,
      currentColor 225deg 233deg,
      transparent 233deg 270deg,
      currentColor 270deg 278deg,
      transparent 278deg 315deg,
      currentColor 315deg 323deg,
      transparent 323deg 360deg
    );
  border-radius: 50%;
}

.theme-toggle__option--moon::before {
  border-radius: 50%;
  background: currentColor;
  box-shadow: inset -4px 0 0 color-mix(in oklab, var(--surface) 92%, transparent);
}

.theme-toggle__option::before {
  content: none !important;
}

.theme-toggle__icon {
  display: block;
  width: 15px;
  height: 15px;
  fill: currentColor;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.theme-toggle__icon circle {
  fill: none;
}

/* Desktop header rebalance after simplifying the nav. */
@media (min-width: 761px) {
  .header__shell {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr);
    column-gap: clamp(1.5rem, 4vw, 4rem);
  }

  .brand {
    justify-self: start;
  }

  .header__nav {
    justify-self: center;
    margin-inline: 0;
    gap: clamp(1.4rem, 2.6vw, 2.4rem);
  }

  .header__nav a {
    white-space: nowrap;
  }

  .theme-toggle {
    justify-self: end;
  }
}

/* Mobile-only header polish after simplified navigation. */
@media (max-width: 760px) {
  .header__shell {
    display: grid;
    grid-template-columns: minmax(88px, 1fr) auto minmax(88px, 1fr);
    align-items: center;
    gap: 0.7rem;
  }

  .brand {
    justify-self: start;
  }

  .brand .brand-logo-word--header {
    --brand-logo-width: 96px;
    --brand-logo-height: 39px;
    width: var(--brand-logo-width);
    height: var(--brand-logo-height);
  }

  .menu-toggle {
    justify-self: center;
  }

  .theme-toggle {
    justify-self: end;
  }

  .header__nav {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 0.5rem;
    right: 0.5rem;
    z-index: 50;
    grid-column: 1 / -1;
    width: auto;
    margin: 0;
    padding: 0.7rem;
    border: 1px solid color-mix(in oklab, var(--text) 14%, transparent);
    border-radius: 18px;
    background: #f8fbff !important;
    box-shadow: 0 18px 42px color-mix(in oklab, var(--text) 14%, transparent);
    backdrop-filter: none;
  }

  .header__nav a {
    border-radius: 13px;
    padding: 0.82rem 0.95rem;
    background: #fff;
  }
}

@media (max-width: 760px) {
  :root[data-theme='dark'] .header__nav,
  :root:not([data-theme='light']) .header__nav {
    background: #11182d !important;
    border-color: rgba(232, 240, 255, 0.16);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.38);
  }

  :root[data-theme='dark'] .header__nav a,
  :root:not([data-theme='light']) .header__nav a {
    background: #17213a;
  }
}

/* Mobile post-hero type scale: keep branded headings tight and rebalance the cards below them. */
@media (max-width: 760px) {
  .section:not(.section--hero) .section__intro {
    max-width: 100%;
  }

  .section:not(.section--hero) h2 {
    width: 100%;
    max-width: none;
    font-size: clamp(1.04rem, 4.65vw, 1.2rem);
    line-height: 1.06;
    letter-spacing: -0.045em;
  }

  .section--proof h2,
  .section--social h2,
  .section--download h2 {
    white-space: nowrap;
  }

  .section:not(.section--hero) h2 .brand-logo-word {
    --brand-logo-size: 3.46em;
    --brand-logo-width: 2.64em;
    --brand-logo-height: 1.3em;
    margin-inline: 0 0.01em;
    vertical-align: -0.22em;
  }

  .section:not(.section--hero) h3,
  .section:not(.section--hero) .card__value {
    font-size: clamp(1rem, 4.7vw, 1.12rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
  }

  .section:not(.section--hero) p,
  .section:not(.section--hero) .card__text {
    font-size: clamp(0.88rem, 3.7vw, 0.96rem);
    line-height: 1.36;
  }

  .section:not(.section--hero) .eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    line-height: 1.15;
    margin-bottom: 0.62rem;
  }

  .section--proof .proof-card,
  .section--proof article,
  .section:not(.section--hero) .card {
    padding-block: 1rem;
  }
}

/* Mobile card hierarchy: card text should sit clearly below section h2s. */
@media (max-width: 760px) {
  .section:not(.section--hero) .card__value,
  .section:not(.section--hero) h3 {
    font-size: clamp(0.9rem, 3.86vw, 0.97rem);
    line-height: 1.15;
    letter-spacing: -0.018em;
  }

  .section:not(.section--hero) .card__text,
  .section:not(.section--hero) .download-panel__copy p,
  .section:not(.section--hero) blockquote {
    font-size: clamp(0.78rem, 3.22vw, 0.86rem);
    line-height: 1.38;
  }
}

/* Mobile hero support cards should follow the smaller card hierarchy too. */
@media (max-width: 760px) {
  .hero__bullets li {
    padding-block: 0.92rem;
  }

  .hero__bullets strong {
    font-size: clamp(0.9rem, 3.86vw, 0.97rem);
    line-height: 1.15;
    letter-spacing: -0.018em;
  }

  .hero__bullets small {
    font-size: clamp(0.78rem, 3.22vw, 0.86rem);
    line-height: 1.38;
  }
}

/* Mobile walkthrough swipe: allow vertical page scroll while JS handles left/right review gestures. */
@media (max-width: 760px) {
  .section--experience .journey-phone {
    touch-action: pan-y;
  }
}
