
:root {
  --brand-blue: #0b3ea8;
  --brand-blue-2: #1e56c9;
  --brand-violet: #6b5df2;
  --brand-violet-2: #8b7dff;
  --brand-teal: #0ea5a4;
  --ink: #0b1222;
  --ink-soft: #2d3b56;
  --muted: #5b6b85;
  --muted-2: #94a3b8;
  --bg: #f4f7fd;
  --bg-2: #eef2ff;
  --card: rgba(255, 255, 255, 0.92);
  --card-solid: #ffffff;
  --line: rgba(148, 163, 184, 0.22);
  --line-strong: rgba(148, 163, 184, 0.44);
  --success: #0f766e;
  --success-soft: rgba(15, 118, 110, 0.12);
  --warning: #b45309;
  --warning-soft: rgba(180, 83, 9, 0.12);
  --danger: #b91c1c;
  --danger-soft: rgba(185, 28, 28, 0.1);
  --info: #1d4ed8;
  --info-soft: rgba(29, 78, 216, 0.12);
  --shadow-lg: 0 28px 80px rgba(15, 23, 42, 0.12);
  --shadow-md: 0 14px 34px rgba(15, 23, 42, 0.09);
  --shadow-sm: 0 8px 22px rgba(15, 23, 42, 0.05);
  --shadow-xs: 0 2px 10px rgba(15, 23, 42, 0.04);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --max: 1200px;
  --max-narrow: 1080px;
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 14px;
  --space-4: 18px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 56px;
  --space-9: 72px;
  --grad-primary: linear-gradient(135deg, #0b3ea8 0%, #6b5df2 100%);
  --grad-subtle: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(238,242,255,0.94) 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(107, 93, 242, 0.14), transparent 24%),
    radial-gradient(circle at 90% 0%, rgba(1, 68, 157, 0.14), transparent 26%),
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 100%);
  min-height: 100vh;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.container.narrow {
  width: min(calc(100% - 32px), var(--max-narrow));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(246, 248, 252, 0.74);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.site-header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.brand-tag {
  color: var(--muted);
  font-size: 0.82rem;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  padding: 12px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  transition: 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: rgba(148, 163, 184, 0.14);
  color: var(--ink);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
  box-shadow: none;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-violet) 100%);
  box-shadow: 0 18px 30px rgba(37, 58, 170, 0.22);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 22px 38px rgba(37, 58, 170, 0.28);
}

.btn-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: #fff;
  border-color: rgba(37, 99, 235, 0.22);
}

.btn-ghost {
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.20);
}

.btn-sm {
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.94rem;
}

.hero {
  padding: var(--space-8) 0 var(--space-7);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-6);
  align-items: stretch;
}

.hero-copy,
.hero-visual {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--brand-blue);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: var(--shadow-sm);
}

.hero h1,
.page-hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(2.4rem, 4.2vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero p.lead,
.page-hero p.lead {
  margin: 0;
  font-size: clamp(1.02rem, 1.5vw, 1.26rem);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 680px;
}

.inline-form {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  width: min(100%, 560px);
}

.input-wrap {
  position: relative;
}

.input-wrap input,
.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: var(--ink);
  outline: none;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.field textarea {
  min-height: 120px;
  padding: 16px 18px;
  resize: vertical;
}

.field select {
  appearance: none;
}

.input-wrap input:focus,
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.08), 0 12px 24px rgba(15, 23, 42, 0.06);
}

.input-wrap.error input {
  border-color: rgba(185, 28, 28, 0.42);
  box-shadow: 0 0 0 5px rgba(185, 28, 28, 0.06);
}

.help-text {
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--muted);
}

.help-text.error {
  color: var(--danger);
}

.success-panel,
.notice-panel,
.warning-panel,
.disclaimer-block {
  border-radius: 22px;
  padding: 18px 20px;
  border: 1px solid transparent;
}

.success-panel {
  background: var(--success-soft);
  border-color: rgba(15, 118, 110, 0.18);
  color: var(--success);
}

.notice-panel {
  background: var(--info-soft);
  border-color: rgba(29, 78, 216, 0.18);
  color: #1e40af;
}

.warning-panel {
  background: var(--warning-soft);
  border-color: rgba(180, 83, 9, 0.18);
  color: #9a3412;
}

.disclaimer-block {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(148, 163, 184, 0.18);
  color: var(--ink-soft);
}

.hero-meta {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: var(--shadow-sm);
}

.hero-visual .visual-card {
  position: relative;
  min-height: 100%;
  padding: 28px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    linear-gradient(155deg, rgba(1, 68, 157, 0.95) 0%, rgba(107, 93, 242, 0.96) 100%);
  box-shadow: 0 32px 90px rgba(37, 58, 170, 0.22);
  color: #fff;
}

.visual-card::before {
  content: "";
  position: absolute;
  inset: -20% auto auto -10%;
  width: 280px;
  height: 280px;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(10px);
  border-radius: 50%;
}

.visual-stack {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
}

.visual-logo {
  width: 156px;
  aspect-ratio: 1 / 1;
  border-radius: 32px;
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.18);
}

.visual-topline {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.94rem;
  letter-spacing: 0.01em;
}

.visual-title {
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  line-height: 1.1;
  font-weight: 750;
  letter-spacing: -0.04em;
  max-width: 14ch;
}

.visual-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.glass-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(20px);
}

.glass-card h3,
.card h3,
.card h4 {
  margin: 0 0 10px;
  letter-spacing: -0.03em;
}

.glass-card p,
.card p,
.card li {
  margin: 0;
  color: inherit;
  line-height: 1.65;
}

.metric-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.metric {
  flex: 1 1 140px;
  min-width: 0;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.metric strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.metric span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.section {
  padding: var(--space-8) 0;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.section-title {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.section-copy {
  margin: 12px 0 0;
  max-width: 680px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.grid-3,
.grid-4,
.grid-2,
.card-grid {
  display: grid;
  gap: 18px;
}

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

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

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  position: relative;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
}

.card.surface-solid {
  background: var(--card-solid);
}

.card.highlight {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(238, 242, 255, 0.96) 100%);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.kicker {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.1);
  color: var(--info);
  font-size: 0.84rem;
  font-weight: 700;
}

.steps {
  counter-reset: step;
}

.step-card {
  padding-top: 30px;
}

.step-card::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 18px;
  right: 22px;
  color: rgba(15, 23, 42, 0.12);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.06em;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: stretch;
}

.founder-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
}

.stat-stack {
  display: grid;
  gap: 14px;
}

.stat-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.stat-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.stat-number {
  font-size: 2.3rem;
  font-weight: 780;
  letter-spacing: -0.06em;
  color: var(--brand-blue);
}

.video-shell {
  position: relative;
  min-height: 360px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(1, 68, 157, 0.95) 0%, rgba(107, 93, 242, 0.95) 100%);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.18);
}

.video-shell::before,
.video-shell::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
}

.video-shell::before {
  width: 260px;
  height: 260px;
  background: rgba(255, 255, 255, 0.1);
  top: -60px;
  right: -20px;
}

.video-shell::after {
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.08);
  left: -40px;
  bottom: -40px;
}

.video-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  gap: 18px;
  padding: 28px;
  text-align: center;
  color: #fff;
}

.play-button {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  margin: 0 auto;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}

.play-triangle {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 18px solid #fff;
}

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.logo-chip {
  min-width: 160px;
  flex: 1 1 160px;
  min-height: 72px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
  letter-spacing: -0.03em;
  box-shadow: var(--shadow-sm);
}

.footer {
  padding: 32px 0 44px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  margin-top: var(--space-7);
}

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

.footer-copy {
  display: grid;
  gap: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.page-hero {
  padding: 44px 0 30px;
}

.page-hero-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
}

.page-hero-side {
  display: grid;
  gap: 18px;
}

.progress-shell {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.progress-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-blue) 0%, var(--brand-violet) 100%);
  width: var(--progress, 32%);
}

.step-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.step-pill {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.step-pill.active {
  color: var(--brand-blue);
  border-color: rgba(29, 78, 216, 0.24);
  background: rgba(29, 78, 216, 0.08);
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.choice-card {
  padding: 24px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.choice-card:hover,
.choice-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(29, 78, 216, 0.24);
}

.choice-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.22rem;
  letter-spacing: -0.03em;
}

.choice-card span {
  color: var(--ink-soft);
  line-height: 1.65;
}

.choice-card .choice-arrow {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-blue);
  font-weight: 700;
}

.chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.chat-shell {
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: 24px;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  padding-bottom: 18px;
}

.chat-stream {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  overflow: auto;
  padding-right: 6px;
}

.bubble {
  max-width: min(84%, 640px);
  padding: 16px 18px;
  border-radius: 22px;
  line-height: 1.65;
  box-shadow: var(--shadow-sm);
}

.bubble.assistant {
  background: rgba(239, 246, 255, 0.92);
  border: 1px solid rgba(59, 130, 246, 0.12);
  color: #1e3a8a;
  align-self: flex-start;
  border-top-left-radius: 8px;
}

.bubble.user {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-violet) 100%);
  color: #fff;
  align-self: flex-end;
  border-top-right-radius: 8px;
}

.bubble small {
  display: block;
  margin-top: 10px;
  color: inherit;
  opacity: 0.76;
  font-size: 0.86rem;
}

.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-chip,
.pill,
.filter-pill,
.slot-btn,
.date-btn,
.toggle-chip,
.plan-chip {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  transition: all 160ms ease;
}

.quick-chip:hover,
.pill:hover,
.filter-pill:hover,
.slot-btn:hover,
.date-btn:hover,
.toggle-chip:hover,
.plan-chip:hover {
  border-color: rgba(29, 78, 216, 0.24);
  color: var(--brand-blue);
  transform: translateY(-1px);
}

.quick-chip.selected,
.pill.active,
.filter-pill.active,
.slot-btn.active,
.date-btn.active,
.toggle-chip.active,
.plan-chip.active {
  color: var(--brand-blue);
  background: rgba(29, 78, 216, 0.09);
  border-color: rgba(29, 78, 216, 0.22);
}

.typing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(239, 246, 255, 0.84);
  width: fit-content;
}

.typing span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(29, 78, 216, 0.56);
  animation: pulse 1.1s infinite ease-in-out;
}

.typing span:nth-child(2) { animation-delay: 0.12s; }
.typing span:nth-child(3) { animation-delay: 0.24s; }

@keyframes pulse {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

.side-stack {
  display: grid;
  gap: 18px;
}

.side-list {
  display: grid;
  gap: 14px;
}

.side-list-item {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.side-list-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.result-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
}

.info-list {
  display: grid;
  gap: 14px;
}

.info-row {
  padding: 16px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.info-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.info-row strong {
  display: block;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.list-clean {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: var(--ink-soft);
}

.emergency-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(248, 250, 252, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.emergency-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(185, 28, 28, 0.08);
  color: var(--danger);
  font-weight: 800;
}

.filter-shell {
  display: grid;
  gap: 18px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-pill {
  min-width: 92px;
}

.doctor-grid {
  display: grid;
  gap: 16px;
}

.doctor-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: start;
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.doctor-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.doctor-card.hidden {
  display: none;
}

.doctor-avatar {
  width: 82px;
  height: 82px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.doctor-main {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.doctor-topline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.doctor-name {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.meta-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.08);
  color: var(--info);
  font-size: 0.84rem;
  font-weight: 700;
}

.doctor-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.94rem;
}

.doctor-summary {
  color: var(--ink-soft);
  line-height: 1.65;
}

.doctor-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  min-width: 150px;
}

.doctor-detail {
  margin-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding-top: 14px;
  display: none;
  color: var(--ink-soft);
}

.doctor-detail.open {
  display: block;
}

.booking-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
}

.summary-card {
  display: grid;
  gap: 16px;
}

.mini-profile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
}

.mini-profile img {
  width: 74px;
  height: 74px;
  border-radius: 22px;
  object-fit: cover;
}

.booking-panel {
  display: grid;
  gap: 18px;
}

.date-row,
.slot-grid,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.slot-grid {
  gap: 12px;
}

.slot-btn {
  min-width: 110px;
}

.booking-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.confirmation-card {
  display: grid;
  gap: 22px;
  padding: 32px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(238,242,255,0.96) 100%);
  border: 1px solid rgba(148,163,184,0.18);
  box-shadow: var(--shadow-lg);
}

.confirmation-mark {
  width: 78px;
  height: 78px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: rgba(15, 118, 110, 0.1);
  color: var(--success);
  font-size: 2rem;
  font-weight: 800;
}

.provider-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.feature-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.icon-box {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(29, 78, 216, 0.08);
  color: var(--info);
  font-weight: 800;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.pricing-card {
  padding: 28px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 20px;
}

.pricing-card.featured {
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(238,242,255,0.96) 100%);
  border-color: rgba(29, 78, 216, 0.22);
  box-shadow: var(--shadow-md);
}

.price-tag {
  display: flex;
  align-items: baseline;
  gap: 8px;
  letter-spacing: -0.05em;
}

.price-tag strong {
  font-size: 3rem;
  line-height: 1;
}

.price-tag span {
  color: var(--muted);
}

.plan-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: var(--ink-soft);
}

.onboarding-shell {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 18px;
}

.form-shell {
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 10px;
}

.field-label {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.field-note {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.chip-select {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.schedule-grid {
  display: grid;
  gap: 12px;
}

.day-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
}

.day-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.switch {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.28);
  transition: 160ms ease;
}

.switch::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: 160ms ease;
}

.switch.active {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-violet) 100%);
}

.switch.active::after {
  transform: translateX(20px);
}

.time-pill {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.06);
  color: var(--info);
  font-size: 0.9rem;
}

.billing-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
}

.summary-list {
  display: grid;
  gap: 14px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.summary-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.prototype-map {
  display: grid;
  gap: 22px;
}

.map-group {
  display: grid;
  gap: 14px;
}

.map-links {
  display: grid;
  gap: 12px;
}

.map-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: 160ms ease;
}

.map-link:hover {
  border-color: rgba(29,78,216,0.24);
  box-shadow: var(--shadow-md);
}

.badge {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--success);
  font-size: 0.82rem;
  font-weight: 700;
}

.hidden {
  display: none !important;
}

.toast-wrap {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 12px;
  z-index: 120;
}

.toast {
  min-width: 260px;
  max-width: 380px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  box-shadow: var(--shadow-lg);
  animation: toast-in 220ms ease;
}

@keyframes toast-in {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.muted {
  color: var(--muted);
}

.spacer-8 {
  height: 8px;
}

.spacer-12 {
  height: 12px;
}

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

.justify-between {
  justify-content: space-between;
}

.text-gradient {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}


.search-preview-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.search-preview-card,
.pricing-preview-card {
  display: grid;
  gap: 18px;
}

.search-preview-form {
  display: grid;
  gap: 14px;
}

.search-preview-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.search-preview-summary {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.search-mini-results {
  display: grid;
  gap: 12px;
}

.search-mini-match {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(246, 248, 252, 0.9);
}

.search-mini-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.search-mini-copy {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.search-mini-action {
  white-space: nowrap;
}

.mini-pricing-grid {
  display: grid;
  gap: 14px;
}

.mini-tier {
  padding: 20px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  gap: 10px;
}

.mini-tier.featured {
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(238,242,255,0.96) 100%);
  border-color: rgba(29, 78, 216, 0.22);
  box-shadow: var(--shadow-sm);
}

.mini-tier-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.mini-tier-label {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mini-tier-price {
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.mini-tier-price span {
  font-size: 0.95rem;
  color: var(--muted);
  letter-spacing: 0;
}

.mini-tier-copy {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

@media (max-width: 1080px) {
  .hero-grid,
  .about-grid,
  .search-preview-grid,
  .page-hero-grid,
  .result-grid,
  .booking-layout,
  .provider-hero-grid,
  .onboarding-shell,
  .billing-grid,
  .page-hero-grid {
    grid-template-columns: 1fr;
  }

  .chat-layout {
    grid-template-columns: 1fr;
  }

  .visual-title {
    max-width: none;
  }

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

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

  .doctor-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    min-width: 0;
  }
}

@media (max-width: 840px) {
  .site-header-inner {
    min-height: 76px;
    align-items: start;
    padding: 14px 0;
    flex-direction: column;
  }

  .header-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero,
  .section {
    padding: 44px 0;
  }

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

  .grid-3,
  .grid-2,
  .pricing-grid,
  .form-row,
  .path-grid {
    grid-template-columns: 1fr;
  }

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

  .day-row {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(calc(100% - 24px), var(--max));
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.1rem, 12vw, 3.2rem);
  }

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

  .visual-card {
    padding: 22px;
  }

  .video-shell {
    min-height: 300px;
  }

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

  .doctor-avatar {
    width: 72px;
    height: 72px;
  }

  .bubble {
    max-width: 94%;
  }

  .booking-cta-row {
    flex-direction: column;
  }

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

  .search-mini-match,
  .mini-tier-top {
    flex-direction: column;
  }

  .search-mini-action {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================= */
/* v2 polish layer — refined typography, spacing, interactions    */
/* ============================================================= */

body {
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* softer, more "premium" page backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 8% -6%, rgba(107, 93, 242, 0.18), transparent 62%),
    radial-gradient(780px 460px at 96% -10%, rgba(14, 165, 164, 0.12), transparent 60%),
    radial-gradient(520px 520px at 50% 120%, rgba(11, 62, 168, 0.10), transparent 60%);
}

/* Header polish */
.site-header {
  background: rgba(244, 247, 253, 0.78);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.site-header-inner {
  padding: 12px 0;
}

.nav-link {
  position: relative;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-link.is-active {
  color: var(--brand-blue);
  background: rgba(29, 78, 216, 0.09);
}

.nav-link.is-soon {
  color: var(--muted);
  pointer-events: none;
  opacity: 0.85;
}

.nav-link.is-soon::after {
  content: "In progress";
  margin-left: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--warning);
  background: var(--warning-soft);
  padding: 3px 8px;
  border-radius: 999px;
}

/* Buttons — refined motion */
.btn {
  will-change: transform;
  font-size: 0.98rem;
}

.btn-primary {
  background: var(--grad-primary);
  box-shadow: 0 16px 30px rgba(37, 58, 170, 0.25), inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 22px 42px rgba(37, 58, 170, 0.32), inset 0 1px 0 rgba(255,255,255,0.22);
  transform: translateY(-2px);
}

.btn-primary:active { transform: translateY(0); }

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost:hover {
  background: rgba(148, 163, 184, 0.10);
  color: var(--ink);
}

/* Focus rings — accessible + premium */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.choice-card:focus-visible,
.quick-chip:focus-visible,
.filter-pill:focus-visible {
  outline: 2px solid rgba(107, 93, 242, 0.55);
  outline-offset: 2px;
}

/* Hero — subtle entrance */
.hero-copy > *,
.page-hero > .container > div > * {
  animation: rise 520ms cubic-bezier(.2,.8,.2,1) both;
}

.hero-copy > *:nth-child(1) { animation-delay: 20ms; }
.hero-copy > *:nth-child(2) { animation-delay: 80ms; }
.hero-copy > *:nth-child(3) { animation-delay: 140ms; }
.hero-copy > *:nth-child(4) { animation-delay: 200ms; }
.hero-copy > *:nth-child(5) { animation-delay: 260ms; }

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

@media (prefers-reduced-motion: reduce) {
  .hero-copy > *,
  .page-hero > .container > div > * { animation: none !important; }
  .btn:hover { transform: none !important; }
}

/* Cards — slightly crisper */
.card {
  border-radius: var(--radius-lg);
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: var(--shadow-xs);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.card:hover { box-shadow: var(--shadow-sm); }

.card.highlight,
.founder-card {
  background: var(--grad-subtle);
}

/* Eyebrow */
.eyebrow {
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand-blue);
  font-weight: 700;
}

/* Inputs — softer, premium feel */
.input-wrap input,
.field input,
.field textarea,
.field select {
  background: #fff;
  border-color: rgba(148, 163, 184, 0.28);
}

.input-wrap input::placeholder,
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(100, 116, 139, 0.75);
}

/* Progress bar — smoother animation */
.progress-fill {
  transition: width 600ms cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 0 0 3px rgba(107, 93, 242, 0.08);
}

.step-pill {
  font-weight: 600;
  background: #ffffffd9;
}

.step-pill.active {
  background: linear-gradient(135deg, rgba(11, 62, 168, 0.10), rgba(107, 93, 242, 0.12));
  border-color: rgba(29, 78, 216, 0.28);
  color: var(--brand-blue);
  box-shadow: 0 4px 14px rgba(11, 62, 168, 0.08);
}

/* Choice cards — clearer hover + active state */
.choice-card {
  cursor: pointer;
  text-align: left;
  padding: 26px;
  background: #fff;
  border: 1.5px solid rgba(148, 163, 184, 0.20);
}

.choice-card:hover,
.choice-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(107, 93, 242, 0.40);
  box-shadow: 0 20px 46px rgba(37, 58, 170, 0.14);
}

.choice-card .choice-arrow {
  transition: transform 180ms ease;
}

.choice-card:hover .choice-arrow {
  transform: translateX(4px);
}

/* Chat bubbles */
.bubble.assistant {
  background: #fff;
  border-color: rgba(11, 62, 168, 0.14);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}

.bubble.user {
  box-shadow: 0 14px 28px rgba(37, 58, 170, 0.25);
}

.quick-chip {
  background: #fff;
  font-weight: 600;
  border: 1px solid rgba(148, 163, 184, 0.24);
}

/* Doctor cards */
.doctor-card {
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.20);
}

.doctor-card:hover {
  transform: translateY(-3px);
  border-color: rgba(107, 93, 242, 0.28);
  box-shadow: 0 24px 50px rgba(37, 58, 170, 0.12);
}

.doctor-avatar {
  border-radius: 20px;
  background: linear-gradient(135deg, #e0e7ff, #f5f3ff);
}

/* Meta + badges */
.meta-badge {
  background: linear-gradient(135deg, rgba(11, 62, 168, 0.10), rgba(107, 93, 242, 0.10));
  color: var(--brand-blue);
}

.badge {
  font-weight: 700;
}

.badge.is-progress {
  background: var(--warning-soft);
  color: var(--warning);
}

.badge.is-live {
  background: var(--success-soft);
  color: var(--success);
}

/* Booking — clearer selection states */
.date-btn,
.slot-btn {
  font-weight: 600;
  background: #fff;
}

.date-btn.active,
.slot-btn.active {
  background: var(--grad-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(37, 58, 170, 0.25);
}

.date-btn.active:hover,
.slot-btn.active:hover {
  color: #fff;
}

.filter-pill {
  font-weight: 600;
  background: #fff;
}

/* Confirmation */
.confirmation-mark {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(20, 184, 166, 0.18));
  box-shadow: 0 16px 40px rgba(15, 118, 110, 0.16);
}

/* Logo chips — softer */
.logo-chip {
  background: #fff;
  box-shadow: var(--shadow-xs);
}

/* Mini pill tweaks */
.mini-pill {
  background: #fff;
  box-shadow: var(--shadow-xs);
  font-weight: 600;
  color: var(--ink-soft);
}

/* Emergency banner */
.emergency-banner {
  background: linear-gradient(180deg, #fff 0%, rgba(254, 242, 242, 0.6) 100%);
  border-color: rgba(185, 28, 28, 0.18);
}

/* Visual card hero */
.hero-visual .visual-card {
  background:
    radial-gradient(600px 360px at 20% 0%, rgba(255,255,255,0.18), transparent 55%),
    linear-gradient(155deg, #0b3ea8 0%, #6b5df2 100%);
  box-shadow: 0 40px 100px rgba(37, 58, 170, 0.30);
}

.visual-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(14, 165, 164, 0.18);
  filter: blur(40px);
  z-index: 0;
}

/* Map links */
.map-link {
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.20);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.map-link:hover {
  transform: translateY(-2px);
  border-color: rgba(107, 93, 242, 0.32);
}

.map-link.is-locked {
  background: rgba(248, 250, 252, 0.8);
  cursor: not-allowed;
  opacity: 0.85;
}

.map-link.is-locked:hover {
  transform: none;
  border-color: rgba(148, 163, 184, 0.20);
  box-shadow: var(--shadow-sm);
}

/* Footer */
.footer {
  background:
    linear-gradient(180deg, transparent 0%, rgba(238, 242, 255, 0.6) 100%);
}

/* Toast */
.toast {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  background: rgba(11, 18, 34, 0.94);
  backdrop-filter: blur(8px);
}

/* Utility — small refinements */
h1, h2, h3 { text-wrap: balance; }
p, .section-copy, .lead { text-wrap: pretty; }

.hidden { display: none !important; }

/* Mobile polish */
@media (max-width: 840px) {
  .header-nav { gap: 6px; }
  .nav-link { padding: 8px 12px; font-size: 0.9rem; }
  .hero { padding: 36px 0 24px; }
  .page-hero { padding: 32px 0 18px; }
}

