/* ==========================================================================
   HEMERA — Landing page stylesheet
   Design system: Hemera Design Handoff (terracotta / violet / warm cream)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=IBM+Plex+Sans:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* Color */
  --terracotta:        #E57A3D;
  --terracotta-600:     #C9652A;
  --terracotta-50:      #FEF5EE;
  --terracotta-100:     #FBE3D2;
  --violet:             #6A5ACD;
  --violet-600:         #55459E;
  --violet-50:          #F2EFFE;
  --violet-100:         #E4DEFB;
  --cream:               #F2E8DD;
  --cream-200:           #E9DCCC;
  --white:               #FFFFFF;
  --ink-950:              #130F0A;
  --ink-900:              #1E1912;
  --ink-700:              #4A3F35;
  --ink-500:              #7A6E66;
  --border:               #DCD0C2;
  --sage:                 #3D8870;
  --sage-50:              #ECF6F2;

  /* Type */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  /* Radius / shadow */
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(30, 25, 18, 0.08), 0 1px 2px rgba(30, 25, 18, 0.06);
  --shadow-md: 0 8px 24px rgba(30, 25, 18, 0.10);

  /* Motion */
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 96px 0; }
@media (max-width: 720px) {
  section { padding: 64px 0; }
  .container { padding: 0 20px; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Type scale ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta-600);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terracotta);
  flex: none;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; color: var(--ink-950); }
h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  line-height: 1.2;
  max-width: 26ch;
}
h3 {
  font-size: 1.3rem;
  line-height: 1.3;
}
.lede {
  font-size: 1.15rem;
  color: var(--ink-700);
  max-width: 40ch;
}
p.body-text { color: var(--ink-700); font-size: 1rem; max-width: 46ch; }
.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center h2 { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease), transform 150ms var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--terracotta); color: var(--white); }
.btn-primary:hover { background: var(--terracotta-600); }
.btn-outline { background: transparent; border-color: var(--ink-900); color: var(--ink-900); }
.btn-outline:hover { background: var(--ink-900); color: var(--cream); }
.btn-ghost-light { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.25); color: var(--cream); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.16); }
.btn:active { transform: translateY(1px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 232, 221, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand .wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-700);
  transition: color 150ms var(--ease);
}
.main-nav a:hover { color: var(--terracotta-600); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: flex; gap: 2px; background: var(--cream-200); border-radius: var(--radius-full); padding: 3px; }
.lang-switch button {
  border: none;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  color: var(--ink-500);
  transition: background 150ms var(--ease), color 150ms var(--ease);
}
.lang-switch button.active { background: var(--white); color: var(--ink-950); box-shadow: var(--shadow-sm); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .main-nav { display: none; }
  .header-actions .btn-primary.header-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 96px; overflow: hidden; }
.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero-pilot-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--violet-600);
  background: var(--violet-50);
  border: 1px solid var(--violet-100);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  font-weight: 500;
}
.hero-pilot-note .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--violet); flex: none; animation: hem-pulse 2.4s ease-in-out infinite; }
.hero h1 { margin-bottom: 22px; }
.hero .lede { margin-bottom: 34px; }
.hero-ctas { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero-ctas .link-more { font-size: 0.9rem; font-weight: 500; color: var(--ink-700); border-bottom: 1px solid var(--border); padding-bottom: 2px; }
.hero-ctas .link-more:hover { color: var(--terracotta-600); border-color: var(--terracotta-600); }

/* Orbit visual (signature element) */
.orbit-wrap { position: relative; width: 100%; max-width: 340px; margin: 0 auto; aspect-ratio: 1; }
.orbit-card {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.orbit-ring { position: absolute; inset: 34px; border: 1px dashed var(--border); border-radius: 50%; }
.orbit-sun {
  position: absolute; top: 50%; left: 50%;
  width: 56px; height: 56px; margin: -28px 0 0 -28px;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 10px var(--terracotta-50);
}
.orbit-day {
  position: absolute;
  width: 14px; height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--cream-200);
  border: 1px solid var(--border);
}
.orbit-day.done { background: var(--terracotta); border-color: var(--terracotta); }
.orbit-day.today { background: var(--violet); border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-50); }
.orbit-caption {
  text-align: center;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-500);
  letter-spacing: 0.04em;
}
.orbit-caption strong { color: var(--ink-900); }
@media (prefers-reduced-motion: no-preference) {
  .orbit-day.today { animation: hem-pulse 2.2s ease-in-out infinite; }
}
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; text-align: left; }
  .orbit-wrap { max-width: 240px; }
}

/* ---------- Stat band (problem) ---------- */
.problem { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}
.stat-card {
  padding: 28px 24px;
  background: var(--cream);
  border-radius: var(--radius-xl);
}
.stat-number { font-family: var(--font-mono); font-size: 2.4rem; font-weight: 500; color: var(--terracotta-600); line-height: 1; margin-bottom: 10px; }
.stat-label { font-size: 0.92rem; color: var(--ink-700); max-width: 22ch; }
.problem-quote {
  border-left: 3px solid var(--terracotta);
  padding-left: 24px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--ink-900);
  max-width: 52ch;
}
@media (max-width: 720px) {
  .stat-grid { grid-template-columns: 1fr; }
}

/* ---------- Gap cards ---------- */
.gap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gap-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
}
.gap-index { font-family: var(--font-mono); font-size: 0.8rem; color: var(--terracotta-600); font-weight: 500; margin-bottom: 14px; letter-spacing: 0.06em; }
.gap-card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.gap-card p { color: var(--ink-700); font-size: 0.92rem; }
@media (max-width: 860px) { .gap-grid { grid-template-columns: 1fr; } }

/* ---------- Solution (patient / clinician columns) ---------- */
.solution { background: var(--ink-950); color: var(--cream); border-radius: 0; }
.solution .section-head h2 { color: var(--white); }
.solution .section-head p { color: rgba(242,232,221,0.68); }
.solution .eyebrow { color: var(--terracotta); }
.solution-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.solution-col {
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  border: 1px solid rgba(242,232,221,0.12);
}
.solution-col.patient { background: linear-gradient(160deg, rgba(229,122,61,0.14), rgba(229,122,61,0.03)); }
.solution-col.clinician { background: linear-gradient(160deg, rgba(106,90,205,0.16), rgba(106,90,205,0.03)); }
.solution-col .icon-wrap { width: 44px; height: 44px; border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.solution-col.patient .icon-wrap { background: rgba(229,122,61,0.18); color: var(--terracotta); }
.solution-col.clinician .icon-wrap { background: rgba(106,90,205,0.2); color: #B9ACF2; }
.solution-col h3 { color: var(--white); margin-bottom: 6px; }
.solution-col .col-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6; margin-bottom: 4px; display: block; }
.solution-col p.desc { color: rgba(242,232,221,0.72); font-size: 0.94rem; margin-bottom: 18px; max-width: none; }
.solution-col .tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.solution-col .tag-list li {
  font-size: 0.76rem;
  font-family: var(--font-mono);
  padding: 5px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(242,232,221,0.2);
  color: rgba(242,232,221,0.85);
}
.solution-closing {
  text-align: center;
  margin-top: 40px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
}
@media (max-width: 860px) { .solution-grid { grid-template-columns: 1fr; } }

/* ---------- How it works ---------- */
.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.how-step { padding: 0 20px 0 0; position: relative; }
.how-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 22px;
  right: -4px;
  width: 24px;
  height: 1px;
  background: var(--border);
}
.how-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--white);
  background: var(--terracotta);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.how-step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.how-step p { font-size: 0.88rem; color: var(--ink-700); }
@media (max-width: 860px) {
  .how-steps { grid-template-columns: 1fr; gap: 28px; }
  .how-step:not(:last-child)::after { display: none; }
}

/* ---------- Benefits ---------- */
.benefits-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.benefit-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 28px;
  border: 1px solid var(--border);
  display: flex;
  gap: 18px;
}
.benefit-icon {
  flex: none;
  width: 44px; height: 44px;
  border-radius: var(--radius-lg);
  background: var(--terracotta-50);
  color: var(--terracotta-600);
  display: flex; align-items: center; justify-content: center;
}
.benefit-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.benefit-card p { font-size: 0.9rem; color: var(--ink-700); }
@media (max-width: 860px) { .benefits-grid { grid-template-columns: 1fr; } }

/* ---------- Trust / not-a section ---------- */
.trust { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.not-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 44px; }
.not-item {
  text-align: center;
  padding: 24px 16px;
  border-radius: var(--radius-xl);
  background: var(--cream);
}
.not-item .not-word { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--terracotta-600); display: block; margin-bottom: 8px; }
.not-item p { font-size: 0.92rem; color: var(--ink-900); font-weight: 500; }
.bridge-line {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ink-950);
  max-width: 40ch;
  margin: 0 auto 48px;
}
.reg-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.reg-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  padding: 9px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--cream);
  color: var(--ink-700);
}
.reg-pill svg { width: 15px; height: 15px; color: var(--sage); flex: none; }
@media (max-width: 720px) { .not-list { grid-template-columns: 1fr; } }

/* ---------- Pilot CTA ---------- */
.pilot {
  background: linear-gradient(135deg, var(--terracotta) 0%, #D9683B 60%, var(--violet) 130%);
  color: var(--white);
  border-radius: var(--radius-2xl, 24px);
  margin: 0 24px;
  max-width: 1120px;
  margin-inline: auto;
  padding: 72px 48px;
  text-align: center;
}
.pilot .eyebrow { color: rgba(255,255,255,0.85); }
.pilot .eyebrow::before { background: var(--white); }
.pilot h2 { color: var(--white); margin: 0 auto 16px; }
.pilot p.lede { color: rgba(255,255,255,0.88); margin: 0 auto 32px; }
.pilot .btn-primary { background: var(--ink-950); }
.pilot .btn-primary:hover { background: #000; }
@media (max-width: 720px) { .pilot { padding: 48px 28px; margin: 0 16px; } }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact h2 { margin: 0 auto 16px; }
.contact p.lede { margin: 0 auto 32px; }
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--ink-900);
  border-bottom: 1px solid var(--ink-900);
  padding-bottom: 4px;
}
.contact-email:hover { color: var(--terracotta-600); border-color: var(--terracotta-600); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-950); color: rgba(242,232,221,0.65); padding: 56px 0 32px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; margin-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .wordmark { color: var(--white); font-family: var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; font-size: 1.05rem; }
.footer-tagline { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(242,232,221,0.45); max-width: 28ch; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { font-size: 0.85rem; color: rgba(242,232,221,0.65); }
.footer-nav a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  border-top: 1px solid rgba(242,232,221,0.12);
  padding-top: 24px;
  font-size: 0.78rem;
  color: rgba(242,232,221,0.45);
}
.footer-bottom .lang-switch { background: rgba(242,232,221,0.08); }
.footer-bottom .lang-switch button { color: rgba(242,232,221,0.55); }
.footer-bottom .lang-switch button.active { background: rgba(242,232,221,0.14); color: var(--white); box-shadow: none; }

/* ---------- Keyframes ---------- */
@keyframes hem-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
