:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-soft: #f1f5fb;
  --text: #0d1830;
  --muted: #65728a;
  --line: #e4ebf5;
  --blue: #2f6df6;
  --indigo: #6057f6;
  --green: #15a677;
  --amber: #d99414;
  --shadow: 0 18px 55px rgba(33, 62, 115, 0.12);
  --shadow-soft: 0 10px 30px rgba(33, 62, 115, 0.08);
}

[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #ffffff 0%, var(--bg) 42%, #ffffff 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 14px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(228, 235, 245, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 34px rgba(42, 70, 120, 0.08);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-notes,
.hero-actions,
.card-actions,
.preview-topbar,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: inline-flex;
  width: 40px;
  height: 40px;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.nav-links {
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav-links a,
.nav-cta {
  transition: color 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.nav-cta:hover {
  color: var(--blue);
  transform: translateY(-1px);
}

.nav-cta {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--blue);
  background: #edf3ff;
  font-size: 14px;
  font-weight: 700;
}

.section-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

#cards,
#how,
#trust,
#join {
  scroll-margin-top: 112px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(500px, 0.86fr);
  gap: 44px;
  align-items: center;
  min-height: calc(100vh - 90px);
  padding: 48px 0 58px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: clamp(52px, 7vw, 92px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 19px;
  line-height: 1.25;
}

.hero-subtitle,
.section-heading p,
.final-cta p {
  max-width: 600px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.58;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-actions.center {
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  box-shadow: 0 16px 34px rgba(47, 109, 246, 0.28);
}

.button.primary:hover {
  box-shadow: 0 20px 44px rgba(47, 109, 246, 0.34);
}

.button.secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.hero-notes {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-notes span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 700;
}

.pool-bar {
  padding-top: 34px;
}

.pool-snapshot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  width: 100%;
  padding: 14px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.pool-main {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}

.pool-snapshot.is-loading .pool-count,
.pool-snapshot.is-loading .country-list {
  display: none;
}

.pool-count {
  display: inline-flex;
  margin-right: 7px;
  color: var(--blue);
  font-size: 20px;
  font-weight: 800;
}

.pool-label {
  color: #30405b;
  font-size: 14px;
  font-weight: 800;
}

.country-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.country-list span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.product-preview {
  position: relative;
  align-self: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 20% 0%, rgba(47, 109, 246, 0.18), transparent 34%),
    linear-gradient(180deg, #ffffff, #eef4ff);
  box-shadow: var(--shadow);
}

.preview-topbar {
  display: grid;
  grid-template-columns: 20px 1fr 20px;
  align-items: center;
  padding: 12px 12px 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.preview-topbar #simulation-stage {
  justify-self: center;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(21, 166, 119, 0.12);
}

.simulation-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 410px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  transition: transform 360ms ease, box-shadow 360ms ease;
}

.simulation-card.is-changing {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 24px 60px rgba(47, 109, 246, 0.18);
}

.card-stage-label {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--blue);
  background: #edf3ff;
  font-size: 12px;
  font-weight: 800;
}

.simulation-card h2 {
  margin-bottom: 18px;
  font-size: 28px;
  line-height: 1.08;
}

.simulation-card p,
.step-card p,
.trust-card p,
.context-callout p {
  color: var(--muted);
  line-height: 1.62;
}

.simulation-card p {
  font-size: 15px;
}

.card-section {
  width: 100%;
  margin-bottom: 16px;
}

.card-section > span {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.card-section p {
  margin-bottom: 0;
}

.reason-list {
  display: grid;
  gap: 10px;
  margin: 0;
  width: 100%;
}

.reason-list span {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  color: #30405b;
  font-size: 14px;
  font-weight: 700;
}

.card-actions {
  gap: 10px;
  margin-top: auto;
  min-height: 42px;
}

.mini-button {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
}

.mini-button.active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
}

.preview-caption {
  padding: 12px 10px 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.step-card,
.resonance-card,
.trust-card,
.context-callout {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
}

.matching-session {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 18px 0 120px;
}

.matching-copy p:not(.eyebrow) {
  max-width: 520px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.68;
}

.session-visual {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 12% 0%, rgba(47, 109, 246, 0.16), transparent 32%),
    linear-gradient(180deg, #ffffff, #f2f6ff);
  box-shadow: 0 24px 72px rgba(47, 109, 246, 0.16);
}

.session-topbar {
  display: flex;
  justify-content: space-between;
  padding: 8px 8px 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.session-thread {
  display: grid;
  gap: 12px;
}

.session-message {
  width: min(88%, 480px);
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
}

.session-message span {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.session-message span::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  content: "";
}

.jennifer-avatar span::before {
  background: var(--green);
}

.match-ai span::before {
  background: var(--indigo);
}

.session-message p {
  margin-bottom: 0;
  color: #30405b;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
}

.user-avatar {
  justify-self: end;
}

.match-ai {
  width: 100%;
  background: #edf3ff;
}

.section-heading {
  padding: 46px 0 34px;
  text-align: center;
}

.section-heading p {
  margin-inline: auto;
}

.section-heading.narrow {
  max-width: 760px;
  margin-inline: auto;
}

.card-detail-compact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.58fr);
  gap: 18px;
  align-items: stretch;
  padding-bottom: 130px;
}

.drop-preview-mini,
.drop-detail-list {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
}

.drop-preview-mini {
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(47, 109, 246, 0.13), transparent 34%),
    rgba(255, 255, 255, 0.9);
}

.drop-preview-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.drop-preview-top strong {
  color: var(--green);
}

.drop-preview-mini h3 {
  max-width: 640px;
  margin-bottom: 18px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.05;
}

.drop-field {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.drop-field span,
.drop-detail-list span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.drop-field p {
  margin-bottom: 0;
  color: #30405b;
  font-weight: 700;
  line-height: 1.45;
}

.drop-decision-frame {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(47, 109, 246, 0.16);
  border-radius: 18px;
  background: linear-gradient(135deg, #eef4ff, #f6fbff);
}

.drop-decision-frame span {
  display: block;
  margin-bottom: 7px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.drop-decision-frame p {
  margin-bottom: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.35;
}

.drop-privacy-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.drop-actions-mini {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.drop-actions-mini button {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-weight: 900;
}

.drop-actions-mini button:first-child {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
}

.drop-detail-list {
  display: grid;
  padding: 10px;
}

.drop-detail-list div {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  padding: 17px 16px;
  border-radius: 16px;
}

.drop-detail-list div + div {
  border-top: 1px solid var(--line);
}

.drop-detail-list strong {
  color: var(--text);
  font-size: 15px;
  text-align: left;
}

.how,
.resonance,
.trust {
  padding-bottom: 120px;
}

.steps,
.resonance-grid,
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.sleep-flow {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.sleep-timeline {
  position: relative;
  display: grid;
  gap: 16px;
  align-content: start;
}

.sleep-timeline::before {
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 24px;
  width: 1px;
  background: linear-gradient(180deg, rgba(47, 109, 246, 0.28), rgba(82, 206, 220, 0.12));
  content: "";
}

.sleep-step {
  position: relative;
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.sleep-step > span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(47, 109, 246, 0.2);
  border-radius: 50%;
  background: #ffffff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  place-items: center;
}

.sleep-step h3 {
  margin-bottom: 7px;
  font-size: 19px;
}

.sleep-step p,
.context-strip p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.context-strip {
  margin-left: 66px;
  padding: 14px;
  border: 1px solid rgba(82, 206, 220, 0.18);
  border-radius: 18px;
  background: linear-gradient(135deg, #f3f8ff, #f8fdff);
}

.context-strip strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
  font-size: 14px;
}

.context-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.context-pills span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.sleep-scene {
  min-height: 520px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 16% 0%, rgba(47, 109, 246, 0.18), transparent 34%),
    radial-gradient(circle at 94% 16%, rgba(82, 206, 220, 0.16), transparent 28%),
    linear-gradient(180deg, #ffffff, #f2f6ff);
  box-shadow: 0 26px 80px rgba(47, 109, 246, 0.17);
}

.sleep-scene-top,
.inbox-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.sleep-scene-top {
  padding: 6px 4px 22px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.sleep-scene-top strong {
  color: var(--green);
}

.sleep-journey {
  display: grid;
  grid-template-columns: max-content 1fr max-content 1fr max-content;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}

.sleep-journey span {
  padding: 9px 12px;
  border: 1px solid rgba(47, 109, 246, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.sleep-journey i {
  display: block;
  height: 2px;
  min-width: 28px;
  background: linear-gradient(90deg, rgba(47, 109, 246, 0.2), rgba(82, 206, 220, 0.5));
}

.avatar-chat-mini {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid rgba(47, 109, 246, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
}

.chat-bubble {
  width: min(88%, 440px);
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
}

.chat-bubble.theirs {
  justify-self: end;
  background: #edf7fb;
}

.chat-bubble span {
  display: block;
  margin-bottom: 5px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.chat-bubble.theirs span {
  color: var(--green);
}

.chat-bubble p {
  margin-bottom: 0;
  color: #30405b;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.morning-inbox {
  padding: 20px;
  border: 1px solid rgba(47, 109, 246, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
}

.inbox-top {
  margin-bottom: 16px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.inbox-top strong {
  color: var(--green);
}

.inbox-label {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 11px;
  border-radius: 999px;
  background: #edf3ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.morning-inbox h3 {
  max-width: 620px;
  margin-bottom: 14px;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.04;
}

.morning-inbox > p {
  max-width: 560px;
  margin-bottom: 0;
  color: #30405b;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
}

.inbox-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.inbox-actions span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.inbox-actions span:first-child {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
}

.step-card,
.resonance-card,
.trust-card {
  padding: 22px;
}

.step-card span,
.resonance-card span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

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

.resonance-card {
  min-height: 220px;
}

.resonance-card p,
.resonance-card li {
  color: var(--muted);
  line-height: 1.62;
}

.reaction-proof {
  position: relative;
  overflow: hidden;
  margin: 0 0 110px;
  padding: 78px 0 86px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(96, 87, 246, 0.18), transparent 34%),
    linear-gradient(180deg, #261e17, #17120f);
  background-size: 54px 54px, auto, auto;
  color: #f7f2ec;
}

.reaction-proof::after {
  position: absolute;
  right: -140px;
  bottom: -180px;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.reaction-inner {
  position: relative;
  z-index: 1;
}

.reaction-heading {
  max-width: 720px;
  margin: 0 auto 42px;
  text-align: center;
}

.reaction-heading .eyebrow {
  color: #9fb8ff;
}

.reaction-heading h2 {
  color: #fff8ef;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 7vw, 92px);
  font-weight: 400;
  line-height: 0.98;
}

.reaction-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: center;
}

.reaction-card {
  min-height: 260px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.reaction-card.featured {
  min-height: 300px;
  background: rgba(255, 255, 255, 0.08);
}

.reaction-card p {
  color: rgba(255, 248, 239, 0.9);
  font-size: 18px;
  line-height: 1.45;
}

.reaction-person {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 30px;
}

.reaction-person span {
  display: grid;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  place-items: center;
}

.reaction-person strong,
.reaction-person small {
  display: block;
}

.reaction-person strong {
  color: #fff8ef;
  font-size: 16px;
}

.reaction-person small {
  margin-top: 3px;
  color: rgba(255, 248, 239, 0.58);
  font-size: 14px;
  font-weight: 700;
}

.resonance-card ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.resonance-card li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  font-weight: 700;
}

.resonance-card li::before {
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.context-callout {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 18px;
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(47, 109, 246, 0.1), rgba(255, 255, 255, 0.9)),
    #ffffff;
}

.context-callout h3,
.context-callout p {
  margin-bottom: 0;
}

.final-cta {
  margin-bottom: 46px;
  padding: 58px 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(47, 109, 246, 0.16), transparent 32%),
    linear-gradient(180deg, #ffffff, #f2f6ff);
  box-shadow: var(--shadow);
  text-align: center;
}

.final-cta p {
  margin-inline: auto;
}

.onboarding-form {
  display: grid;
  gap: 18px;
  max-width: 920px;
  margin: 34px auto 0;
  text-align: left;
}

.bot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-step,
.profile-preview,
.final-fields,
.modal-header,
.modal-actions {
  display: flex;
}

.form-step {
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
}

.form-step span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.form-step h3,
.form-step p {
  margin-bottom: 0;
}

.field {
  display: grid;
  gap: 8px;
  color: #30405b;
  font-size: 14px;
  font-weight: 800;
}

.field small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field input,
.field select {
  min-height: 48px;
  padding: 0 14px;
}

.field textarea {
  resize: vertical;
  padding: 14px;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(47, 109, 246, 0.58);
  box-shadow: 0 0 0 4px rgba(47, 109, 246, 0.1);
}

.form-grid,
.final-fields {
  display: grid;
  gap: 16px;
}

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

.final-fields {
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
}

.profile-preview {
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #edf3ff;
}

.profile-preview span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-preview p {
  margin: 0;
  color: #30405b;
  font-size: 15px;
  line-height: 1.6;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.consent input {
  margin-top: 2px;
}

.submit-button {
  justify-self: center;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.form-note {
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 13px;
}

code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #e9eef8;
  color: #40506b;
}

.site-footer {
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 34px;
  color: var(--muted);
  font-size: 14px;
}

.card-page {
  display: grid;
  min-height: calc(100vh - 170px);
  padding: 56px 0;
  place-items: center;
}

.opportunity-shell,
.unlock-shell {
  width: min(820px, 100%);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(47, 109, 246, 0.14), transparent 34%),
    linear-gradient(180deg, #ffffff, #f2f6ff);
  box-shadow: var(--shadow);
}

.card-status,
.card-complete,
.unlock-summary {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-weight: 800;
}

.opportunity-detail {
  position: relative;
  transition: opacity 0.42s ease, transform 0.42s ease;
}

.opportunity-detail.is-skipping {
  opacity: 0;
  transform: translate(72px, 34px) rotate(3deg);
}

.opportunity-detail.is-interested {
  opacity: 0;
  transform: translateY(18px) scale(0.96);
}

.card-checkmark {
  position: absolute;
  top: 34px;
  right: 24px;
  z-index: 1;
  display: grid;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: #ffffff;
  font-size: 34px;
  font-weight: 900;
  opacity: 0;
  place-items: center;
  transform: scale(0.72);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.opportunity-detail.is-interested .card-checkmark {
  opacity: 1;
  transform: scale(1);
}

.card-complete {
  display: grid;
  gap: 16px;
  margin-top: 14px;
  color: var(--muted);
}

.card-complete h1 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1;
}

.card-complete p {
  margin-bottom: 0;
  font-size: 17px;
  line-height: 1.62;
}

.opportunity-detail h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1;
}

.detail-block {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.detail-block span {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-block p {
  margin-bottom: 0;
  color: #30405b;
  font-size: 16px;
  line-height: 1.62;
}

.avatar-session-card {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(237, 243, 255, 0.72);
}

.avatar-session-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  text-align: left;
}

.avatar-session-panel {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.avatar-session-note {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.avatar-thread {
  display: grid;
  max-height: 520px;
  gap: 10px;
  overflow: auto;
  padding-right: 6px;
}

.avatar-message {
  max-width: 86%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
}

.avatar-message strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 13px;
}

.avatar-message p {
  margin-bottom: 0;
  color: #30405b;
  font-size: 14px;
  line-height: 1.5;
}

.your-avatar {
  justify-self: end;
  background: #f8fbff;
}

.card-response-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.unlock-page {
  display: grid;
  min-height: calc(100vh - 170px);
  padding: 56px 0;
  place-items: center;
}

.unlock-shell h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(46px, 7vw, 82px);
  line-height: 0.96;
}

.unlock-subtitle {
  max-width: 680px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.62;
}

.unlock-summary {
  margin-top: 24px;
}

.unlock-summary span,
.unlock-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.unlock-summary strong {
  display: block;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.2;
}

.unlock-summary p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.unlock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.unlock-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.unlock-grid p {
  color: var(--muted);
  line-height: 1.55;
}

.unlock-cta {
  margin-top: 24px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 24, 48, 0.36);
  backdrop-filter: blur(8px);
}

.prompt-modal {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(88vh, 820px);
  overflow: auto;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(13, 24, 48, 0.2);
}

.modal-header {
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.prompt-modal h2 {
  font-size: 34px;
}

.prompt-modal p {
  color: var(--muted);
  line-height: 1.62;
}

.prompt-modal textarea {
  width: 100%;
  margin-top: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
  color: #30405b;
  font: inherit;
  font-size: 14px;
  line-height: 1.55;
}

.modal-actions {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 580ms ease, transform 580ms ease;
}

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

@media (max-width: 940px) {
  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 58px;
  }

  .product-preview {
    max-width: 560px;
    width: 100%;
    margin-inline: auto;
  }

  .steps,
  .resonance-grid,
  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }

  .card-detail-compact {
    grid-template-columns: 1fr;
  }

  .matching-session {
    grid-template-columns: 1fr;
  }

  .sleep-flow {
    grid-template-columns: 1fr;
  }

  .sleep-scene {
    min-height: auto;
  }

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

  .context-callout {
    grid-template-columns: 1fr;
  }

  .form-grid,
  .final-fields,
  .unlock-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    width: min(100% - 20px, 1180px);
    border-radius: 14px;
  }

  .nav-cta {
    display: none;
  }

  .section-shell {
    width: min(100% - 22px, 1180px);
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 34px;
  }

  .hero-subtitle,
  .section-heading p,
  .final-cta p {
    font-size: 16px;
  }

  .card-detail-compact,
  .steps,
  .resonance-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .matching-session {
    padding-bottom: 72px;
  }

  .sleep-step {
    grid-template-columns: 44px 1fr;
    padding: 15px;
  }

  .sleep-step > span {
    width: 42px;
    height: 42px;
  }

  .sleep-timeline::before {
    left: 21px;
  }

  .context-strip {
    margin-left: 58px;
  }

  .sleep-scene {
    padding: 16px;
    border-radius: 24px;
  }

  .sleep-journey {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .sleep-journey span {
    text-align: center;
  }

  .sleep-journey i {
    width: 2px;
    height: 16px;
    min-width: 0;
    margin-inline: auto;
    background: linear-gradient(180deg, rgba(47, 109, 246, 0.2), rgba(82, 206, 220, 0.5));
  }

  .reaction-proof {
    margin-bottom: 66px;
    padding: 58px 0 64px;
  }

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

  .drop-field {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .reaction-card,
  .reaction-card.featured {
    min-height: auto;
  }

  .session-message {
    width: 100%;
  }

  .simulation-card {
    min-height: 360px;
    padding: 22px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .form-step {
    align-items: stretch;
    flex-direction: column;
  }

  .prompt-modal {
    padding: 20px;
  }

  .prompt-modal h2 {
    font-size: 28px;
  }
}
