:root {
  --navy-950: #07182f;
  --navy-900: #0c2342;
  --navy-800: #16385f;
  --blue-700: #315fc4;
  --blue-600: #4b79e6;
  --blue-500: #6794f2;
  --blue-300: #a9c7fb;
  --blue-150: #dceaff;
  --blue-100: #edf5ff;
  --blue-050: #f6faff;
  --ink: #11243d;
  --muted: #5d6f85;
  --muted-2: #7d8ca0;
  --line: #dce6f1;
  --line-dark: rgba(255, 255, 255, 0.13);
  --canvas: #f7f9fc;
  --surface: #ffffff;
  --green: #278265;
  --green-bg: #e9f7f1;
  --amber: #a86a18;
  --amber-bg: #fff5df;
  --coral: #b85656;
  --coral-bg: #fff0ef;
  --violet: #6752b8;
  --violet-bg: #f2efff;
  --shadow-sm: 0 8px 24px rgba(18, 48, 83, 0.07);
  --shadow-md: 0 20px 55px rgba(18, 48, 83, 0.12);
  --shadow-lg: 0 32px 90px rgba(7, 24, 47, 0.18);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 36px;
  --container: 1180px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Manrope", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

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

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 3px solid rgba(75, 121, 230, 0.38);
  outline-offset: 3px;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 10px;
  color: white;
  background: var(--navy-950);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.utility-bar {
  color: #dfeaff;
  background: var(--navy-950);
  font-size: 0.76rem;
  letter-spacing: 0.01em;
}

.utility-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.utility-bar a {
  color: white;
  font-weight: 700;
}

.utility-bar a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(220, 230, 241, 0.8);
  box-shadow: 0 5px 18px rgba(7, 24, 47, 0.035);
  backdrop-filter: blur(16px);
}

.navbar {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--navy-950);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(75, 121, 230, 0.25);
  border-radius: 14px;
  color: var(--blue-600);
  background: linear-gradient(145deg, white, var(--blue-100));
  box-shadow: inset 0 0 0 4px white, 0 6px 18px rgba(49, 95, 196, 0.13);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: -0.07em;
}

.brand-health {
  color: var(--blue-600);
}

.nav-links {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-links a {
  position: relative;
  padding: 10px 10px;
  border-radius: 10px;
  color: #53667d;
  font-size: 0.82rem;
  font-weight: 700;
  transition: color 160ms ease, background 160ms ease;
}

.nav-links a:hover {
  color: var(--navy-950);
  background: var(--blue-050);
}

.nav-links a.active {
  color: var(--blue-700);
  background: var(--blue-100);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  right: 13px;
  bottom: 4px;
  left: 13px;
  height: 2px;
  border-radius: 999px;
  background: var(--blue-600);
}

.nav-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button,
.menu-button,
.close-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--navy-800);
  background: white;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.icon-button:hover,
.menu-button:hover,
.close-button:hover {
  transform: translateY(-1px);
  border-color: var(--blue-300);
  background: var(--blue-050);
}

.menu-button {
  display: none;
}

.search-glyph {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
}

.search-glyph::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  right: -6px;
  bottom: -3px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button-primary {
  color: white;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-600));
  box-shadow: 0 10px 24px rgba(49, 95, 196, 0.24);
}

.button-primary:hover {
  box-shadow: 0 14px 32px rgba(49, 95, 196, 0.31);
}

.button-secondary {
  color: var(--navy-900);
  border-color: var(--line);
  background: white;
  box-shadow: var(--shadow-sm);
}

.button-secondary:hover {
  border-color: var(--blue-300);
}

.button-ghost {
  color: var(--blue-700);
  border-color: rgba(75, 121, 230, 0.2);
  background: var(--blue-100);
}

.button-small {
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 11px;
  font-size: 0.8rem;
}

.button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  box-shadow: none;
}

.button:disabled:hover {
  transform: none;
  box-shadow: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--blue-700);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: var(--blue-500);
}

.eyebrow-light {
  color: #cfe0ff;
}

.eyebrow-light::before {
  background: #9dbfff;
}

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

h1,
h2,
h3,
h4 {
  color: var(--navy-950);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.75rem, 6vw, 5.35rem);
  font-weight: 800;
  letter-spacing: -0.065em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 3.8vw, 3.35rem);
  font-weight: 800;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.22rem;
  font-weight: 800;
}

h4 {
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 800;
}

p {
  margin-bottom: 20px;
  color: var(--muted);
}

.lead {
  max-width: 720px;
  font-size: clamp(1.02rem, 2vw, 1.23rem);
  line-height: 1.75;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--blue-700);
  font-weight: 800;
  font-size: 0.88rem;
}

.text-link:hover {
  text-decoration: underline;
}

.section {
  padding: 96px 0;
}

.section-tight {
  padding: 66px 0;
}

.section-white {
  background: white;
}

.section-blue {
  background: linear-gradient(180deg, #f1f7ff 0%, #f8fbff 100%);
  border-block: 1px solid #e3edf9;
}

.section-dark {
  color: white;
  background:
    radial-gradient(circle at 82% 18%, rgba(103, 148, 242, 0.2), transparent 28%),
    linear-gradient(135deg, var(--navy-950), var(--navy-800));
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: white;
}

.section-dark p {
  color: #c5d2e2;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 42px;
}

.section-heading > div:first-child {
  max-width: 760px;
}

.section-heading h2,
.section-heading p {
  margin-bottom: 0;
}

.hero-home {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 10% 15%, rgba(169, 199, 251, 0.35), transparent 25%),
    radial-gradient(circle at 86% 28%, rgba(75, 121, 230, 0.16), transparent 28%),
    linear-gradient(180deg, #fbfdff 0%, #f2f7ff 100%);
}

.hero-home::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 110px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.75));
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
  align-items: center;
  gap: 54px;
  padding: 74px 0 88px;
}

.hero-copy h1 span {
  color: var(--blue-600);
}

.hero-copy .lead {
  max-width: 660px;
}

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

.trust-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  color: #53677e;
  font-size: 0.82rem;
  font-weight: 700;
}

.trust-points span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust-points span::before {
  content: "✓";
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: var(--green-bg);
  font-size: 0.7rem;
  font-weight: 900;
}

.hero-stage {
  position: relative;
  min-height: 540px;
  display: grid;
  place-items: center;
}

.hero-stage::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(75, 121, 230, 0.18);
  border-radius: 50%;
  background:
    radial-gradient(circle at 44% 35%, rgba(255, 255, 255, 0.95), rgba(220, 234, 255, 0.74) 54%, rgba(169, 199, 251, 0.28));
  box-shadow: 0 40px 100px rgba(49, 95, 196, 0.15);
}

.hero-otto {
  position: relative;
  z-index: 2;
  width: min(360px, 76%);
  max-height: 520px;
  object-fit: contain;
  filter: drop-shadow(0 25px 32px rgba(7, 24, 47, 0.16));
}

.floating-card {
  position: absolute;
  z-index: 3;
  min-width: 188px;
  padding: 14px 16px;
  border: 1px solid rgba(220, 230, 241, 0.92);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
}

.floating-card strong {
  display: block;
  margin-bottom: 2px;
  color: var(--navy-950);
  font-size: 0.85rem;
}

.floating-card span {
  color: var(--muted);
  font-size: 0.73rem;
}

.float-evidence {
  top: 90px;
  right: 0;
}

.float-progress {
  left: 0;
  bottom: 82px;
}

.mini-rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rating-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px var(--green-bg);
}

.mini-progress {
  width: 100%;
  height: 7px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--blue-100);
}

.mini-progress span {
  width: 74%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-700), var(--blue-500));
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 78px;
  background:
    radial-gradient(circle at 86% 18%, rgba(103, 148, 242, 0.18), transparent 25%),
    linear-gradient(180deg, white, #f2f7ff);
  border-bottom: 1px solid #e5edf6;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  gap: 60px;
}

.page-hero h1 {
  max-width: 850px;
  margin-bottom: 18px;
  font-size: clamp(2.55rem, 5vw, 4.65rem);
}

.page-hero p {
  max-width: 760px;
  margin-bottom: 0;
  font-size: 1.08rem;
}

.page-hero-art {
  height: 260px;
  width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(7, 24, 47, 0.13));
}

.quick-paths {
  position: relative;
  z-index: 4;
  margin-top: -38px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.quick-card {
  min-height: 112px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.quick-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue-300);
  box-shadow: var(--shadow-md);
}

.quick-icon,
.card-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--blue-700);
  background: var(--blue-100);
  font-size: 1.25rem;
  font-weight: 900;
}

.quick-card strong {
  display: block;
  color: var(--navy-950);
  line-height: 1.25;
}

.quick-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.75rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

.surface-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

a.surface-card:hover,
.surface-card.hoverable:hover {
  transform: translateY(-5px);
  border-color: var(--blue-300);
  box-shadow: var(--shadow-md);
}

.surface-card .card-icon {
  margin-bottom: 22px;
}

.surface-card p:last-child {
  margin-bottom: 0;
}

.card-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--blue-700);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.feature-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 50px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: white;
  box-shadow: var(--shadow-sm);
}

.feature-panel-blue {
  background:
    radial-gradient(circle at 92% 12%, rgba(103, 148, 242, 0.22), transparent 30%),
    linear-gradient(145deg, #f7fbff, #eaf3ff);
}

.feature-panel-dark {
  color: white;
  border-color: rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 90% 5%, rgba(103, 148, 242, 0.28), transparent 32%),
    linear-gradient(145deg, var(--navy-950), var(--navy-800));
}

.feature-panel-dark h2,
.feature-panel-dark h3,
.feature-panel-dark h4 {
  color: white;
}

.feature-panel-dark p {
  color: #c8d6e7;
}

.otto-feature {
  min-height: 480px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: end;
  gap: 15px;
}

.otto-feature img {
  max-height: 390px;
  justify-self: center;
  filter: drop-shadow(0 22px 26px rgba(7, 24, 47, 0.2));
}

.chat-snippet {
  max-width: 410px;
  margin: 24px 0;
  display: grid;
  gap: 9px;
}

.chat-bubble {
  width: fit-content;
  max-width: 90%;
  padding: 11px 14px;
  border-radius: 15px;
  font-size: 0.82rem;
  line-height: 1.5;
}

.chat-bubble-user {
  justify-self: end;
  color: white;
  background: var(--blue-700);
  border-bottom-right-radius: 5px;
}

.chat-bubble-otto {
  color: var(--navy-900);
  background: white;
  border: 1px solid var(--line);
  border-bottom-left-radius: 5px;
}

.evidence-spectrum {
  display: grid;
  gap: 10px;
  margin: 26px 0;
}

.evidence-row {
  display: grid;
  grid-template-columns: 118px 1fr;
  align-items: center;
  gap: 14px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.evidence-row strong {
  color: var(--navy-950);
  font-size: 0.82rem;
}

.evidence-row span {
  color: var(--muted);
  font-size: 0.78rem;
}

.evidence-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.035em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.evidence-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.evidence-strong {
  color: var(--green);
  background: var(--green-bg);
}

.evidence-moderate {
  color: var(--blue-700);
  background: var(--blue-100);
}

.evidence-limited {
  color: var(--amber);
  background: var(--amber-bg);
}

.evidence-insufficient {
  color: var(--coral);
  background: var(--coral-bg);
}

.evidence-letter {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 900;
}

.rating-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
}

.rating-card .evidence-letter {
  margin-bottom: 16px;
}

.rating-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--navy-950);
}

.rating-card p {
  margin-bottom: 0;
  font-size: 0.86rem;
}

.letter-strong {
  color: var(--green);
  background: var(--green-bg);
}

.letter-moderate {
  color: var(--blue-700);
  background: var(--blue-100);
}

.letter-limited {
  color: var(--amber);
  background: var(--amber-bg);
}

.letter-insufficient {
  color: var(--coral);
  background: var(--coral-bg);
}

.content-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.search-field {
  position: relative;
  flex: 1 1 360px;
  min-width: min(100%, 320px);
  max-width: 560px;
}

.search-field .search-glyph {
  position: absolute;
  top: 50%;
  left: 18px;
  z-index: 1;
  color: var(--muted);
  transform: translateY(-50%);
}

.search-field input,
.field input,
.field select,
.field textarea,
.chat-compose input {
  width: 100%;
  min-height: 50px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: white;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-field input {
  padding-left: 50px;
}

.search-field input:focus,
.field input:focus,
.field select:focus,
.field textarea:focus,
.chat-compose input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(75, 121, 230, 0.11);
}

.filter-chips {
  display: flex;
  flex: 1 1 520px;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.conditions-toolbar {
  align-items: stretch;
  flex-direction: column;
  flex-wrap: nowrap;
}

.conditions-toolbar .search-field {
  flex: none;
  max-width: none;
}

.conditions-toolbar .filter-chips {
  flex: none;
  justify-content: flex-start;
}

.filter-chip {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: white;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.filter-chip:hover,
.filter-chip.active {
  color: var(--blue-700);
  border-color: var(--blue-300);
  background: var(--blue-100);
}

.condition-list,
.treatment-list {
  display: grid;
  gap: 22px;
}

.condition-card,
.treatment-card {
  scroll-margin-top: 120px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-sm);
}

.condition-summary,
.treatment-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 28px;
}

.condition-icon,
.treatment-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--blue-700);
  background: var(--blue-100);
  font-size: 1.35rem;
  font-weight: 900;
}

.summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--navy-800);
  background: #f0f4f8;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1.2;
}

.condition-summary h2,
.treatment-summary h2 {
  margin-bottom: 8px;
  font-size: 1.6rem;
}

.condition-summary p,
.treatment-summary p {
  max-width: 800px;
  margin-bottom: 0;
  font-size: 0.9rem;
}

.treatment-summary-indications {
  padding-bottom: 24px;
}

.treatment-summary-indications .treatment-icon {
  align-self: start;
}

.treatment-indication-count {
  white-space: nowrap;
}

.treatment-indications {
  display: grid;
  gap: 12px;
  padding: 0 28px 28px;
}

.treatment-indication {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}

.treatment-indication summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 20px;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  background: var(--blue-050);
}

.treatment-indication summary::-webkit-details-marker {
  display: none;
}

.indication-title {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  color: var(--navy-900);
}

.indication-title strong {
  font-size: 0.95rem;
}

.indication-purpose {
  grid-column: 1;
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.indication-toggle {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-700);
  font-size: 0.74rem;
  font-weight: 900;
  white-space: nowrap;
}

.indication-toggle::after {
  content: "+";
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--blue-100);
  font-size: 1rem;
}

.treatment-indication[open] .indication-toggle::after {
  content: "−";
}

.treatment-indication[open] summary {
  border-bottom: 1px solid var(--line);
}

.treatment-indication .detail-content {
  padding: 24px;
}

.condition-detail,
.treatment-detail {
  border-top: 1px solid var(--line);
}

.condition-detail summary,
.treatment-detail summary {
  padding: 15px 28px;
  color: var(--blue-700);
  background: var(--blue-050);
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.condition-detail summary::-webkit-details-marker,
.treatment-detail summary::-webkit-details-marker {
  display: none;
}

.condition-detail summary::after,
.treatment-detail summary::after {
  content: "+";
  float: right;
  color: var(--blue-700);
  font-size: 1.1rem;
}

.condition-detail[open] summary::after,
.treatment-detail[open] summary::after {
  content: "−";
}

.detail-content {
  padding: 30px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.detail-block {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--blue-050);
}

.detail-block p,
.detail-block li {
  font-size: 0.87rem;
}

.detail-block p:last-child,
.detail-block ul:last-child {
  margin-bottom: 0;
}

.plain-list {
  margin: 0;
  padding-left: 19px;
  color: var(--muted);
}

.plain-list li + li {
  margin-top: 7px;
}

.evidence-table-wrap {
  margin-top: 24px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.evidence-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 650px;
  background: white;
}

.evidence-table th,
.evidence-table td {
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 0.8rem;
}

.evidence-table th {
  color: var(--navy-900);
  background: #f7faff;
  font-weight: 900;
}

.evidence-table tr:last-child td {
  border-bottom: 0;
}

.evidence-table td p {
  margin: 3px 0 0;
  font-size: 0.76rem;
}

.notice {
  display: flex;
  gap: 13px;
  padding: 17px 18px;
  border: 1px solid #d7e5f7;
  border-radius: 16px;
  color: #435c78;
  background: #f1f7ff;
  font-size: 0.82rem;
  line-height: 1.55;
}

.notice::before {
  content: "i";
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--blue-600);
  font-size: 0.73rem;
  font-weight: 900;
}

.notice-warning {
  border-color: #f0d7a8;
  color: #765124;
  background: #fff8e9;
}

.notice-warning::before {
  content: "!";
  background: var(--amber);
}

.source-note {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.73rem;
}

.source-note a {
  color: var(--blue-700);
  font-weight: 700;
}

.source-note a:hover {
  text-decoration: underline;
}

.empty-state {
  display: none;
  padding: 44px;
  border: 1px dashed var(--blue-300);
  border-radius: 22px;
  text-align: center;
  background: var(--blue-050);
}

.empty-state.visible {
  display: block;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.8fr);
  align-items: start;
  gap: 24px;
}

.dashboard-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-sm);
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.dashboard-header h2,
.dashboard-header p {
  margin-bottom: 0;
}

.progress-ring {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue-700);
  background: conic-gradient(var(--blue-600) var(--progress, 0%), var(--blue-100) 0);
  font-size: 0.78rem;
  font-weight: 900;
  position: relative;
}

.progress-ring::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: white;
}

.progress-ring span {
  position: relative;
  z-index: 1;
}

.habit-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.habit-row {
  min-height: 67px;
  display: grid;
  grid-template-columns: minmax(190px, 0.9fr) minmax(200px, 1.1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfdff;
  transition: border-color 150ms ease, background 150ms ease;
}

.habit-row.logged {
  border-color: #b9dfd0;
  background: #f7fcfa;
}

.habit-label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.habit-label > span:first-child {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--blue-100);
}

.habit-label strong,
.habit-label small {
  display: block;
}

.habit-label small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.71rem;
}

.habit-entry {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

.habit-entry input,
.habit-entry select {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--navy-800);
  background: white;
  font: inherit;
  font-size: 0.78rem;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.habit-row.has-unit .habit-entry input[type="number"] {
  padding-right: 55px;
}

.habit-entry input:focus,
.habit-entry select:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(54, 109, 220, 0.12);
}

.habit-unit {
  position: absolute;
  right: 11px;
  color: var(--muted-2);
  font-size: 0.67rem;
  font-weight: 800;
  pointer-events: none;
}

.habit-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.habit-check {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 2px solid var(--blue-300);
  border-radius: 10px;
  background: white;
  transition: background 150ms ease, border-color 150ms ease;
}

.habit-check.done {
  border-color: var(--green);
  background: var(--green);
}

.habit-check.done::after {
  content: "✓";
  color: white;
  font-weight: 900;
}

.tracker-move-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tracker-move-button,
.tracker-item-remove {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted-2);
  background: white;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.tracker-move-button {
  width: 26px;
  height: 30px;
  font-size: 0.76rem;
  font-weight: 900;
}

.tracker-move-button:hover,
.tracker-move-button:focus-visible {
  border-color: var(--blue-400);
  color: var(--blue-700);
  background: var(--blue-050);
}

.tracker-move-button:disabled {
  opacity: 0.32;
  cursor: not-allowed;
}

.tracker-item-remove:hover,
.tracker-item-remove:focus-visible {
  border-color: #e6a7a7;
  color: #9c3030;
  background: #fff7f7;
}

.custom-tracker-builder {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.custom-builder-header h3,
.custom-builder-header p {
  margin-bottom: 0;
}

.custom-builder-header p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.78rem;
}

.custom-builder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(145px, 0.42fr) auto;
  align-items: end;
  gap: 12px;
  margin-top: 16px;
}

.custom-builder-grid.unit-enabled {
  grid-template-columns: minmax(0, 1fr) minmax(130px, 0.38fr) minmax(110px, 0.3fr) auto;
}

.custom-builder-grid .field {
  margin-bottom: 0;
}

.custom-builder-grid .button {
  min-height: 42px;
}

.custom-builder-note,
.builder-feedback {
  margin: 9px 0 0;
  color: var(--muted-2);
  font-size: 0.7rem;
  line-height: 1.45;
}

.builder-feedback {
  min-height: 1em;
  color: var(--blue-700);
  font-weight: 700;
}

.field-optional {
  color: var(--muted-2);
  font-size: 0.66rem;
  font-weight: 600;
}

.tracker-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.checkin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}

.checkin-card {
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--blue-050);
}

.checkin-card h3 {
  font-size: 0.92rem;
}

.checkin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.checkin-card-header h3 {
  margin-bottom: 0;
}

.checkin-completion {
  width: 28px;
  height: 28px;
  border-radius: 9px;
}

.checkin-submit {
  width: 100%;
  margin-top: 15px;
}

.mood-options {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.mood-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  cursor: pointer;
  font-size: 1.05rem;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.mood-button:hover,
.mood-button.selected {
  transform: translateY(-2px);
  border-color: var(--blue-500);
  background: var(--blue-100);
}

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

.range-row input {
  accent-color: var(--blue-600);
}

.range-output {
  min-width: 54px;
  padding: 5px 8px;
  border-radius: 9px;
  color: var(--blue-700);
  background: white;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 900;
}

.otto-insight-card {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  padding: 30px;
  border-radius: var(--radius-lg);
  color: white;
  background:
    radial-gradient(circle at 88% 15%, rgba(103, 148, 242, 0.33), transparent 27%),
    linear-gradient(145deg, var(--navy-950), var(--navy-800));
  box-shadow: var(--shadow-md);
}

.otto-insight-card h2,
.otto-insight-card h3 {
  color: white;
}

.otto-insight-card p {
  max-width: 310px;
  color: #c9d7e7;
  font-size: 0.88rem;
}

.otto-insight-card img {
  position: absolute;
  right: -5px;
  bottom: -22px;
  width: 185px;
  max-height: 260px;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.25));
}

.insight-copy {
  position: relative;
  z-index: 2;
  max-width: 64%;
}

.mini-chart {
  display: flex;
  align-items: end;
  gap: 7px;
  height: 92px;
  margin-top: 22px;
}

.mini-chart span {
  flex: 1;
  height: var(--h);
  min-height: 14px;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(to top, var(--blue-700), var(--blue-400, #8ab1fb));
  opacity: 0.86;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.tools-jump-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 54px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fbff;
}

.tools-jump-nav span {
  margin-right: 4px;
  color: var(--navy-800);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tools-jump-nav a {
  padding: 8px 12px;
  border: 1px solid #d8e6f7;
  border-radius: 999px;
  color: var(--blue-700);
  background: white;
  font-size: 0.75rem;
  font-weight: 800;
}

.tools-jump-nav a:hover {
  border-color: var(--blue-400);
  background: var(--blue-050);
}

.tool-category {
  scroll-margin-top: 120px;
}

.tool-category + .tool-category {
  margin-top: 70px;
  padding-top: 64px;
  border-top: 1px solid var(--line);
}

.tool-category-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.tool-category-heading > div {
  max-width: 760px;
}

.tool-category-heading h2 {
  margin-bottom: 8px;
  font-size: clamp(1.75rem, 3vw, 2.6rem);
}

.tool-category-heading p {
  margin-bottom: 0;
}

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

.tool-grid-compact .tool-summary-layout {
  grid-template-columns: auto minmax(0, 1fr);
}

.tool-grid-compact .tool-disclosure-action {
  grid-column: 1 / -1;
  width: 100%;
}

.tool-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-sm);
}

.tool-card-wide {
  grid-column: 1 / -1;
}

.tool-disclosure {
  padding: 0;
  overflow: hidden;
  scroll-margin-top: 120px;
}

.tool-disclosure > summary {
  padding: 26px;
  cursor: pointer;
  list-style: none;
}

.tool-disclosure > summary::-webkit-details-marker {
  display: none;
}

.tool-disclosure > summary:hover {
  background: #fbfdff;
}

.tool-disclosure > summary:focus-visible {
  outline: 3px solid rgba(75, 121, 230, 0.3);
  outline-offset: -3px;
}

.tool-summary-layout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.tool-summary-copy {
  min-width: 0;
}

.tool-summary-copy .card-kicker,
.tool-summary-title,
.tool-summary-description {
  display: block;
}

.tool-summary-title {
  margin-top: 3px;
  color: var(--navy-950);
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.25;
}

.tool-summary-description {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.tool-disclosure-action {
  min-width: 88px;
  padding: 8px 11px;
  border: 1px solid var(--blue-200);
  border-radius: 999px;
  color: var(--blue-700);
  background: var(--blue-050);
  font-size: 0.7rem;
  font-weight: 900;
  text-align: center;
}

.tool-disclosure-action::before {
  content: "Open tool";
}

.tool-disclosure[open] .tool-disclosure-action::before {
  content: "Close tool";
}

.tool-disclosure[open] > summary {
  background: #f8fbff;
}

.tool-disclosure-content {
  padding: 26px;
  border-top: 1px solid var(--line);
}

.fasting-timer-display {
  margin-top: 18px;
  color: var(--navy-950);
  font-size: clamp(2.4rem, 7vw, 4rem);
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1;
  text-align: center;
}

.fasting-progress {
  height: 12px;
  margin-top: 22px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--blue-100);
}

.fasting-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-500), var(--green));
  transition: width 0.35s ease;
}

.fasting-timer-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.fasting-timer-actions {
  justify-content: center;
  margin-top: 22px;
}

.fasting-date-calculator {
  margin-top: 22px;
}

.fasting-date-calculator .result-box {
  margin-bottom: 0;
}

.pomodoro-modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.pomodoro-mode {
  padding: 11px 8px;
  border: 1px solid #d8e6f7;
  border-radius: 12px;
  color: var(--navy-800);
  background: #f8fbff;
  cursor: pointer;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.25;
}

.pomodoro-mode span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
}

.pomodoro-mode:hover {
  border-color: var(--blue-400);
}

.pomodoro-mode:focus-visible {
  outline: 3px solid rgba(75, 121, 230, 0.3);
  outline-offset: 2px;
}

.pomodoro-mode.active {
  border-color: var(--blue-500);
  color: white;
  background: var(--blue-700);
  box-shadow: 0 7px 18px rgba(35, 82, 160, 0.18);
}

.pomodoro-mode.active span {
  color: rgba(255, 255, 255, 0.76);
}

.pomodoro-timer-display {
  margin-top: 22px;
  color: var(--navy-950);
  font-size: clamp(3.4rem, 10vw, 5.4rem);
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
  text-align: center;
}

.pomodoro-progress {
  height: 10px;
  margin-top: 22px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--blue-100);
}

.pomodoro-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-500), var(--green));
  transition: width 0.25s linear;
}

.pomodoro-session-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.pomodoro-actions {
  justify-content: center;
  margin-top: 22px;
}

.pomodoro-status {
  margin-bottom: 0;
}

.tool-subdisclosure {
  margin: 16px 0 20px;
  border: 1px solid #d8e6f7;
  border-radius: 15px;
  background: #fbfdff;
}

.tool-subdisclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  color: var(--navy-800);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 850;
}

.tool-subdisclosure > summary span {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--muted-2);
  background: var(--blue-100);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tool-subdisclosure-content {
  padding: 6px 16px 16px;
}

.visit-output-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: -4px 0 22px;
}

.visit-output-preview span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #d8e6f7;
  border-radius: 14px;
  color: #405b78;
  background: #f8fbff;
  font-size: 0.75rem;
  font-weight: 750;
}

.visit-output-preview strong {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: white;
  background: var(--blue-600);
  font-size: 0.68rem;
}

.legacy-anchor {
  position: relative;
  top: -120px;
}

.advanced-tool-badge {
  width: fit-content;
  padding: 8px 11px;
  border-radius: 999px;
  color: #765124;
  background: #fff3d6;
  font-size: 0.68rem;
  font-weight: 900;
  white-space: nowrap;
}

.advanced-tool-notice {
  margin-bottom: 20px;
}

.tool-evidence-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 64px;
  padding: 28px 30px;
  border: 1px solid #d8e6f7;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #f8fbff, #edf5ff);
}

.tool-evidence-link > div {
  max-width: 760px;
}

.tool-evidence-link h2 {
  margin-bottom: 6px;
  font-size: 1.35rem;
}

.tool-evidence-link p {
  margin-bottom: 0;
  font-size: 0.82rem;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 13px;
}

.field label {
  color: var(--navy-800);
  font-size: 0.74rem;
  font-weight: 800;
}

.field small {
  color: var(--muted-2);
  font-size: 0.69rem;
}

.result-box {
  min-height: 62px;
  margin-top: 16px;
  padding: 15px;
  border: 1px solid #d8e6f7;
  border-radius: 14px;
  color: #405b78;
  background: #f4f8ff;
  font-size: 0.82rem;
}

.tool-disclaimer {
  margin-top: 14px;
  color: var(--muted-2);
  font-size: 0.68rem;
  line-height: 1.5;
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.inline-tool-link {
  width: fit-content;
  padding: 2px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.field-actions {
  align-items: center;
  gap: 14px;
  margin-top: 0;
}

.field-actions a.inline-tool-link {
  text-decoration: none;
}

.field-actions a.inline-tool-link:hover {
  text-decoration: underline;
}

.medication-schedule-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.medication-schedule-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  padding: 17px;
  border: 1px solid #d8e6f7;
  border-radius: 16px;
  background: #f8fbff;
}

.medication-schedule-time {
  padding: 8px 10px;
  border-radius: 11px;
  color: var(--blue-800);
  background: var(--blue-100);
  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
}

.medication-schedule-content h3 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.medication-schedule-content p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  white-space: pre-line;
}

.medication-schedule-primary {
  color: var(--navy-800) !important;
  font-weight: 700;
}

.medication-schedule-note {
  font-style: italic;
}

.schedule-empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: var(--blue-50);
  text-align: center;
}

.health-summary-result {
  margin-top: 24px;
  padding: 26px;
  border: 1px solid #c9dcf4;
  border-radius: 18px;
  background: #f8fbff;
}

.health-summary-result h2 {
  margin-bottom: 4px;
}

.health-summary-meta {
  margin: 0 0 20px;
  color: var(--muted-2);
  font-size: 0.76rem;
  font-weight: 700;
}

.health-summary-section {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.health-summary-section h3 {
  margin-bottom: 5px;
  font-size: 0.88rem;
}

.health-summary-section p {
  margin: 0;
  color: #405b78;
  font-size: 0.82rem;
  white-space: pre-line;
}

.health-summary-controls {
  margin-top: 18px;
}

.visit-question-context {
  margin: 18px 0 22px;
  padding: 18px;
  border: 1px solid #d8e6f7;
  border-radius: 14px;
  background: #fff;
}

.visit-question-context h3,
.visit-question-list-title {
  margin-bottom: 8px;
  font-size: 0.88rem;
}

.visit-question-context ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
  color: #405b78;
  font-size: 0.78rem;
}

.visit-question-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 24px;
}

.visit-question-list li {
  padding: 11px 14px;
  border: 1px solid #d8e6f7;
  border-radius: 12px;
  color: var(--navy-800);
  background: #fff;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.55;
}

.visit-question-list li.visit-question-priority {
  border-color: #b9d2f3;
  background: #f4f8ff;
}

.question-priority-badge {
  display: block;
  width: fit-content;
  margin-bottom: 6px;
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--blue-700);
  background: var(--blue-100);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.visit-question-tip {
  margin: 16px 0 0;
  color: var(--muted-2);
  font-size: 0.74rem;
  font-weight: 700;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  box-shadow: var(--shadow-sm);
}

.product-visual {
  min-height: 175px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 45%, white, transparent 55%),
    linear-gradient(145deg, #eef5ff, #dceaff);
  font-size: 3rem;
}

.product-body {
  padding: 22px;
}

.product-body p {
  font-size: 0.82rem;
}

.product-body .tag {
  margin-bottom: 12px;
}

.product-card-featured {
  grid-column: span 2;
  border-color: var(--blue-300);
}

.product-card-featured .product-visual {
  background:
    radial-gradient(circle at 50% 45%, white, transparent 55%),
    linear-gradient(145deg, #e8f7f1, #dceaff);
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-price {
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 800;
}

.product-note {
  color: var(--muted-2);
  font-size: 0.72rem !important;
  line-height: 1.55;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.value-card {
  padding: 24px;
  border-top: 3px solid var(--blue-500);
  border-radius: 4px 4px 18px 18px;
  background: rgba(255, 255, 255, 0.07);
}

.value-card p {
  margin-bottom: 0;
  font-size: 0.84rem;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 34px;
}

.timeline-step {
  position: relative;
  padding: 24px 24px 0 0;
}

.timeline-step::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 18px;
  right: -5px;
  height: 2px;
  background: var(--blue-150);
}

.timeline-step:last-child::before {
  display: none;
}

.timeline-number {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 5px solid white;
  border-radius: 50%;
  color: white;
  background: var(--blue-600);
  box-shadow: 0 0 0 1px var(--blue-300);
  font-size: 0.7rem;
  font-weight: 900;
}

.timeline-step p {
  font-size: 0.79rem;
}

.cta-band {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  align-items: center;
  gap: 30px;
  padding: 46px 50px;
  border-radius: var(--radius-xl);
  color: white;
  background:
    radial-gradient(circle at 82% 10%, rgba(169, 199, 251, 0.36), transparent 28%),
    linear-gradient(135deg, var(--navy-950), var(--navy-800));
  box-shadow: var(--shadow-md);
}

.cta-band h2 {
  color: white;
}

.cta-band p {
  color: #c8d6e7;
}

.cta-band img {
  max-height: 185px;
  object-fit: contain;
  filter: drop-shadow(0 20px 22px rgba(0, 0, 0, 0.24));
}

.site-footer {
  padding: 64px 0 24px;
  color: #c0cede;
  background: var(--navy-950);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 0.7fr);
  gap: 50px;
}

.site-footer .brand {
  color: white;
}

.footer-about p {
  max-width: 360px;
  margin: 18px 0 0;
  color: #9fb0c4;
  font-size: 0.82rem;
}

.footer-column h3 {
  margin-bottom: 16px;
  color: white;
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  width: fit-content;
  color: #9fb0c4;
  font-size: 0.8rem;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 46px;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
  color: #8295ac;
  font-size: 0.7rem;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: start center;
  padding: 9vh 20px 30px;
  background: rgba(7, 24, 47, 0.58);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
  backdrop-filter: blur(8px);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.search-modal {
  width: min(700px, 100%);
  max-height: 82vh;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow-lg);
  transform: translateY(-14px) scale(0.98);
  transition: transform 180ms ease;
}

.modal-overlay.open .search-modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.modal-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.modal-body {
  padding: 22px;
}

.search-results {
  max-height: 48vh;
  display: grid;
  gap: 8px;
  margin-top: 16px;
  overflow-y: auto;
}

.search-result {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.search-result:hover {
  border-color: var(--blue-300);
  background: var(--blue-050);
}

.search-result strong,
.search-result small {
  display: block;
}

.search-result strong {
  color: var(--navy-950);
  font-size: 0.84rem;
}

.search-result small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.7rem;
}

.search-result span {
  align-self: center;
  color: var(--blue-700);
  font-size: 0.75rem;
  font-weight: 800;
}

.search-empty {
  padding: 28px;
  color: var(--muted);
  text-align: center;
  font-size: 0.83rem;
}

.chat-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 110;
  width: 96px;
  height: 150px;
  display: grid;
  place-items: center;
  border: 4px solid white;
  border-radius: 28px;
  color: white;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  box-shadow: 0 16px 36px rgba(49, 95, 196, 0.35);
  cursor: pointer;
  transition: transform 180ms ease;
  overflow: hidden;
  padding: 0;
}

.chat-launcher:hover {
  transform: translateY(-4px) rotate(-2deg);
}

.chat-launcher svg {
  width: 26px;
  height: 26px;
}

.chat-launcher-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  transform: scaleX(1.06);
  transform-origin: center;
}

.chat-panel {
  position: fixed;
  right: 22px;
  bottom: 184px;
  z-index: 120;
  width: min(390px, calc(100vw - 24px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.97);
  transform-origin: bottom right;
  transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
}

.chat-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chat-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  color: white;
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
}

.chat-header img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  object-position: center top;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
}

.chat-header strong,
.chat-header small {
  display: block;
}

.chat-header small {
  color: #b9c9dc;
  font-size: 0.68rem;
}

.chat-header .close-button {
  margin-left: auto;
  color: white;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

.chat-messages {
  height: 265px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 16px;
  overflow-y: auto;
  background: #f7f9fc;
}

.chat-message {
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 0.76rem;
  line-height: 1.5;
}

.chat-message.otto {
  align-self: flex-start;
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
  color: var(--navy-900);
  background: white;
}

.chat-message.user {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  color: white;
  background: var(--blue-700);
}

.chat-suggestions {
  display: flex;
  gap: 7px;
  padding: 10px 14px 0;
  overflow-x: auto;
  background: white;
}

.chat-suggestion {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue-700);
  background: var(--blue-050);
  font-size: 0.64rem;
  font-weight: 800;
  cursor: pointer;
}

.chat-compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px 14px;
  background: white;
}

.chat-compose input {
  min-height: 42px;
  padding: 9px 11px;
  font-size: 0.76rem;
}

.chat-privacy {
  padding: 0 14px 12px;
  color: var(--muted-2);
  background: white;
  font-size: 0.59rem;
  text-align: center;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 300;
  max-width: calc(100vw - 40px);
  padding: 11px 16px;
  border-radius: 12px;
  color: white;
  background: var(--navy-950);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 12px);
  transition: opacity 160ms ease, visibility 160ms ease, transform 160ms ease;
  font-size: 0.78rem;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1080px) {
  .nav-links a {
    padding-inline: 7px;
    font-size: 0.76rem;
  }

  .nav-actions .button {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr 0.85fr;
  }

  .hero-stage::before {
    width: 360px;
    height: 360px;
  }

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

@media (max-width: 880px) {
  :root {
    --header-height: 68px;
  }

  .utility-inner > span:last-child {
    display: none;
  }

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

  .nav-links {
    position: fixed;
    top: calc(34px + var(--header-height));
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 88;
    display: grid;
    align-content: start;
    gap: 5px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.98);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 13px 15px;
    border-bottom: 1px solid var(--line);
    border-radius: 10px;
    font-size: 0.94rem;
  }

  .nav-links a.active::after {
    display: none;
  }

  .menu-button {
    display: inline-grid;
  }

  .hero-home {
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 72px 0 80px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy .lead {
    margin-inline: auto;
  }

  .hero-actions,
  .trust-points {
    justify-content: center;
  }

  .hero-stage {
    min-height: 470px;
  }

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

  .card-grid,
  .feature-grid,
  .dashboard-shell,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .page-hero-grid {
    grid-template-columns: 1fr 220px;
    gap: 30px;
  }

  .page-hero-art {
    height: 220px;
  }

  .otto-feature {
    grid-template-columns: 1fr 170px;
  }

  .content-toolbar {
    align-items: stretch;
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .search-field {
    flex: none;
    max-width: none;
  }

  .filter-chips {
    flex: none;
    justify-content: flex-start;
  }

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

  .footer-about {
    grid-column: 1 / -1;
  }

  .timeline {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .timeline-step::before {
    display: none;
  }
}

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

  .utility-inner {
    justify-content: center;
    text-align: center;
  }

  .brand {
    font-size: 1.05rem;
  }

  .brand-mark {
    width: 37px;
    height: 37px;
  }

  .nav-actions .icon-button {
    display: none;
  }

  .section {
    padding: 72px 0;
  }

  .section-tight {
    padding: 52px 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 30px;
  }

  h1 {
    font-size: clamp(2.55rem, 13vw, 4rem);
  }

  h2 {
    font-size: clamp(1.8rem, 9vw, 2.7rem);
  }

  .hero-grid {
    padding-top: 58px;
  }

  .hero-stage {
    min-height: 390px;
  }

  .hero-stage::before {
    width: 300px;
    height: 300px;
  }

  .hero-otto {
    width: 260px;
    max-height: 390px;
  }

  .floating-card {
    min-width: 150px;
    padding: 11px 12px;
  }

  .float-evidence {
    top: 55px;
  }

  .float-progress {
    bottom: 52px;
  }

  .quick-grid,
  .card-grid,
  .card-grid-4,
  .product-grid,
  .tool-grid,
  .checkin-grid,
  .detail-grid,
  .field-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .tool-category-heading,
  .tool-evidence-link {
    align-items: stretch;
    flex-direction: column;
  }

  .field-actions {
    padding-right: 82px;
  }

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

  .tool-summary-layout {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .tool-disclosure-action {
    grid-column: 1 / -1;
    width: 100%;
  }

  .tool-disclosure > summary,
  .tool-disclosure-content {
    padding: 20px;
  }

  .pomodoro-modes {
    grid-template-columns: 1fr;
  }

  .pomodoro-actions {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
  }

  .pomodoro-actions .button {
    min-width: 0;
    padding-inline: 9px;
    font-size: 0.78rem;
  }

  .tools-jump-nav {
    align-items: stretch;
  }

  .tools-jump-nav span {
    width: 100%;
  }

  .habit-row {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 10px;
  }

  .habit-label {
    grid-column: 1;
    grid-row: 1;
  }

  .habit-entry {
    grid-column: 1;
    grid-row: 2;
  }

  .habit-actions {
    grid-column: 1;
    grid-row: 3;
    justify-content: flex-end;
  }

  .custom-builder-grid,
  .custom-builder-grid.unit-enabled {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .product-card-featured {
    grid-column: span 1;
  }

  .quick-card {
    min-height: 94px;
  }

  .page-hero {
    padding: 64px 0 54px;
  }

  .page-hero-grid {
    grid-template-columns: 1fr;
  }

  .page-hero-art {
    display: none;
  }

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

  .otto-feature {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .otto-feature img {
    max-height: 250px;
  }

  .condition-summary,
  .treatment-summary {
    grid-template-columns: auto 1fr;
    gap: 15px;
    padding: 20px;
  }

  .condition-summary > :last-child,
  .treatment-summary > :last-child {
    grid-column: 1 / -1;
  }

  .treatment-summary-indications {
    padding-bottom: 18px;
  }

  .treatment-indications {
    gap: 10px;
    padding: 0 16px 20px;
  }

  .treatment-indication summary {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .indication-purpose {
    grid-column: 1;
  }

  .indication-toggle {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }

  .treatment-indication .detail-content {
    padding: 16px;
  }

  .condition-detail summary,
  .treatment-detail summary {
    padding-inline: 20px;
  }

  .detail-content {
    padding: 20px;
  }

  .dashboard-card,
  .tool-card {
    padding: 22px;
  }

  .dashboard-header {
    align-items: flex-start;
  }

  .insight-copy {
    max-width: 68%;
  }

  .otto-insight-card img {
    width: 155px;
  }

  .cta-band {
    grid-template-columns: 1fr;
    padding: 34px 26px;
    text-align: center;
  }

  .cta-band .hero-actions {
    justify-content: center;
  }

  .cta-band img {
    justify-self: center;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 34px 22px;
  }

  .footer-about {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .chat-panel {
    right: 12px;
    bottom: 158px;
  }

  .chat-launcher {
    right: 14px;
    bottom: 14px;
    width: 84px;
    height: 132px;
    border-radius: 24px;
  }

  .medication-schedule-item {
    grid-template-columns: 1fr;
  }

  .medication-schedule-item .button {
    justify-self: start;
  }
}

@media print {
  body.visit-plan-printing .utility-bar,
  body.visit-plan-printing .site-header,
  body.visit-plan-printing .page-hero,
  body.visit-plan-printing main > section:not(.section-white),
  body.visit-plan-printing .site-footer,
  body.visit-plan-printing .chat-launcher,
  body.visit-plan-printing .chat-panel,
  body.visit-plan-printing .toast,
  body.visit-plan-printing .modal,
  body.visit-plan-printing .tools-jump-nav,
  body.visit-plan-printing .tool-category:not(#visit-preparation),
  body.visit-plan-printing .tool-evidence-link,
  body.visit-plan-printing #visit-preparation > :not(.tool-grid),
  body.visit-plan-printing #visit-plan > summary,
  body.visit-plan-printing #visit-plan .tool-disclosure-content > *:not(#visit-plan-result),
  body.visit-plan-printing .health-summary-controls {
    display: none !important;
  }

  body.visit-plan-printing .section-white {
    padding: 0;
  }

  body.visit-plan-printing .container {
    width: 100%;
    max-width: none;
  }

  body.visit-plan-printing #visit-plan,
  body.visit-plan-printing #visit-plan .tool-disclosure-content {
    display: block !important;
    padding: 0;
    border: 0;
    background: #fff;
    box-shadow: none;
  }

  body.visit-plan-printing #visit-plan-result {
    display: block !important;
    margin: 0;
    padding: 0;
    border: 0;
    background: #fff;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
.brand-image-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-image {
  display: block;
  width: clamp(210px, 24vw, 340px);
  height: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .brand-image {
    width: clamp(175px, 52vw, 245px);
  }
}
