/* ===========================================================
   Phanera — editorial / data-journalism aesthetic.
   The number is the design. Receipt + price-tag motifs.
   =========================================================== */

:root {
    --teal: #0d9488;
    --teal-dark: #0f766e;
    --navy: #0c1322;
    --ink: #0c1322;
    --ink-2: #44516a;
    --ink-3: #6b7892;
    --ink-4: #9aa6bd;
    --paper: #f7f5f0;        /* warm paper, not generic white-blue */
    --paper-2: #fffdf8;
    --card: #ffffff;
    --line: #e4e0d6;          /* warm hairline */
    --low: #15976b;           /* cheap = green */
    --mid: #d98a1f;           /* mid = amber */
    --high: #d6463b;          /* expensive = red */
    --neg: #0d9488;           /* negotiated = teal */
    --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
.container { max-width: 1080px; margin: 0 auto; padding: 0 26px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.hl { color: var(--teal-dark); font-style: italic; }
.kicker {
    font-family: var(--mono); font-size: 0.74rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.14em; color: var(--teal-dark);
}

/* === Nav === */
.nav {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 30px;
    background: rgba(247,245,240,0.85); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.nav-links { display: flex; gap: 22px; }
.nav-links a { color: var(--ink-3); font-weight: 500; font-size: 0.88rem; transition: color .15s; }
.nav-links a:hover { color: var(--teal-dark); }

/* === HERO === */
.hero { padding: 70px 0 64px; border-bottom: 1px solid var(--line); }
.hero-grid {
    max-width: 1080px; margin: 0 auto; padding: 0 26px;
    display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center;
}
.hero-text .kicker { display: block; margin-bottom: 18px; }
.hero h1 {
    font-size: clamp(2.1rem, 4vw, 3.3rem); font-weight: 800;
    line-height: 1.08; letter-spacing: -0.025em;
}
.big-spread {
    display: inline-block; color: var(--high); font-weight: 900;
    font-variant-numeric: tabular-nums;
}
.hl-plain { color: var(--teal-dark); font-style: italic; }
.hero-sub { font-size: 1.06rem; color: var(--ink-2); max-width: 520px; margin: 22px 0 28px; }

/* proof / stats row */
.proof { display: flex; gap: 36px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.proof-item { display: flex; flex-direction: column; }
.proof-num { font-family: var(--mono); font-size: 1.9rem; font-weight: 700; color: var(--navy); line-height: 1; letter-spacing: -0.02em; }
.proof-lbl { font-size: 0.78rem; color: var(--ink-3); margin-top: 6px; }
.cta {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 26px; background: var(--navy); color: #fff;
    border-radius: 8px; font-weight: 600; font-size: 0.98rem; transition: all .15s;
}
.cta:hover { background: #000; transform: translateY(-1px); }

/* hero viz card — like a torn-off price tag */
.hero-viz {
    background: var(--card); border: 1px solid var(--line); border-radius: 14px;
    padding: 22px; box-shadow: 0 18px 40px rgba(12,19,34,0.07);
}
.viz-head { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.viz-exhibit { display: block; font-family: var(--mono); font-size: 0.64rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--high); margin-bottom: 6px; }
.viz-name { display: block; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.viz-range { display: block; margin-top: 4px; font-size: 0.9rem; font-weight: 600; color: var(--ink-2); }
.viz-dash { color: var(--ink-4); margin: 0 4px; }
.viz-link { display: inline-block; margin-top: 12px; font-size: 0.82rem; font-weight: 600; color: var(--teal-dark); }
.viz-link:hover { text-decoration: underline; }
.bar-row { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 10px; margin-bottom: 11px; }
.bar-hosp { font-size: 0.72rem; color: var(--ink-3); text-align: right; line-height: 1.2; }
.bar-track { background: #efece4; border-radius: 5px; height: 22px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 5px; min-width: 4px; transition: width .6s ease; }
.bar-price { font-size: 0.82rem; font-weight: 700; }
.viz-foot { font-family: var(--mono); font-size: 0.64rem; color: var(--ink-4); margin-top: 8px; text-align: right; }

/* tier colors */
.tier-low { background: var(--low); }
.tier-mid { background: var(--mid); }
.tier-high { background: var(--high); }
.tier-neg { background: var(--neg); }

/* === PROCEDURE INDEX (price list / menu) === */
.index { padding: 64px 0; }
.index-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 2px solid var(--navy); padding-bottom: 12px; margin-bottom: 30px; }
.index-head h2 { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; }
.index-count { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-3); }
.cat-block { margin-bottom: 30px; }
.cat-label {
    font-family: var(--mono); font-size: 0.7rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.12em; color: var(--teal-dark); margin-bottom: 6px;
}
.price-list { list-style: none; }
.list-row {
    display: flex; align-items: baseline; gap: 10px; padding: 11px 4px;
    border-bottom: 1px dotted var(--line); transition: all .12s;
}
.list-row:hover { background: var(--paper-2); padding-left: 12px; }
.list-name { font-weight: 600; font-size: 1.02rem; }
.list-dots { flex: 1; border-bottom: 1px dotted var(--ink-4); transform: translateY(-3px); }
.list-code { font-size: 0.76rem; color: var(--ink-4); }
.list-go { font-size: 0.8rem; color: var(--teal-dark); font-weight: 600; opacity: 0; transition: opacity .12s; }
.list-row:hover .list-go { opacity: 1; }

/* === WHY === */
.why { padding: 70px 0; background: var(--navy); color: #e9ecf2; }
.why-inner { max-width: 720px; }
.why h2 { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 20px; color: #fff; }
.why-lead { font-size: 1.25rem; color: #fff; font-weight: 500; margin-bottom: 18px; line-height: 1.5; }
.why-body { font-size: 1.02rem; color: #aab4c6; margin-bottom: 16px; }
.why-body em { color: #fff; font-style: italic; }
.why-body strong { color: var(--teal); }

/* === COMPARE PAGE === */
.compare { padding: 46px 0 70px; }
.compare .kicker { display: block; margin-bottom: 12px; }
.compare-h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 26px; }

.spread-stmt {
    display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
    background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--high);
    border-radius: 12px; padding: 22px 24px; margin-bottom: 36px;
}
.spread-num { font-size: 2.6rem; font-weight: 900; color: var(--high); font-variant-numeric: tabular-nums; line-height: 1; }
.spread-txt { font-size: 1.02rem; color: var(--ink-2); flex: 1; min-width: 240px; }

/* signature comparison bars — ranked, dense */
.bars { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; }
.cbar { display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start;
        padding: 12px 14px; border-radius: 12px; border: 1px solid transparent; transition: background .15s; }
.cbar:hover { background: var(--paper-2); }
.cbar-best { background: rgba(21,151,107,0.06); border-color: rgba(21,151,107,0.22); }
.cbar-worst { background: rgba(214,70,59,0.05); border-color: rgba(214,70,59,0.18); }
.cbar-rank { font-size: 1.3rem; font-weight: 700; color: var(--ink-4); text-align: center; padding-top: 6px; }
.cbar-best .cbar-rank { color: var(--low); }
.cbar-worst .cbar-rank { color: var(--high); }
.cbar-body { min-width: 0; }
.cbar-top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.cbar-hosp { font-weight: 700; font-size: 1.04rem; }
.tag { font-family: var(--mono); font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.tag-low { background: rgba(21,151,107,0.16); color: var(--low); }
.tag-high { background: rgba(214,70,59,0.16); color: var(--high); }
.cbar-track { position: relative; background: #efece4; border-radius: 7px; height: 38px; overflow: hidden; }
.cbar-fill { height: 100%; border-radius: 7px; min-width: 72px; display: flex; align-items: center; justify-content: flex-end; transition: width .7s cubic-bezier(.2,.8,.2,1); }
.cbar-price { color: #fff; font-weight: 800; font-size: 1rem; padding-right: 12px; text-shadow: 0 1px 2px rgba(0,0,0,0.15); }
.cbar-price-out { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-4); font-size: 0.82rem; }
.cbar-sub { font-size: 0.82rem; color: var(--ink-3); margin-top: 5px; }
.cbar-sub strong { color: var(--teal-dark); }
.cbar-payers { color: var(--ink-4); }

.legend { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin-bottom: 40px; }
.legend-row { display: flex; align-items: baseline; gap: 10px; font-size: 0.92rem; color: var(--ink-2); margin: 7px 0; }
.legend-row b { color: var(--ink); }
.swatch { width: 14px; height: 14px; border-radius: 4px; flex-shrink: 0; transform: translateY(2px); }

.switcher { border-top: 1px solid var(--line); padding-top: 26px; }
.switcher-label { display: block; font-weight: 700; margin-bottom: 12px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; font-size: 0.84rem; color: var(--ink-2); transition: all .12s; }
.chip:hover { border-color: var(--teal); color: var(--teal-dark); }
.chip-on { background: var(--navy); color: #fff; border-color: var(--navy); }

.empty { padding: 40px; text-align: center; color: var(--ink-3); background: var(--card); border: 1px dashed var(--line); border-radius: 14px; }

/* === Footer === */
.footer { background: var(--navy); padding: 44px 0; }
.footer .container { text-align: center; }
.footer .disclaimer { color: #7d889c; font-size: 0.8rem; max-width: 700px; margin: 16px auto 0; line-height: 1.7; }
.footer .madeby { color: #66718a; font-size: 0.8rem; margin-top: 14px; }

@media (max-width: 820px) {
    .hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .spread-num { font-size: 2rem; }
}
