/* ============================================================
   Halmoni — landing page (visual-first rebuild)
   Palette pulled from the real app: cream, sage, terracotta, butter.
   ============================================================ */

:root {
  --cream-50: #fefcf8;
  --cream-75: #fbf7ee;
  --cream-100: #faf5e9;
  --cream-200: #f3ebde;
  --cream-300: #e6d9c4;
  --sage-50: #f3f6f4;
  --sage-100: #dce6e0;
  --sage-300: #94b1a3;
  --sage-500: #7a9b8a;
  --sage-700: #56766a;
  --sage-900: #3a4f44;
  --terra-50: #fbeee6;
  --terra-100: #f5dfd4;
  --terra-300: #e0a081;
  --terra-500: #d28a66;
  --terra-700: #7e4736;
  --butter-100: #fdf6dd;
  --butter-500: #f0d670;
  --ink-300: #a8a8a8;
  --ink-500: #6f6f6f;
  --ink-700: #4a4a4a;
  --ink-900: #1e1c1a;
  --white: #ffffff;

  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1180px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(30, 28, 26, 0.05), 0 2px 8px rgba(30, 28, 26, 0.04);
  --shadow: 0 8px 24px rgba(30, 28, 26, 0.08), 0 2px 6px rgba(30, 28, 26, 0.04);
  --shadow-lg: 0 30px 70px rgba(30, 28, 26, 0.16), 0 8px 20px rgba(30, 28, 26, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream-50);
  color: var(--ink-900);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.dtop { display: none; }
@media (min-width: 900px) { .dtop { display: inline; } }

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(254, 252, 248, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--cream-200);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  flex-shrink: 0;
}
.logo-mark svg { width: 32px; height: 32px; }
/* The header mark carries the brand on its own now that the tile is gone. */
.nav .logo-mark svg { width: 44px; height: 44px; }
.nav-links {
  display: none;
  gap: 28px;
  font-size: 14px;
  color: var(--ink-700);
  font-weight: 500;
}
.nav-links a { transition: color 0.15s ease; }
.nav-links a:hover { color: var(--sage-700); }
@media (min-width: 820px) { .nav-links { display: inline-flex; } }
.nav-cta {
  display: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: var(--sage-700);
  padding: 9px 16px;
  border-radius: 999px;
  transition: all 0.15s ease;
}
.nav-cta:hover { background: var(--sage-900); }
@media (min-width: 640px) { .nav-cta { display: inline-flex; align-items: center; gap: 4px; } }

/* ============ EYEBROWS ============ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-700);
  margin-bottom: 20px;
}
.eyebrow-hero {
  background: var(--sage-100);
  color: var(--sage-700);
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage-500);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
.eyebrow-terra { color: var(--terra-700); }
.eyebrow-sage { color: var(--sage-700); }
.eyebrow-sand { color: var(--cream-300); }

/* ============ SECTION H2 ============ */
.section-h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin: 0 0 48px;
  max-width: 780px;
}
.section-h2 em {
  font-style: italic;
  color: var(--terra-500);
  font-weight: 400;
}
.section-h2-white { color: var(--cream-100); }
.section-h2-white em { color: var(--butter-500); }
.section-sub {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-700);
  max-width: 640px;
  margin: -32px 0 40px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink-900);
  color: var(--cream-50);
}
.btn-primary:hover {
  background: var(--sage-900);
  transform: translateY(-1px);
}
.btn-arrow { transition: transform 0.2s ease; }
.btn-primary:hover .btn-arrow { transform: translateX(3px); }
.btn-ghost {
  color: var(--ink-900);
  border-color: var(--cream-300);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--ink-900); }

/* ============ HERO ============ */
.hero {
  padding: 72px 0 88px;
  background: linear-gradient(180deg, var(--cream-50) 0%, var(--cream-75) 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.15fr 1fr; gap: 60px; }
}
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 6.4vw, 76px);
  line-height: 1;
  letter-spacing: -0.028em;
  color: var(--ink-900);
  margin: 0 0 22px;
}
.hero-title em {
  font-style: italic;
  color: var(--terra-500);
  font-weight: 400;
}
.strike {
  position: relative;
  color: var(--ink-500);
  font-style: italic;
}
.strike::after {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  top: 55%;
  height: 2px;
  background: var(--terra-500);
  transform: rotate(-2deg);
  border-radius: 2px;
}
.hero-sub {
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.5;
  color: var(--ink-700);
  max-width: 520px;
  margin: 0 0 32px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-700);
}
.hero-meta-item { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta-sep { color: var(--ink-300); }

/* ============ PHONE MOCK ============ */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}
.phone {
  position: relative;
  width: 300px;
  height: 640px;
  background: #1a1a1a;
  border-radius: 42px;
  padding: 10px;
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
}
.phone-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 24px;
  background: #1a1a1a;
  border-radius: 999px;
  z-index: 2;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--cream-50);
  border-radius: 34px;
  overflow: hidden;
  position: relative;
}

/* ---- App UI: mimics real Today dashboard ---- */
.app {
  padding: 44px 12px 12px;
  height: 100%;
  overflow: hidden;
  font-family: var(--sans);
  color: var(--ink-900);
}

.app-hero {
  background: linear-gradient(135deg, var(--cream-100), var(--sage-50));
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 8px;
  border: 1px solid var(--cream-200);
}
.app-hero-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.app-hero-eyebrow {
  font-size: 10.5px;
  color: var(--ink-500);
  font-weight: 500;
  margin-bottom: 2px;
}
.app-hero-title {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.1;
  color: var(--ink-900);
  font-weight: 400;
}
.app-hero-title em { color: var(--terra-500); font-style: italic; }
.app-hero-sub {
  font-size: 10.5px;
  color: var(--ink-500);
  margin-top: 4px;
}
.app-hero-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--terra-500);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app-onduty {
  background: linear-gradient(135deg, var(--sage-50), var(--white));
  border: 1px solid var(--sage-100);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.app-onduty-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.app-onduty-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.app-avatar-priya { background: var(--butter-500); color: var(--ink-900); }
.app-onduty-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-900);
}
.app-onduty-until {
  font-size: 10.5px;
  color: var(--sage-700);
  margin-top: 1px;
}

.app-section-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--ink-500);
  text-transform: uppercase;
  margin: 8px 0 6px;
}
.app-section-label-inline { margin: 0; }

.app-card {
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 6px;
  border: 1px solid var(--cream-200);
}
.app-card-sage {
  background: var(--sage-50);
  border-color: var(--sage-100);
}
.app-card-warm {
  background: var(--terra-50);
  border-color: var(--terra-100);
}
.app-card-white { background: var(--white); }
.app-card-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.app-card-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.app-card-body { flex: 1; min-width: 0; }
.app-card-title {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1.25;
}
.app-card-title em {
  color: var(--terra-700);
  font-style: italic;
}
.app-card-text {
  font-size: 10.5px;
  color: var(--ink-700);
  margin-top: 3px;
  line-height: 1.4;
}
.app-card-quote {
  font-size: 10.5px;
  color: var(--sage-700);
  font-style: italic;
  margin-top: 4px;
}
.app-card-head { margin-bottom: 6px; }

.app-med {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-top: 1px solid var(--cream-200);
}
.app-med:first-of-type { border-top: none; }
.app-med-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--cream-300);
  background: var(--white);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: transparent;
}
.app-med-check-done {
  background: var(--sage-500);
  border-color: var(--sage-500);
  color: var(--white);
}
.app-med-name {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-900);
}
.app-med-meta {
  font-size: 10px;
  color: var(--ink-500);
  margin-top: 1px;
}

/* ---- Hero floating toast ---- */
.hero-toast {
  position: absolute;
  bottom: 40px;
  right: 10px;
  background: var(--ink-900);
  color: var(--cream-50);
  padding: 12px 16px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  animation: floaty 4s ease-in-out infinite;
  z-index: 3;
}
.hero-toast-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage-300);
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}
.hero-toast-title {
  font-size: 12.5px;
  font-weight: 600;
}
.hero-toast-sub {
  font-size: 11px;
  color: rgba(254, 252, 248, 0.6);
  margin-top: 1px;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@media (min-width: 960px) {
  .hero-toast { right: -20px; }
}

/* ============ RIBBON ============ */
.ribbon {
  padding: 44px 0;
  border-top: 1px solid var(--cream-200);
  border-bottom: 1px solid var(--cream-200);
  background: var(--cream-50);
}
.ribbon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 20px;
}
@media (min-width: 780px) {
  .ribbon-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}
.ribbon-num {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 4.6vw, 52px);
  line-height: 1;
  color: var(--sage-700);
  letter-spacing: -0.025em;
  margin-bottom: 6px;
}
.ribbon-label {
  font-size: 13px;
  color: var(--ink-700);
  line-height: 1.4;
}

/* ============ PROBLEM (comparison) ============ */
.problem { padding: 100px 0; background: var(--cream-50); }
.compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 820px) { .compare { grid-template-columns: 1fr 1fr; gap: 32px; } }
.compare-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--cream-200);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.compare-bad {
  background: var(--terra-50);
  border-color: var(--terra-100);
}
.compare-good {
  background: var(--sage-50);
  border-color: var(--sage-100);
}
.compare-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.compare-bad .compare-header { color: var(--terra-700); }
.compare-good .compare-header { color: var(--sage-700); }
.compare-outcome {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.4;
  color: var(--ink-900);
}
.compare-outcome em { color: var(--terra-700); font-style: italic; }
.compare-outcome-good em { color: var(--sage-700); }

.chaos-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chaos-item {
  background: var(--white);
  border-radius: 10px;
  padding: 12px 14px;
  border: 1px solid var(--terra-100);
}
.chaos-item-label {
  font-size: 10px;
  color: var(--terra-700);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.chaos-item-body {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink-900);
  font-style: italic;
}
.chaos-item-cols {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: var(--ink-700);
  font-family: monospace;
}
.chaos-item-emoji {
  font-size: 20px;
  letter-spacing: 4px;
}
.chaos-item.chaos-sheet {
  transform: rotate(-1deg);
  box-shadow: 2px 2px 0 var(--terra-100);
}
.chaos-item.chaos-box {
  transform: rotate(0.6deg);
  box-shadow: -2px 2px 0 var(--terra-100);
}

.halmoni-mock {
  background: var(--white);
  border-radius: 14px;
  padding: 16px;
  border: 1px solid var(--sage-100);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.halmoni-mock-hero {
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--cream-200);
}
.halmoni-mock-title {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink-900);
  line-height: 1.1;
}
.halmoni-mock-title em { color: var(--terra-500); font-style: italic; }
.halmoni-mock-sub {
  font-size: 12px;
  color: var(--sage-700);
  margin-top: 4px;
}
.halmoni-mock-alert {
  background: var(--sage-50);
  border: 1px solid var(--sage-100);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.halmoni-mock-alert-warm {
  background: var(--terra-50);
  border-color: var(--terra-100);
}
.halmoni-mock-alert-icon { font-size: 16px; flex-shrink: 0; }
.halmoni-mock-alert-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-900);
}
.halmoni-mock-alert-text {
  font-size: 11.5px;
  color: var(--ink-700);
  margin-top: 2px;
}

/* ============ HOW IT WORKS (dark sage) ============ */
.how {
  padding: 110px 0;
  background: var(--sage-700);
  color: var(--cream-100);
}
.how .eyebrow-sand { color: var(--cream-300); }
.how-diagram {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
}
@media (min-width: 820px) {
  .how-diagram { flex-direction: row; align-items: center; gap: 12px; }
}
.how-step {
  background: rgba(254, 252, 248, 0.06);
  border: 1px solid rgba(254, 252, 248, 0.14);
  border-radius: var(--radius-lg);
  padding: 32px;
  flex: 1;
}
.how-icon { margin-bottom: 16px; }
.how-num {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--cream-300);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.how-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  color: var(--cream-100);
}
.how-body {
  font-size: 14.5px;
  color: rgba(254, 252, 248, 0.78);
  line-height: 1.5;
}
.how-connector {
  display: flex;
  justify-content: center;
  align-items: center;
  transform: rotate(90deg);
  flex-shrink: 0;
  opacity: 0.4;
}
@media (min-width: 820px) { .how-connector { transform: none; } }

/* ============ FEATURES (UI cards) ============ */
.features { padding: 110px 0; background: var(--cream-75); }
.ui-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) { .ui-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1000px) { .ui-grid { grid-template-columns: repeat(3, 1fr); } }
.ui-card {
  background: var(--white);
  border: 1px solid var(--cream-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ui-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.ui-card-lg { grid-column: 1 / -1; background: linear-gradient(135deg, var(--sage-50), var(--white)); border-color: var(--sage-100); }
@media (min-width: 1000px) { .ui-card-lg { grid-column: span 2; } }
.ui-card-warm { background: var(--terra-50); border-color: var(--terra-100); }
.ui-card-full {
  grid-column: 1 / -1;
  background: var(--ink-900);
  color: var(--cream-100);
  border-color: transparent;
  padding: 40px;
}

.ui-mock {
  background: var(--cream-75);
  border-radius: var(--radius);
  padding: 20px;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ui-card-warm .ui-mock { background: rgba(255, 255, 255, 0.55); }
.ui-card-lg .ui-mock { background: rgba(255, 255, 255, 0.65); }

.ui-caption h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  line-height: 1.15;
}
.ui-caption p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-700);
  margin: 0;
}
.ui-caption p em { color: var(--terra-700); font-style: italic; }

.mini-onduty {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--sage-100);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.mini-onduty-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--butter-500);
  color: var(--ink-900);
  font-weight: 700;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mini-onduty-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-900);
}
.mini-onduty-until {
  font-size: 12.5px;
  color: var(--sage-700);
  margin-top: 2px;
}

.mini-detective {
  background: var(--white);
  border-radius: 10px;
  padding: 12px 14px;
  border: 1px solid var(--terra-100);
  width: 100%;
}
.mini-detective-tag {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--terra-700);
  margin-bottom: 6px;
}
.mini-detective-title {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink-900);
  line-height: 1.2;
  margin-bottom: 4px;
}
.mini-detective-title em { color: var(--terra-500); font-style: italic; }
.mini-detective-body {
  font-size: 11.5px;
  color: var(--ink-500);
}

.mini-meds { width: 100%; }
.mini-med {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--cream-200);
}
.mini-med:last-child { border-bottom: none; }
.mini-med-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--cream-300);
  flex-shrink: 0;
  color: transparent;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mini-med-check.done {
  background: var(--sage-500);
  border-color: var(--sage-500);
  color: var(--white);
}
.mini-med-name {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-900);
}
.mini-med-time {
  font-size: 11.5px;
  color: var(--ink-500);
}

.mini-thread {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mini-msg {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.mini-msg-you { flex-direction: row-reverse; }
.mini-msg-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mini-msg-avatar-you { background: var(--terra-500); }
.mini-msg-avatar-marcus { background: var(--sage-500); }
.mini-msg-bubble {
  font-size: 12.5px;
  padding: 7px 12px;
  border-radius: 12px;
  background: var(--sage-500);
  color: var(--white);
  max-width: 75%;
}
.mini-msg-bubble-them {
  background: var(--cream-100);
  color: var(--ink-900);
}

.mini-appt {
  background: var(--white);
  border-radius: 10px;
  padding: 12px;
  border: 1px solid var(--cream-200);
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
}
.mini-appt-date {
  background: var(--terra-100);
  color: var(--terra-700);
  border-radius: 8px;
  padding: 6px 10px;
  text-align: center;
  flex-shrink: 0;
}
.mini-appt-day {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.mini-appt-num {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
  color: var(--terra-700);
}
.mini-appt-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-900);
}
.mini-appt-meta {
  font-size: 11.5px;
  color: var(--ink-500);
  margin-top: 2px;
}

.mini-er {
  background: var(--white);
  border-radius: 10px;
  padding: 14px;
  border: 1px solid var(--terra-100);
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.mini-er-icon { font-size: 26px; }
.mini-er-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-900);
}
.mini-er-body {
  font-size: 11.5px;
  color: var(--ink-500);
  margin-top: 2px;
  line-height: 1.35;
}

.ui-full-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}
@media (min-width: 720px) {
  .ui-full-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}
.ui-full-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-300);
  margin-bottom: 12px;
}
.ui-card-full h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  line-height: 1.1;
}
.ui-card-full p {
  font-size: 16px;
  color: rgba(254, 252, 248, 0.72);
  margin: 0;
  max-width: 420px;
}
.ui-full-avatars {
  display: inline-flex;
  align-items: center;
}
.ui-full-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--white);
  font-weight: 700;
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--ink-900);
  margin-left: -14px;
}
.ui-full-avatar:first-child { margin-left: 0; }
.ui-full-heart {
  background: var(--terra-500);
  font-size: 20px;
}

/* ============ DEMO ============ */
.demo { padding: 110px 0; background: var(--cream-50); }
.demo-frame {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .demo-frame { grid-template-columns: auto 1fr; gap: 60px; }
}
.demo-phone-wrap { display: flex; justify-content: center; }
.phone-demo {
  width: 340px;
  height: 700px;
}
.phone-demo .phone-screen iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.demo-tips {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.tip {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--cream-200);
  border-radius: var(--radius-lg);
}
.tip-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sage-100);
  color: var(--sage-700);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tip strong {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  color: var(--ink-900);
}
.tip p {
  margin: 4px 0 0;
  font-size: 14.5px;
  color: var(--ink-700);
  line-height: 1.5;
}

/* ============ FAQ ============ */
.faq { padding: 100px 0; background: var(--cream-75); }
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 780px;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--cream-200);
  border-radius: var(--radius);
  padding: 0 24px;
  transition: box-shadow 0.15s ease;
}
.faq-item[open] {
  box-shadow: var(--shadow-sm);
  border-color: var(--sage-100);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  color: var(--ink-900);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  font-family: var(--sans);
  font-size: 22px;
  color: var(--sage-700);
  font-weight: 400;
  transition: transform 0.2s ease;
  line-height: 1;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-body {
  padding: 0 0 24px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-700);
  max-width: 680px;
}

/* ============ WAITLIST ============ */
.waitlist { padding: 100px 0; background: var(--cream-50); }
.waitlist-card {
  background: linear-gradient(135deg, var(--ink-900), var(--sage-900));
  color: var(--cream-100);
  padding: 64px 48px;
  border-radius: var(--radius-xl);
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.waitlist .eyebrow-sand { color: var(--cream-300); }
.waitlist-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 48px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 16px;
  color: var(--cream-100);
}
.waitlist-sub {
  font-family: var(--serif);
  font-size: 18px;
  color: rgba(254, 252, 248, 0.72);
  margin: 0 0 32px;
  line-height: 1.5;
}
.waitlist-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 16px;
}
.waitlist-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid rgba(254, 252, 248, 0.2);
  background: rgba(254, 252, 248, 0.06);
  color: var(--cream-100);
  font-size: 15px;
  font-family: var(--sans);
}
.waitlist-form input[type="email"]::placeholder { color: rgba(254, 252, 248, 0.4); }
.waitlist-form input[type="email"]:focus {
  outline: none;
  border-color: var(--sage-300);
  background: rgba(254, 252, 248, 0.1);
}
.waitlist-form .btn-primary {
  background: var(--cream-100);
  color: var(--ink-900);
}
.waitlist-form .btn-primary:hover {
  background: var(--white);
  color: var(--ink-900);
}
.waitlist-status {
  min-height: 20px;
  font-size: 14px;
  color: var(--butter-500);
  margin: 0 0 8px;
}
.waitlist-fine {
  font-size: 12.5px;
  color: rgba(254, 252, 248, 0.5);
  margin: 0;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--ink-900);
  color: var(--cream-100);
  padding: 60px 0 40px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  justify-content: space-between;
}
@media (min-width: 720px) {
  .footer-inner { flex-direction: row; align-items: flex-end; }
}
.footer-brand .logo { color: var(--cream-100); }
.footer-tag {
  font-family: var(--serif);
  font-size: 17px;
  color: rgba(254, 252, 248, 0.6);
  margin: 14px 0 0;
}
.footer-meta {
  font-size: 12.5px;
  color: rgba(254, 252, 248, 0.5);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
@media (min-width: 720px) {
  .footer-meta { text-align: right; }
}
/* Legal links sit on the dark footer, so they need their own contrast. */
.footer-meta a {
  color: rgba(254, 252, 248, 0.72);
  text-decoration: none;
}
.footer-meta a:hover {
  color: var(--cream-100);
  text-decoration: underline;
}

/* ============ UNSTYLED-BLOCK BACKFILL ============ */
/* These classes were referenced in index.html by the redesign but never got
   rules written. Grouped here rather than scattered, so the redesign can be
   finished and this block folded into the sections above. */

/* --- layout children that just need to behave in their flex/grid parent --- */
.hero-copy { min-width: 0; }
.ribbon-stat { min-width: 0; }
.logo-word { display: inline-block; }

/* Text column sitting beside an avatar/check in a flex row. Without min-width:0
   a long medication name refuses to wrap and pushes the row wider than the
   phone mock. */
.app-med-body,
.app-onduty-body,
.mini-appt-body {
  flex: 1;
  min-width: 0;
}

/* --- variants whose sibling already exists --- */
/* .compare-outcome em is already terra (the "bad" tone), so this only makes
   the pairing with .compare-outcome-good explicit. */
.compare-outcome-bad em { color: var(--terra-700); }

/* The 4:12am group-text card — the loudest item in the chaos stack. */
.chaos-txt { border-color: var(--terra-300); }

/* --- full-width ER Kit closer --- */
.ui-card-wide {
  grid-column: 1 / -1;
  padding: 32px;
}
.ui-wide-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
@media (min-width: 860px) {
  .ui-wide-inner { grid-template-columns: 1fr 1.05fr; gap: 44px; }
}
.ui-wide-copy { min-width: 0; }
.ui-wide-copy h3 {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 12px;
  color: var(--ink-900);
}
.ui-wide-copy p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-700);
  margin: 0;
  max-width: 44ch;
}
.ui-wide-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra-700);
  margin-bottom: 10px;
}
.ui-wide-visual { min-width: 0; }

/* --- the ER Kit card itself --- */
.er-kit-card {
  background: var(--white);
  border: 1px solid var(--terra-100);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.er-kit-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--cream-200);
}
.er-kit-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--terra-50);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.er-kit-title {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.1;
  color: var(--ink-900);
}
.er-kit-sub {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra-700);
  margin-top: 3px;
}
.er-kit-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* Label column is fixed so the values line up into a scannable column —
   the whole point of a card someone reads in a waiting room. */
.er-kit-row {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 10px;
  align-items: baseline;
}
.er-kit-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-300);
}
.er-kit-value {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-900);
  min-width: 0;
}
