:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --ink: #1d2a24;
  --muted: #5d6b64;
  --line: #e6e0d6;
  --brand: #1f6b4a;
  --brand-ink: #ffffff;
  --brand-soft: #e7f2ec;
  --gold: #c8901e;
  --gold-soft: #fbf1dc;
  --bad: #a8432f;
  --radius: 14px;
  --wrap: 1080px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin-top: 2.2em; }
h3 { font-size: 1.25rem; margin-top: 1.6em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo span { color: var(--brand); }
.nav { display: flex; gap: 20px; font-size: .95rem; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--brand); }
@media (max-width: 760px) { .nav { display: none; } }

/* disclosure */
.disclosure { background: var(--gold-soft); border-bottom: 1px solid #f0dfb8; font-size: .9rem; color: #5b4514; }
.disclosure .wrap { padding-top: 10px; padding-bottom: 10px; }
.disclosure a { color: #5b4514; }

/* hero */
.hero { padding: 56px 0 24px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: var(--brand); margin-bottom: 12px; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 720px; }
.byline { font-size: .9rem; color: var(--muted); margin-top: 18px; }

/* quick answer */
.answer { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--brand); border-radius: var(--radius); padding: 22px 24px; margin: 28px 0; }
.answer strong { font-family: var(--serif); font-size: 1.15rem; }
.answer p:last-child { margin-bottom: 0; }

/* ranking cards */
.ranks { display: grid; gap: 18px; margin: 28px 0; }
.rank { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; grid-template-columns: 56px 1fr auto; gap: 18px; align-items: start; }
.rank.top { border: 2px solid var(--brand); box-shadow: 0 8px 28px rgba(31, 107, 74, .12); }
.rank-num { font-family: var(--serif); font-size: 2.2rem; font-weight: 700; color: var(--muted); line-height: 1; }
.rank.top .rank-num { color: var(--brand); }
.rank h3 { margin: 0 0 4px; font-size: 1.4rem; }
.rank .tag { display: inline-block; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); margin-bottom: 10px; }
.rank.top .tag { background: var(--brand); color: var(--brand-ink); }
.rank ul { margin: 10px 0 0; padding-left: 20px; }
.rank li { margin-bottom: 4px; }
.rank .price { text-align: right; white-space: nowrap; }
.rank .price b { display: block; font-family: var(--serif); font-size: 1.5rem; }
.rank .price small { color: var(--muted); }
.score { display: inline-block; margin-top: 8px; font-weight: 700; color: var(--gold); }
@media (max-width: 640px) {
  .rank { grid-template-columns: 1fr; gap: 6px; }
  .rank .price { text-align: left; }
}

.btn { display: inline-block; background: var(--brand); color: var(--brand-ink); text-decoration: none; font-weight: 600; padding: 12px 20px; border-radius: 10px; margin-top: 12px; }
.btn:hover { background: #18573c; }
.btn.ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }

/* table */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin: 24px 0; }
table { border-collapse: collapse; width: 100%; min-width: 720px; font-size: .95rem; }
th, td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: #f4efe6; font-weight: 600; position: sticky; top: 0; }
tbody th { font-weight: 600; white-space: nowrap; }
td.win, th.win { background: var(--brand-soft); }
tr:last-child td, tr:last-child th { border-bottom: 0; }
.yes { color: var(--brand); font-weight: 600; }
.no { color: var(--bad); font-weight: 600; }
.part { color: var(--gold); font-weight: 600; }

/* cards grid */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 24px 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { margin-top: 0; font-size: 1.1rem; }
.card p:last-child { margin-bottom: 0; }

/* pros / cons */
.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0; }
.pc > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.pc h4 { margin: 0 0 8px; font-size: 1rem; }
.pc ul { margin: 0; padding-left: 20px; }
@media (max-width: 640px) { .pc { grid-template-columns: 1fr; } }

/* calculator */
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 24px 0; }
.calc-inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.calc label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
.calc input { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); }
.calc-out { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 20px; }
.calc-out div { border-radius: 10px; padding: 14px 16px; background: #f4efe6; }
.calc-out div.win { background: var(--brand-soft); }
.calc-out b { display: block; font-family: var(--serif); font-size: 1.6rem; }
.calc-note { font-size: .85rem; color: var(--muted); margin-top: 14px; }

/* faq */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; }

.callout { background: var(--brand-soft); border-radius: var(--radius); padding: 22px 24px; margin: 28px 0; }
.callout p:last-child { margin-bottom: 0; }

.sources { font-size: .85rem; color: var(--muted); }
.sources li { margin-bottom: 4px; word-break: break-word; }

/* footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 72px; padding: 32px 0 48px; font-size: .9rem; color: var(--muted); }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
.site-footer a { color: var(--muted); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }

/* quiet note */
.fine { font-size: .78rem; color: #8a948f; margin-top: 6px; }
.fine a { color: inherit; }

/* hero with visual */
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero-visual { position: relative; }
.hero-visual img { display: block; border-radius: 24px; box-shadow: 0 24px 60px rgba(29, 42, 36, .14); }
.ribbon { position: absolute; top: -14px; left: -14px; background: var(--gold); color: #fff; font-weight: 700; font-size: .85rem; padding: 10px 16px; border-radius: 12px; box-shadow: 0 8px 20px rgba(200, 144, 30, .35); display: flex; align-items: center; gap: 8px; }
.ribbon svg { width: 18px; height: 18px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: .85rem; color: var(--muted); }
.hero-stats b { display: block; font-family: var(--serif); font-size: 1.3rem; color: var(--ink); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .ribbon { left: 10px; } }

/* podium */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 12px; align-items: end; max-width: 680px; margin: 36px auto 12px; }
.pod { text-align: center; }
.pod .who { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; margin-bottom: 4px; }
.pod .why { font-size: .82rem; color: var(--muted); margin-bottom: 10px; min-height: 2.4em; }
.pod .block { border-radius: 14px 14px 4px 4px; color: #fff; font-family: var(--serif); font-weight: 700; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 14px; }
.pod .block span { font-size: 2.4rem; line-height: 1; }
.pod .block small { font-family: var(--sans); font-weight: 600; font-size: .8rem; opacity: .9; margin-top: 6px; }
.pod.p1 .block { height: 200px; background: linear-gradient(180deg, #2a8a60, var(--brand)); }
.pod.p2 .block { height: 140px; background: #7f8d86; }
.pod.p3 .block { height: 104px; background: #a3aca7; }
.crown { width: 34px; height: 34px; margin: 0 auto 4px; display: block; }

/* score meter */
.meter { display: flex; align-items: center; gap: 10px; margin-top: 10px; max-width: 320px; }
.meter .track { flex: 1; height: 8px; background: #efe9df; border-radius: 99px; overflow: hidden; }
.meter .fill { height: 100%; background: #a3aca7; border-radius: 99px; }
.rank.top .meter .fill { background: var(--brand); }
.meter b { font-size: .95rem; min-width: 52px; }
.mono { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.5rem; color: #fff; background: #8f9a94; }
.rank.top .mono { background: var(--brand); }
.rank-side { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.rank-side .rank-num { font-size: 1.1rem; }

/* bar chart */
.chart { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 16px; margin: 24px 0; }
.chart h3 { margin: 0 0 4px; font-size: 1.15rem; }
.chart .sub { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.bars { display: grid; gap: 12px; }
.bar { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center; position: relative; }
.bar .label { font-weight: 600; font-size: .92rem; }
.bar .rail { position: relative; height: 30px; }
.bar .val { height: 100%; background: #b9c1bc; border-radius: 0 4px 4px 0; min-width: 4px; transition: filter .15s; }
.bar.me .val { background: var(--brand); }
.bar .num { position: absolute; top: 50%; transform: translateY(-50%); font-size: .9rem; font-weight: 700; color: var(--ink); padding-left: 8px; white-space: nowrap; }
.bar:hover .val { filter: brightness(.92); }
.bar .tip { position: absolute; left: 132px; bottom: calc(100% + 6px); background: var(--ink); color: #fff; font-size: .8rem; padding: 8px 10px; border-radius: 8px; max-width: 300px; opacity: 0; pointer-events: none; transition: opacity .12s; z-index: 2; }
.bar:hover .tip, .bar:focus-within .tip { opacity: 1; }
.chart .foot { font-size: .8rem; color: var(--muted); margin-top: 14px; }
@media (max-width: 560px) { .bar { grid-template-columns: 88px 1fr; } .bar .label { font-size: .82rem; } .bar .tip { left: 0; } }

/* feature checks */
.ck { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.ck svg { width: 18px; height: 18px; flex: none; }
.ck.y { color: var(--brand); }
.ck.p { color: var(--gold); }
.ck.n { color: #9aa39e; font-weight: 500; }

/* icon cards */
.icard { display: flex; gap: 14px; align-items: flex-start; }
.icard .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); display: grid; place-items: center; flex: none; }
.icard .ic svg { width: 24px; height: 24px; color: var(--brand); }

/* route visual */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; margin: 24px 0; }
.split svg { width: 100%; height: auto; display: block; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.section { padding-top: 8px; }
.ribbon svg { color: #fff; }
.crown { color: var(--gold); }
@media (max-width: 640px) { .rank-side { flex-direction: row; justify-content: flex-start; gap: 12px; } .mono { width: 44px; height: 44px; font-size: 1.2rem; border-radius: 12px; } }
.grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid.three { grid-template-columns: 1fr; } }
.bar .rail { margin-right: 110px; }
tbody th { white-space: normal; min-width: 150px; position: sticky; left: 0; background: var(--surface); z-index: 1; box-shadow: 1px 0 0 var(--line); }
thead th:first-child { position: sticky; left: 0; z-index: 2; }
@media (max-width: 600px) { tbody th { min-width: 120px; font-size: .85rem; } table { font-size: .88rem; } }
.calc-out small { display: block; color: var(--muted); font-size: .85rem; }
.calc-out span { font-size: .85rem; color: var(--muted); }
