* { box-sizing: border-box; }
:root {
  --ink: #15201c;
  --muted: #68736f;
  --line: #dfe7e2;
  --paper: #fbfcf9;
  --card: #ffffff;
  --green: #15735d;
  --blue: #315fbd;
  --coral: #c75848;
  --yellow: #f0b94b;
  --shadow: 0 18px 42px rgba(26, 39, 33, .14);
}
html, body { margin: 0; min-height: 100%; }
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #dfe8e2;
  letter-spacing: 0;
}
button, input, select, textarea { font: inherit; }
button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}
button.solid { border-color: var(--green); background: var(--green); color: #fff; }
button.teal { border-color: #0d726b; background: #0d726b; }
button.active { border-color: var(--green); color: var(--green); background: #edf8f3; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
}
textarea { resize: vertical; }
label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; }
.demo-stage { width: 100%; min-height: 100vh; display: flex; justify-content: center; }
.phone-frame {
  position: relative;
  width: min(100%, 430px);
  min-height: 100vh;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow-x: hidden;
  padding-bottom: 84px;
}
.app-header {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 12px;
  background: rgba(251, 252, 249, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.app-header h1 { margin: 3px 0 0; font-size: 18px; line-height: 1.2; }
.header-actions { display: flex; gap: 6px; align-items: center; }
.header-actions button { min-height: 34px; padding: 7px 9px; font-size: 12px; }
.notice-pill, .eyebrow {
  margin: 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}
.screen { display: none; padding: 14px; }
.screen.active { display: block; }
.screen-heading, .hero-panel, .home-summary, .auth-panel, .section-block, .policy-card,
.detail-panel, .complete-card, .split-list article, .question-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}
.screen-heading, .hero-panel, .home-summary, .auth-panel, .section-block, .policy-card,
.detail-panel, .complete-card { padding: 15px; margin-bottom: 12px; }
.hero-panel {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(130deg, rgba(21, 115, 93, .9), rgba(49, 95, 189, .7)),
    repeating-linear-gradient(45deg, #cbd9d1 0, #cbd9d1 12px, #dce6df 12px, #dce6df 24px);
  color: #fff;
}
.hero-panel .eyebrow { color: #f6d27b; }
.hero-panel h2, .screen-heading h2, .home-summary h2, .complete-card h2 {
  margin: 6px 0 8px;
  font-size: 23px;
  line-height: 1.22;
}
.hero-panel p, .screen-heading p, .home-summary p, .policy-card p, .complete-card p {
  margin: 0;
  color: inherit;
  line-height: 1.55;
}
.screen-heading p, .home-summary p, .policy-card p, .complete-card p { color: var(--muted); }
.button-grid { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 12px 0; }
.signup-form, .inquiry-form { display: grid; gap: 10px; margin-top: 12px; }
.status-card {
  border: 1px dashed #b9c9c1;
  border-radius: 8px;
  padding: 12px;
  background: #f4faf7;
  color: var(--muted);
}
.home-summary { display: grid; gap: 12px; }
.banner-strip { display: grid; gap: 8px; margin-bottom: 12px; }
.banner-card {
  border-radius: 8px;
  padding: 13px;
  color: #fff;
  min-height: 86px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.banner-card.green { background: #15735d; }
.banner-card.blue { background: #315fbd; }
.banner-card.coral { background: #c75848; }
.banner-card strong { font-size: 16px; }
.banner-card span { margin-top: 4px; font-size: 13px; opacity: .9; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.section-title h3, .section-block h3, .policy-card h3 { margin: 0; font-size: 16px; }
.premium-card, .provider-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.provider-photo {
  height: 116px;
  background:
    linear-gradient(135deg, rgba(21, 115, 93, .75), rgba(240, 185, 75, .45)),
    repeating-linear-gradient(90deg, #d2ded7 0, #d2ded7 18px, #eef3ee 18px, #eef3ee 36px);
}
.provider-body { padding: 12px; }
.provider-body h3 { margin: 3px 0 6px; font-size: 17px; }
.provider-body p { margin: 0; color: var(--muted); line-height: 1.5; font-size: 14px; }
.meta-row, .chips, .cta-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.meta-row { margin: 8px 0; }
.meta-row span, .chips span {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  border-radius: 999px;
  padding: 5px 9px;
  background: #eef4f1;
  color: #395049;
  font-size: 12px;
  white-space: nowrap;
}
.cta-row { margin-top: 10px; }
.cta-row button { flex: 1 1 auto; min-width: 96px; }
.compact-list, .provider-list, .manage-list, .timeline, .question-list { display: grid; gap: 9px; }
.compact-item, .manage-item, .timeline-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}
.compact-item { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.compact-item strong, .manage-item strong, .timeline-item strong { display: block; font-size: 14px; }
.compact-item span, .manage-item span, .timeline-item span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-bottom: 10px;
}
.filter-result { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 10px; }
.filter-result strong { font-size: 14px; }
.back-button { margin-bottom: 10px; }
.detail-hero {
  border-radius: 8px;
  min-height: 170px;
  background:
    linear-gradient(140deg, rgba(49, 95, 189, .78), rgba(199, 88, 72, .38)),
    repeating-linear-gradient(45deg, #d6e1dd 0, #d6e1dd 14px, #edf2f0 14px, #edf2f0 28px);
}
.detail-panel h2 { margin: 12px 0 6px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.detail-grid div { border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: #f8fbf8; }
.detail-grid span { display: block; color: var(--muted); font-size: 12px; }
.detail-grid strong { display: block; margin-top: 3px; font-size: 14px; }
.check-row { grid-template-columns: auto 1fr; align-items: start; }
.check-row input { width: auto; margin-top: 3px; }
.complete-card { min-height: 360px; display: flex; flex-direction: column; justify-content: center; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.metric-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  background: #fff;
}
.metric-grid span { display: block; color: var(--muted); font-size: 12px; }
.metric-grid strong { font-size: 24px; }
.split-list { display: grid; gap: 10px; margin-bottom: 12px; }
.split-list article { padding: 14px; }
.split-list h3 { margin: 0 0 8px; }
.split-list ul, .section-block ol { margin: 8px 0 0; padding-left: 20px; color: var(--muted); line-height: 1.65; }
.question-list article { padding: 12px; display: grid; gap: 5px; }
.question-list span { color: var(--muted); }
.bottom-tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 9;
  width: min(100%, 430px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.bottom-tabbar button {
  min-height: 56px;
  padding: 5px 2px;
  display: grid;
  place-items: center;
  gap: 2px;
  border: 0;
  font-size: 12px;
  background: transparent;
}
.bottom-tabbar span {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #eef4f1;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.bottom-tabbar button.active span { background: var(--green); color: #fff; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(13, 20, 17, .52);
}
.modal[hidden], .toast[hidden] { display: none; }
.modal-panel {
  width: min(100%, 360px);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}
.modal-panel h2 { margin: 0 0 8px; font-size: 19px; }
.modal-panel p { color: var(--muted); line-height: 1.55; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%);
  z-index: 30;
  width: min(92%, 390px);
  border-radius: 8px;
  padding: 11px 14px;
  background: #15201c;
  color: #fff;
  text-align: center;
}
@media (min-width: 760px) {
  .demo-stage { align-items: center; padding: 28px; }
  .phone-frame { min-height: 860px; max-height: 900px; border-radius: 24px; overflow-y: auto; }
  .bottom-tabbar { border-radius: 0 0 24px 24px; }
}
@media (max-width: 390px) {
  .filter-grid, .detail-grid { grid-template-columns: 1fr; }
  .hero-panel h2, .screen-heading h2, .home-summary h2, .complete-card h2 { font-size: 21px; }
  .header-actions button { padding-left: 7px; padding-right: 7px; }
}
