:root {
  --orange: #fe572a;
  --blue: #97b9ff;
  --cream: #f3f0eb;
  --ink: #46484a;
  --white: #fffdf9;
  --gold: #e5c07b;
  --green: #8dbb8a;
  --rose: #f29a8a;
  --purple: #c8a6d9;
  --line: rgba(70, 72, 74, 0.16);
  --shadow: 0 22px 60px rgba(70, 72, 74, 0.11);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button,
a {
  font: inherit;
}

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

a {
  color: inherit;
}

.access-gate {
  min-height: 100vh;
  padding: 42px 20px;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}

.access-gate::before,
.access-gate::after {
  content: "";
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
}

.access-gate::before {
  width: 520px;
  height: 520px;
  left: -280px;
  top: -260px;
  background: rgba(151, 185, 255, 0.42);
}

.access-gate::after {
  width: 440px;
  height: 440px;
  right: -250px;
  bottom: -260px;
  border: 72px solid rgba(254, 87, 42, 0.13);
}

.access-layout {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(350px, 0.75fr);
  align-items: center;
  gap: clamp(48px, 8vw, 110px);
  position: relative;
  z-index: 1;
}

.access-brand {
  margin-bottom: 86px;
  display: block;
}

.access-intro h1 {
  max-width: 700px;
  margin-bottom: 28px;
  font-size: clamp(3.2rem, 7vw, 6.7rem);
}

.access-intro > p:not(.eyebrow) {
  max-width: 670px;
  font-size: 1.08rem;
  line-height: 1.72;
}

.access-benefits {
  margin: 34px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  list-style: none;
}

.access-benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 680;
}

.access-benefits span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--green);
  font-size: 0.78rem;
}

.access-card {
  padding: clamp(30px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 42px;
  background: rgba(255, 253, 249, 0.91);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.access-lock {
  width: 70px;
  height: 70px;
  margin-bottom: 32px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: white;
  font-weight: 900;
}

.access-card h2 {
  margin-bottom: 30px;
  font-size: clamp(2.1rem, 4vw, 3.25rem);
}

.access-form {
  display: grid;
  gap: 12px;
}

.access-form label {
  font-size: 0.86rem;
  font-weight: 780;
}

.access-form input {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid rgba(70, 72, 74, 0.25);
  border-radius: 16px;
  background: white;
  color: var(--ink);
  font: inherit;
}

.access-form input:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(151, 185, 255, 0.36);
}

.access-form .button {
  width: 100%;
  margin-top: 6px;
}

.access-sent {
  margin-bottom: 12px;
  padding: 13px 15px;
  border-radius: 14px;
  background: rgba(151, 185, 255, 0.25);
  font-size: 0.84rem;
}

.access-link {
  width: max-content;
  margin: 4px auto 0;
  padding: 6px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.access-status {
  min-height: 26px;
  margin: 18px 0 0;
  font-size: 0.86rem;
}

.access-status[data-state="error"] {
  color: #a42f22;
}

.access-status[data-state="success"] {
  color: #376c37;
}

.access-status[data-state="warning"] {
  color: #7a5918;
}

.access-privacy {
  margin: 22px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: rgba(70, 72, 74, 0.66);
  font-size: 0.76rem;
  line-height: 1.55;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 99px;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  min-height: 78px;
  padding: 0 4vw;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 240, 235, 0.92);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  width: max-content;
  text-decoration: none;
  font-weight: 850;
  letter-spacing: -0.04em;
  font-size: 1.1rem;
}

.brand-bracket {
  color: var(--blue);
  font-size: 1.35em;
}

.brand-dot {
  color: var(--orange);
}

.nav {
  display: flex;
  gap: 26px;
}

.nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 650;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--orange);
}

.profile-button {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  padding: 6px 10px 6px 6px;
  background: transparent;
  color: var(--ink);
  border-radius: 18px;
}

.profile-area {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.signout-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 720;
}

.profile-button > span:first-child {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--blue);
  font-weight: 850;
}

.profile-copy {
  display: grid;
  text-align: left;
}

.profile-copy small {
  opacity: 0.65;
}

.demo-banner {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 8px 20px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.82rem;
}

main {
  overflow: hidden;
}

section {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.hero {
  min-height: 650px;
  padding: 92px 0 74px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 70px;
  align-items: center;
}

.eyebrow,
.micro-label {
  margin: 0 0 10px;
  color: var(--orange);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.13em;
}

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

h1,
h2,
h3 {
  font-family: "Bai Jamjuree", Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 7vw, 6.8rem);
  font-weight: 780;
}

h1 span {
  color: var(--blue);
}

.hero-intro {
  max-width: 680px;
  margin-bottom: 32px;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  line-height: 1.7;
}

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

.button {
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-decoration: none;
  font-weight: 760;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.button:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.button-primary {
  background: var(--orange);
  color: white;
  box-shadow: 0 12px 24px rgba(254, 87, 42, 0.2);
}

.button-quiet {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.32);
}

.stage-card {
  min-height: 480px;
  padding: 34px;
  border-radius: 44px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 28px;
  color: white;
  background: var(--ink);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.stage-card::after {
  content: "";
  width: 250px;
  height: 250px;
  border: 1px solid rgba(151, 185, 255, 0.35);
  border-radius: 50%;
  position: absolute;
  right: -80px;
  top: -80px;
}

.stage-card .micro-label {
  color: var(--blue);
}

.stage-card h2 {
  margin-bottom: 12px;
  font-size: 3.25rem;
}

.stage-card p {
  max-width: 380px;
  color: rgba(255, 255, 255, 0.75);
}

.stage-orbit {
  width: 138px;
  height: 138px;
  padding: 10px;
  border: 1px dashed var(--blue);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.stage-score {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: var(--ink);
  font-size: 3rem;
  font-weight: 880;
  position: relative;
}

.stage-score small {
  position: absolute;
  right: 17px;
  bottom: 18px;
  font-size: 0.72rem;
}

.stage-footer {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  gap: 4px;
}

.stage-footer span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.8rem;
}

.snapshot,
.journey,
.evolution,
.focus-grid {
  padding: 78px 0;
}

.scale-note {
  margin: -10px 0 24px;
  padding: 18px 22px;
  border-left: 4px solid var(--orange);
  border-radius: 0 16px 16px 0;
  background: rgba(255, 255, 255, 0.42);
}

.scale-note p {
  margin: 4px 0 0;
  color: rgba(70, 72, 74, 0.72);
}

.section-heading {
  margin-bottom: 36px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.section-heading h2,
.focus-grid h2,
.checkin-cta h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4.3rem);
}

.section-heading > p {
  max-width: 470px;
  margin-bottom: 4px;
  color: rgba(70, 72, 74, 0.72);
}

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

.metric-card {
  min-height: 310px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.4);
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(70, 72, 74, 0.04);
}

.metric-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--white);
  font-weight: 900;
  font-size: 1.25rem;
}

.metric-orange {
  border-top: 5px solid var(--orange);
}
.metric-blue {
  border-top: 5px solid var(--blue);
}
.metric-gold {
  border-top: 5px solid var(--gold);
}
.metric-green {
  border-top: 5px solid var(--green);
}
.metric-rose {
  border-top: 5px solid var(--rose);
}
.metric-purple {
  border-top: 5px solid var(--purple);
}
.metric-ink {
  border-top: 5px solid var(--ink);
}

.metric-card > p:first-of-type {
  margin-bottom: 4px;
  font-weight: 720;
}

.metric-explainer {
  min-height: 48px;
  margin: 2px 0 8px;
  color: rgba(70, 72, 74, 0.68);
  font-size: 0.8rem;
  line-height: 1.45;
}

.metric-card > strong {
  margin: 4px 0 12px;
  font-family: "Bai Jamjuree", Inter, sans-serif;
  font-size: 3.25rem;
  letter-spacing: -0.06em;
}

.metric-card > strong small {
  margin-left: 4px;
  font-size: 0.9rem;
  opacity: 0.55;
  letter-spacing: 0;
  line-height: 1.2;
}

.metric-card > strong .metric-value-suffix-training {
  display: block;
  margin: 2px 0 0;
  font-size: 0.82rem;
  opacity: 0.72;
}

.change {
  width: fit-content;
  max-width: 100%;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 750;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: normal;
}

.change.positive {
  background: rgba(141, 187, 138, 0.3);
}

.change.neutral {
  background: rgba(229, 192, 123, 0.35);
}

.metric-note {
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 20px;
  font-size: 0.85rem;
  color: rgba(70, 72, 74, 0.78);
  line-height: 1.5;
}

.journey {
  width: 100%;
  padding-inline: max(20px, calc((100% - 1180px) / 2));
  background: var(--ink);
  color: white;
}

.journey .section-heading > p {
  color: rgba(255, 255, 255, 0.64);
}

.journey-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--milestone-count, 5), minmax(0, 1fr));
  gap: 18px;
}

.journey-track::before {
  content: "";
  height: 2px;
  left: 9%;
  right: 9%;
  top: 28px;
  background: linear-gradient(90deg, var(--blue) 0 67%, rgba(255, 255, 255, 0.16) 67%);
  position: absolute;
}

.journey-step {
  position: relative;
}

.step-dot {
  width: 56px;
  height: 56px;
  margin: 0 auto 22px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--blue);
  font-weight: 850;
  position: relative;
  z-index: 2;
}

.journey-step.current .step-dot {
  border-color: var(--orange);
  background: var(--orange);
  color: white;
  box-shadow: 0 0 0 8px rgba(254, 87, 42, 0.16);
}

.journey-step.next .step-dot {
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.5);
}

.journey-step > p,
.journey-step > strong,
.journey-step > span {
  display: block;
  text-align: center;
}

.journey-step > p {
  margin-bottom: 4px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
}

.journey-step > strong {
  margin-bottom: 8px;
}

.journey-step > span {
  color: rgba(255, 255, 255, 0.63);
  font-size: 0.84rem;
}

.period-switch,
.chart-tabs,
.view-toggle {
  width: max-content;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: flex;
  background: rgba(255, 255, 255, 0.45);
}

.period-switch button,
.chart-tabs button,
.view-toggle button {
  border: 0;
  padding: 9px 15px;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 720;
}

.period-switch button.active,
.chart-tabs button[aria-selected="true"],
.view-toggle button.active {
  background: var(--ink);
  color: white;
}

.chart-shell {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: var(--shadow);
}

.chart-tabs {
  margin: 12px;
  overflow-x: auto;
}

.chart-content {
  min-height: 460px;
  padding: 38px;
  border-radius: 28px;
  display: grid;
  grid-template-columns: 0.62fr 1.38fr;
  gap: 40px;
  background: var(--white);
}

.chart-copy h3,
.privacy-card h3 {
  margin-bottom: 14px;
  font-size: 2rem;
}

.chart-copy > p {
  color: rgba(70, 72, 74, 0.72);
}

.chart-legend {
  margin-top: 28px;
  display: grid;
  gap: 10px;
}

.scale-switch {
  width: 100%;
  margin-top: 22px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 18px;
  display: grid;
  gap: 4px;
  background: rgba(243, 240, 235, 0.72);
}

.scale-switch[hidden] {
  display: none;
}

.scale-switch button {
  border: 0;
  padding: 9px 12px;
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 720;
  text-align: left;
}

.scale-switch button.active {
  background: var(--ink);
  color: white;
}

.legend-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.84rem;
}

.legend-line {
  flex: 0 0 auto;
  width: 24px;
  height: 4px;
  margin-top: 8px;
  border-radius: 4px;
}

.legend-item div {
  display: grid;
  gap: 3px;
}

.legend-item small {
  color: rgba(70, 72, 74, 0.62);
  line-height: 1.4;
}

.canvas-wrap {
  min-width: 0;
  align-self: center;
}

#progress-chart {
  width: 100%;
  height: auto;
  display: block;
}

.chart-summary {
  min-height: 24px;
  margin: 12px 0 0;
  font-size: 0.82rem;
  color: rgba(70, 72, 74, 0.62);
  text-align: center;
}

.body-panel {
  padding: 18px 28px 30px;
}

.privacy-card {
  padding: 28px;
  border-radius: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  background: rgba(151, 185, 255, 0.3);
}

.privacy-card p {
  max-width: 700px;
  margin-bottom: 0;
}

.functional-summary {
  margin-top: 18px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  display: flex;
  gap: 24px;
}

.functional-marker {
  flex: 0 0 66px;
  height: 66px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: white;
  font-weight: 900;
}

.functional-summary p {
  margin: 8px 0 0;
  color: rgba(70, 72, 74, 0.72);
}

.body-numbers {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.body-numbers article {
  min-width: 0;
  min-height: 340px;
  padding: 22px;
  border-radius: 22px;
  background: var(--ink);
  color: white;
  display: grid;
  align-content: start;
  gap: 8px;
  border-top: 5px solid var(--orange);
}

.body-numbers article.body-metric-blue {
  border-top-color: var(--blue);
}

.body-numbers article.body-metric-green {
  border-top-color: var(--green);
}

.body-numbers article.body-metric-purple {
  border-top-color: var(--purple);
}

.body-numbers article > span,
.body-numbers article > small {
  color: rgba(255, 255, 255, 0.64);
}

.body-numbers article > strong {
  font-size: 2rem;
}

.body-history-heading {
  grid-column: 1 / -1;
  padding: 10px 4px 6px;
}

.body-history-heading h4 {
  margin: 0 0 4px;
  font-size: 1.35rem;
}

.body-history-heading p {
  max-width: 780px;
  margin: 0;
  color: rgba(70, 72, 74, 0.72);
  font-size: 0.88rem;
}

.body-history-chart {
  width: 100%;
  height: 164px;
  margin-top: 8px;
  display: block;
}

.body-history-endpoints {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.78rem;
}

.body-history-details {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8rem;
}

.body-history-details summary {
  width: fit-content;
  cursor: pointer;
  font-weight: 750;
}

.body-history-details ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.72);
}

.body-history-details li + li {
  margin-top: 4px;
}

.body-numbers > p {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  font-size: 0.84rem;
}

.body-principle {
  margin: 18px 4px 0;
  color: rgba(70, 72, 74, 0.68);
  font-size: 0.82rem;
}

.focus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.coach-note,
.next-focus {
  min-height: 500px;
  padding: 44px;
  border-radius: 36px;
}

.coach-note {
  background: var(--blue);
}

.coach-note .eyebrow {
  color: var(--ink);
}

.coach-message {
  margin: 42px 0 34px;
  max-width: 620px;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.62;
}

.signature {
  font-weight: 800;
}

.next-focus {
  background: var(--orange);
  color: white;
  position: relative;
  overflow: hidden;
}

.next-focus .eyebrow {
  color: white;
}

.focus-number {
  position: absolute;
  top: -38px;
  right: 15px;
  color: rgba(255, 255, 255, 0.14);
  font-size: 12rem;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.next-focus > p:not(.eyebrow) {
  max-width: 480px;
  color: rgba(255, 255, 255, 0.8);
}

.focus-detail {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.focus-detail p,
.focus-detail ul {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.84);
}

.focus-detail ul {
  padding-left: 20px;
}

.focus-detail li + li {
  margin-top: 8px;
}

.focus-check {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  gap: 14px;
}

.focus-check > span {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: white;
  color: var(--orange);
  font-weight: 900;
}

.focus-check div {
  display: grid;
}

.focus-check small {
  color: rgba(255, 255, 255, 0.7);
}

.checkin-cta {
  width: 100%;
  padding: 80px max(20px, calc((100% - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: var(--ink);
  color: white;
}

.checkin-cta p:not(.eyebrow) {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.66);
}

.button-light {
  flex: 0 0 auto;
  border: 0;
  background: var(--cream);
  color: var(--ink);
}

footer {
  min-height: 180px;
  padding: 42px max(20px, calc((100% - 1180px) / 2));
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
}

footer strong {
  font-size: 1.2rem;
}

footer strong span {
  color: var(--blue);
}

footer p {
  margin: 8px 0 0;
  color: rgba(70, 72, 74, 0.62);
  font-size: 0.8rem;
}

dialog {
  width: min(520px, calc(100% - 32px));
  padding: 38px;
  border: 0;
  border-radius: 28px;
  color: var(--ink);
  background: var(--cream);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.24);
}

dialog::backdrop {
  background: rgba(34, 35, 36, 0.68);
  backdrop-filter: blur(5px);
}

.dialog-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  float: right;
  background: rgba(70, 72, 74, 0.08);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.4rem;
}

.dialog-ok {
  margin-top: 8px;
  border: 0;
}

@media (max-width: 980px) {
  .access-layout {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .access-brand {
    margin-bottom: 56px;
  }

  .access-intro h1 {
    max-width: 820px;
  }

  .access-card {
    width: min(620px, 100%);
    justify-self: center;
  }

  .nav {
    display: none;
  }

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

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

  .stage-card {
    min-height: 420px;
  }

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

  .journey-track {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .journey-track::before {
    width: 2px;
    height: calc(100% - 80px);
    left: 27px;
    right: auto;
    top: 28px;
    background: linear-gradient(180deg, var(--blue) 0 67%, rgba(255, 255, 255, 0.16) 67%);
  }

  .journey-step {
    min-height: 105px;
    padding-left: 78px;
  }

  .step-dot {
    position: absolute;
    left: 0;
    margin: 0;
  }

  .journey-step > p,
  .journey-step > strong,
  .journey-step > span {
    text-align: left;
  }

  .chart-content {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 640px) {
  .access-gate {
    padding: 24px 16px 38px;
    align-items: start;
  }

  .access-layout {
    gap: 32px;
  }

  .access-brand {
    margin-bottom: 48px;
  }

  .access-intro h1 {
    font-size: clamp(2.8rem, 15vw, 4.5rem);
  }

  .access-benefits {
    font-size: 0.9rem;
  }

  .access-card {
    padding: 28px 22px;
    border-radius: 30px;
  }

  .topbar {
    min-height: 68px;
    padding-inline: 18px;
  }

  .profile-copy {
    display: none;
  }

  .signout-button {
    display: none;
  }

  .demo-banner {
    align-items: center;
    flex-direction: column;
    gap: 0;
    text-align: center;
  }

  section {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    padding-top: 58px;
  }

  h1 {
    font-size: 3.15rem;
  }

  .stage-card,
  .coach-note,
  .next-focus {
    padding: 28px;
    border-radius: 30px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

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

  .chart-shell {
    border-radius: 26px;
  }

  .chart-tabs {
    width: calc(100% - 24px);
  }

  .chart-content {
    min-height: 0;
    padding: 26px 18px;
  }

  .body-panel {
    padding-inline: 12px;
  }

  .view-toggle {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    border-radius: 18px;
  }

  .body-numbers {
    grid-template-columns: 1fr;
  }

  .body-history-heading {
    grid-column: auto;
  }

  .body-numbers > p {
    grid-column: auto;
  }

  .checkin-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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