/* ==========================================================================
   GridPiggy Energy — global stylesheet
   Design language: Gogolook / Whoscall — white ground, one confident green,
   fully rounded pills, rounded Nunito display + Noto Sans body.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Colour */
  --brand:        #0cd25f;   /* brand green — identity anchor                */
  --cta:          #05f067;   /* brighter live green — primary action only    */
  --brand-tint:   #e6faef;   /* soft pale-green surface                      */
  --brand-tint-2: #f3fdf7;   /* even quieter green wash                      */
  --slate:        #2c3e50;   /* softened near-black for structure            */
  --ink:          #262626;   /* body + button text                           */
  --canvas:       #ffffff;
  --pink:         #f53f90;   /* category accent — sparingly                  */
  --teal:         #019d91;   /* category accent — sparingly                  */

  --green-deep:   #0a8f43;
  --muted:        #5f6b73;
  --muted-soft:   #8a949b;
  --line:         #e8ecea;
  --line-strong:  #d5dbd8;
  --surface:      #f7faf8;
  --amber:        #f0a202;

  /* Spacing */
  --xs: 8px;
  --sm: 16px;
  --base: 16px;
  --lg: 32px;
  --xl: 48px;
  --section: 64px;

  /* Radius */
  --r-sm: 20px;
  --r-md: 28px;
  --r-lg: 40px;
  --r-pill: 100px;
  --r-full: 9999px;

  /* Type */
  --font-display: "Nunito", "Noto Sans", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --font-body: "Noto Sans", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;

  /* Layout */
  --wrap: 1160px;
  --header-h: 68px;

  /* Elevation — restrained, mostly colour-fill separation */
  --shadow-sm: 0 1px 2px rgba(44, 62, 80, .05);
  --shadow-md: 0 6px 24px rgba(44, 62, 80, .07);
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.015em;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; }

:focus-visible {
  outline: 3px solid rgba(12, 210, 95, .55);
  outline-offset: 3px;
  border-radius: 6px;
}

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

/* Grid and flex children default to min-width:auto, which lets an item with a
   wide intrinsic size (a text input, a long word) push its track past the
   viewport. Every layout container here is allowed to shrink instead. */
.hero__grid > *,
.split > *,
.results-layout > *,
.grid > *,
.props > *,
.stat-strip > *,
.footer__grid > *,
.search-strip__inner > *,
.results__list > *,
.installer__top > * { min-width: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--cta); color: var(--ink);
  padding: 12px 24px; border-radius: var(--r-pill); font-weight: 700;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* --------------------------------------------------------------------------
   3. Buttons — fully rounded pill language
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px;
  padding: 16px 32px;
  border: none;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 16px; font-weight: 500; line-height: 1;
  color: var(--ink);
  background: var(--surface);
  text-align: center;
  transition: background-color .22s ease, transform .22s ease, box-shadow .22s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--cta); color: var(--ink); font-weight: 700; }
.btn--primary:hover { background: #00e05c; box-shadow: 0 8px 22px rgba(5, 240, 103, .3); }

.btn--secondary {
  background: rgba(255, 255, 255, .8);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn--secondary:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--brand); }

.btn--tint { background: var(--brand-tint); color: var(--ink); border-radius: var(--r-lg); font-weight: 500; }
.btn--tint:hover { background: #d8f6e6; }

.btn--sm { min-height: 44px; padding: 12px 22px; font-size: 15px; }
.btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   4. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; gap: 16px;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand__logo { width: auto; height: 38px; }
@media (min-width: 600px) { .brand__logo { height: 44px; } }
.site-footer .brand__logo { height: 48px; }

.nav { display: none; }
.nav__link {
  padding: 10px 14px; border-radius: var(--r-pill);
  font-size: 15px; font-weight: 500; color: var(--muted);
  transition: color .18s ease, background-color .18s ease;
}
.nav__link:hover { color: var(--ink); background: var(--brand-tint-2); }
.nav__link.is-active { color: var(--ink); font-weight: 700; background: var(--brand-tint); }

.header__actions { display: none; margin-left: auto; align-items: center; gap: 8px; }
.header__biz { font-size: 15px; font-weight: 500; color: var(--muted); padding: 10px 12px; border-radius: var(--r-pill); }
.header__biz:hover { color: var(--ink); background: var(--brand-tint-2); }

.burger {
  margin-left: auto;
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-tint); border: none; border-radius: var(--r-full);
}
.burger span {
  position: relative; display: block; width: 18px; height: 2px;
  background: var(--ink); border-radius: 2px; transition: background-color .22s ease;
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px;
  background: var(--ink); border-radius: 2px; transition: transform .22s ease;
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 12px 0 24px;
}
.mobile-menu.is-open { display: block; }
.mobile-menu a {
  display: block; padding: 14px 4px;
  font-size: 17px; font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a.btn { border-bottom: none; margin-top: 18px; }

@media (min-width: 900px) {
  .nav { display: flex; align-items: center; gap: 2px; margin-left: 18px; }
  .header__actions { display: flex; }
  .burger { display: none; }
  .mobile-menu, .mobile-menu.is-open { display: none; }
}

/* --------------------------------------------------------------------------
   5. Shared section furniture
   -------------------------------------------------------------------------- */
.section { padding: 56px 0; }
.section--tight { padding: 40px 0; }
.section--tint { background: var(--brand-tint-2); }
.section--surface { background: var(--surface); }

.section__head { max-width: 620px; margin: 0 0 32px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__title { font-size: 30px; }
.section__lede { margin-top: 12px; color: var(--muted); font-size: 16px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: var(--r-pill);
  background: var(--brand-tint); color: var(--green-deep);
  font-size: 13px; font-weight: 700; letter-spacing: .01em;
}

.page-hero { background: var(--brand-tint-2); border-bottom: 1px solid var(--line); padding: 36px 0 44px; }
.page-hero__crumbs { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.page-hero__crumbs a:hover { color: var(--brand); }
.page-hero__title { font-size: 34px; }
.page-hero__lede { margin-top: 12px; max-width: 620px; color: var(--muted); }

/* Page hero with the mascot alongside it. */
.page-hero--mascot { padding-bottom: 0; }
.page-hero__grid { display: grid; gap: 12px; align-items: end; }
.page-hero__art { width: 150px; margin: 0 auto; }
@media (min-width: 860px) {
  .page-hero__grid { grid-template-columns: minmax(0, 1fr) 210px; gap: 40px; }
  .page-hero__art { width: 210px; margin: 0; }
}

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; }

.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: repeat(2, 1fr); }

@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 900px) {
  .section { padding: var(--section) 0; }
  .section__title { font-size: 40px; }
  .page-hero { padding: 48px 0 56px; }
  .page-hero__title { font-size: 46px; }
}

/* --------------------------------------------------------------------------
   6. Home — hero
   -------------------------------------------------------------------------- */
.hero { padding: 40px 0 48px; background: linear-gradient(180deg, var(--brand-tint-2) 0%, #fff 78%); }
.hero__grid { display: grid; gap: 36px; align-items: center; }
.hero__title {
  font-size: clamp(34px, 10.5vw, 62px);
  font-weight: 800; line-height: 1.06; letter-spacing: -.03em;
  overflow-wrap: break-word;
}
.hero__title span { color: var(--brand); display: block; }
.hero__lede { margin-top: 18px; font-size: 17px; color: var(--muted); max-width: 30em; }

.searchbar {
  display: flex; align-items: center; gap: 8px;
  margin-top: 28px; padding: 8px 8px 8px 24px;
  background: #fff; border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-md);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.searchbar:focus-within { border-color: var(--brand); box-shadow: 0 8px 30px rgba(12, 210, 95, .18); }
.searchbar__input {
  /* width:0 kills the input's default 20-character intrinsic width, which
     would otherwise set a floor on how narrow the search bar can get. */
  flex: 1 1 0; width: 0; min-width: 0;
  border: none; outline: none; background: transparent;
  font-family: var(--font-body); font-size: 16px; color: var(--ink); padding: 12px 0;
}
.searchbar__input::placeholder { color: var(--muted-soft); }
.searchbar .btn { flex-shrink: 0; min-height: 48px; padding: 14px 24px; }

/* Popular suburbs — a single row that scrolls sideways rather than wrapping
   onto three lines on a phone. */
.chips-wrap { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.chips__label { flex-shrink: 0; font-size: 14px; color: var(--muted); }
.chips {
  display: flex; gap: 8px; min-width: 0;
  overflow-x: auto; overflow-y: hidden;
  padding: 3px 0 5px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; -ms-overflow-style: none;
}
.chips::-webkit-scrollbar { display: none; }
.chips > li { flex: 0 0 auto; scroll-snap-align: start; }
.chip {
  display: block; padding: 9px 16px; border-radius: var(--r-pill);
  background: #fff; border: 1px solid var(--line-strong);
  font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap;
  transition: background-color .18s ease, border-color .18s ease;
}
.chip:hover { background: var(--brand-tint); border-color: var(--brand); }

/* On a pointer-sized screen there is room to wrap, and a horizontal scroller
   is awkward without a touch gesture — so the row only scrolls on mobile. */
@media (min-width: 720px) {
  .chips { flex-wrap: wrap; overflow: visible; scroll-snap-type: none; padding: 0; }
}

/* Let the row run to the screen edges on small viewports, so it reads as
   swipeable and the last chip is visibly cut off. */
@media (max-width: 719px) {
  .chips-wrap { flex-direction: column; align-items: stretch; gap: 8px; }
  /* The extra 8px on the left keeps the first pill off the text column, so a
     bordered chip does not read as sitting hard against the edge.
     scroll-padding-left must match: without it the snap port starts at the
     border edge and the browser scrolls straight past the padding on load. */
  .chips {
    margin-left: -20px; margin-right: -20px;
    padding-left: 28px; padding-right: 20px;
    scroll-padding-left: 28px;
  }
  .chips__label { padding-left: 8px; }
}

/* Hero aside — mascot standing on the savings panel */
.hero__aside { position: relative; }
.hero__aside picture { display: block; }
.hero__mascot-slot {
  position: relative; z-index: 1;
  width: min(200px, 55%); margin: 0 auto -26px;
  filter: drop-shadow(0 18px 24px rgba(44, 62, 80, .18));
}
.hero__mascot {
  position: relative; z-index: 1;
  width: min(210px, 58%); height: auto;
  margin: 0 auto -26px;
  filter: drop-shadow(0 18px 24px rgba(44, 62, 80, .18));
}

/* Savings panel — typographic, no illustration */
.figure-panel {
  background: var(--brand-tint); border-radius: var(--r-lg);
  padding: 30px 26px;
}
.figure-panel__label {
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--green-deep);
}
.figure-panel__figure {
  margin-top: 14px;
  font-family: var(--font-display); font-weight: 800; font-size: 52px;
  letter-spacing: -.03em; color: var(--ink); line-height: 1;
}
.figure-panel__caption { margin-top: 10px; font-size: 14px; color: var(--muted); max-width: 26em; }
.figure-panel__rows { margin-top: 26px; border-top: 1px solid rgba(10, 143, 67, .18); }
.figure-panel__row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid rgba(10, 143, 67, .18);
  font-size: 14.5px;
}
.figure-panel__row:last-child { border-bottom: none; }
.figure-panel__row dt { color: var(--muted); margin: 0; }
.figure-panel__row dd { margin: 0; font-weight: 700; font-family: var(--font-display); }

@media (min-width: 900px) {
  .hero { padding: 64px 0 72px; }
  .hero__grid { grid-template-columns: 1.08fr .92fr; gap: 56px; }
  .hero__mascot { width: min(260px, 62%); margin-bottom: -34px; }
  .figure-panel { padding: 40px 36px; }
  .figure-panel__figure { font-size: 62px; }
}

/* Stat strip */
.stat-strip {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; background: #fff;
}
.stat { padding: 22px 16px; text-align: center; border-bottom: 1px solid var(--line); }
.stat:nth-child(odd) { border-right: 1px solid var(--line); }
.stat:nth-last-child(-n+2) { border-bottom: none; }
.stat__value {
  font-family: var(--font-display); font-weight: 800; font-size: 26px;
  letter-spacing: -.02em; color: var(--brand);
}
.stat__label { margin-top: 4px; font-size: 13.5px; color: var(--muted); }

@media (min-width: 720px) {
  .stat-strip { grid-template-columns: repeat(4, 1fr); }
  .stat { border-bottom: none; }
  .stat:last-child { border-right: none; }
  .stat__value { font-size: 32px; }
}

/* --------------------------------------------------------------------------
   7. Steps
   -------------------------------------------------------------------------- */
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px 24px; }
.step__num {
  font-family: var(--font-display); font-weight: 800; font-size: 42px; line-height: 1;
  color: #bfeed4; letter-spacing: -.03em; margin-bottom: 16px;
}
.step__label {
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--green-deep); margin-bottom: 12px;
}
.step__title { font-size: 21px; }
.step__text { margin-top: 10px; color: var(--muted); font-size: 15.5px; }

/* --------------------------------------------------------------------------
   8. Installer cards
   -------------------------------------------------------------------------- */
.installer {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 22px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.installer:hover { border-color: var(--brand); box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* Card head is stacked by default — the name gets the full width instead of
   competing with a right-hand rating column, so it stops wrapping on a phone,
   and the score, stars and review count sit on one line underneath. */
.installer__top { display: block; }
.installer__name { font-size: 17.5px; font-weight: 800; font-family: var(--font-display); }
.installer__place { margin-top: 3px; font-size: 14px; color: var(--muted); }
.installer__rating {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px;
  margin-top: 12px; text-align: left;
}
.installer__reviews { margin-left: auto; }
.installer__score { font-family: var(--font-display); font-weight: 800; font-size: 21px; line-height: 1; letter-spacing: -.02em; }

/* Wide enough for a side-by-side head — but the compact home cards stay
   stacked, since their grid column is narrow at every width. */
@media (min-width: 640px) {
  .installer:not(.installer--compact) .installer__top { display: flex; gap: 14px; align-items: flex-start; }
  .installer:not(.installer--compact) .installer__rating {
    display: block; margin: 0 0 0 auto; text-align: right; flex-shrink: 0;
  }
  .installer:not(.installer--compact) .installer__reviews { margin-left: 0; }
  .installer:not(.installer--compact) .installer__score { font-size: 24px; }
}
.stars { color: var(--amber); font-size: 13px; letter-spacing: 1px; }
.installer__reviews { font-size: 12.5px; color: var(--muted); }
.installer__desc { margin-top: 14px; font-size: 15px; color: var(--muted); }

.tag {
  padding: 5px 12px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 500; color: var(--muted);
}
.tag--accredited { background: var(--brand-tint); border-color: #b6ecd0; color: var(--green-deep); font-weight: 700; }
.tag--licence { background: #eef4fb; border-color: #d8e6f5; color: #2c5f92; }

/* Foot stacks on a phone with the two actions as equal halves — side by side
   they were landing at different widths in an odd left-aligned column. */
.installer__foot {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
}
.installer__foot .installer__actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 0;
}
.installer__foot .installer__actions .btn { width: 100%; }

@media (min-width: 640px) {
  .installer__foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
  .installer__foot .installer__actions {
    display: flex; grid-template-columns: none; margin: 0 0 0 auto;
  }
  .installer__foot .installer__actions .btn { width: auto; }
}

/* Credentials: one emphasised pill, everything else as quiet meta text. */
.installer__creds { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 16px; }
.installer__licence { font-size: 13px; color: var(--muted); }
.installer__brands { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.installer__brands b {
  display: inline-block; margin-right: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--slate);
}

.installer__meta { font-size: 13px; color: var(--muted); }
.installer__meta > span + span::before { content: "·"; margin: 0 8px; color: var(--line-strong); }
.installer__actions { display: flex; gap: 8px; margin-left: auto; }
.installer__notice {
  margin-top: 10px; font-size: 13px; color: #8a6410;
  background: #fff6e5; border-radius: var(--r-sm); padding: 8px 14px;
}

.link-more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 28px;
  font-weight: 700; color: var(--green-deep);
}
.link-more:hover { gap: 10px; }

/* --------------------------------------------------------------------------
   9. Value props
   -------------------------------------------------------------------------- */
.props { display: grid; gap: 14px; grid-template-columns: 1fr; }
.prop {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 22px 20px;
}
.prop::before {
  content: ""; display: block; width: 28px; height: 3px;
  border-radius: 2px; background: var(--brand); margin-bottom: 16px;
}
.prop--teal::before { background: var(--teal); }
.prop--pink::before { background: var(--pink); }
.prop--slate::before { background: var(--slate); }
.prop__title { font-family: var(--font-display); font-weight: 800; font-size: 16.5px; }
.prop__text { font-size: 14.5px; color: var(--muted); margin-top: 4px; }

@media (min-width: 640px) { .props { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .props { grid-template-columns: repeat(5, 1fr); } }

/* --------------------------------------------------------------------------
   10. CTA band
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   Mascot
   The character points to its own left, so on wide layouts it sits to the
   right of whatever it should be pointing at.
   -------------------------------------------------------------------------- */
.mascot-slot picture { display: block; }
.mascot { width: 100%; height: auto; margin: 0 auto; }

.cta-band { background: var(--brand-tint); border-radius: var(--r-lg); padding: 36px 24px; text-align: center; }
.cta-band__title { font-size: 28px; }
.cta-band__text { margin: 12px auto 24px; max-width: 46em; color: var(--muted); }
@media (min-width: 900px) {
  .cta-band { padding: 56px 48px; }
  .cta-band__title { font-size: 36px; }
}

/* CTA band with the mascot alongside it. */
.cta-band--mascot { display: grid; gap: 8px; align-items: center; }
.cta-band--mascot .cta-band__art { width: 140px; margin: 0 auto 4px; order: -1; }
@media (min-width: 860px) {
  .cta-band--mascot { grid-template-columns: minmax(0, 1fr) 190px; gap: 40px; text-align: left; }
  .cta-band--mascot .cta-band__art { width: 190px; margin: 0; order: 0; }
  .cta-band--mascot .cta-band__text { margin-left: 0; margin-right: 0; }
}

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 48px 0 32px; margin-top: 8px; }
.footer__grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
.footer__tagline { margin-top: 14px; font-size: 15px; color: var(--muted); max-width: 24em; }
.footer__col-title {
  font-family: var(--font-display); font-weight: 800; font-size: 13px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--slate); margin-bottom: 12px;
}
.footer__links li { margin-bottom: 10px; }
.footer__links a { font-size: 15px; color: var(--muted); }
.footer__links a:hover { color: var(--brand); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted-soft);
}
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; } }

/* --------------------------------------------------------------------------
   12. Search page
   -------------------------------------------------------------------------- */
.search-strip { background: var(--brand-tint-2); border-bottom: 1px solid var(--line); padding: 16px 0; }
.search-strip__inner { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.search-strip .searchbar { margin-top: 0; flex: 1 1 280px; box-shadow: var(--shadow-sm); }
.search-strip__count { font-size: 14.5px; color: var(--muted); }
.search-strip__count b { color: var(--ink); }

.results-layout { display: grid; gap: 24px; grid-template-columns: 1fr; padding: 24px 0 var(--section); }

.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 6px 20px; }
.filters__group { padding: 18px 0; border-bottom: 1px solid var(--line); }
.filters__group:last-child { border-bottom: none; }
.filters__title {
  font-family: var(--font-display); font-weight: 800; font-size: 12.5px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--slate); margin-bottom: 12px;
}
/* The label is the tap target, not the 18px control inside it, so keep the
   whole row comfortably above 40px. */
.opt {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 8px; margin: 0 -8px; border-radius: 12px;
  font-size: 14.5px; cursor: pointer;
}
.opt:hover { background: var(--brand-tint-2); }
/* Drawn from scratch. accent-color alone leaves the browser's dark ring
   around the control, which reads as a black outline on the green. */
.opt input {
  appearance: none; -webkit-appearance: none;
  flex-shrink: 0; width: 20px; height: 20px; margin: 0;
  border: 2px solid var(--line-strong); background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.opt input[type="radio"] { border-radius: var(--r-full); }
.opt input[type="checkbox"] { border-radius: 6px; }
.opt:hover input { border-color: var(--brand); }

.opt input[type="radio"]:checked {
  border-color: var(--brand);
  background:
    radial-gradient(circle at 50% 50%, var(--brand) 0 4.5px, #fff 4.5px 100%);
}
.opt input[type="checkbox"]:checked {
  border-color: var(--brand); background-color: var(--brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.2 8.4l3 3 6.6-6.8' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 14px; background-position: center; background-repeat: no-repeat;
}
.opt input:focus-visible { outline: 3px solid rgba(12, 210, 95, .55); outline-offset: 2px; }
.opt__count { margin-left: auto; font-size: 12.5px; color: var(--muted-soft); }

.filters-toggle { display: flex; }
.results__bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }
.results__count { font-size: 14.5px; color: var(--muted); }
.select {
  margin-left: auto; padding: 11px 16px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: #fff;
  font-family: var(--font-body); font-size: 14.5px; color: var(--ink); cursor: pointer;
}
.results__list { display: grid; gap: 16px; }
.results__empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.results__empty .mascot-slot { width: 128px; margin: 0 auto 16px; }

/* Area summary. This replaced a drawn-on "map" — a fake street grid with pins
   that could never reflect real geography looked cheap and told you nothing,
   so the column now reports the shape of the current result set instead. */
.area { display: grid; gap: 16px; align-content: start; }
.area__card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; }
.area__label {
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--green-deep);
}
.area__place { margin-top: 6px; font-family: var(--font-display); font-weight: 800; font-size: 18px; }

.area__figures { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.area__figure {
  font-family: var(--font-display); font-weight: 800; font-size: 30px;
  line-height: 1; letter-spacing: -.02em;
}
.area__caption { margin-top: 5px; font-size: 12.5px; color: var(--muted); }

.area__rows { margin-top: 20px; border-top: 1px solid var(--line); }
.area__row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13.5px;
}
.area__row:last-child { border-bottom: none; }
.area__row dt { margin: 0; color: var(--muted); }
.area__row dd { margin: 0; font-weight: 700; }

.area__card--cta { background: var(--brand-tint); border-color: transparent; text-align: center; }
.area__art { width: 116px; margin: 0 auto 6px; }
.area__cta-title { font-size: 18px; }
.area__cta-text { margin: 8px 0 16px; font-size: 13.5px; color: var(--muted); }

@media (min-width: 900px) {
  .results-layout { grid-template-columns: 260px minmax(0, 1fr); }
  .filters-toggle { display: none; }
  .filters { position: sticky; top: calc(var(--header-h) + 16px); align-self: start; }
}
@media (min-width: 1200px) {
  .results-layout { grid-template-columns: 250px minmax(0, 1fr) 290px; }
  .area { position: sticky; top: calc(var(--header-h) + 16px); align-self: start; }
}
@media (max-width: 899px) {
  .filters { display: none; }
  .filters.is-open { display: block; }
}

/* --------------------------------------------------------------------------
   13. Compare table
   -------------------------------------------------------------------------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.ctable { width: 100%; min-width: 700px; border-collapse: collapse; }
.ctable th, .ctable td { padding: 16px 14px; text-align: center; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ctable tbody tr:last-child td, .ctable tbody tr:last-child th { border-bottom: none; }
.ctable th[scope="row"] {
  text-align: left; font-size: 14px; font-weight: 700; color: var(--slate);
  background: var(--surface); width: 160px;
  /* Pinned while the table scrolls sideways, so you never lose track of which
     row you are reading on a phone. */
  position: sticky; left: 0; z-index: 2;
}
@media (max-width: 640px) {
  .ctable th[scope="row"] { width: 122px; padding-left: 12px; padding-right: 10px; font-size: 13px; }
  .ctable th, .ctable td { padding-left: 10px; padding-right: 10px; }
}
.ctable thead th { background: #fff; }
.ctable thead th:first-child { background: var(--surface); }
.ctable__co { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ctable__name { font-family: var(--font-display); font-weight: 800; font-size: 16px; }
.ctable__place { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.is-best { background: var(--brand-tint-2); }
.cell-strong { font-family: var(--font-display); font-weight: 800; font-size: 19px; }
.yes { color: var(--green-deep); font-weight: 700; font-size: 14.5px; }
.pill-warn {
  display: inline-block; padding: 4px 12px; border-radius: var(--r-pill);
  background: #fff6e5; color: #8a6410; font-size: 12.5px; font-weight: 600;
}
.pill-ok {
  display: inline-block; padding: 4px 12px; border-radius: var(--r-pill);
  background: var(--brand-tint); color: var(--green-deep); font-size: 12.5px; font-weight: 600;
}
.cell-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.compare-hint { margin-top: 14px; font-size: 13.5px; color: var(--muted-soft); }

/* --------------------------------------------------------------------------
   14. Content pages (guides / about / legal)
   -------------------------------------------------------------------------- */
.guide {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.guide:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.guide__bar { height: 5px; background: var(--brand); }
.guide__bar--teal { background: var(--teal); }
.guide__bar--pink { background: var(--pink); }
.guide__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.guide__kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green-deep); }
.guide__title { margin-top: 8px; font-size: 19px; }
.guide__text { margin-top: 10px; font-size: 14.5px; color: var(--muted); flex: 1; }
.guide__meta { margin-top: 16px; font-size: 13px; color: var(--muted-soft); }

.prose { max-width: 720px; }
.prose h2 { font-size: 26px; margin-top: 40px; }
.prose h3 { font-size: 19px; margin-top: 28px; }
.prose p { margin-top: 14px; color: var(--muted); }
.prose ul { margin-top: 14px; }
.prose ul li { position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--muted); }
.prose ul li::before {
  content: ""; position: absolute; left: 4px; top: 11px;
  width: 8px; height: 8px; border-radius: var(--r-full); background: var(--brand);
}
.prose a { color: var(--green-deep); font-weight: 600; }
.prose > *:first-child { margin-top: 0; }

.faq { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; overflow: hidden; }
.faq--centred { max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: none; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 22px;
  font-family: var(--font-display); font-weight: 700; font-size: 16.5px;
  display: flex; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; margin-left: auto; color: var(--brand);
  font-size: 22px; font-weight: 700; line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq__body { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }

/* --------------------------------------------------------------------------
   15. Pricing / business
   -------------------------------------------------------------------------- */
.plan { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 24px; }
.plan--featured { border-color: var(--brand); background: var(--brand-tint-2); box-shadow: var(--shadow-md); }
.plan__badge {
  align-self: flex-start; margin-bottom: 12px;
  padding: 5px 14px; border-radius: var(--r-pill);
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 700;
}
.plan__name { font-family: var(--font-display); font-weight: 800; font-size: 19px; }
.plan__price { margin-top: 12px; font-family: var(--font-display); font-weight: 800; font-size: 38px; letter-spacing: -.02em; }
.plan__price small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan__text { margin-top: 8px; font-size: 14.5px; color: var(--muted); }
.plan__list { margin: 20px 0 24px; flex: 1; }
.plan__list li { position: relative; padding-left: 26px; margin-bottom: 10px; font-size: 14.5px; color: var(--muted); }
.plan__list li::before { content: "\2713"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }

/* --------------------------------------------------------------------------
   16. Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14.5px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 15px 20px;
  border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  background: #fff; font-family: var(--font-body); font-size: 16px; color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { min-height: 130px; resize: vertical; border-radius: var(--r-md); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(12, 210, 95, .14);
}
.field__hint { font-size: 13px; color: var(--muted-soft); }
.field__error { font-size: 13px; color: #c0392b; display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #e57373; }
.field.has-error .field__error { display: block; }
.form__row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }

.choice-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 12px 16px; text-align: center;
  border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  font-size: 15px; font-weight: 500; cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease;
}
.choice input:checked + span { border-color: var(--brand); background: var(--brand-tint); font-weight: 700; }
.choice input:focus-visible + span { outline: 3px solid rgba(12, 210, 95, .55); outline-offset: 2px; }

.form-note { font-size: 13px; color: var(--muted-soft); }
.form-success {
  display: none; text-align: center;
  background: var(--brand-tint); border-radius: var(--r-lg); padding: 40px 24px;
}
.form-success.is-visible { display: block; }
.form-success .mascot-slot { width: 118px; margin: 0 auto 4px; }
.form-success__title { margin-top: 12px; font-size: 26px; }
.form-success__text { margin-top: 10px; color: var(--muted); }

/* --------------------------------------------------------------------------
   17. Misc
   -------------------------------------------------------------------------- */
.split { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr .95fr; gap: 56px; } }

.note-band {
  background: var(--brand-tint-2); border: 1px dashed #bfe9d2;
  border-radius: var(--r-md); padding: 18px 22px; font-size: 14px; color: var(--muted);
}

.value-list li { position: relative; padding-left: 30px; margin-bottom: 14px; color: var(--muted); }
.value-list li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--brand); font-weight: 800; }
.value-list b { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
