/* Mobile-first styles. Wider screens are handled in the min-width queries at the bottom. */

:root {
  --bg: #f5f3f0;
  --surface: #ffffff;
  --text: #1e2124;
  --subtle: #5f646b;
  --border: #e0dcd6;
  --orange: #d9480f;
  --orange-wash: #fdeee6;
  --green: #2b8a3e;
  --radius: 14px;
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17191c;
    --surface: #212429;
    --text: #eceef0;
    --subtle: #a5abb3;
    --border: #33373d;
    --orange: #ff8a4c;
    --orange-wash: #3a261c;
    --green: #69db7c;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 4.5rem; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); }
a { color: var(--orange); }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.wrap { padding: 0 1rem; max-width: 1040px; margin: 0 auto; }

/* header — sticky on phones so the menu is always one tap away */
.hdr {
  position: sticky; top: 0; z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { font-weight: 800; font-size: 1.1rem; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: .45rem; min-height: 44px; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--orange); display: grid; place-items: center; }
.brand-mark svg { width: 16px; height: 16px; }
.burger {
  width: 44px; height: 44px; border: 0; background: none; color: var(--text);
  display: grid; place-items: center; cursor: pointer; border-radius: 10px;
}
.burger svg { width: 24px; height: 24px; }
.nav { display: none; }
.nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 56px;
  background: var(--surface); border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}
.nav ul { list-style: none; margin: 0; padding: .5rem 0; }
.nav a { display: block; padding: .8rem 1rem; color: var(--text); text-decoration: none; font-weight: 600; }
.nav a[aria-current] { color: var(--orange); }

.ad-note { font-size: .8rem; color: var(--subtle); padding: .55rem 0; line-height: 1.45; }

/* hero */
.hero { padding: 1.5rem 0 .5rem; }
.hero h1 { font-size: 1.85rem; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .7rem; font-weight: 800; }
.hero p { margin: 0 0 .6rem; color: var(--subtle); }
.checked { font-size: .85rem; color: var(--subtle); }

/* free-first notice */
.free-first {
  background: var(--orange-wash); border-radius: var(--radius);
  padding: 1rem 1.1rem; margin: 1.25rem 0; font-size: .95rem;
}
.free-first strong { display: block; margin-bottom: .2rem; }

/* filter — horizontally scrollable row of chips on phones */
.filters {
  display: flex; gap: .5rem; overflow-x: auto; padding: .25rem 0 .75rem;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  margin: 0 -1rem; padding-left: 1rem; padding-right: 1rem;
}
.filters::-webkit-scrollbar { display: none; }
.filters button {
  flex: 0 0 auto; min-height: 44px; padding: 0 1rem;
  border-radius: 22px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text);
  font: 600 .92rem var(--font); cursor: pointer; white-space: nowrap;
}
.filters button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.result-count { font-size: .85rem; color: var(--subtle); margin: 0 0 .75rem; }

/* service cards */
.svc {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 1rem; overflow: hidden;
}
.svc[hidden] { display: none; }
.svc-top { padding: 1.1rem 1.1rem .4rem; }
.svc h2 { font-size: 1.3rem; margin: 0; line-height: 1.25; }
.svc .owner { font-size: .82rem; color: var(--subtle); margin: .15rem 0 .6rem; }
.svc .best { font-weight: 700; font-size: .92rem; color: var(--orange); margin: 0 0 .5rem; }

.price-strip {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--border); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.price-strip div { background: var(--surface); padding: .7rem 1.1rem; }
.price-strip small { display: block; font-size: .75rem; color: var(--subtle); text-transform: uppercase; letter-spacing: .05em; }
.price-strip b { font-size: 1.15rem; }

.svc details { border-bottom: 1px solid var(--border); }
.svc summary {
  list-style: none; cursor: pointer; padding: .9rem 1.1rem; min-height: 48px;
  font-weight: 700; display: flex; justify-content: space-between; align-items: center;
}
.svc summary::-webkit-details-marker { display: none; }
.svc summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--subtle); }
.svc details[open] summary::after { content: "–"; }
.svc .more { padding: 0 1.1rem 1rem; font-size: .95rem; }
.svc .more ul { margin: .25rem 0 .75rem; padding-left: 1.1rem; }
.svc .more li { margin-bottom: .3rem; }
.svc .heads-up { color: var(--subtle); margin: 0; }
.svc .heads-up strong { color: var(--text); }

.svc-cta { padding: .9rem 1.1rem 1.1rem; }
.svc-cta a {
  display: flex; align-items: center; justify-content: center; min-height: 48px;
  background: var(--orange); color: #fff; text-decoration: none; font-weight: 700; border-radius: 10px;
}
.svc-cta p { font-size: .8rem; color: var(--subtle); margin: .5rem 0 0; text-align: center; }

/* compare table */
.block { padding: 1.5rem 0; }
.block h2 { font-size: 1.45rem; line-height: 1.2; margin: 0 0 .6rem; }
.block h3 { font-size: 1.1rem; margin: 1.4rem 0 .3rem; }
.swipe-hint { font-size: .8rem; color: var(--subtle); margin: 0 0 .4rem; }
.tbl { overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.tbl table { border-collapse: collapse; min-width: 620px; width: 100%; font-size: .9rem; }
.tbl th, .tbl td { padding: .7rem .8rem; border-bottom: 1px solid var(--border); text-align: left; }
.tbl thead th { background: var(--orange-wash); }
.tbl tbody th { position: sticky; left: 0; background: var(--surface); }
.tbl tr:last-child > * { border-bottom: 0; }
.yes { color: var(--green); font-weight: 700; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 1rem 2.6rem; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--text); color: var(--bg); font-weight: 800; display: grid; place-items: center; font-size: .9rem;
}

/* plain text pages */
.text { padding: 1.5rem 0 2rem; max-width: 680px; }
.text h1 { font-size: 1.8rem; line-height: 1.2; margin: 0 0 .3rem; }
.text .when { font-size: .85rem; color: var(--subtle); margin: 0 0 1.5rem; }
.text h2 { font-size: 1.2rem; margin: 1.8rem 0 .4rem; }
.text ul { padding-left: 1.2rem; }
.box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; margin: 1rem 0; }
.fill { background: #ffe066; color: #1e2124; padding: 0 .2em; border-radius: 3px; }

/* footer */
.ftr { background: var(--surface); border-top: 1px solid var(--border); margin-top: 1rem; padding: 1.5rem 0 2rem; font-size: .9rem; color: var(--subtle); }
.ftr ul { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: 1fr 1fr; }
.ftr a { color: var(--text); text-decoration: none; display: block; padding: .7rem 0; }
.ftr p { margin: 0 0 .6rem; }

/* ---- tablets and up ---- */
@media (min-width: 720px) {
  .wrap { padding: 0 1.5rem; }
  .hero { padding: 2.5rem 0 1rem; }
  .hero h1 { font-size: 2.6rem; max-width: 20ch; }
  .hero p { max-width: 60ch; font-size: 1.08rem; }
  .filters { overflow: visible; flex-wrap: wrap; margin: 0; padding: .25rem 0 .75rem; }
  .cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
  .svc { margin-bottom: 0; }
  .ftr ul { display: flex; gap: 1.5rem; }
}

/* ---- desktop ---- */
@media (min-width: 960px) {
  .burger { display: none; }
  .nav, .nav.is-open { display: block; position: static; box-shadow: none; border: 0; background: none; }
  .nav ul { display: flex; gap: .5rem; padding: 0; }
  .nav a { padding: .6rem .8rem; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .two { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
