:root {
  --ink: #0e221d;
  --ink-soft: #2a433c;
  --muted: #4f655d;
  --paper: #f3faf6;
  --card: #ffffff;
  --mint: #d5f0e6;
  --teal: #0c7467;
  --teal-deep: #084f46;
  --signal: #12a39c;
  --line: rgba(14, 34, 29, 0.12);
  --risk: #b23a34;
  --amber: #8a5a12;
  --amber-bg: #fff4df;
  --ok: #1f7a5c;
  --ok-bg: #e7f6ef;
  --miss: #3e514b;
  --miss-bg: #eef2f0;
  --shadow: 0 18px 50px rgba(14, 34, 29, 0.08);
  --font: "Epilogue", sans-serif;
  --serif: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 90% -10%, rgba(18, 163, 156, 0.16), transparent 60%),
    var(--paper);
  line-height: 1.5;
  min-height: 100vh;
}
button, input { font: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

.top {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 250, 246, 0.92);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 5;
}
.brand { font-weight: 700; text-decoration: none; }
.brand span { display: block; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
.top-product { margin-left: auto; color: var(--teal-deep); font-weight: 700; text-decoration: none; font-size: 0.92rem; }
.phi-banner {
  margin: 0;
  text-align: center;
  background: var(--ink);
  color: #f3faf6;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 0.45rem 1rem;
}
.progress {
  height: 4px;
  background: rgba(14, 34, 29, 0.08);
}
.progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--signal));
  width: 0;
  transition: width 0.35s ease;
}
.shell { max-width: 1040px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
.kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.6rem;
}
h1, h2 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 0.75rem;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); max-width: 16ch; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.lede { font-size: 1.12rem; max-width: 42rem; color: var(--ink-soft); margin: 0 0 1.25rem; }
.fine { color: var(--muted); font-size: 0.92rem; margin: 0.75rem 0 0; }
.row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.15rem;
  background: var(--teal);
  color: #f4fffb;
  font-weight: 700;
  border-radius: 4px;
}
.btn:hover { background: var(--teal-deep); }
.btn.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.secondary:hover { background: white; }
.btn.ghost { background: transparent; color: var(--teal-deep); min-height: 40px; padding-inline: 0.4rem; }
.btn[disabled] { opacity: 0.7; cursor: default; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: clamp(1.1rem, 3vw, 1.75rem);
}
.choice-grid, .room-grid, .doc-grid { display: grid; gap: 0.75rem; }
.choice-grid { margin-top: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.choice, .doc, .quote, .queue-item, .room-card, .stat {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.choice {
  text-align: left;
  padding: 0.95rem 1rem;
  cursor: pointer;
  color: inherit;
}
.choice.selected { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); background: #f3fbf8; }
.choice strong { display: block; margin-bottom: 0.3rem; }
.choice span { color: var(--muted); font-size: 0.9rem; }
.section-label { margin: 2rem 0 0.7rem; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.resident-name { font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.8rem); margin: 0; }
.resident-role { color: var(--teal-deep); font-weight: 700; margin: 0.2rem 0 0.8rem; }
.facts { margin: 0 0 1rem; padding-left: 1.1rem; }
.facts li { margin: 0.2rem 0; }
.doc-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.doc { display: flex; gap: 0.55rem; align-items: flex-start; padding: 0.7rem 0.8rem; font-weight: 600; font-size: 0.95rem; }
.doc i {
  width: 1.15rem; height: 1.15rem; border-radius: 99px; background: var(--ok-bg); color: var(--ok);
  display: inline-flex; align-items: center; justify-content: center; font-style: normal; flex: none; margin-top: 0.15rem;
}
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.steps li {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: #f7fbf9;
  color: var(--muted);
  border: 1px solid transparent;
}
.steps li.on { color: var(--ink); background: white; border-color: var(--teal); font-weight: 700; }
.steps li.done { color: var(--ok); }
.stat-grid, .room-grid { grid-template-columns: repeat(4, 1fr); margin: 1rem 0; }
.stat-grid { display: grid; gap: 0.75rem; }
.stat, .room-card { padding: 0.9rem; }
.stat b, .room-card b { display: block; font-family: var(--serif); font-size: 1.8rem; line-height: 1; }
.stat span, .room-card span { display: block; margin-top: 0.35rem; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.dot { width: 0.7rem; height: 0.7rem; border-radius: 99px; display: inline-block; margin-right: 0.35rem; }
.ok { background: var(--ok); } .review { background: #e0a100; } .bad { background: var(--risk); } .miss { background: #9aa8a3; }
.tone-review { background: var(--amber-bg); color: var(--amber); }
.tone-gap { background: #fdeceb; color: var(--risk); }
.tone-ok { background: var(--ok-bg); color: var(--ok); }
.verdict {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.7rem;
}
.quote { padding: 0.9rem 1rem; margin: 0.6rem 0; border-left: 3px solid var(--teal); }
.quote b { display: block; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--teal-deep); margin-bottom: 0.25rem; }
.mds-code { font-weight: 750; font-size: 1.05rem; margin: 0.15rem 0; }
.panel { margin-top: 1rem; padding-top: 0.4rem; }
.room-card { text-align: left; cursor: pointer; color: inherit; }
.room-card.open { box-shadow: inset 0 0 0 2px var(--teal); }
.queue-item { padding: 0.9rem 1rem; display: grid; gap: 0.25rem; }
.level { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; }
.level.HIGH { color: var(--risk); }
.level.MEDIUM { color: var(--amber); }
.added { color: var(--ok); font-size: 0.82rem; font-weight: 700; }
.price { font-family: var(--serif); font-size: 4rem; line-height: 0.9; margin: 0.2rem 0; }
.price small { font-size: 1.3rem; }
.offer-note { background: var(--mint); border-radius: 12px; padding: 1rem 1.1rem; margin-top: 1.25rem; }
.toast { color: var(--ok); font-weight: 700; margin: 0.6rem 0 0; }
@media (max-width: 720px) {
  .stat-grid, .room-grid { grid-template-columns: 1fr 1fr; }
  .top { align-items: flex-start; }
  .shell { padding-inline: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .progress > span { transition: none; }
}
