:root {
  --graphite: #121615;
  --graphite-2: #1c2220;
  --ink: #171c1a;
  --muted: #66706d;
  --porcelain: #f6f1e8;
  --ivory: #fffdf8;
  --sage: #dce8df;
  --emerald: #0d5e54;
  --emerald-2: #0a403a;
  --brass: #c8a66f;
  --blue-gray: #d8e3e7;
  --line: rgba(25, 32, 30, 0.14);
  --line-dark: rgba(255, 253, 248, 0.16);
  --shadow: 0 28px 80px rgba(18, 22, 21, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(18, 22, 21, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(18, 22, 21, 0.028) 1px, transparent 1px),
    var(--porcelain);
  background-size: 36px 36px;
  font-family: Optima, "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 253, 248, 0.92), rgba(255, 253, 248, 0.36) 48%, rgba(216, 227, 231, 0.34)),
    repeating-linear-gradient(120deg, rgba(200, 166, 111, 0.045) 0 1px, transparent 1px 12px);
}

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

button,
input {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(18, 22, 21, 0.1);
  background: rgba(246, 241, 232, 0.88);
  backdrop-filter: blur(22px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
}

.brand span:last-child {
  display: grid;
  gap: 1px;
}

.brand strong {
  font-size: 15px;
  letter-spacing: 0;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(200, 166, 111, 0.52);
  border-radius: 8px;
  color: var(--brass);
  background: var(--graphite);
  font-weight: 900;
}

.nav {
  gap: 6px;
}

.nav a {
  padding: 9px 11px;
  border-radius: 8px;
  color: #505a57;
  font-size: 14px;
}

.nav a:hover {
  color: var(--ink);
  background: rgba(255, 253, 248, 0.75);
}

.section-wrap {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--ivory);
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(255, 253, 248, 0.045) 1px, transparent 1px),
    linear-gradient(135deg, #101412 0%, #19211f 52%, #24312e 100%);
  background-size: 42px 42px, 42px 42px, auto;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -130px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(200, 166, 111, 0.28);
  border-radius: 50%;
  box-shadow: inset 0 0 0 72px rgba(255, 253, 248, 0.018);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1140px, calc(100% - 40px));
  min-height: min(640px, calc(100vh - 104px));
  margin: 0 auto;
  padding: 52px 0 42px;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(330px, 0.74fr);
  align-items: center;
  gap: clamp(34px, 6vw, 84px);
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--brass);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 700px;
  margin-bottom: 20px;
  font-size: clamp(36px, 4.8vw, 58px);
}

h2 {
  max-width: 780px;
  margin-bottom: 16px;
  font-size: clamp(28px, 3.6vw, 44px);
}

h3 {
  margin-bottom: 9px;
  font-size: 18px;
}

.hero-text {
  max-width: 620px;
  color: rgba(255, 253, 248, 0.76);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 22px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 850;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

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

.primary {
  color: #101412;
  background: linear-gradient(135deg, #e6d0a4, var(--brass));
  box-shadow: 0 18px 36px rgba(200, 166, 111, 0.22);
}

.ghost {
  color: var(--ivory);
  border-color: var(--line-dark);
  background: rgba(255, 253, 248, 0.06);
}

.secondary {
  color: var(--graphite);
  border-color: rgba(18, 22, 21, 0.16);
  background: rgba(255, 253, 248, 0.68);
}

.secondary:hover {
  border-color: rgba(200, 166, 111, 0.72);
  background: var(--ivory);
  box-shadow: 0 16px 36px rgba(18, 22, 21, 0.1);
}

.hero-note {
  display: flex;
  max-width: 620px;
  gap: 10px;
  align-items: flex-start;
  color: rgba(255, 253, 248, 0.65);
  font-size: 14px;
}

.hero-note span {
  width: 34px;
  height: 1px;
  margin-top: 11px;
  flex: 0 0 auto;
  background: var(--brass);
}

.concierge-panel {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(255, 253, 248, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.12), rgba(255, 253, 248, 0.05)),
    rgba(15, 21, 19, 0.72);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.3);
}

.concierge-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200, 166, 111, 0.16), transparent 42%);
  pointer-events: none;
}

.panel-top,
.robot-showcase,
.signal-line,
.patient-card,
.conversation,
.handoff {
  position: relative;
}

.panel-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  color: rgba(255, 253, 248, 0.66);
  font-size: 12px;
  text-transform: uppercase;
}

.panel-top strong {
  color: var(--brass);
}

.robot-showcase {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
  padding: 12px;
  border: 1px solid rgba(255, 253, 248, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.13), rgba(255, 253, 248, 0.04)),
    rgba(255, 253, 248, 0.035);
}

.robot-art {
  display: block;
  width: 100%;
  max-width: 180px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.26);
}

.robot-caption span {
  display: block;
  margin-bottom: 8px;
  color: var(--brass);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.robot-caption p {
  margin: 0;
  color: rgba(255, 253, 248, 0.76);
  font-size: 16px;
  line-height: 1.35;
}

.signal-line {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-dark);
}

.signal-line span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 7px rgba(200, 166, 111, 0.12);
}

.signal-line p {
  margin: 0;
  color: var(--ivory);
  font-weight: 800;
}

.patient-card {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 1px;
  margin: 16px 0;
  border: 1px solid var(--line-dark);
  background: var(--line-dark);
}

.patient-card div {
  min-height: 88px;
  padding: 15px;
  background: rgba(255, 253, 248, 0.075);
}

.patient-card small,
.handoff span {
  display: block;
  margin-bottom: 7px;
  color: rgba(255, 253, 248, 0.54);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.patient-card strong {
  display: block;
  color: var(--ivory);
  line-height: 1.28;
}

.conversation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.conversation p {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(255, 253, 248, 0.1);
  border-radius: 8px;
  color: rgba(255, 253, 248, 0.76);
  background: rgba(255, 253, 248, 0.055);
}

.conversation b {
  color: var(--brass);
}

.handoff {
  padding: 14px;
  border-radius: 8px;
  color: rgba(255, 253, 248, 0.75);
  background: linear-gradient(135deg, rgba(200, 166, 111, 0.18), rgba(13, 94, 84, 0.18));
}

.handoff p {
  margin: 0;
}

.diagnostic-band {
  padding: 66px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.58);
}

.cta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 30px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
}

.diagnostic-band .cta-line {
  margin-top: 36px;
}

.cta-line p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.cta-line .button {
  min-width: 220px;
  min-height: 46px;
}

.cta-line.on-dark {
  margin-top: 34px;
  border-color: var(--line-dark);
}

.cta-line.on-dark p {
  color: rgba(255, 253, 248, 0.68);
}

.trust .cta-line.full {
  grid-column: 1 / -1;
}

.diagnostic-grid,
.process-grid,
.lead-grid,
.trust {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
}

.line-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.line-list article {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.line-list span,
.flow-table span,
.scenario-rail small,
.process-list span {
  color: var(--brass);
  font-size: 12px;
  font-weight: 900;
}

.line-list p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.flow-section,
.scenarios,
.trust {
  padding: 86px 0;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading.narrow {
  max-width: 720px;
}

.flow-table {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.66);
  box-shadow: var(--shadow);
}

.flow-table article {
  min-height: 210px;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.82), rgba(246, 241, 232, 0.68));
}

.flow-table article:last-child {
  border-right: 0;
}

.flow-table h3,
.scenario-rail h3 {
  margin-top: 22px;
}

.flow-table p,
.scenario-rail p,
.process-grid p,
.trust-statement p,
.form-copy p,
.faq p {
  color: var(--muted);
}

.scenario-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.scenario-rail article {
  min-height: 220px;
  padding: 22px;
  background: rgba(255, 253, 248, 0.76);
}

.process-section {
  padding: 86px 0;
  color: var(--ivory);
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.045) 1px, transparent 1px),
    linear-gradient(#151a18, #0f1312);
  background-size: 44px 44px, auto;
}

.process-section .eyebrow,
.process-list span {
  color: var(--brass);
}

.process-grid p {
  color: rgba(255, 253, 248, 0.66);
}

.process-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-dark);
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-dark);
}

.trust-statement {
  padding-top: 4px;
}

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

.faq details {
  padding: 19px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
}

.faq summary {
  cursor: pointer;
  font-weight: 850;
}

.faq p {
  margin: 12px 0 0;
}

.lead-section {
  padding: 88px 0;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(220, 232, 223, 0.9), rgba(255, 253, 248, 0.64)),
    var(--sage);
}

.lead-grid {
  align-items: center;
}

.lead-form {
  display: grid;
  gap: 15px;
  padding: 26px;
  border: 1px solid rgba(18, 22, 21, 0.18);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: var(--shadow);
}

.lead-form label {
  display: grid;
  gap: 7px;
  font-weight: 850;
}

.lead-form input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--ivory);
}

.lead-form input:focus {
  outline: 3px solid rgba(200, 166, 111, 0.28);
  border-color: var(--brass);
}

.channel-field {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.channel-field legend {
  grid-column: 1 / -1;
  margin-bottom: 7px;
  font-weight: 850;
}

.channel-field label {
  position: relative;
  display: block;
  cursor: pointer;
}

.channel-field input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.channel-field span {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 42px;
  place-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ivory);
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}

.channel-field input:checked + span {
  border-color: var(--emerald);
  color: var(--ivory);
  background: var(--emerald);
}

.channel-field input:focus + span {
  outline: 3px solid rgba(200, 166, 111, 0.28);
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-weight: 850;
}

.form-message.error {
  color: #9c3a30;
}

.form-message.success {
  color: var(--emerald);
}

.submit-button {
  width: 100%;
}

.submit-button[disabled] {
  cursor: wait;
  opacity: 0.72;
}

.test-output {
  overflow: auto;
  padding: 15px;
  border-radius: 8px;
  background: #111615;
  color: #f2eadb;
}

.test-output span {
  display: block;
  margin-bottom: 8px;
  color: var(--brass);
  font-weight: 900;
}

.test-output pre {
  margin: 0;
  white-space: pre-wrap;
  font-size: 13px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(18px, 4vw, 56px);
  color: rgba(255, 253, 248, 0.66);
  background: var(--graphite);
}

.footer p {
  margin: 0;
}

.reveal {
  animation: rise 720ms ease both;
}

.concierge-panel.reveal {
  animation-delay: 120ms;
}

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

@media (max-width: 960px) {
  .hero-inner,
  .diagnostic-grid,
  .process-grid,
  .lead-grid,
  .trust {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
    padding: 58px 0 50px;
  }

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

  .flow-table article:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 640px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    flex-wrap: wrap;
  }

  .section-wrap,
  .hero-inner {
    width: min(100% - 28px, 1140px);
  }

  .hero-inner {
    gap: 24px;
    padding: 42px 0 30px;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 28px;
  }

  .hero-text {
    font-size: 17px;
  }

  .concierge-panel {
    padding: 16px;
  }

  .panel-top {
    margin-bottom: 16px;
  }

  .signal-line {
    padding-bottom: 14px;
  }

  .patient-card {
    margin: 14px 0 0;
  }

  .patient-card div {
    min-height: auto;
    padding: 14px;
  }

  .conversation,
  .handoff {
    display: none;
  }

  .robot-showcase {
    grid-template-columns: 126px 1fr;
    gap: 14px;
    margin-bottom: 16px;
    padding: 10px;
  }

  .robot-art {
    max-width: 126px;
  }

  .robot-caption p {
    font-size: 15px;
  }

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

  .button {
    width: 100%;
  }

  .patient-card,
  .flow-table,
  .scenario-rail,
  .channel-field {
    grid-template-columns: 1fr;
  }

  .flow-table article,
  .flow-table article:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .line-list article,
  .process-list li {
    grid-template-columns: 42px 1fr;
  }

  .diagnostic-band,
  .flow-section,
  .scenarios,
  .trust,
  .process-section,
  .lead-section {
    padding: 58px 0;
  }

  .cta-line {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .cta-line .button {
    width: 100%;
    min-width: 0;
  }

  .footer {
    flex-direction: column;
  }
}
