/* GaffHunt landing — page styles over the DS bundle (ds.css).
   Flattened from the design of record (Claude Design project "Rental
   Hunt UI", templates/landing-page/LandingPage.dc.html); the helmet
   styles live here, plus the ticket-02 form additions and the
   responsive rules the ship target needs. Tokens only — no raw values
   outside the self-hosted @font-face. */

/* Inter, self-hosted (no Google Fonts request — the privacy page says
   no third-party calls, so the page makes none). */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/db892a0e609d0cf2/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/db892a0e609d0cf2/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
html { scroll-behavior: smooth; }
/* Inline display:flex on the form/done blocks must not defeat hidden. */
[hidden] { display: none !important; }

/* Match the shared TierBar: solid band colour, with doubt on the corner. */
[data-slot="band-mark"][data-confidence="uncertain"] {
  position: relative;
  overflow: visible;
}
[data-slot="band-mark"][data-confidence="uncertain"]::after {
  content: '?';
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  place-items: center;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--foreground) 88%, var(--card));
  color: var(--background);
  box-shadow: 0 0 0 1.5px var(--card);
  font: 800 10px/1 ui-sans-serif, system-ui, sans-serif;
}

/* Match the app: evidence starts after the 20px band mark and 9px gap. */
[data-slot="tier-bar"] > [data-slot="evidence"],
[data-slot="tier-bar"] > [data-slot="commute-detail"],
.gh-criterion-detail-inner > [data-slot="evidence"],
.gh-criterion-detail-inner > [data-slot="commute-detail"] {
  margin-left: 29px;
}
.gh-criterion-detail {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 160ms ease-out, opacity 160ms ease-out;
}
.gh-criterion-detail-inner {
  min-height: 0;
  overflow: hidden;
}
[data-slot="tier-bar"][data-state="open"] > .gh-criterion-detail {
  grid-template-rows: 1fr;
  opacity: 1;
}
[data-slot="tier-bar"] .lucide-chevron-down {
  transition: transform 160ms ease-out;
}
[data-slot="tier-bar"][data-state="open"] .lucide-chevron-down {
  transform: rotate(180deg);
}
@media (prefers-reduced-motion: reduce) {
  .gh-criterion-detail,
  [data-slot="tier-bar"] .lucide-chevron-down { transition: none; }
}

/* The product card header, also used by the smaller card behind it. */
.gh-card-header {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}
.gh-card-header-back {
  padding: 16px 18px;
  border: 0;
  opacity: 0.55;
}
.gh-card-score {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gh-score-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--score-size);
  height: var(--score-size);
  border-radius: 50%;
  background: conic-gradient(var(--score-tone) 0 var(--score-value), var(--score-track) var(--score-value) 100%);
}
.gh-score-ring > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(var(--score-size) - 16px);
  height: calc(var(--score-size) - 16px);
  border-radius: 50%;
  background: var(--card);
  font-size: calc(var(--score-size) / 3);
  font-weight: 700;
}
.gh-card-rank {
  position: absolute;
  top: calc(100% + 4px);
  color: var(--muted-foreground);
  font-size: var(--font-size-sm);
}
.gh-card-heading {
  min-width: 0;
}
.gh-card-heading h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.gh-card-heading [data-variant="new"] {
  margin-left: 4px;
  vertical-align: middle;
}
.gh-card-basics {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 6px;
  margin-top: 4px;
  color: var(--secondary-foreground);
  font-size: var(--font-size-base);
}
.gh-card-basics strong {
  color: var(--foreground);
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}
.gh-card-basics small {
  color: var(--muted-foreground);
  font-size: var(--font-size-xs);
  font-weight: 400;
}
.gh-card-basics > span {
  display: inline-flex;
  gap: 6px;
  white-space: nowrap;
}
.gh-card-dot {
  color: var(--muted-foreground);
}

/* Size the fixed divider to the card, which can be narrow on desktop. */
.gh-breakdown {
  container-type: inline-size;
}
.gh-breakdown-divider {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--muted-foreground);
  font-size: var(--font-size-xs);
  font-weight: 500;
}
.gh-breakdown-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.gh-breakdown-end {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.gh-breakdown-end::before {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.gh-breakdown-counts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 6px;
  min-width: 0;
  font-weight: 400;
}
.gh-breakdown-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-block: 4px;
}
@container (min-width: 700px) {
  .gh-breakdown-divider {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }
  .gh-breakdown-divider::before {
    content: '';
    height: 1px;
    background: var(--border);
  }
}

[data-accents="mono"] .gh-eb { font-family: var(--typeface-mono); font-weight: 600; }
[data-accents="sans"] .gh-eb { font-weight: 700; }
[data-accents="mono"] .gh-num { font-family: var(--typeface-mono); font-weight: 700; }
[data-accents="sans"] .gh-num { font-weight: 800; }

/* Pill options — the template's .gh-pill, carried onto real radios so
   the form works before (and without) JS. */
.gh-pill {
  padding: 7px 14px;
  border-radius: var(--corner-full);
  border: var(--stroke-hairline) solid var(--input);
  background: var(--card);
  color: var(--secondary-foreground);
  font-family: inherit;
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}
.gh-pill input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.gh-pill:has(input:checked) {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}
.gh-pill:has(input:focus-visible) {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* Conditional city field: only when "Somewhere else" is picked. */
.wl-where { display: none; }
form:has(#wl-loc-elsewhere:checked) .wl-where { display: flex; }

/* Honeypot: removed from view, not from the DOM. */
.wl-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Responsive — the design of record is a desktop composition; below
   900px the two-column grids stack and display type steps down. */
@media (max-width: 900px) {
  .gh-hero, .gh-2col { grid-template-columns: 1fr !important; gap: 48px !important; }
  .gh-3col { grid-template-columns: 1fr !important; }
  .gh-faq { grid-template-columns: 1fr !important; }
  .gh-hero h1 { font-size: 40px !important; }
  h2 { font-size: 32px !important; }
}
