/* MyPriceHunt: deep-ink and marigold on a cool grey page; one reading column for guides and legal, a 3-up grid for cards. */
:root {
  --bg: #F3F5F9;
  --surface: #FFFFFF;
  --ink: #121A2E;
  --muted: #586378;
  --line: #DFE4EE;
  --accent: #1E4FD6;
  --accent-ink: #FFFFFF;
  --marigold: #F2A007;
  --marigold-soft: #FFF3D6;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Hind", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0C1120; --surface: #151C2E; --ink: #E9EDF6; --muted: #9EA8BD; --line: #253048;
    --accent: #8AA6FF; --accent-ink: #0C1120; --marigold: #F5B53D; --marigold-soft: #33290F;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 6vw, 44px); }
h2 { font-size: 24px; margin-top: 1.6em; }
h3 { font-size: 19px; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: .4em; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
img, svg { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.narrow-p { max-width: 640px; }
.center { text-align: center; justify-content: center; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 99; }

header.top { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.logo b { color: var(--accent); }
.logo-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--marigold); color: #121A2E; display: grid; place-items: center; font-size: 18px; }
header.top nav { display: flex; gap: 4px; }
header.top nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
header.top nav a:hover { background: var(--surface); }
header.top nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }

main { padding-bottom: 56px; display: grid; gap: 40px; }
main > section:first-child, main > article:first-child { padding-top: 32px; }
.section-title { margin-top: 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.lead { font-size: 19px; color: var(--muted); }
.meta { color: var(--muted); font-size: 14px; margin-bottom: 1.2em; }
.note { color: var(--muted); font-size: 15px; }
.grid3 + .note { margin-top: 14px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.grid3 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-bottom: 1em; }
.guide-card { text-decoration: none; color: var(--ink); display: grid; align-content: start; gap: 6px; transition: border-color .15s; }
.guide-card:hover { border-color: var(--accent); }
.guide-card h3 { margin: 0; }
.guide-card p { margin: 0; color: var(--muted); font-size: 15px; }
.tag { justify-self: start; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 12px; font-weight: 600; text-decoration: none; border: 1px solid transparent; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.small { min-height: 40px; padding: 0 14px; font-size: 15px; background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.small:hover { border-color: var(--accent); }

.hero { background: var(--ink); color: var(--bg); padding: 48px 0 52px; }
main > .hero:first-child { padding-top: 48px; }
.hero h1 { font-size: clamp(34px, 7vw, 56px); }
.hero .lead { color: var(--bg); opacity: .82; max-width: 560px; }
.hero-grid { display: grid; gap: 32px; grid-template-columns: 1.3fr 1fr; align-items: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn.ghost { background: transparent; color: var(--bg); border-color: rgba(255,255,255,.35); }
.hero-card { color: var(--ink); display: grid; gap: 10px; }
.hc-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--bg); font-size: 15px; }
.hc-row i { width: 70px; height: 10px; border-radius: 5px; background: var(--line); }
.hc-best { background: var(--marigold-soft); border: 2px solid var(--marigold); }
.hc-chart { color: var(--accent); width: 100%; height: 70px; }
.hc-cap { font-size: 13px; color: var(--muted); }

.feature h3 { margin-top: 8px; }
.feature p { margin: 0; color: var(--muted); }
.num-badge { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--marigold); color: #121A2E; font-weight: 700; font-family: var(--font-display); }
.cat { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cat h3 { margin: 0; }
.cat-links { display: flex; gap: 8px; }
.cat-links a { font-weight: 600; font-size: 15px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.trust ul { margin: 0; padding-left: 1.2em; }
.trust h2 { margin-top: 0; }

article h2 { scroll-margin-top: 80px; }
.toc { margin: 8px 0 24px; padding: 16px 20px; }
.toc h2 { font-size: 15px; margin: 0 0 6px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-family: var(--font-body); }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin: 2px 0; }
.steps li { padding-left: 4px; }
.note.card p { margin: 0; }
.note.card { margin-top: 32px; background: var(--marigold-soft); border-color: transparent; color: var(--ink); }
.table-wrap { overflow-x: auto; margin: 0 0 1em; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; background: var(--bg); }
tr:last-child td { border-bottom: 0; }
.shop { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 12px; background: var(--surface); }
.shop span { font-weight: 600; margin-right: auto; }
.legal h2 { font-size: 20px; }
.contact-card h2 { margin-top: 0; font-size: 18px; }
.contact-card p { margin: 0 0 .4em; }
mark.fill { background: #FFE08A; color: #121A2E; padding: 0 4px; border-radius: 4px; }

footer.site { border-top: 1px solid var(--line); background: var(--surface); padding: 40px 0 28px; font-size: 15px; }
.foot-grid { display: grid; gap: 24px; grid-template-columns: 1.4fr 1fr 1fr; }
.foot-grid p { color: var(--muted); margin-top: 10px; }
.foot-grid nav { display: grid; gap: 6px; align-content: start; }
.foot-grid nav h2 { font-size: 14px; margin: 0 0 4px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-family: var(--font-body); }
.foot-grid nav a { color: var(--ink); text-decoration: none; }
.foot-grid nav a:hover { color: var(--accent); }
.disclosure { color: var(--muted); font-size: 14px; margin-top: 24px; max-width: 820px; }
.copy { color: var(--muted); font-size: 14px; margin: 0; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero-grid, .foot-grid { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  header.top .wrap { min-height: 56px; }
  header.top nav a { padding: 8px 8px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
