/* ==========================================================================
   Black Label Real Estate — blbestate.com
   Design system. Dark-first, fluid, WCAG 2.2 AA.

   CONTRAST BUDGET (measured against --bg #0b0d10, relative luminance 0.00397):
     --ink      #e9e6e0  15.6:1   body + headings
     --gold     #d8b46a   9.9:1   accent text, links, numerals
     --ink-2    #a8aeb6   8.7:1   secondary prose
     --ink-3    #7c828a   5.0:1   fine print (still AA for normal text)
     --ink on --gold button                  9.9:1
   Every one clears 4.5:1, so nothing here depends on "large text" leniency.

   FLUID, NOT BREAKPOINT-SNAPPED: type and rhythm interpolate with clamp() so a
   660px foldable and a 1440px laptop each get a composition tuned to them
   instead of the nearest of three fixed layouts. Container queries handle the
   panels that need to reflow independently of viewport width.
   ========================================================================== */

/* --------------------------------------------------------------- tokens -- */

:root {
  color-scheme: dark;

  --bg:        #0b0d10;
  --bg-2:      #0e1116;
  --surface:   #12151a;
  --surface-2: #171b21;
  --line:      #23272e;
  --line-2:    #2e343d;

  --ink:   #e9e6e0;
  --ink-2: #a8aeb6;
  --ink-3: #7c828a;

  --gold:      #d8b46a;
  --gold-deep: #b8934a;
  --gold-dim:  rgba(216, 180, 106, 0.14);

  --pos: #7fd1a0;  /* 8.0:1 — "signal found" */
  --neg: #e8917f;  /* 7.4:1 — "gated / missing" */

  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono:  ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Fluid scale. Min values are the phone rendering; max the wide desktop. */
  --step--1: clamp(0.8125rem, 0.79rem + 0.11vw, 0.875rem);
  --step-0:  clamp(1rem, 0.96rem + 0.19vw, 1.125rem);
  --step-1:  clamp(1.15rem, 1.08rem + 0.35vw, 1.375rem);
  --step-2:  clamp(1.4rem, 1.26rem + 0.68vw, 1.875rem);
  --step-3:  clamp(1.75rem, 1.5rem + 1.2vw, 2.5rem);
  --step-4:  clamp(2.15rem, 1.7rem + 2.2vw, 3.5rem);
  --step-5:  clamp(2.5rem, 1.8rem + 3.4vw, 4.5rem);

  --gutter: clamp(1.15rem, 0.7rem + 2.2vw, 3rem);
  --section-y: clamp(3.5rem, 2rem + 7vw, 7.5rem);
  --radius: 14px;
  --radius-sm: 10px;

  --measure: 62ch;      /* prose never gets wider than this */
  --shell: 1220px;      /* the centered content column */

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ----------------------------------------------------------- foundation -- */

*, *::before, *::after { box-sizing: border-box; }

html {
  /* Belt and braces against a wide child ever creating a horizontal scrollbar:
     the page itself is clipped, and every wide component scrolls inside itself. */
  overflow-x: clip;
  scroll-behavior: smooth;
  /* Anchored sections land below the sticky header instead of under it. */
  scroll-padding-top: calc(var(--header-h, 60px) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, canvas, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }

p { margin: 0; text-wrap: pretty; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: #e8c88a; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--gold); color: #0b0c0e; }

.skip {
  position: absolute;
  left: 0.5rem;
  top: -100vh;
  z-index: 200;
  background: var(--gold);
  color: #0b0c0e;
  font-weight: 700;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-sm);
}
.skip:focus { top: 0.5rem; }

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

/* ---------------------------------------------------------------- shell -- */

.shell {
  width: min(100% - var(--gutter) * 2, var(--shell));
  margin-inline: auto;   /* the per-device centering guarantee */
}
.shell--narrow { width: min(100% - var(--gutter) * 2, 46rem); }

section { padding-block: var(--section-y); }
.section-hd { max-width: var(--measure); margin-bottom: clamp(2rem, 1rem + 3vw, 3.25rem); }
.section-hd p { color: var(--ink-2); margin-top: 0.9rem; font-size: var(--step-1); }

.eyebrow {
  font: 600 var(--step--1) / 1.2 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.lede { color: var(--ink-2); font-size: var(--step-1); max-width: var(--measure); }

.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* --------------------------------------------------------------- header -- */

.hdr {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.hdr__in {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 2rem);
  min-height: 60px;
  padding-block: 0.6rem;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
}
.brand b { color: var(--ink); font-weight: 600; }

.nav { display: flex; gap: clamp(0.6rem, 1.6vw, 1.6rem); margin-left: auto; align-items: center; }
.nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: var(--step--1);
  padding: 0.55rem 0.2rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.hdr__cta { display: flex; gap: 0.6rem; align-items: center; }

/* Below the point where the full nav stops fitting, the links collapse into a
   details/summary disclosure — no JS, keyboard-operable, screen-reader sane. */
.navbar { display: contents; }

/* Phone-width header: the brand + hamburger + two CTAs must never exceed the
   viewport, or their min-content width drags the whole page wider than the
   screen and every centered block clips at the edges. Tighten first; below
   ~24.5rem drop the ghost "Sign in" (the footer's "Your account" still routes
   there, and /account itself signs you in). */
.nav .nav-signin { display: none; }
@media (max-width: 30rem) {
  .hdr__in { gap: 0.5rem; }
  .brand { letter-spacing: 0.09em; }
  .hdr__cta { gap: 0.4rem; margin-left: auto; }
  .hdr__cta .btn--sm { padding-inline: 0.7rem; }
  /* The ghost button is what breaks 320–480px header math; the same path lives
     on as a link in the collapsed nav (home) and via the brand link (account). */
  .hdr__cta .btn--ghost { display: none; }
  .nav .nav-signin { display: flex; }
}
@media (max-width: 22rem) {
  .brand { font-size: 0.72rem; letter-spacing: 0.06em; }
  .hdr__cta .btn--sm { padding-inline: 0.55rem; }
}
@media (max-width: 60rem) {
  .nav { display: none; }
  .navbar[open] .nav {
    display: flex;
    position: absolute;
    inset: 100% 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1rem;
  }
  .navbar[open] .nav a { padding: 0.85rem 0; border-top: 1px solid var(--line); }
}
.navtoggle {
  display: none;
  margin-left: auto;
  list-style: none;
  cursor: pointer;
  min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: var(--surface);
}
.navtoggle::-webkit-details-marker { display: none; }
@media (max-width: 60rem) { .navtoggle { display: inline-flex; } }
@media (min-width: 60.0625rem) { .navtoggle { display: none; } }

/* --------------------------------------------------------------- button -- */

.btn {
  --btn-bg: var(--gold);
  --btn-fg: #0b0c0e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;              /* WCAG 2.2 target size, with room to spare */
  padding: 0.72rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 700 var(--step-0) / 1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.16s var(--ease), background-color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.btn:hover { background: #e8c88a; color: #0b0c0e; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-2);
}
.btn--ghost:hover { background: var(--surface-2); color: var(--ink); border-color: var(--gold); }
.btn--sm { min-height: 40px; padding: 0.5rem 0.95rem; font-size: var(--step--1); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.cta-note { color: var(--ink-3); font-size: var(--step--1); margin-top: 1rem; }

/* ----------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  padding-block: clamp(2.5rem, 1.5rem + 5vw, 5.5rem) clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  overflow: clip;
}
/* A single soft light source, drawn with a gradient rather than an image, so it
   costs nothing to load and cannot pixelate. */
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto;
  height: 90%;
  background: radial-gradient(60% 55% at 68% 8%, rgba(216, 180, 106, 0.14), transparent 70%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 3.5rem);
  align-items: center;
}
@media (min-width: 62rem) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
}
.hero h1 { margin-bottom: 1.1rem; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero__sub { color: var(--ink-2); font-size: var(--step-1); max-width: 34ch; margin-bottom: 1.9rem; }
@media (max-width: 61.99rem) {
  .hero__copy { text-align: center; }
  .hero__sub { max-width: 46ch; margin-inline: auto; }
  .hero .eyebrow, .hero .cta-row { justify-content: center; }
  .hero .trust { justify-content: center; }
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin-top: 1.5rem;
  color: var(--ink-3);
  font-size: var(--step--1);
}
.trust li { list-style: none; display: flex; align-items: center; gap: 0.45rem; }
.trust svg { flex: none; color: var(--gold); }
.trust ul { display: contents; }

/* ------------------------------------------------------------ live panel -- */

.panel {
  container-type: inline-size;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: 0 30px 70px -35px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}
.panel__bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.95rem;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.24);
  font: 600 var(--step--1) / 1 var(--sans);
  color: var(--ink-2);
}
.panel__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pos); flex: none; }
.panel__live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font: 600 0.6875rem / 1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pos);
}
.panel__body { padding: clamp(0.85rem, 2.5cqi, 1.25rem); }

.finder__form { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.finder__form label { flex: 1 1 12rem; min-width: 0; }
.field {
  display: block;
  font: 600 var(--step--1) / 1.4 var(--sans);
  color: var(--ink-2);
  margin-bottom: 0.35rem;
}
input[type="text"], input[type="email"], input[type="search"], input[type="number"], input[type="password"], select {
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0.8rem;
  background: #0a0c0f;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font: 400 var(--step-0) / 1.4 var(--sans);
}
input::placeholder { color: #6b7178; }
input:focus, select:focus { border-color: var(--gold); }
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%),
                    linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: right 1.05rem center, right 0.8rem center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
}

/* Result rows scroll inside the panel; the page never scrolls sideways. */
.rows { margin-top: 0.9rem; display: grid; gap: 0.55rem; max-height: 21rem; overflow-y: auto; overscroll-behavior: contain; }
.rows:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.row {
  display: grid;
  gap: 0.15rem 0.9rem;
  padding: 0.7rem 0.85rem;
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}
.row__addr { font-weight: 600; font-size: var(--step--1); overflow-wrap: anywhere; }
.row__meta { grid-column: 1; color: var(--ink-3); font-size: 0.75rem; font-family: var(--mono); overflow-wrap: anywhere; }
.row__val { grid-column: 2; grid-row: 1 / span 2; text-align: right; font-family: var(--mono); font-size: var(--step--1); color: var(--gold); white-space: nowrap; }
.row__tag {
  display: inline-block;
  font: 600 0.6875rem / 1 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  border: 1px solid;
}
.tag--td { color: var(--pos); border-color: rgba(127, 209, 160, 0.4); background: rgba(127, 209, 160, 0.08); }
.tag--ab { color: var(--gold); border-color: rgba(216, 180, 106, 0.4); background: var(--gold-dim); }
.tag--gate { color: var(--neg); border-color: rgba(232, 145, 127, 0.4); background: rgba(232, 145, 127, 0.08); }
.row__tags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.4rem; }

.row__src { grid-column: 1 / -1; margin-top: 0.4rem; font-size: 0.75rem; }
.row__src a { color: var(--ink-3); text-decoration: none; border-bottom: 1px dotted var(--line-2); }
.row__src a:hover { color: var(--gold); border-bottom-color: currentColor; }

.panel__foot {
  border-top: 1px solid var(--line);
  padding: 0.65rem 0.95rem;
  color: var(--ink-3);
  font-size: 0.75rem;
  line-height: 1.55;
}

.status { color: var(--ink-2); font-size: var(--step--1); padding: 0.9rem 0.2rem; }
.status--err { color: var(--neg); }

/* ---------------------------------------------------------------- stats -- */

.stats {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr));
}
.stat { background: var(--bg-2); padding: clamp(1rem, 2.5vw, 1.6rem); }
.stat dt { color: var(--ink-3); font-size: var(--step--1); margin-bottom: 0.35rem; }
.stat dd {
  margin: 0;
  font-family: var(--mono);
  font-size: var(--step-2);
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.stat small { display: block; color: var(--ink-3); font-size: 0.75rem; font-family: var(--sans); margin-top: 0.3rem; }

/* ---------------------------------------------------------------- cards -- */

.cards {
  display: grid;
  gap: clamp(0.9rem, 2vw, 1.4rem);
  grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.15rem, 2.6vw, 1.8rem);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.card h3 { color: var(--ink); }
.card p { color: var(--ink-2); font-size: var(--step--1); }
.card__k { font: 600 var(--step--1) / 1 var(--mono); color: var(--gold); letter-spacing: 0.08em; }
.card__gate {
  margin-top: auto;
  padding-top: 0.7rem;
  border-top: 1px dashed var(--line-2);
  color: var(--ink-3);
  font-size: 0.8125rem;
}

/* ------------------------------------------------------------ calculator -- */

.calc { display: grid; gap: clamp(1.2rem, 3vw, 2.2rem); }
@media (min-width: 54rem) { .calc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.calc__inputs { display: grid; gap: 0.9rem; align-content: start; }
.calc__out { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; align-content: start; }
.calc__line { background: var(--bg-2); display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.85rem 1.1rem; }
.calc__line dt { color: var(--ink-2); font-size: var(--step--1); }
.calc__line dd { margin: 0; font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); }
.calc__line--hero { background: var(--surface-2); }
.calc__line--hero dt { color: var(--ink); font-weight: 600; }
.calc__line--hero dd { color: var(--gold); font-size: var(--step-1); }
input[type="range"] { width: 100%; accent-color: var(--gold); min-height: 44px; }

/* --------------------------------------------------------------- tables -- */

.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: var(--step--1); }
caption { text-align: left; padding: 0.9rem 1.1rem; color: var(--ink-3); font-size: var(--step--1); }
th, td { padding: 0.75rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); }
thead th { background: var(--surface-2); color: var(--ink); font-weight: 600; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* -------------------------------------------------------------- pricing -- */

.price {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--gold-deep);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: grid;
  gap: 1.4rem;
}
@media (min-width: 54rem) { .price { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; gap: 2.5rem; } }
.price__num { font-family: var(--mono); font-size: var(--step-4); color: var(--gold); line-height: 1; letter-spacing: -0.03em; }
.price__num span { font-size: var(--step-1); color: var(--ink-2); }
.checks { display: grid; gap: 0.55rem; margin: 0; padding: 0; }
.checks li { list-style: none; display: grid; grid-template-columns: 1.2rem 1fr; gap: 0.6rem; color: var(--ink-2); font-size: var(--step--1); }
.checks svg { color: var(--gold); margin-top: 0.28rem; }
.terms-note {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.2);
  color: var(--ink-2);
  font-size: 0.8125rem;
  line-height: 1.6;
}

/* ---------------------------------------------------------------- forms -- */

.signup { display: grid; gap: 0.65rem; max-width: 30rem; }
.signup__row { display: flex; gap: 0.55rem; flex-wrap: wrap; }
.signup__row label { flex: 1 1 14rem; min-width: 0; }
.consent { display: grid; grid-template-columns: 1.15rem 1fr; gap: 0.6rem; color: var(--ink-3); font-size: 0.8125rem; line-height: 1.6; }
.consent input { margin-top: 0.25rem; width: 1.15rem; height: 1.15rem; accent-color: var(--gold); }
/* Consent copy with no checkbox (double-opt-in makes one redundant) spans the row. */
.consent > span:only-child { grid-column: 1 / -1; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formnote { font-size: var(--step--1); min-height: 1.5em; }
.formnote--ok { color: var(--pos); }
.formnote--err { color: var(--neg); }

/* --------------------------------------------------------------- footer -- */

.ftr { border-top: 1px solid var(--line); background: var(--bg-2); padding-block: clamp(2.5rem, 5vw, 4rem) 2rem; }
.ftr__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr)); }
.ftr h2 { font: 600 var(--step--1) / 1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.9rem; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.ftr a { color: var(--ink-2); text-decoration: none; font-size: var(--step--1); display: inline-block; padding: 0.2rem 0; }
.ftr a:hover { color: var(--gold); }
.ftr__legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 0.8125rem; line-height: 1.75; }
.ftr__legal p + p { margin-top: 0.7rem; }

/* --------------------------------------------------------------- motion -- */

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.reveal { animation: rise 0.7s var(--ease) both; }
.panel__dot { animation: pulse 2.6s ease-in-out infinite; }

/* Reduced motion is honored completely: no transforms, no autoplay, no smooth
   scroll. The page still tells the whole story — nothing is motion-only. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover { transform: none; }
}

/* Windows High Contrast / forced colors: let the OS palette win, and keep the
   borders that carry meaning. */
@media (forced-colors: active) {
  .btn { border: 1px solid ButtonText; }
  .panel, .card, .row, .stats { border-color: CanvasText; }
  .panel__dot { forced-color-adjust: none; }
}

@media (prefers-contrast: more) {
  :root { --ink-2: #cfd4da; --ink-3: #b3b9c0; --line: #3a4049; --line-2: #4a515b; }
}

/* ------------------------------------------------------------ utilities -- */

.section--tight { padding-top: 0; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.center { text-align: center; }
.measure { max-width: var(--measure); }
.grow { flex: 1 1 16rem; min-width: 0; }
.eyebrow--center { justify-content: center; }
.lede--center { margin-inline: auto; margin-block: 1rem 2rem; }
.cta-row--center { justify-content: center; }

.finder__miles { flex: 0 0 7.5rem; }
.finder__go { display: flex; align-items: flex-end; }
.scanfig { margin: 0.95rem 0 0; }
.scanfig canvas {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  background: #08090c;
  border: 1px solid var(--line);
}

.price__lede { margin-top: 0.6rem; font-size: var(--step-0); }
.price__cta { margin-top: 1.4rem; }
.ftr__blurb { color: var(--ink-3); font-size: var(--step--1); margin-top: 0.9rem; max-width: 26ch; }
.center .signup { margin-inline: auto; text-align: left; }

/* At the narrowest widths the scan form is one control per line — a 3-across row
   of selects at 320px is unreadable and its tap targets collide. */
@media (max-width: 26rem) {
  .finder__form { flex-direction: column; align-items: stretch; }
  /* In column direction the row layout's 12rem flex-basis would become HEIGHT. */
  .finder__form label, .finder__miles { flex: 0 0 auto; }
  .finder__go .btn { width: 100%; }
}

/* ----------------------------------------------------------------- print -- */

@media print {
  .hdr, .panel__bar, .skip, .btn { display: none !important; }
  body { background: #fff; color: #000; }
  a::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}

/* --------------------------------------------------------------- account -- */

/* Author `display` values on stateful cards would otherwise defeat the html
   `hidden` attribute the page logic drives — make hidden always win. */
[hidden] { display: none !important; }
/* /account reuses the shell, buttons, fields and formnotes above; these are
   the only additions. Cards stack in one narrow column — the page is a tool,
   not a pitch, so it reads top to bottom with no competing panels. */

.acct-title { font-size: var(--step-3); line-height: 1.18; margin: 0.65rem 0 0.9rem; }

.acct-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 0.8rem + 1.2vw, 1.6rem);
  margin-top: 1.1rem;
  display: grid;
  gap: 0.85rem;
}
.acct-card h2 { font-size: var(--step-1); }
.acct-card--danger { border-color: rgba(232, 145, 127, 0.35); }
.acct-card--danger h2 { color: var(--neg); }

.acct-rowhead { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; }
.acct-rowhead h2 { margin: 0; }

.acct-line { color: var(--ink-2); font-size: var(--step-0); margin: 0; overflow-wrap: anywhere; }
.acct-line strong { color: var(--ink); font-weight: 600; }
.acct-help { color: var(--ink-2); font-size: var(--step--1); margin: 0; max-width: var(--measure); }
.acct-sent { color: var(--ink-2); font-size: var(--step-0); margin: 0; overflow-wrap: anywhere; }
.acct-sent strong { color: var(--ink); }

.acct-inline { display: flex; gap: 0.55rem; align-items: flex-end; flex-wrap: wrap; }
.acct-inline .btn { flex: 0 0 auto; }

.acct-code {
  font-family: var(--mono);
  font-size: var(--step-2);
  letter-spacing: 0.35em;
  text-align: center;
  max-width: 11ch;
}

.acct-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-size: var(--step-0);
  cursor: pointer;
  min-height: 44px;
}
.acct-toggle input { width: 1.25rem; height: 1.25rem; accent-color: var(--gold); }

@media (max-width: 26rem) {
  .acct-inline { flex-direction: column; align-items: stretch; }
  .acct-inline .btn { width: 100%; }
}
