:root {
  --brand: #e8542f;
  --brand-dark: #c8431f;
  --ink: #1f2328;
  --muted: #5b6472;
  --bg: #ffffff;
  --bg-soft: #f7f6f3;
  --line: #e6e3dd;
  --green: #1a7f47;
  --blue: #1f5fbf;
  --radius: 12px;
  --wrap: 1080px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 40px 20px; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); margin: 1.5em 0 .6em; }
h3 { margin: 0 0 .4em; }
p { margin: 0 0 1em; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); font-size: .92rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 8px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; border: 2px solid var(--brand); border-radius: 8px; }

.preview-banner {
  background: #fff4e6; color: #8a4b00; text-align: center;
  padding: 8px 16px; font-size: .88rem; border-bottom: 1px solid #ffd9a8;
}

/* header */
.site-header { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(255,255,255,.95); backdrop-filter: blur(6px); z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 800; font-size: 1.2rem; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.brand:hover { text-decoration: none; }
.brand-mark { font-size: 1.4rem; }
.site-nav { display: flex; gap: 20px; }
.site-nav a { color: var(--ink); font-weight: 600; font-size: .95rem; }
.site-nav a[aria-current="page"] { color: var(--brand-dark); }

/* hero */
.hero { background: linear-gradient(160deg, #fff6f2, #f7f6f3); padding: 56px 0 44px; border-bottom: 1px solid var(--line); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 14px; }
.hero-note { color: var(--muted); font-size: .95rem; }

/* buttons */
.btn { display: inline-block; padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: .95rem; border: 2px solid transparent; cursor: pointer; text-align: center; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-lg { padding: 13px 26px; font-size: 1.05rem; }
.btn.block { display: block; margin-top: 12px; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: 0 8px 26px rgba(0,0,0,.07); transform: translateY(-2px); }
.card-head { display: flex; align-items: center; gap: 10px; }
.card-head h3 { margin: 0; }
.emoji-lg { font-size: 1.8rem; }
.emoji-xl { font-size: 3rem; }
.price-lead { font-size: 1.05rem; margin: 10px 0 6px; }

/* table */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.compare { width: 100%; border-collapse: collapse; min-width: 760px; }
table.compare th, table.compare td { padding: 14px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.compare thead th { background: var(--bg-soft); font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
table.compare tbody tr:hover { background: #fcfbf9; }
.rank { font-weight: 800; color: var(--muted); }
.prov { min-width: 200px; }
.prov-link { font-weight: 700; font-size: 1.02rem; display: inline-flex; align-items: center; gap: 6px; }
.prov-tagline { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; }
.emoji { font-size: 1.2rem; }
.cta-cell { white-space: nowrap; display: flex; gap: 6px; flex-direction: column; }
.cta-cell .btn { padding: 7px 12px; font-size: .82rem; }

.pill { display: inline-block; font-size: .68rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; margin-left: 6px; text-transform: uppercase; letter-spacing: .03em; }
.pill-green { background: #e3f4ea; color: var(--green); }
.pill-blue { background: #e5eefb; color: var(--blue); }

.badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.badge { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; font-size: .74rem; color: var(--muted); }

.stars { color: #f5a623; letter-spacing: 1px; }
.rating-num { font-weight: 700; font-size: .9rem; }

/* cta band */
.cta-band { text-align: center; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 20px; margin: 24px auto; }
.cta-band h2 { margin-top: 0; }

/* detail */
.breadcrumb { padding-top: 18px; font-size: .88rem; color: var(--muted); }
.detail { padding-bottom: 50px; }
.detail-head { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.detail-desc { font-size: 1.08rem; margin-top: 20px; }
.highlights { padding-left: 1.1em; }
.highlights li { margin-bottom: 6px; }
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px 0; }
.pros, .cons { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.pros { background: #f4faf6; }
.cons { background: #fdf6f4; }
table.spec { width: 100%; border-collapse: collapse; }
table.spec th, table.spec td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); }
table.spec th { width: 40%; color: var(--muted); font-weight: 600; }
.back { margin-top: 30px; }

/* prose */
.prose { max-width: 760px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 8px; }
.faq details { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details[open] summary { margin-bottom: 8px; }

/* finder */
.finder { max-width: 720px; }
.finder-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.05); }
.finder-progress { height: 6px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; margin-bottom: 22px; }
.finder-progress > div { height: 100%; background: var(--brand); transition: width .3s; }
.finder-q { font-size: 1.3rem; font-weight: 800; margin-bottom: 18px; }
.finder-options { display: grid; gap: 10px; }
.finder-opt { text-align: left; padding: 14px 18px; border: 2px solid var(--line); border-radius: 10px; background: #fff; font-size: 1rem; font-weight: 600; cursor: pointer; transition: border-color .1s, background .1s; }
.finder-opt:hover { border-color: var(--brand); background: #fff7f4; }
.finder-back { background: none; border: none; color: var(--muted); cursor: pointer; margin-top: 16px; font-size: .9rem; }
.finder-result h2 { margin-top: 0; }
.result-item { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 12px; }
.result-item.winner { border-color: var(--brand); background: #fff7f4; }
.result-rank { font-weight: 800; font-size: 1.3rem; color: var(--brand); width: 28px; }
.result-body { flex: 1; }
.result-body strong { font-size: 1.05rem; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 30px 0; margin-top: 40px; }
.footer-nav { display: flex; gap: 16px; margin-top: 8px; }
.footer-nav a { font-size: .9rem; }

/* responsive table -> cards */
@media (max-width: 720px) {
  .detail-head { grid-template-columns: 1fr; text-align: center; }
  .proscons { grid-template-columns: 1fr; }
  .site-nav { gap: 12px; font-size: .85rem; }
}
