:root {
  --product-bg: #ffffff;
  --product-surface: #ffffff;
  --product-ink: #1d1d1f;
  --product-muted: #5f6269;
  --product-line: #d7d7dc;
  --product-blue: #0071e3;
  --product-blue-dark: #0058b0;
  --product-night: #05070b;
  --product-shell: 1180px;
}

.second-brain-page {
  background: var(--product-bg);
  color: var(--product-ink);
}

.second-brain-page .site-header,
.second-brain-page .nav-menu {
  border-bottom-color: rgba(215, 215, 220, 0.8);
  background: var(--product-bg);
}

.product-main {
  overflow: hidden;
}

.product-section {
  position: relative;
  background: var(--product-bg);
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-height) + clamp(60px, 8vw, 120px)) var(--gutter) clamp(76px, 9vw, 136px);
  isolation: isolate;
}

.product-shell {
  width: min(100%, var(--product-shell));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--product-blue);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: var(--product-blue);
}

.product-section h1,
.product-section h2,
.product-section h3,
.product-section p,
.product-section blockquote {
  margin-top: 0;
}

.product-section h1,
.product-section h2,
.product-section h3 {
  color: inherit;
  letter-spacing: -0.055em;
}

.product-hero {
  min-height: 145svh;
  grid-template-rows: auto auto;
  gap: clamp(64px, 10vw, 144px);
  padding-top: calc(var(--header-height) + clamp(72px, 10vw, 150px));
  background: var(--product-bg);
}

.hero-copy {
  text-align: center;
}

.hero-copy h1 {
  max-width: 1080px;
  margin: 0 auto;
  font-size: clamp(4rem, 9.5vw, 8.5rem);
  font-weight: 800;
  line-height: 0.88;
}

.hero-copy h1 span {
  color: var(--product-blue);
}

.hero-subhead {
  max-width: 720px;
  margin: 34px auto 0;
  color: var(--product-muted);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.45;
}

.primary-cta {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
  border-radius: 999px;
  padding: 0 25px;
  background: var(--product-blue);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 180ms ease, transform 180ms ease;
}

.primary-cta:hover {
  background: var(--product-blue-dark);
  transform: translateY(-2px);
}

.hero-demo {
  max-width: 1040px;
}

.demo-player {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(29, 29, 31, 0.1);
  border-radius: clamp(22px, 3vw, 38px);
  background: #070707;
  box-shadow: 0 40px 100px rgba(19, 37, 60, 0.18);
}

.demo-player img,
.demo-player iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.demo-player img {
  object-fit: cover;
}

.demo-play {
  position: absolute;
  inset: 50% auto auto 50%;
  width: clamp(68px, 8vw, 94px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

.demo-play span {
  display: block;
  width: 0;
  height: 0;
  margin-left: 7px;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 19px solid var(--product-ink);
}

.media-caption {
  margin: 18px 0 0;
  color: var(--product-muted);
  font-size: 0.92rem;
  text-align: center;
}

.problem-section {
  background: var(--product-bg);
  color: var(--product-ink);
  text-align: center;
}

.stat-moment {
  max-width: 1000px;
}

.stat-number {
  margin: 0;
  color: var(--product-ink);
  font-size: clamp(7rem, 21vw, 16rem);
  font-weight: 800;
  letter-spacing: -0.09em;
  line-height: 0.78;
}

.stat-moment h2 {
  max-width: 920px;
  margin: 42px auto 0;
  font-size: clamp(2rem, 4.2vw, 4.15rem);
  font-weight: 700;
  line-height: 1.04;
}

.stat-source {
  margin: 28px 0 0;
}

.stat-source a {
  color: var(--product-blue-dark);
  font-weight: 600;
  text-underline-offset: 0.28em;
}

.pivot {
  max-width: 760px;
  margin: 80px auto 0;
  color: var(--product-muted);
  font-size: clamp(1.2rem, 2.4vw, 1.85rem);
  line-height: 1.35;
}

.how-section {
  background: var(--product-surface);
}

.how-section h2,
.voice-section h2,
.limits-card h2,
.final-section h2 {
  max-width: 960px;
  margin: 0;
  font-size: clamp(3.3rem, 7.4vw, 7.2rem);
  font-weight: 800;
  line-height: 0.93;
}

.beats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 36px);
  margin-top: clamp(64px, 8vw, 110px);
}

.beat {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 42px);
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.06);
}

.beat-number {
  color: var(--product-blue);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.beat h3 {
  margin: auto 0 18px;
  font-size: clamp(2.7rem, 4.4vw, 4.4rem);
  line-height: 0.95;
}

.beat p {
  margin-bottom: 0;
  color: var(--product-muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.voice-section {
  overflow: hidden;
  background: var(--product-bg);
  color: var(--product-ink);
}

.voice-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(54px, 8vw, 120px);
  align-items: center;
}

.voice-copy > p:last-child {
  max-width: 610px;
  margin: 30px 0 0;
  color: var(--product-muted);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  line-height: 1.55;
}

.voice-stage {
  position: relative;
  display: grid;
  gap: 8px;
  padding: clamp(12px, 2vw, 24px) 0 clamp(12px, 2vw, 24px) clamp(28px, 4vw, 54px);
  border-left: 2px solid rgba(114, 183, 255, 0.65);
}

.voice-stage blockquote {
  margin-bottom: 0;
  padding: 10px 0;
  color: var(--product-ink);
  font-size: clamp(2rem, 4.2vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.voice-more {
  margin: 18px 0 0;
  color: var(--product-muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.limits-section {
  min-height: 88svh;
  background: #ffffff;
}

.limits-card {
  padding: clamp(34px, 7vw, 96px);
  border-radius: clamp(26px, 4vw, 46px);
  background: var(--product-surface);
}

.limits-copy {
  max-width: 840px;
  display: grid;
  gap: 18px;
  margin-top: 54px;
}

.limits-copy p {
  margin-bottom: 0;
  color: #474a50;
  font-size: clamp(1.08rem, 1.8vw, 1.38rem);
  line-height: 1.55;
}

.final-section {
  min-height: 100svh;
  background: var(--product-bg);
  color: var(--product-ink);
  text-align: center;
}

.final-copy h2 {
  max-width: 1020px;
  margin-inline: auto;
}

.final-copy > p:not(.eyebrow) {
  margin: 34px 0 0;
  color: var(--product-muted);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.final-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 28px;
  margin-top: 42px;
}

.primary-cta-light {
  margin-top: 0;
  background: var(--product-blue);
  color: #ffffff;
}

.primary-cta-light:hover {
  background: var(--product-blue-dark);
}

.text-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--product-blue-dark);
  font-weight: 700;
  text-underline-offset: 0.32em;
}

.second-brain-page .site-footer {
  width: min(100% - (var(--gutter) * 2), var(--product-shell));
  border-top-color: var(--product-line);
  color: var(--product-muted);
}

@media (max-width: 900px) {
  .product-hero {
    min-height: auto;
  }

  .voice-layout,
  .beats {
    grid-template-columns: 1fr;
  }

  .beat {
    min-height: 260px;
  }

  .voice-stage {
    max-width: 680px;
  }
}

@media (max-width: 680px) {
  .product-section {
    min-height: auto;
    padding: calc(var(--header-height) + 64px) 20px 82px;
  }

  .product-hero {
    gap: 68px;
    padding-top: calc(var(--header-height) + 74px);
  }

  .hero-copy h1 {
    font-size: clamp(3.6rem, 19vw, 6rem);
  }

  .hero-subhead {
    margin-top: 28px;
  }

  .demo-player {
    border-radius: 20px;
  }

  .problem-section,
  .voice-section,
  .final-section {
    min-height: 100svh;
  }

  .stat-number {
    font-size: clamp(6.2rem, 30vw, 10rem);
  }

  .stat-moment h2,
  .how-section h2,
  .voice-section h2,
  .limits-card h2,
  .final-section h2 {
    font-size: clamp(2.9rem, 14vw, 4.8rem);
  }

  .pivot {
    margin-top: 58px;
  }

  .beats {
    margin-top: 52px;
  }

  .beat {
    min-height: 230px;
    border-radius: 22px;
  }

  .limits-card {
    border-radius: 24px;
  }

  .final-actions {
    flex-direction: column;
  }
}

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

  .primary-cta,
  .reveal,
  .scroll-reveal {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

html[data-a11y-contrast="high"] .problem-section,
html[data-a11y-contrast="high"] .voice-section,
html[data-a11y-contrast="high"] .final-section,
html[data-a11y-contrast="dark"] .problem-section,
html[data-a11y-contrast="dark"] .voice-section,
html[data-a11y-contrast="dark"] .final-section {
  background: var(--product-night);
  color: #ffffff;
}

html[data-a11y-contrast="high"] .beat,
html[data-a11y-contrast="high"] .limits-card,
html[data-a11y-contrast="dark"] .beat,
html[data-a11y-contrast="dark"] .limits-card {
  border: 2px solid currentColor;
  box-shadow: none;
}

html[data-a11y-contrast="dark"] .second-brain-page .site-header,
html[data-a11y-contrast="dark"] .second-brain-page .nav-menu {
  border-color: #6f7c8d;
  background: rgba(5, 7, 11, 0.94);
}

html[data-a11y-contrast="dark"] .second-brain-page :where(.brand, .nav-link) {
  color: #ffffff;
}

html[data-a11y-contrast="dark"] {
  --product-bg: #05070a;
  --product-surface: #10151c;
  --product-ink: #ffffff;
  --product-muted: #c8d3e0;
  --product-line: #6f7c8d;
  --product-blue: #7cc4ff;
  --product-blue-dark: #a9d9ff;
}

html[data-a11y-contrast="dark"] .second-brain-page :where(.beat, .limits-card) {
  border-color: #6f7c8d;
  background: var(--product-surface);
  color: var(--product-ink);
}

html[data-a11y-contrast="dark"] .second-brain-page .limits-section {
  background: var(--product-bg);
}

html[data-a11y-contrast="dark"] .second-brain-page .limits-copy p {
  color: var(--product-muted);
}

html[data-a11y-spacing="true"] .second-brain-page :where(h1, h2, h3, blockquote) {
  letter-spacing: 0.04em;
  line-height: 1.25;
  word-spacing: 0.12em;
}

html[data-a11y-spacing="true"] .second-brain-page .product-section {
  height: auto;
  overflow: visible;
}
