:root {
  --bg: #f5f6fa;
  --bg-soft: #eceff4;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --text: #141b27;
  --text-soft: #5f6879;
  --stroke: #d7ddea;
  --orange: #ff7a18;
  --pink: #d52698;
  --grad: linear-gradient(120deg, var(--orange), var(--pink));
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-soft: 0 16px 36px rgba(20, 27, 39, 0.09);
  --shadow-card: 0 24px 58px rgba(20, 27, 39, 0.1);
  --container: min(1160px, calc(100vw - 40px));
  --header-h: 80px;
  --header-h-mobile: 86px;
  --hero-progress: 0;
  --timeline-progress: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html.intro-active {
  scroll-behavior: auto;
}

body {
  margin: 0;
  font-family: "Hanken Grotesk", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
  min-height: 100vh;
}

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

p {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Space Grotesk", "Hanken Grotesk", sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.site-body {
  position: relative;
  overflow-x: clip;
}

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

.site-body.is-preload main,
.site-body.is-preload .site-header,
.site-body.intro-lock main,
.site-body.intro-lock .site-header {
  opacity: 0;
  pointer-events: none;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.bg-hues {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.bg-hue {
  position: absolute;
  border-radius: 999px;
  filter: blur(88px);
  opacity: 0.33;
  transform-origin: center;
}

.bg-hue--orange {
  width: clamp(430px, 48vw, 760px);
  height: clamp(430px, 48vw, 760px);
  background: radial-gradient(circle at 40% 40%, rgba(255, 122, 24, 0.78), rgba(255, 122, 24, 0));
  top: -180px;
  left: -190px;
  animation: drift-orange 20s ease-in-out infinite alternate;
}

.bg-hue--pink {
  width: clamp(420px, 44vw, 720px);
  height: clamp(420px, 44vw, 720px);
  background: radial-gradient(circle at 55% 45%, rgba(213, 38, 152, 0.74), rgba(213, 38, 152, 0));
  right: -210px;
  top: 32%;
  animation: drift-pink 24s ease-in-out infinite alternate;
}

.bg-hue--support {
  width: clamp(340px, 34vw, 560px);
  height: clamp(340px, 34vw, 560px);
  background: radial-gradient(circle at 50% 50%, rgba(255, 122, 24, 0.38), rgba(255, 122, 24, 0));
  left: 34%;
  bottom: -170px;
  animation: drift-support 28s ease-in-out infinite alternate;
}

@keyframes drift-orange {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(74px, 40px, 0) scale(1.09); }
  100% { transform: translate3d(128px, -42px, 0) scale(0.95); }
}

@keyframes drift-pink {
  0% { transform: translate3d(0, 0, 0) scale(1.03); }
  50% { transform: translate3d(-56px, -56px, 0) scale(0.97); }
  100% { transform: translate3d(-136px, 46px, 0) scale(1.07); }
}

@keyframes drift-support {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-40px, -42px, 0) scale(1.05); }
  100% { transform: translate3d(58px, -78px, 0) scale(0.95); }
}

.intro-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, #f6f7fa 0%, #f0f2f7 100%);
  display: grid;
  place-items: center;
  z-index: 150;
  transition: opacity 620ms ease, visibility 620ms ease;
}

.intro-overlay.is-exit {
  opacity: 0;
  visibility: hidden;
}

.intro-title {
  width: min(900px, calc(100vw - 48px));
  font-size: clamp(2.2rem, 7.4vw, 6.5rem);
  line-height: 0.99;
  text-align: center;
  color: #101726;
}

.intro-word {
  display: inline-block;
  margin: 0 0.16em;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  filter: blur(6px);
  transition: transform 560ms cubic-bezier(0.2, 0.9, 0.24, 1), opacity 560ms ease, filter 560ms ease;
}

.intro-word.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  border-bottom: 1px solid rgba(205, 211, 224, 0.45);
  background: rgba(245, 246, 248, 0.78);
  backdrop-filter: blur(12px);
  z-index: 80;
  transition: box-shadow 220ms ease, background-color 220ms ease, opacity 240ms ease;
}

.site-header.is-scrolled {
  background: rgba(245, 246, 248, 0.92);
  box-shadow: 0 10px 24px rgba(20, 27, 39, 0.08);
}

.nav-shell {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.08rem;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.brand-logo {
  width: 76px;
  height: auto;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: inline-flex;
  gap: 8px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid rgba(205, 211, 224, 0.56);
  background: rgba(255, 255, 255, 0.5);
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text-soft);
  font-weight: 620;
  font-size: 0.9rem;
  transition: color 180ms ease, background-color 180ms ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.86);
}

.nav-links a.is-active {
  color: #fff;
  background: var(--grad);
  box-shadow: 0 8px 18px rgba(213, 38, 152, 0.25);
}

.header-cta {
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(205, 211, 224, 0.72);
  border-radius: 12px;
  color: #253047;
  background: rgba(255, 255, 255, 0.74);
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(172, 182, 201, 0.9);
}

.nav-toggle .material-symbols-outlined {
  font-size: 24px;
}

.mobile-menu-backdrop,
.mobile-menu {
  display: none;
}

.mobile-menu {
  pointer-events: none;
}

.mobile-menu-links {
  display: grid;
  gap: 8px;
}

.mobile-menu-links a {
  border-radius: 12px;
  border: 1px solid rgba(205, 211, 224, 0.74);
  background: rgba(255, 255, 255, 0.84);
  padding: 12px 14px;
  font-weight: 670;
  color: #3f495d;
}

.mobile-menu-links a.is-active {
  color: #fff;
  border-color: transparent;
  background: var(--grad);
  box-shadow: 0 10px 18px rgba(213, 38, 152, 0.23);
}

.mobile-menu-cta {
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease, color 220ms ease;
}

.btn:focus-visible {
  outline: 3px solid rgba(255, 122, 24, 0.35);
  outline-offset: 2px;
}

.btn-primary {
  color: #fff;
  background: var(--grad);
  box-shadow: 0 14px 26px rgba(213, 38, 152, 0.25);
  padding: 13px 24px;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 28px rgba(213, 38, 152, 0.3);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--stroke);
  padding: 13px 24px;
}

.btn-secondary:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.9);
}

main {
  padding-top: calc(var(--header-h) + 12px);
}

.snap-shell {
  scroll-snap-type: y proximity;
}

.snap-section {
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

.section {
  padding: clamp(68px, 8vw, 102px) 0;
}

.section-muted {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(245, 246, 248, 0.56));
  border-top: 1px solid rgba(217, 222, 234, 0.6);
  border-bottom: 1px solid rgba(217, 222, 234, 0.6);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 760;
  color: #586072;
  border: 1px solid rgba(205, 211, 224, 0.9);
  background: rgba(255, 255, 255, 0.66);
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--orange);
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-section {
  min-height: clamp(620px, 84vh, 740px);
  padding-top: clamp(54px, 6.5vw, 84px);
  padding-bottom: clamp(26px, 3.8vw, 44px);
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(470px, 560px);
  gap: clamp(28px, 4vw, 58px);
  align-items: center;
  transform: translateY(calc(var(--hero-progress) * -36px));
  opacity: calc(1 - min(var(--hero-progress) * 1.08, 1));
  transition: transform 120ms linear, opacity 120ms linear;
}

.hero-title {
  margin-top: 18px;
  font-size: clamp(2.45rem, 5.5vw, 4.95rem);
}

.hero-title-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.accent-spark {
  font-size: clamp(1.3rem, 1.9vw, 1.8rem);
  color: var(--pink);
  opacity: 0.86;
  animation: spark-glow 2.8s ease-in-out infinite;
}

@keyframes spark-glow {
  0%, 100% { transform: scale(1); opacity: 0.72; }
  50% { transform: scale(1.15); opacity: 1; }
}

.hero-sub {
  margin-top: 20px;
  color: var(--text-soft);
  font-size: clamp(1.03rem, 1.85vw, 1.22rem);
  max-width: 640px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: #4f586a;
  font-weight: 610;
}

.trust-list .material-symbols-outlined {
  font-size: 18px;
  color: var(--pink);
}

.dashboard-shell {
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(205, 211, 224, 0.72);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.dashboard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(217, 222, 234, 0.8);
  background: rgba(255, 255, 255, 0.78);
}

.window-dots {
  display: inline-flex;
  gap: 6px;
}

.window-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.window-dots span:nth-child(1) { background: #f67f82; }
.window-dots span:nth-child(2) { background: #f5c46d; }
.window-dots span:nth-child(3) { background: #63cf9f; }

.dashboard-path {
  font-size: 0.72rem;
  color: #717a8e;
  font-weight: 600;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 12px;
  padding: 14px;
}

.panel,
.chat-card {
  border-radius: var(--radius-md);
  border: 1px solid rgba(217, 222, 234, 0.8);
  background: rgba(255, 255, 255, 0.9);
  padding: 12px;
}

.panel h4,
.chat-card h4 {
  font-size: 0.84rem;
  margin-bottom: 8px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  font-size: 0.74rem;
  color: #5b6375;
}

.badge-ok {
  background: rgba(59, 193, 138, 0.14);
  color: #138d55;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.68rem;
  font-weight: 700;
}

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bubble {
  border-radius: 14px;
  padding: 10px;
  font-size: 0.77rem;
  line-height: 1.35;
  max-width: 96%;
}

.bubble.ai {
  margin-left: auto;
  color: #fff;
  background: var(--grad);
}

.bubble.user {
  background: #f3f5fa;
  color: #3d4556;
}

.reality-section {
  transition: transform 520ms cubic-bezier(0.22, 0.9, 0.26, 1), opacity 420ms ease;
  transform: translateY(20px) scale(0.985);
  opacity: 0.92;
}

.reality-section.is-active {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.ratio-grid {
  display: grid;
  grid-template-columns: minmax(290px, 400px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 66px);
  align-items: center;
}

.ratio-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(205, 211, 224, 0.9);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  transform: scale(0.96);
  transition: transform 520ms cubic-bezier(0.21, 0.88, 0.24, 1);
}

.reality-section.is-active .ratio-card {
  transform: scale(1);
}

.ratio-chart {
  margin: 8px auto 16px;
  width: 230px;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.ratio-ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transition: background 120ms linear;
}

.ratio-ring-admin {
  background: conic-gradient(
    rgba(205, 211, 224, 0.58) 0% var(--admin-fill, 0%),
    rgba(205, 211, 224, 0) var(--admin-fill, 0%) 100%
  );
}

.ratio-ring-patient {
  background: conic-gradient(
    var(--orange) 0% var(--patient-fill, 0%),
    rgba(255, 122, 24, 0) var(--patient-fill, 0%) 100%
  );
}

.ratio-chart::after {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: inherit;
  background: #fff;
}

.ratio-center {
  position: relative;
  z-index: 1;
  text-align: center;
}

.ratio-center strong {
  font-size: 2.1rem;
  font-family: "Space Grotesk", sans-serif;
}

.ratio-center span {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #70798a;
  font-size: 0.7rem;
  font-weight: 700;
}

.ratio-card h3 {
  margin-bottom: 10px;
}

.copy-block h2 {
  font-size: clamp(2rem, 4.2vw, 3rem);
}

.copy-block p {
  margin-top: 14px;
  color: var(--text-soft);
  font-size: 1.02rem;
  max-width: 640px;
}

.copy-block[data-reveal] {
  transition-duration: 940ms, 740ms;
}

.journey-hero {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.journey-hero h1,
.pricing-hero h1 {
  font-size: clamp(2.1rem, 4.9vw, 4rem);
}

.journey-hero p,
.pricing-hero p {
  margin-top: 16px;
  color: var(--text-soft);
  font-size: 1.04rem;
}

.timeline {
  margin-top: 58px;
  position: relative;
  padding-bottom: 10px;
}

.timeline-rail {
  position: absolute;
  left: 50%;
  top: 8px;
  bottom: 8px;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255, 122, 24, 0.08), rgba(213, 38, 152, 0.08));
}

.timeline-progress {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 122, 24, 0.95), rgba(213, 38, 152, 0.95));
  transform-origin: top center;
  transform: scaleY(var(--timeline-progress));
  transition: transform 120ms linear;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  align-items: start;
  margin-bottom: 88px;
}

.timeline-copy {
  align-self: start;
  padding-inline-start: 8px;
}

.timeline-item:nth-child(even) .timeline-copy {
  padding-inline-start: 0;
  padding-inline-end: 8px;
  order: 2;
}

.timeline-item:nth-child(even) .timeline-card {
  order: 1;
}

.timeline-dot {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  transform: translateX(-50%);
  border: 3px solid rgba(255, 255, 255, 0.95);
  background: var(--grad);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.95);
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.timeline-item.is-active .timeline-dot {
  transform: translateX(-50%) scale(1.12);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.95), 0 0 22px rgba(213, 38, 152, 0.32);
}

.timeline-copy h3 {
  font-size: 2rem;
}

.timeline-copy p {
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 1.1rem;
}

.timeline-card {
  align-self: start;
  background: var(--surface);
  border: 1px solid rgba(205, 211, 224, 0.85);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.timeline-card .chip {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #6c7383;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(205, 211, 224, 0.28);
  margin-bottom: 12px;
}

.timeline-card ul {
  margin: 0;
  padding-left: 18px;
  color: #485062;
  display: grid;
  gap: 8px;
}

.highlight-panel {
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.14), rgba(213, 38, 152, 0.12));
  border: 1px solid rgba(213, 38, 152, 0.22);
  border-radius: var(--radius-xl);
  box-shadow: 0 22px 42px rgba(213, 38, 152, 0.16);
  padding: 24px;
  margin: 34px 0 96px;
}

.highlight-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: stretch;
}

.highlight-grid h3 {
  font-size: 1.9rem;
}

.highlight-grid p {
  margin-top: 10px;
  color: #4f586a;
}

.feature-list {
  margin: 14px 0 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 620;
  color: #495263;
}

.feature-list .material-symbols-outlined {
  font-size: 18px;
  color: var(--orange);
}

.platform-preview {
  border-radius: 18px;
  border: 1px solid rgba(20, 27, 39, 0.1);
  background: #f7f8fc;
  overflow: hidden;
  display: grid;
  grid-template-columns: 168px 1fr;
}

.preview-side {
  background: #edf1f7;
  border-right: 1px solid #d6deeb;
  padding: 12px;
}

.preview-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 730;
  margin-bottom: 14px;
}

.preview-brand img {
  width: 44px;
  height: auto;
  object-fit: contain;
}

.preview-nav {
  display: grid;
  gap: 8px;
}

.preview-nav span {
  font-size: 0.77rem;
  color: #4a5365;
  background: #e2e8f2;
  border-radius: 9px;
  padding: 7px;
}

.preview-nav span.active {
  background: #ced9e8;
  color: #2f394d;
  font-weight: 700;
}

.preview-main {
  padding: 14px;
  background: #f8f9fd;
}

.preview-main h4 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.preview-card {
  border-radius: 11px;
  border: 1px solid #dbe2ef;
  background: #ffffff;
  padding: 10px;
}

.preview-card strong {
  font-family: "Space Grotesk", sans-serif;
  display: block;
  font-size: 1.2rem;
  margin-top: 4px;
}

.cta-panel {
  margin-top: 44px;
  background: var(--surface-strong);
  border: 1px solid rgba(205, 211, 224, 0.82);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  text-align: center;
  padding: 34px 20px;
}

.cta-panel h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.cta-panel p {
  margin-top: 12px;
  color: var(--text-soft);
}

.cta-actions {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.pricing-grid {
  margin-top: 42px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.price-card {
  background: var(--surface);
  border: 1px solid rgba(205, 211, 224, 0.85);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 430px;
}

.price-card.is-featured {
  border-color: rgba(213, 38, 152, 0.25);
  box-shadow: 0 22px 40px rgba(213, 38, 152, 0.15);
}

.price-label {
  align-self: flex-start;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5f6677;
  background: rgba(205, 211, 224, 0.34);
}

.price-card.is-featured .price-label {
  background: var(--grad);
  color: #fff;
}

.price-card h2 {
  margin-top: 14px;
  font-size: 2rem;
}

.price-amount {
  margin-top: 12px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-amount strong {
  font-size: 2.4rem;
  font-family: "Space Grotesk", sans-serif;
}

.price-amount span {
  color: #6a7283;
}

.price-card ul {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
  color: #4e5769;
}

.price-card li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
}

.price-card li .material-symbols-outlined {
  font-size: 19px;
  color: var(--pink);
}

.price-card li.plus .material-symbols-outlined {
  color: var(--orange);
}

.price-card .btn {
  margin-top: auto;
}

.testimonial {
  margin-top: 52px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(205, 211, 224, 0.78);
  box-shadow: var(--shadow-soft);
  padding: clamp(22px, 4vw, 40px);
  text-align: center;
}

.testimonial blockquote {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.13rem, 2.05vw, 1.58rem);
  line-height: 1.4;
}

.quote-impact {
  font-weight: 760;
  color: var(--pink);
  background: linear-gradient(120deg, var(--orange), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.persona {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #4e576a;
  font-size: 0.95rem;
  font-weight: 600;
}

.site-footer {
  margin-top: 28px;
  padding: 22px 0 30px;
  border-top: 1px solid rgba(205, 211, 224, 0.8);
  background: rgba(255, 255, 255, 0.58);
}

.footer-shell {
  display: grid;
  gap: 12px;
  align-items: center;
  grid-template-columns: auto 1fr auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.footer-links a {
  color: #677084;
  font-size: 0.86rem;
  font-weight: 650;
}

.footer-links a:hover {
  color: var(--pink);
}

.footer-copy {
  font-size: 0.8rem;
  color: #70798b;
  justify-self: end;
}

[data-reveal] {
  opacity: 0;
  --reveal-y: 20px;
  --parallax-y: 0px;
  --reveal-scale: 1;
  transform: translate3d(0, calc(var(--reveal-y) + var(--parallax-y)), 0) scale(var(--reveal-scale));
  transition:
    transform 820ms cubic-bezier(0.21, 0.88, 0.24, 1),
    opacity 700ms ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: transform, opacity;
}

[data-reveal].is-visible {
  opacity: 1;
  --reveal-y: 0px;
  --reveal-scale: 1;
}

@media (max-width: 1110px) {
  :root {
    --container: min(960px, calc(100vw - 34px));
  }

  .hero-section {
    min-height: auto;
    padding-bottom: clamp(20px, 4.5vw, 34px);
  }

  .home-hero,
  .ratio-grid,
  .pricing-grid,
  .highlight-grid {
    grid-template-columns: 1fr;
  }

  .timeline-rail {
    left: 18px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    margin-left: 0;
    padding-left: 46px;
    margin-bottom: 80px;
    gap: 18px;
  }

  .timeline-item:nth-child(even) .timeline-copy {
    padding-inline: 0;
    order: initial;
  }

  .timeline-item:nth-child(even) .timeline-card {
    order: initial;
  }

  .timeline-dot {
    left: 18px;
    top: 10px;
    transform: translateX(-50%);
  }

  .platform-preview {
    grid-template-columns: 1fr;
  }

  .preview-side {
    border-right: 0;
    border-bottom: 1px solid #d6deeb;
  }

  .footer-shell {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-copy {
    justify-self: center;
  }
}

@media (max-width: 760px) {
  .section {
    padding: clamp(52px, 9vw, 68px) 0;
  }

  .site-header {
    height: var(--header-h-mobile);
    min-height: var(--header-h-mobile);
  }

  .nav-shell {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 12px;
  }

  .brand {
    font-size: 1rem;
    gap: 8px;
  }

  .nav-links,
  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .mobile-menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 89;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: rgba(17, 23, 35, 0.28);
    transition: opacity 220ms ease, visibility 220ms ease;
  }

  .mobile-menu {
    display: grid;
    gap: 12px;
    position: fixed;
    top: calc(var(--header-h-mobile) + 8px);
    left: 12px;
    right: 12px;
    z-index: 90;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(205, 211, 224, 0.88);
    background: rgba(245, 247, 252, 0.97);
    box-shadow: 0 20px 38px rgba(20, 27, 39, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.985);
    transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
  }

  .site-body.menu-open .mobile-menu-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-body.menu-open .mobile-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  main {
    padding-top: calc(var(--header-h-mobile) + 12px);
  }

  .hero-title {
    font-size: clamp(2.2rem, 10vw, 3.1rem);
  }

  .dashboard-grid,
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .hero-cta-row {
    width: 100%;
  }

  .hero-cta-row .btn {
    flex: 1;
    min-width: 170px;
  }

  .ratio-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .ratio-card {
    padding: clamp(16px, 4.6vw, 20px);
  }

  .ratio-chart {
    width: clamp(160px, 58vw, 210px);
    margin: 2px auto 12px;
  }

  .ratio-chart::after {
    inset: clamp(22px, 7vw, 26px);
  }

  .ratio-center strong {
    font-size: clamp(1.72rem, 8vw, 1.95rem);
  }

  .ratio-center span {
    font-size: 0.64rem;
    letter-spacing: 0.06em;
  }

  .ratio-card h3 {
    font-size: clamp(1.62rem, 7.8vw, 2rem);
    line-height: 1.1;
    margin-bottom: 12px;
  }

  .ratio-card p {
    font-size: clamp(0.96rem, 4.2vw, 1.03rem);
    line-height: 1.4;
  }

  #how-it-works .pill {
    padding: 6px 12px;
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    white-space: nowrap;
    max-width: 100%;
  }

  #how-it-works .pill .pill-dot {
    width: 7px;
    height: 7px;
  }

  .journey-hero h1 {
    font-size: clamp(1.95rem, 11.2vw, 2.8rem);
    line-height: 1.03;
  }

  .journey-hero p {
    margin-top: 12px;
    font-size: 0.97rem;
  }

  #pricing.section {
    padding-top: 44px;
    padding-bottom: 48px;
  }

  .pricing-grid {
    margin-top: 26px;
    gap: 14px;
  }

  .price-card {
    min-height: auto;
    padding: 18px;
  }

  .price-card h2 {
    margin-top: 10px;
    font-size: clamp(1.6rem, 8.4vw, 2rem);
  }

  .price-amount {
    margin-top: 8px;
    gap: 6px;
  }

  .price-amount strong {
    font-size: clamp(2.1rem, 12vw, 2.35rem);
  }

  .price-amount span {
    font-size: 1.02rem;
    line-height: 1.2;
  }

  .price-card ul {
    margin-top: 14px;
    gap: 8px;
  }

  .price-card li {
    font-size: 1.02rem;
    line-height: 1.25;
  }

  .price-card li .material-symbols-outlined {
    font-size: 17px;
  }

  .price-card .btn {
    width: auto;
    min-width: 0;
    align-self: flex-start;
    margin-top: 14px;
    padding: 11px 18px;
  }

  .testimonial {
    margin-top: 28px;
    padding: 18px 16px;
    border-radius: 20px;
  }

  .testimonial blockquote {
    font-size: clamp(1rem, 4.6vw, 1.14rem);
    line-height: 1.34;
    text-align: left;
    overflow-wrap: anywhere;
  }

  .persona {
    margin-top: 12px;
    justify-content: flex-start;
    text-align: left;
    font-size: 0.84rem;
    line-height: 1.35;
  }

  .cta-panel {
    margin-top: 30px;
    padding: 24px 16px;
  }

  .cta-panel h2 {
    font-size: clamp(1.45rem, 6.8vw, 1.9rem);
  }

  .cta-panel p {
    margin-top: 8px;
    font-size: 0.95rem;
  }

  .cta-actions {
    margin-top: 14px;
    gap: 10px;
  }

  [data-reveal] {
    --reveal-y: 14px;
    transition:
      transform 620ms cubic-bezier(0.2, 0.86, 0.25, 1),
      opacity 520ms ease;
  }

  .home-hero {
    transform: translateY(calc(var(--hero-progress) * -22px));
    opacity: calc(1 - min(var(--hero-progress) * 0.96, 1));
    transition: transform 100ms linear, opacity 100ms linear;
  }

  .bg-hue {
    opacity: 0.26;
  }

  .intro-title {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  .brand-logo {
    width: 65px;
  }

  .hero-section {
    padding-top: 38px;
    padding-bottom: 18px;
  }

  .timeline {
    margin-top: 44px;
    padding-left: 4px;
  }

  .timeline-rail {
    left: 20px;
  }

  .timeline-item {
    padding-left: 52px;
    margin-bottom: 72px;
    gap: 14px;
  }

  .timeline-dot {
    left: 20px;
    top: 9px;
  }

  .timeline-copy h3 {
    font-size: 1.74rem;
    line-height: 1.1;
  }

  .timeline-copy,
  .timeline-item:nth-child(even) .timeline-copy {
    padding-inline: 0;
  }

  .timeline-card {
    padding: 18px 16px;
    width: 100%;
    justify-self: stretch;
  }

  .timeline-card .chip {
    margin: 0 0 14px 2px;
  }

  .timeline-card ul {
    list-style: disc !important;
    margin: 0;
    padding-left: 2rem !important;
    display: block !important;
  }

  .timeline-card li {
    display: list-item !important;
    padding-left: 0 !important;
    line-height: 1.34;
    margin-bottom: 8px;
  }

  .timeline-card li::before {
    content: none !important;
  }
}

@media (max-width: 340px) {
  :root {
    --container: min(960px, calc(100vw - 24px));
    --header-h-mobile: 80px;
  }

  .brand {
    gap: 6px;
    font-size: 0.94rem;
  }

  .brand-logo {
    width: 54px;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  main {
    padding-top: calc(var(--header-h-mobile) + 10px);
  }

  .hero-cta-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-cta-row .btn {
    min-width: 0;
  }

  .ratio-card {
    padding: 14px;
  }

  .ratio-chart {
    width: clamp(148px, 56vw, 178px);
  }

  .ratio-chart::after {
    inset: clamp(20px, 8.5vw, 23px);
  }

  #how-it-works .pill {
    font-size: 0.62rem;
    letter-spacing: 0.05em;
    padding: 5px 10px;
  }

  .timeline {
    margin-top: 38px;
  }

  .timeline-item {
    padding-left: 48px;
    margin-bottom: 64px;
  }

  .timeline-copy h3 {
    font-size: 1.6rem;
  }

  .price-card {
    padding: 16px;
  }

  .price-card li {
    font-size: 0.95rem;
  }

  .testimonial blockquote {
    font-size: 0.96rem;
    line-height: 1.3;
  }
}

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

  .bg-hue,
  .accent-spark {
    animation: none !important;
  }

  .intro-overlay {
    display: none !important;
  }

  [data-reveal],
  .home-hero,
  .reality-section {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .timeline-progress {
    transform: scaleY(1) !important;
  }

  .btn,
  .nav-links a,
  .site-header {
    transition: none !important;
  }
}
