:root {
  --bg: #f7f8f5;
  --surface: #ffffff;
  --surface-strong: #fbfcfb;
  --ink: #172126;
  --muted: #69757a;
  --line: #dde3df;
  --teal: #176b63;
  --teal-dark: #0f514b;
  --coral: #d96a4e;
  --gold: #b98720;
  --blue: #3d6fa8;
  --mint: #dcefe9;
  --rose: #fae4dc;
  --sky: #ddeefa;
  --lavender: #e8e4f5;
  --leaf: #e9f2d7;
  --shadow: 0 14px 36px rgba(23, 33, 38, 0.09);
  --shadow-soft: 0 10px 24px rgba(23, 33, 38, 0.07);
  --shadow-panel: 0 22px 55px rgba(23, 33, 38, 0.1);
  --radius: 8px;
  --ring: 0 0 0 3px rgba(35, 124, 115, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), transparent 260px),
    var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  letter-spacing: 0;
}

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

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 243, 234, 0.92);
  border-bottom: 1px solid rgba(31, 42, 46, 0.08);
  backdrop-filter: blur(16px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  box-shadow:
    0 10px 20px rgba(15, 81, 75, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.8);
}

.brand-mark img {
  display: block;
  width: 38px;
  height: 38px;
}

.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}

.nav-links a {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover {
  background: rgba(35, 124, 115, 0.1);
  color: var(--teal-dark);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.76fr);
  gap: 22px;
  align-items: stretch;
  padding: 36px 0 24px;
}

.input-panel,
.summary-panel,
.section-block,
.stat-card {
  border: 1px solid rgba(31, 42, 46, 0.09);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.input-panel {
  min-height: 520px;
  padding: clamp(24px, 5vw, 52px);
  border-radius: 8px;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(38px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.28;
}

.lead {
  max-width: 660px;
  margin: 22px 0 30px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.birthday-form {
  display: grid;
  max-width: 560px;
  gap: 10px;
}

.birthday-form label {
  font-size: 14px;
  font-weight: 900;
}

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

.birthday-form input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--ink);
  font-size: 16px;
}

select,
.region-control input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--ink);
  font-size: 15px;
}

.birthday-form input:focus,
textarea:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(35, 124, 115, 0.22);
  outline-offset: 2px;
}

.primary-btn,
.ghost-btn,
.chip,
.task-toggle,
.ghost-link {
  min-height: 44px;
  border-radius: 8px;
  font-weight: 900;
}

.primary-btn,
.ghost-btn,
.chip,
.task-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
}

.primary-btn {
  padding: 0 18px;
  background: var(--teal);
  color: white;
}

.primary-btn:hover {
  background: var(--teal-dark);
}

.primary-btn svg,
.ghost-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.ghost-btn {
  padding: 0 14px;
  border: 1px solid var(--line);
  background: #fbfcfb;
  color: var(--ink);
}

.ghost-btn:hover {
  border-color: rgba(35, 124, 115, 0.35);
  background: var(--mint);
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 0;
}

.field-error {
  min-height: 22px;
  margin: 0;
  color: #b92d24;
  font-size: 13px;
  font-weight: 800;
}

.privacy-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin-top: 34px;
  padding: 11px 13px;
  border: 1px solid rgba(35, 124, 115, 0.2);
  border-radius: 8px;
  background: var(--mint);
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--teal);
  flex: 0 0 auto;
}

.summary-panel {
  position: relative;
  display: grid;
  gap: 14px;
  min-height: 520px;
  padding: 18px;
  border-radius: 8px;
  background: #eef5f2;
}

.preview-head,
.preview-calendar,
.preview-list {
  border: 1px solid rgba(23, 33, 38, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.preview-head {
  padding: 18px;
}

.small-label {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.preview-head strong {
  display: block;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.05;
}

.preview-head p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.preview-calendar {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.preview-calendar-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.preview-calendar-top span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.preview-calendar-top strong {
  font-size: 18px;
}

.preview-weekdays,
.preview-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.preview-weekdays span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.preview-day {
  display: grid;
  min-height: 34px;
  place-items: center;
  border-radius: 8px;
  background: #f4f7f5;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.preview-day.has-event {
  background: var(--mint);
  color: var(--teal-dark);
}

.preview-day.today {
  background: var(--teal);
  color: #fff;
}

.preview-list {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.preview-list-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
}

.preview-list-item strong {
  display: block;
  font-size: 14px;
}

.preview-list-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.category-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--teal);
}

.category-dot.checkup {
  background: var(--blue);
}

.category-dot.vaccine {
  background: var(--teal);
}

.category-dot.benefit,
.category-dot.birthSupport {
  background: var(--gold);
}

.category-dot.feeding {
  background: var(--coral);
}

.category-dot.shopping {
  background: #78952a;
}

.category-dot.photo {
  position: relative;
  width: 14px;
  height: 10px;
  margin-top: 5px;
  border-radius: 3px;
  background: #a85d89;
}

.category-dot.photo::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 5px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #fff;
}

.category-dot.care {
  background: #6656a4;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  min-height: 118px;
  padding: 18px;
  border-radius: 8px;
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.stat-card strong {
  display: block;
  margin-top: 14px;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.15;
}

.calendar-section {
  overflow: hidden;
}

.calendar-heading {
  align-items: flex-start;
}

.calendar-actions,
.download-actions,
.share-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.icon-btn {
  width: 44px;
  padding: 0;
}

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 16px;
  align-items: start;
}

.calendar-card,
.month-panel {
  border: 1px solid rgba(23, 33, 38, 0.1);
  border-radius: 8px;
  background: var(--surface);
}

.calendar-card {
  padding: 18px;
}

.calendar-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.calendar-card-head h3 {
  margin-top: 4px;
  font-size: clamp(24px, 3vw, 34px);
}

.calendar-meta {
  display: grid;
  justify-items: end;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.calendar-meta strong {
  color: var(--teal-dark);
  font-size: 18px;
}

.weekdays,
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.weekdays {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.weekdays span {
  padding: 0 8px;
}

.weekdays span:first-child {
  color: var(--coral);
}

.month-grid {
  gap: 6px;
}

.day-cell {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 126px;
  padding: 9px;
  border: 1px solid rgba(23, 33, 38, 0.08);
  border-radius: 8px;
  background: #fff;
  cursor: default;
}

.day-cell[data-calendar-day-key] {
  cursor: pointer;
}

.day-cell[data-calendar-day-key]:focus-visible,
.day-pill:focus-visible,
.day-more:focus-visible {
  outline: 3px solid rgba(31, 124, 115, 0.24);
  outline-offset: 2px;
}

.day-cell.outside {
  background: #f0f3f0;
  color: #9aa5a8;
}

.day-cell.today {
  border-color: rgba(23, 107, 99, 0.45);
  box-shadow: inset 0 0 0 2px rgba(23, 107, 99, 0.12);
}

.day-number {
  display: inline-grid;
  width: 30px;
  min-height: 28px;
  place-items: center;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.day-cell.today .day-number {
  background: var(--teal);
  color: #fff;
}

.day-items {
  display: grid;
  gap: 4px;
  align-content: start;
  min-width: 0;
}

.day-pill,
.day-more {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 4px 6px;
  border: 0;
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.day-pill:hover,
.day-more:hover {
  filter: brightness(0.96);
}

.day-pill.done {
  opacity: 0.55;
  text-decoration: line-through;
}

.day-pill.checkup {
  background: var(--sky);
}

.day-pill.vaccine {
  background: var(--mint);
}

.day-pill.benefit {
  background: #fff1c9;
}

.day-pill.birthSupport {
  background: #ffe6d9;
}

.day-pill.feeding {
  background: var(--rose);
}

.day-pill.shopping {
  background: var(--leaf);
}

.day-pill.photo {
  background: #f7e3ef;
}

.day-pill.photo::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 8px;
  margin-right: 4px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  vertical-align: -1px;
}

.day-pill.care {
  background: var(--lavender);
}

.day-pill.wonderWeek {
  background: linear-gradient(135deg, #efe2ff, #ffe5f5);
  color: #57399c;
}

.day-more {
  color: var(--muted);
  background: #f2f5f4;
}

.wonder-band-stack {
  display: grid;
  gap: 2px;
  margin: 0 -10px 6px;
}

.wonder-band-stack:empty {
  margin: 0;
}

.wonder-band {
  display: block;
  min-height: 16px;
  padding: 2px 8px;
  border: 0;
  background: linear-gradient(135deg, #d8c4ff 0%, #f4c8e7 100%);
  color: #4a2a8c;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  box-shadow: inset 0 -1px 0 rgba(74, 42, 140, 0.18);
}

.wonder-band.is-start {
  border-top-left-radius: 999px;
  border-bottom-left-radius: 999px;
  padding-left: 12px;
}

.wonder-band.is-end {
  border-top-right-radius: 999px;
  border-bottom-right-radius: 999px;
  padding-right: 12px;
}

.wonder-band.is-start.is-end {
  border-radius: 999px;
}

.wonder-band:hover,
.wonder-band:focus-visible {
  filter: brightness(0.96);
  outline: none;
}

.wonder-band:focus-visible {
  box-shadow:
    inset 0 -1px 0 rgba(74, 42, 140, 0.18),
    0 0 0 2px rgba(74, 42, 140, 0.32);
}

.category-badge.wonderWeek,
.category-dot.wonderWeek {
  background: linear-gradient(135deg, #efe2ff, #ffe5f5);
  color: #4a2a8c;
}

.category-dot.wonderWeek {
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border-radius: 999px;
}

.wonder-meta {
  margin: 4px 0 0;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.wonder-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.wonder-detail-block {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(74, 42, 140, 0.12);
  border-radius: 10px;
  background: rgba(239, 226, 255, 0.32);
}

.wonder-detail-block strong {
  color: #4a2a8c;
  font-size: 12px;
  font-weight: 900;
}

.wonder-detail-block ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}

.wonder-detail-block li {
  margin-bottom: 2px;
}

.wonder-back-heading {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.wonder-back-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wonder-back-list a {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3eefb;
  color: #4a2a8c;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.wonder-back-list a:hover {
  filter: brightness(0.96);
}

.wonder-section {
  display: grid;
  gap: 18px;
  margin-top: 24px;
  padding: 20px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(239, 226, 255, 0.32) 0%, rgba(255, 229, 245, 0.18) 100%);
  border: 1px solid rgba(74, 42, 140, 0.1);
}

.wonder-section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
}

.wonder-section-head h3 {
  margin: 6px 0 4px;
  color: var(--ink);
}

.wonder-section-head .section-copy {
  margin: 0;
  max-width: 640px;
}

.wonder-section-refs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wonder-section-refs a {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  color: #4a2a8c;
  border: 1px solid rgba(74, 42, 140, 0.18);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.wonder-section-refs a:hover {
  border-color: rgba(74, 42, 140, 0.4);
}

.wonder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.wonder-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(74, 42, 140, 0.12);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.wonder-card:hover,
.wonder-card:focus-visible {
  border-color: rgba(74, 42, 140, 0.32);
  box-shadow: 0 10px 22px rgba(74, 42, 140, 0.12);
  transform: translateY(-1px);
  outline: none;
}

.wonder-card.now {
  border-color: rgba(74, 42, 140, 0.4);
  background: linear-gradient(180deg, rgba(239, 226, 255, 0.6) 0%, #fff 90%);
}

.wonder-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.wonder-leap-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d8c4ff, #f4c8e7);
  color: #4a2a8c;
  font-size: 11px;
  font-weight: 900;
}

.wonder-state {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.wonder-state.now {
  background: var(--ink);
  color: #fff;
}

.wonder-state.upcoming {
  background: #f2f5f4;
  color: var(--teal-dark);
}

.wonder-state.past {
  background: #f4eeee;
  color: #8a5d59;
}

.wonder-card h4 {
  margin: 2px 0 0;
  font-size: 15px;
  color: var(--ink);
}

.wonder-card-range {
  margin: 0;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.wonder-card-summary {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.wonder-note {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  border: 1px dashed rgba(74, 42, 140, 0.2);
}

.calendar-detail-panel {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(23, 33, 38, 0.09);
  border-radius: 8px;
  background: #fbfcfb;
}

.calendar-detail-panel h4 {
  margin: 0;
  font-size: 16px;
}

.calendar-detail-panel > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.calendar-detail-list {
  display: grid;
  gap: 8px;
}

.calendar-detail-item {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(23, 33, 38, 0.08);
  border-radius: 8px;
  background: #fff;
}

.calendar-detail-item span {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.calendar-detail-item strong {
  color: var(--ink);
}

.calendar-detail-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.calendar-detail-item .calendar-detail-action {
  color: var(--ink);
  font-weight: 800;
}

.calendar-detail-item a {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
}

.month-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  position: sticky;
  top: 82px;
}

.month-panel-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.month-panel-top strong {
  font-size: 24px;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1ef;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
  transition: width 180ms ease;
}

.month-focus-list {
  display: grid;
  gap: 10px;
}

.focus-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(23, 33, 38, 0.08);
  border-radius: 8px;
  background: #fbfcfb;
}

.focus-item.done {
  opacity: 0.72;
}

.focus-item h3 {
  margin-top: 8px;
  font-size: 15px;
}

.focus-item p,
.download-note,
.focus-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.download-actions {
  justify-content: stretch;
}

.download-actions .primary-btn,
.download-actions .ghost-btn {
  flex: 1 1 150px;
}

.section-block {
  margin: 20px 0;
  padding: clamp(20px, 4vw, 34px);
  border-radius: 8px;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.chip {
  padding: 0 13px;
  border: 1px solid var(--line);
  background: #fbfcfb;
  color: var(--muted);
}

.chip.active,
.chip:hover {
  border-color: transparent;
  background: var(--ink);
  color: white;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.event-card,
.benefit-card,
.tool-card,
.source-card,
.share-box {
  border: 1px solid rgba(31, 42, 46, 0.1);
  border-radius: 8px;
  background: #fff;
}

.event-card {
  display: grid;
  min-height: 300px;
  padding: 18px;
  gap: 14px;
}

.event-card.done {
  background: #f6f8f6;
}

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

.category-badge,
.time-badge,
.risk-badge,
.tool-state {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.category-badge.checkup {
  background: var(--sky);
  color: var(--blue);
}

.category-badge.vaccine {
  background: var(--mint);
  color: var(--teal-dark);
}

.category-badge.benefit {
  background: #fff1c9;
  color: #7d5a0e;
}

.category-badge.birthSupport {
  background: #ffe6d9;
  color: #9e432d;
}

.category-badge.feeding {
  background: var(--rose);
  color: #9e432d;
}

.category-badge.shopping {
  background: #e9f2d7;
  color: #526b1f;
}

.category-badge.photo {
  position: relative;
  gap: 5px;
  background: #f7e3ef;
  color: #88426c;
}

.category-badge.photo::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 9px;
  border: 1.6px solid currentColor;
  border-radius: 2px;
}

.category-badge.care {
  background: #e8e4f5;
  color: #57479d;
}

.time-badge.now {
  background: var(--ink);
  color: #fff;
}

.time-badge.upcoming {
  background: #f2f5f4;
  color: var(--teal-dark);
}

.time-badge.past {
  background: #f4eeee;
  color: #8a5d59;
}

.event-title {
  display: grid;
  gap: 8px;
}

.event-title h3 {
  min-height: 46px;
}

.date-window {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.event-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.level-badge {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border-radius: 8px;
  background: #f2f5f4;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.item-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.item-list span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(31, 42, 46, 0.08);
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.event-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.source-link,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.source-link:hover,
.ghost-link:hover {
  text-decoration: underline;
}

.task-toggle {
  width: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}

.task-toggle[aria-pressed="true"] {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 22px;
  align-items: start;
}

.section-copy {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.region-control {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding: 14px;
  border: 1px solid rgba(35, 124, 115, 0.18);
  border-radius: 8px;
  background: var(--mint);
}

.region-control label {
  font-size: 13px;
  font-weight: 900;
}

.region-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.region-control p {
  margin: 0;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.benefit-list {
  display: grid;
  gap: 12px;
}

.benefit-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 16px;
}

.benefit-card.highlight {
  border-color: rgba(35, 124, 115, 0.28);
  background: #f6fbf9;
}

.benefit-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.hospitals-section {
  display: grid;
  gap: 16px;
}

.emergency-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(217, 106, 78, 0.22);
  border-radius: 8px;
  background: #fff5f0;
}

.emergency-strip strong {
  color: #8b3424;
}

.emergency-strip span {
  color: var(--muted);
  line-height: 1.5;
}

.emergency-strip a {
  color: var(--teal-dark);
  font-weight: 900;
  text-decoration: none;
}

.hospital-status {
  min-height: 22px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
}

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

.hospital-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(23, 33, 38, 0.1);
  border-radius: 8px;
  background: #fff;
}

.hospital-card h3 {
  font-size: 17px;
}

.hospital-card dl {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 6px 10px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.hospital-card dt {
  color: var(--ink);
  font-weight: 900;
}

.hospital-card dd {
  margin: 0;
}

.hospital-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.hospital-links a {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.community-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1.38fr);
  gap: 16px;
  align-items: start;
}

.community-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -6px 0 14px;
}

.category-chip {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.category-chip.active {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.question-form,
.question-card {
  border: 1px solid rgba(23, 33, 38, 0.1);
  border-radius: 8px;
  background: #fff;
}

.question-form {
  display: grid;
  gap: 10px;
  padding: 16px;
  position: sticky;
  top: 82px;
}

.question-form label {
  font-size: 13px;
  font-weight: 900;
}

.question-form input,
.answer-form input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.question-list {
  display: grid;
  gap: 12px;
}

.question-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.question-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.question-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.question-body {
  margin: 0;
  color: var(--ink);
  line-height: 1.6;
  white-space: pre-wrap;
}

.answer-list {
  display: grid;
  gap: 8px;
}

.answer-item {
  padding: 12px;
  border: 1px solid rgba(23, 33, 38, 0.08);
  border-radius: 8px;
  background: #fbfcfb;
}

.answer-item.ai {
  border-color: rgba(23, 107, 99, 0.2);
  background: #f2faf7;
}

.answer-item span {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.answer-item p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
  white-space: pre-wrap;
}

.answer-form {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(23, 33, 38, 0.08);
}

.risk-badge {
  background: #f2f5f4;
  color: var(--muted);
  white-space: nowrap;
}

.risk-badge.high {
  background: #fff1c9;
  color: #7d5a0e;
}

.risk-badge.now {
  background: var(--teal);
  color: #fff;
}

.policy-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(23, 33, 38, 0.36);
}

.policy-modal[hidden] {
  display: none;
}

.policy-dialog {
  display: grid;
  width: min(420px, 100%);
  gap: 12px;
  padding: 20px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(23, 33, 38, 0.18);
}

.policy-dialog h3 {
  margin: 0;
}

.policy-dialog p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.doctor-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 35;
  display: grid;
  grid-template-rows: auto auto;
  align-content: center;
  place-items: center;
  width: 78px;
  height: 78px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.34), transparent 28px),
    linear-gradient(145deg, #1f8278, var(--teal-dark));
  color: #fff;
  box-shadow:
    0 18px 34px rgba(15, 81, 75, 0.28),
    0 8px 16px rgba(23, 33, 38, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  cursor: pointer;
  font-weight: 900;
  isolation: isolate;
  transform: translateY(0);
  animation: doctorFloat 3.8s ease-in-out infinite;
}

.doctor-fab::before {
  content: "";
  position: absolute;
  inset: -8px;
  z-index: -1;
  border: 1px solid rgba(23, 107, 99, 0.24);
  border-radius: inherit;
  background: rgba(23, 107, 99, 0.08);
  animation: doctorPulse 2.4s ease-out infinite;
}

.doctor-fab:hover {
  box-shadow:
    0 24px 44px rgba(15, 81, 75, 0.34),
    0 10px 20px rgba(23, 33, 38, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.doctor-fab:focus-visible {
  outline: 3px solid rgba(217, 106, 78, 0.42);
  outline-offset: 5px;
}

.doctor-fab-text {
  display: block;
  font-size: 13px;
  line-height: 1.05;
  letter-spacing: 0;
  white-space: nowrap;
}

.doctor-fab-sub {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  margin-top: 5px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

@keyframes doctorFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

@keyframes doctorPulse {
  0% {
    opacity: 0.72;
    transform: scale(0.94);
  }

  70%,
  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .doctor-fab,
  .doctor-fab::before {
    animation: none;
  }
}

.doctor-panel {
  position: fixed;
  right: 22px;
  bottom: 86px;
  z-index: 36;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(420px, calc(100vw - 28px));
  height: min(640px, calc(100vh - 118px));
  overflow: hidden;
  border: 1px solid rgba(23, 33, 38, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 90px rgba(23, 33, 38, 0.24);
}

.doctor-panel[hidden] {
  display: none;
}

.doctor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid rgba(23, 33, 38, 0.08);
}

.doctor-messages {
  display: grid;
  align-content: start;
  gap: 10px;
  overflow-y: auto;
  padding: 14px;
  background: #fbfcfb;
}

.doctor-message {
  width: fit-content;
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.doctor-message.assistant {
  background: #eef7f4;
}

.doctor-message.user {
  justify-self: end;
  background: var(--teal);
  color: #fff;
}

.doctor-citations {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.doctor-citations a {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.doctor-form {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(23, 33, 38, 0.08);
}

.doctor-form textarea {
  min-height: 88px;
}

.doctor-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.doctor-actions span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.share-box {
  padding: 16px;
}

.share-presets {
  justify-content: flex-start;
  margin-bottom: 12px;
}

textarea {
  width: 100%;
  resize: vertical;
  min-height: 170px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--ink);
  line-height: 1.55;
}

.share-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.copy-status {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
}

.tool-grid,
.source-grid,
.hospital-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

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

.enhanced-tools {
  grid-template-columns: minmax(220px, 0.8fr) minmax(320px, 1.4fr) minmax(220px, 0.8fr);
}

.tool-card,
.source-card {
  display: grid;
  gap: 12px;
  min-height: 210px;
  padding: 18px;
}

.tool-card p,
.source-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.poop-colors,
.wave-bars,
.mini-calendar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.poop {
  width: 30px;
  height: 30px;
  border: 2px solid rgba(31, 42, 46, 0.12);
  border-radius: 50%;
  cursor: pointer;
}

.poop.green {
  background: #799262;
}

.poop.mustard {
  background: #c59b42;
}

.poop.red {
  background: #c64036;
}

.poop.white {
  background: #f5f3e8;
}

.poop.black {
  background: #1f2324;
}

.wave-bars span {
  width: 10px;
  border-radius: 8px;
  background: var(--blue);
}

.wave-bars span:nth-child(1),
.wave-bars span:nth-child(5) {
  height: 20px;
}

.wave-bars span:nth-child(2),
.wave-bars span:nth-child(4) {
  height: 34px;
}

.wave-bars span:nth-child(3) {
  height: 44px;
  background: var(--coral);
}

.mini-calendar {
  display: grid;
  grid-template-columns: repeat(4, 34px);
}

.mini-calendar span {
  height: 38px;
  border: 1px solid rgba(31, 42, 46, 0.12);
  border-radius: 8px;
  background: var(--mint);
}

.mini-calendar span:nth-child(2) {
  background: var(--rose);
}

.mini-calendar span:nth-child(3) {
  background: var(--sky);
}

.tool-state {
  margin-top: auto;
  background: #f2f5f4;
  color: var(--teal-dark);
}

.audio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.file-picker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--teal-dark);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.file-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.audio-tool audio {
  width: 100%;
}

.analysis-box {
  min-height: 120px;
  padding: 12px;
  border: 1px solid rgba(23, 33, 38, 0.08);
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.source-date {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.source-card {
  min-height: 190px;
}

.source-card a {
  align-self: end;
  color: var(--teal-dark);
  font-weight: 900;
  text-decoration: none;
}

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

/* Production polish pass: tighten surfaces, hierarchy, and interaction states. */
body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0, rgba(247, 248, 245, 0.94) 260px),
    linear-gradient(90deg, rgba(23, 107, 99, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(23, 107, 99, 0.025) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 44px 44px, 44px 44px, auto;
}

.topbar {
  background: rgba(250, 248, 242, 0.9);
  box-shadow: 0 8px 24px rgba(23, 33, 38, 0.05);
}

.brand {
  min-height: 42px;
}

.brand > span:last-child {
  font-size: 19px;
  letter-spacing: 0;
}

.nav-links {
  padding: 3px;
  border: 1px solid rgba(23, 33, 38, 0.06);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
}

.nav-links a {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 7px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.hero {
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
  padding: 34px 0 26px;
}

.input-panel,
.summary-panel,
.stat-card,
.calendar-card,
.month-panel,
.event-card,
.benefit-card,
.hospital-card,
.question-form,
.question-card,
.tool-card,
.source-card,
.share-box,
.policy-dialog,
.doctor-panel {
  border-color: rgba(23, 33, 38, 0.08);
  box-shadow: var(--shadow-soft);
}

.input-panel {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 253, 251, 0.98)),
    var(--surface);
  box-shadow: var(--shadow-panel);
}

.input-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--teal), var(--coral), var(--gold));
}

.input-panel .eyebrow,
.section-heading .eyebrow {
  color: var(--teal-dark);
}

h1 {
  max-width: 720px;
  font-size: clamp(42px, 6vw, 72px);
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  color: #5d686d;
}

.birthday-form {
  padding: 14px;
  border: 1px solid rgba(23, 33, 38, 0.08);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 26px rgba(23, 33, 38, 0.05);
}

.birthday-form input,
.question-form input,
.answer-form input,
select,
.region-control input,
textarea {
  border-color: rgba(23, 33, 38, 0.12);
  background: #fff;
}

.birthday-form input:focus,
textarea:focus,
select:focus {
  border-color: rgba(23, 107, 99, 0.45);
  box-shadow: var(--ring);
  outline: 0;
}

.primary-btn {
  background: linear-gradient(180deg, #1f766d, var(--teal-dark));
  box-shadow: 0 10px 20px rgba(15, 81, 75, 0.16);
}

.primary-btn:hover {
  background: linear-gradient(180deg, #1b6d64, #0b453f);
}

.ghost-btn {
  background: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.privacy-strip {
  background: #eff8f4;
  box-shadow: inset 0 0 0 1px rgba(23, 107, 99, 0.08);
}

.summary-panel {
  min-height: 500px;
  background:
    linear-gradient(180deg, rgba(238, 247, 244, 0.95), rgba(247, 243, 234, 0.82)),
    #eef5f2;
  box-shadow: var(--shadow-panel);
}

.preview-head,
.preview-calendar,
.preview-list {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 22px rgba(23, 33, 38, 0.045);
}

.preview-head strong {
  color: var(--teal-dark);
}

.preview-day.has-event {
  position: relative;
}

.preview-day.has-event::after {
  content: "";
  position: absolute;
  bottom: 5px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
}

.stats-grid {
  gap: 14px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--teal);
}

.stat-card:nth-child(2)::before {
  background: var(--coral);
}

.stat-card:nth-child(3)::before {
  background: var(--gold);
}

.stat-card:nth-child(4)::before {
  background: var(--blue);
}

.section-block {
  margin: 24px 0;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.calendar-card,
.month-panel {
  background: rgba(255, 255, 255, 0.95);
}

.day-cell {
  background: #fff;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.day-cell[data-calendar-day-key]:hover {
  border-color: rgba(23, 107, 99, 0.25);
  box-shadow: 0 8px 18px rgba(23, 33, 38, 0.06);
  transform: translateY(-1px);
}

.day-pill,
.day-more {
  border: 1px solid rgba(23, 33, 38, 0.035);
}

.calendar-detail-panel {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(23, 33, 38, 0.08);
  border-radius: var(--radius);
  background: #fbfcfb;
}

.chip {
  min-height: 38px;
  background: rgba(255, 255, 255, 0.84);
}

.chip.active,
.chip:hover {
  box-shadow: 0 8px 18px rgba(23, 33, 38, 0.08);
}

.event-card,
.benefit-card,
.hospital-card,
.question-card,
.tool-card,
.source-card {
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.event-card:hover,
.benefit-card:hover,
.hospital-card:hover,
.question-card:hover,
.tool-card:hover,
.source-card:hover {
  border-color: rgba(23, 107, 99, 0.18);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.category-badge,
.time-badge,
.risk-badge,
.tool-state,
.level-badge {
  letter-spacing: 0;
}

.event-actions {
  align-self: end;
}

.benefit-card.highlight,
.region-control,
.emergency-strip {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.48);
}

.community-categories,
.share-presets,
.segmented {
  align-items: center;
}

.question-form {
  box-shadow: var(--shadow-soft);
}

.doctor-fab {
  box-shadow:
    0 22px 44px rgba(15, 81, 75, 0.32),
    0 8px 18px rgba(23, 33, 38, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 34px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .hero,
  .split-section,
  .calendar-layout,
  .community-layout {
    grid-template-columns: 1fr;
  }

  .month-panel,
  .question-form {
    position: static;
  }

  .summary-panel,
  .input-panel {
    min-height: auto;
  }

  .stats-grid,
  .event-grid,
  .tool-grid,
  .source-grid,
  .hospital-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
    width: min(100% - 24px, 1180px);
    padding: 12px 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  main,
  .footer {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    padding-top: 20px;
  }

  .input-panel {
    padding: 22px;
  }

  h1 {
    font-size: 40px;
  }

  .lead {
    font-size: 15px;
  }

  .form-row,
  .region-fields,
  .stats-grid,
  .calendar-layout,
  .event-grid,
  .tool-grid,
  .source-grid,
  .hospital-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .calendar-card-head,
  .question-head,
  .emergency-strip,
  .benefit-card,
  .share-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .question-badges {
    justify-content: flex-start;
  }

  .calendar-actions,
  .calendar-meta {
    justify-content: flex-start;
    justify-items: start;
  }

  .calendar-card {
    overflow-x: auto;
  }

  .weekdays,
  .month-grid,
  .calendar-detail-panel {
    min-width: 760px;
  }

  .segmented {
    justify-content: flex-start;
  }

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

  .doctor-fab {
    right: 14px;
    bottom: 14px;
    width: 70px;
    height: 70px;
  }

  .doctor-fab-text {
    font-size: 12px;
  }

  .doctor-fab-sub {
    min-height: 20px;
    margin-top: 4px;
    padding: 0 9px;
    font-size: 11px;
  }

  .doctor-panel {
    right: 14px;
    bottom: 82px;
    width: calc(100vw - 28px);
    height: min(620px, calc(100vh - 96px));
  }
}

/* Figma-inspired SaaS refinement: denser product shell, clearer scan hierarchy. */
:root {
  --bg: #f5f7fb;
  --surface-strong: #f9fbff;
  --ink: #121a22;
  --muted: #66727e;
  --line: #dbe3ea;
  --teal: #147267;
  --teal-dark: #0b514b;
  --coral: #e16f55;
  --gold: #c08a18;
  --blue: #356fb0;
  --mint: #e2f2ee;
  --rose: #fde7df;
  --sky: #e4f0fd;
  --lavender: #ece8fb;
  --leaf: #edf5dd;
  --shadow: 0 16px 40px rgba(18, 26, 34, 0.1);
  --shadow-soft: 0 8px 22px rgba(18, 26, 34, 0.07);
  --shadow-panel: 0 24px 70px rgba(18, 26, 34, 0.12);
}

body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0, rgba(245, 247, 251, 0.98) 330px),
    linear-gradient(90deg, rgba(20, 114, 103, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(53, 111, 176, 0.025) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 48px 48px, 48px 48px, auto;
}

.topbar {
  background: rgba(249, 251, 255, 0.88);
}

.topbar-inner,
main,
.footer {
  width: min(1200px, calc(100% - 40px));
}

.brand-mark {
  border-radius: 8px;
  box-shadow:
    0 12px 26px rgba(11, 81, 75, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.nav-links {
  gap: 2px;
  padding: 4px;
  border-color: rgba(18, 26, 34, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.nav-links a {
  min-height: 36px;
  color: #5f6a75;
  font-size: 13px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--teal-dark);
}

.hero {
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.72fr);
  gap: 18px;
  padding: 32px 0 20px;
}

.input-panel,
.summary-panel {
  min-height: 470px;
}

.input-panel {
  display: grid;
  align-content: center;
  padding: clamp(24px, 4vw, 44px);
}

.input-panel::before {
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--blue), var(--coral), var(--gold));
}

h1 {
  max-width: 640px;
  font-size: clamp(34px, 4.7vw, 58px);
  line-height: 1.05;
  overflow-wrap: break-word;
  word-break: keep-all;
}

.lead {
  max-width: 600px;
  margin: 18px 0 22px;
  font-size: 16px;
}

.hero-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 620px;
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid rgba(18, 26, 34, 0.08);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 22px rgba(18, 26, 34, 0.045);
}

.hero-proof-grid div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px 14px;
}

.hero-proof-grid div + div {
  border-left: 1px solid rgba(18, 26, 34, 0.08);
}

.hero-proof-grid span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.hero-proof-grid strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.birthday-form {
  max-width: 620px;
  padding: 14px;
}

.form-row {
  grid-template-columns: minmax(0, 1fr) 92px;
}

.primary-btn,
.ghost-btn,
.chip,
.task-toggle,
.ghost-link {
  min-height: 42px;
}

.summary-panel {
  align-content: start;
  padding: 16px;
  border-color: rgba(20, 114, 103, 0.12);
  background:
    linear-gradient(180deg, rgba(231, 244, 240, 0.96), rgba(247, 249, 252, 0.92)),
    #eef5f2;
}

.summary-panel::before {
  content: "";
  position: absolute;
  inset: 16px 16px auto;
  height: 32px;
  border-radius: var(--radius) var(--radius) 0 0;
  background:
    linear-gradient(90deg, rgba(20, 114, 103, 0.11), rgba(53, 111, 176, 0.08)),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(18, 26, 34, 0.04) 34px 35px);
  pointer-events: none;
}

.preview-head,
.preview-calendar,
.preview-list {
  position: relative;
}

.preview-head {
  margin-top: 18px;
}

.preview-head strong {
  font-size: clamp(30px, 3.4vw, 42px);
}

.preview-grid {
  gap: 6px;
}

.preview-day {
  min-height: 36px;
  border: 1px solid transparent;
  background: #f4f7f8;
}

.preview-day.has-event {
  border-color: rgba(20, 114, 103, 0.1);
}

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

.stat-card {
  min-height: 104px;
  padding: 16px;
}

.stat-card strong {
  margin-top: 10px;
  font-size: clamp(20px, 2vw, 27px);
}

.section-block {
  margin: 22px 0;
  border-color: rgba(18, 26, 34, 0.08);
  background: rgba(255, 255, 255, 0.82);
}

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

.calendar-layout {
  grid-template-columns: minmax(0, 1.42fr) minmax(300px, 0.58fr);
}

.calendar-card,
.month-panel,
.question-form,
.question-card,
.event-card,
.benefit-card,
.tool-card,
.source-card,
.share-box {
  background: rgba(255, 255, 255, 0.96);
}

.day-cell {
  min-height: 118px;
  padding: 8px;
}

.day-pill,
.day-more {
  padding: 5px 7px;
  font-size: 10.5px;
}

.calendar-detail-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 255, 0.98)),
    #fff;
}

.month-panel {
  top: 76px;
}

.event-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.event-card {
  min-height: 280px;
  padding: 16px;
}

.event-title h3 {
  min-height: 42px;
}

.category-badge,
.time-badge,
.risk-badge,
.tool-state,
.level-badge {
  border-radius: 7px;
}

.community-layout {
  grid-template-columns: minmax(286px, 0.58fr) minmax(0, 1.42fr);
}

.doctor-fab {
  right: max(22px, calc((100vw - 1200px) / 2 + 8px));
  width: 82px;
  height: 82px;
}

.doctor-panel {
  right: max(22px, calc((100vw - 1200px) / 2 + 8px));
}

@media (max-width: 980px) {
  .topbar-inner,
  main,
  .footer {
    width: min(100% - 28px, 1200px);
  }

  .hero,
  .calendar-layout,
  .community-layout {
    grid-template-columns: 1fr;
  }

  .input-panel {
    align-content: start;
  }
}

@media (max-width: 700px) {
  .topbar-inner,
  main,
  .footer {
    width: min(100% - 24px, 1200px);
  }

  .nav-links {
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .hero {
    padding-top: 18px;
  }

  .input-panel {
    padding: 22px;
  }

  h1 {
    font-size: 37px;
  }

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

  .hero-proof-grid div + div {
    border-top: 1px solid rgba(18, 26, 34, 0.08);
    border-left: 0;
  }

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

  .summary-panel {
    padding: 14px;
  }

  .stats-grid,
  .event-grid,
  .tool-grid,
  .source-grid,
  .hospital-grid {
    grid-template-columns: 1fr;
  }

  .day-cell {
    min-height: 116px;
  }

  .doctor-fab,
  .doctor-panel {
    right: 14px;
  }

  .doctor-fab {
    top: 134px;
    bottom: auto;
    width: 64px;
    height: 64px;
  }

  .doctor-fab-text {
    font-size: 11px;
  }

  .doctor-fab-sub {
    min-height: 18px;
    margin-top: 3px;
    padding: 0 8px;
    font-size: 10px;
  }

  .doctor-panel {
    top: 132px;
    bottom: auto;
    height: min(620px, calc(100vh - 148px));
  }
}

/* SaaS production refinement: Saasto-inspired marketing surfaces. */

.hospital-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.vaccine-strip {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(20, 114, 103, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(231, 244, 240, 0.85), rgba(255, 255, 255, 0.95));
  box-shadow: 0 12px 28px rgba(20, 114, 103, 0.08);
}

.vaccine-strip[hidden] {
  display: none;
}

.vaccine-strip-head {
  display: grid;
  gap: 6px;
}

.vaccine-strip-head p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
}

.vaccine-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vaccine-filter .chip {
  min-height: 36px;
  font-size: 13px;
}

.vaccine-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vaccine-link {
  display: inline-grid;
  gap: 2px;
  padding: 10px 14px;
  border: 1px solid rgba(20, 114, 103, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.vaccine-link:hover,
.vaccine-link:focus-visible {
  border-color: rgba(20, 114, 103, 0.5);
  box-shadow: 0 8px 16px rgba(20, 114, 103, 0.16);
  transform: translateY(-1px);
}

.vaccine-link span:last-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.hospital-card {
  position: relative;
}

.hospital-card.is-dimmed {
  opacity: 0.55;
}

.profile-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  background: #f1f4f7;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.profile-badge.publicHealthCenter {
  background: rgba(20, 114, 103, 0.14);
  color: var(--teal-dark);
}

.profile-badge.generalHospital {
  background: rgba(53, 111, 176, 0.14);
  color: var(--blue);
}

.profile-badge.pediatricClinic {
  background: rgba(217, 106, 78, 0.16);
  color: #8b3424;
}

.profile-badge.familyClinic {
  background: rgba(192, 138, 24, 0.16);
  color: #7d5a0e;
}

.vaccine-support {
  display: grid;
  gap: 6px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed rgba(18, 26, 34, 0.1);
}

.vaccine-support-title {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.vaccine-support-row {
  display: grid;
  grid-template-columns: minmax(98px, auto) minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.45;
}

.vaccine-level {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 900;
  white-space: nowrap;
}

.vaccine-level::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7);
}

.vaccine-level.high {
  background: rgba(20, 114, 103, 0.14);
  color: var(--teal-dark);
}

.vaccine-level.likely {
  background: rgba(192, 138, 24, 0.18);
  color: #7d5a0e;
}

.vaccine-level.check {
  background: rgba(102, 114, 126, 0.16);
  color: #4f5963;
}

.vaccine-level.unlikely {
  background: rgba(217, 106, 78, 0.14);
  color: #8b3424;
}

.vaccine-support-note {
  color: var(--muted);
}

@media (max-width: 700px) {
  .vaccine-support-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 16px;
  z-index: 60;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  transition: top 140ms ease;
}

.skip-link:focus {
  top: 12px;
  outline: 3px solid rgba(217, 106, 78, 0.45);
  outline-offset: 2px;
}

.topbar-inner {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(18, 26, 34, 0.1);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  gap: 4px;
  flex-direction: column;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-links {
  justify-self: center;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

.nav-cta .ghost-btn,
.nav-cta .primary-btn {
  min-height: 38px;
  padding: 0 14px;
  font-size: 13px;
}

.nav-cta .ghost-btn {
  border-radius: 8px;
}

.nav-cta .primary-btn svg {
  width: 16px;
  height: 16px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 12px;
  border: 1px solid rgba(20, 114, 103, 0.2);
  border-radius: 999px;
  background: rgba(226, 242, 238, 0.85);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(20, 114, 103, 0.18);
}

.trust-strip {
  display: grid;
  gap: 16px;
  margin: 18px 0 4px;
  padding: 22px;
  border: 1px solid rgba(18, 26, 34, 0.07);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 247, 251, 0.94));
  box-shadow: var(--shadow-soft);
}

.trust-strip-lede {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.trust-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border: 1px solid rgba(18, 26, 34, 0.07);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.trust-strip-grid > div {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 18px 20px;
  min-width: 0;
}

.trust-strip-grid > div + div {
  border-left: 1px solid rgba(18, 26, 34, 0.07);
}

.trust-strip-grid dt {
  margin: 0;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.trust-strip-grid dd {
  margin: 0;
  color: var(--ink);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 900;
  line-height: 1.1;
}

.trust-strip-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.how-it-works .section-heading {
  margin-bottom: 24px;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px;
  border: 1px solid rgba(18, 26, 34, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.step-card:hover {
  border-color: rgba(20, 114, 103, 0.2);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.step-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

.step-card:nth-child(2)::before {
  background: linear-gradient(90deg, var(--blue), var(--coral));
}

.step-card:nth-child(3)::before {
  background: linear-gradient(90deg, var(--coral), var(--gold));
}

.step-index {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(20, 114, 103, 0.1);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.step-card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.step-card .ghost-link {
  margin-top: 4px;
  justify-self: start;
}

.faq-section .faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid rgba(18, 26, 34, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 16px rgba(18, 26, 34, 0.04);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.faq-item[open] {
  border-color: rgba(20, 114, 103, 0.22);
  box-shadow: 0 12px 28px rgba(18, 26, 34, 0.06);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  color: var(--ink);
  cursor: pointer;
  font-size: 16px;
  font-weight: 900;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  transition: transform 200ms ease;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 1px;
}

.faq-icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

.faq-icon::after {
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
  transition: transform 200ms ease, opacity 200ms ease;
}

.faq-item[open] .faq-icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.faq-item p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
  line-height: 1.65;
}

.faq-item code {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(18, 26, 34, 0.07);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.cta-banner {
  margin: 26px 0 18px;
  padding: 0;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 0% 100%, rgba(217, 106, 78, 0.18), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(53, 111, 176, 0.16), transparent 55%),
    linear-gradient(135deg, #0e423d 0%, #0b514b 60%, #134e88 100%);
  color: #fff;
  box-shadow: 0 24px 48px rgba(11, 81, 75, 0.22);
}

.cta-banner-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  align-items: center;
  gap: 24px;
  padding: clamp(28px, 4vw, 44px);
}

.cta-banner .eyebrow {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
}

.cta-banner h2 {
  max-width: 520px;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.18;
  color: #fff;
}

.cta-banner p {
  margin: 12px 0 0;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.cta-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.cta-banner-actions .primary-btn {
  background: linear-gradient(180deg, #f5a085, var(--coral));
  color: #2a0e07;
  box-shadow: 0 12px 26px rgba(217, 106, 78, 0.36);
  text-decoration: none;
}

.cta-banner-actions .primary-btn:hover {
  background: linear-gradient(180deg, #f6b29c, #e07d63);
}

.cta-banner-actions .ghost-btn {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
}

.cta-banner-actions .ghost-btn:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.16);
}

.footer {
  width: 100%;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(18, 26, 34, 0.08);
  background: linear-gradient(180deg, rgba(247, 248, 245, 0.96), #f5f7fb 70%);
  color: var(--ink);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 28px;
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 32px;
}

.footer-brand p {
  max-width: 380px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.footer-brand .brand {
  font-size: 18px;
}

.footer-meta {
  margin-top: 14px !important;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.footer-nav h4 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-nav ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: color 140ms ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--teal-dark);
}

.footer-bottom {
  border-top: 1px solid rgba(18, 26, 34, 0.06);
  background: rgba(255, 255, 255, 0.5);
}

.footer-bottom p {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.footer-credits {
  border-top: 1px dashed rgba(18, 26, 34, 0.08);
  color: #8a939c !important;
  font-weight: 800;
  text-align: center;
}

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

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .step-card,
  .event-card,
  .benefit-card,
  .hospital-card,
  .question-card,
  .tool-card,
  .source-card {
    transition: none;
  }
}

@media (max-width: 980px) {
  .topbar-inner {
    grid-template-columns: auto auto auto;
  }

  .nav-toggle {
    display: inline-flex;
    order: 3;
  }

  .nav-cta {
    display: none;
  }

  .nav-links {
    grid-column: 1 / -1;
    order: 4;
    flex-wrap: wrap;
    gap: 6px;
    overflow: hidden;
    max-height: 0;
    padding: 0;
    border-color: transparent;
    background: transparent;
    transition: max-height 220ms ease, padding 220ms ease;
  }

  .nav-links.is-open {
    max-height: 360px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(18, 26, 34, 0.08);
    box-shadow: 0 10px 24px rgba(18, 26, 34, 0.06);
  }

  .nav-links a {
    flex: 1 1 calc(33.333% - 6px);
    text-align: center;
    min-height: 40px;
    padding: 0 10px;
    border-radius: 8px;
  }

  .nav-links a:hover,
  .nav-links a:focus-visible {
    background: rgba(20, 114, 103, 0.1);
  }

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

  .trust-strip-grid > div + div {
    border-left: 0;
  }

  .trust-strip-grid > div:nth-child(2),
  .trust-strip-grid > div:nth-child(4) {
    border-left: 1px solid rgba(18, 26, 34, 0.07);
  }

  .trust-strip-grid > div:nth-child(3),
  .trust-strip-grid > div:nth-child(4) {
    border-top: 1px solid rgba(18, 26, 34, 0.07);
  }

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

  .cta-banner-inner {
    grid-template-columns: 1fr;
  }

  .cta-banner-actions {
    justify-content: flex-start;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
    padding: 36px 0 24px;
  }
}

@media (max-width: 700px) {
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .topbar-inner {
    grid-template-columns: auto 1fr auto;
    flex-direction: row;
    align-items: center;
  }

  .topbar-inner > .brand {
    grid-column: 1;
  }

  .topbar-inner > .nav-toggle {
    grid-column: 3;
  }

  .topbar-inner > .nav-links {
    grid-column: 1 / -1;
    order: 5;
  }

  .trust-strip {
    padding: 18px;
  }

  .trust-strip-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .footer-bottom p {
    padding: 16px 0;
  }
}
