/* The free check (staged, WFC-1). Loaded after styles.css, which owns the shell, the type and the buttons.
   Mobile-first: the base rules are the 375px phone; the one media query below widens the column. Every size
   that a finger touches is at least 44px, and nothing here sets a fixed width, so nothing scrolls sideways. */

.fc-banner {
  background: rgba(252, 163, 17, 0.12);
  border-bottom: 1px solid rgba(252, 163, 17, 0.32);
}
.fc-banner-inner {
  padding-block: 0.7rem;
}
.fc-banner p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--cloud);
}
.fc-banner strong {
  color: var(--amber);
  font-weight: 700;
}

.fc-page {
  max-width: 40rem;
  padding-block: 1.75rem 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.fc-hero h1 {
  font-size: clamp(1.6rem, 6.4vw, 2.3rem);
  text-wrap: balance;
  margin-bottom: 0.5rem;
}
.fc-intro {
  color: var(--cloud-dim);
  font-size: 1rem;
  margin: 0;
}

.fc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

/* ── the address form ── */
.fc-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.fc-label {
  font-weight: 600;
  font-size: 0.98rem;
}
.fc-combo {
  position: relative;
}
.fc-input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  font: inherit;
  font-size: 1rem; /* 16px or more, or iOS Safari zooms the page when the field is focused */
  color: var(--cloud);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}
.fc-input::placeholder {
  color: var(--cloud-dim);
}
.fc-input:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}
.fc-input[aria-invalid="true"] {
  border-color: var(--amber);
}

/* IN THE COLUMN, NEVER OVER IT (PARCEL-CHOICE, 2026-09-30). The list sits in the form's flow under the address box and
   pushes the Unit box and "Check a Property" down while it is open, so it can never cover the button — a late batch of
   suggestions drawn over the button once turned a click on it into a click on "414 Grant St, South Fork, PA". The page
   also closes it on the button's pointerdown (free-check.js), before the click lands. */
.fc-suggestions {
  position: static;
  margin: 6px 0 0;
  padding: 0.3rem;
  list-style: none;
  max-height: 18rem;
  overflow-y: auto;
  background: #0b1250;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}
.fc-suggestions[hidden] {
  display: none;
}
.fc-option {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  border-left: 3px solid transparent;
  cursor: pointer;
  color: var(--cloud);
  font-size: 0.97rem;
  line-height: 1.35;
}
.fc-option:hover,
.fc-option.is-active {
  background: var(--surface-2);
  border-left-color: var(--amber);
}

/* THE UNIT BOX (CONDO-1): under the address, its own label above it. A unit is short, so the box is too on a wide
   screen; on a phone it takes the column like the address box, and nothing scrolls sideways. */
.fc-unit {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.fc-unit[hidden] {
  display: none;
}
.fc-input-unit {
  max-width: 100%;
}

.fc-hint {
  margin: 0;
  font-size: 0.88rem;
  color: var(--cloud-dim);
}
.fc-hint.is-error {
  color: var(--amber-hi);
  font-weight: 600;
}
.fc-submit {
  width: 100%;
  min-height: 48px;
}
/* Live only (WEB-3): the box Cloudflare Turnstile draws its widget in, under the button. FIX-1 (2026-09-28): it takes
   NO room and never moves the page — not while it is empty, not while an Invisible widget runs in it (Tyler's setting,
   whose frame otherwise reserved an empty block under the button), not while a Managed widget passes without asking.
   It is clipped to no height (never display:none, so Cloudflare's frame still runs), and the negative margin cancels
   the form's gap above it. It opens only while Cloudflare shows an interactive challenge: free-check-live.js adds
   .is-interactive on Turnstile's before-interactive-callback and removes it on after-interactive-callback. */
.fc-turnstile {
  min-width: 0;
  height: 0;
  overflow: hidden;
  margin-top: -0.7rem;
}
.fc-turnstile.is-interactive {
  height: auto;
  overflow: visible;
  margin-top: 0;
}
.fc-turnstile:empty {
  display: none;
}

/* ── loading and failure ── */
.fc-status:empty {
  display: none;
}
.fc-status {
  margin: 0;
  color: var(--cloud-dim);
  font-size: 0.97rem;
}
.fc-status.is-running {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.fc-status.is-running::before {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  border-top-color: var(--amber);
  animation: fcSpin 0.8s linear infinite;
}
.fc-status.is-error {
  border-left: 4px solid var(--amber);
}
@keyframes fcSpin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .fc-status.is-running::before { animation: none; }
}
.fc-message {
  margin: 0;
}

/* ── the result ── */
.fc-result {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  scroll-margin-top: 80px; /* clear of the sticky header */
}
.fc-result[hidden] {
  display: none;
}
.fc-result h2:focus {
  outline: none;
}

/* The image card: the app's segmented "Street view | Satellite" over one picture. */
.fc-image {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.fc-image[hidden] {
  display: none;
}
/* THE SWITCH STAYS ON TOP (the app's `.zIndex(1)`, R140: a picture must never sit over the control, or the owner
   cannot switch back). Nothing Apple's map draws can reach above its own clipped box, and this is lifted anyway. */
.fc-switch {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  min-width: 0;
}
/* With one picture only, the switch is hidden: `display: grid` above would otherwise win. */
.fc-switch[hidden] {
  display: none;
}
.fc-switch label {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--cloud-dim);
  cursor: pointer;
}
.fc-switch input:checked + label {
  background: var(--cloud);
  color: var(--ink);
}
.fc-switch input:focus-visible + label {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}
.fc-image-frame img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.fc-image-frame img[hidden] {
  display: none;
}
/* LIVE ONLY (SAT-1): Apple's satellite map. The street photo's own shape (640 x 400) and corners, so switching never
   moves the page; clipped, so nothing MapKit JS draws leaves the box. */
.fc-image-map {
  position: relative;
  z-index: 0;
  width: 100%;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  isolation: isolate;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(174, 183, 214, 0.1);
}
.fc-image-map[hidden] {
  display: none;
}
.fc-map {
  position: absolute;
  inset: 0;
}
/* The app's aerial tag ("Satellite", top left, on a frosted capsule). It takes no clicks or touches. */
.fc-image-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(236, 236, 232, 0.82);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
}
.fc-image-caption {
  font-size: 0.82rem;
  color: var(--cloud-dim);
}

/* The server's screen: every line in its order. */
.fc-screen {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.fc-line {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--cloud);
  overflow-wrap: anywhere;
}
.fc-lead {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.4;
}
.fc-record {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.8rem 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(174, 183, 214, 0.1);
}
.fc-notice {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}
.fc-notice-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.fc-line-link a {
  display: inline;
  color: var(--amber);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.fc-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.12em;
  flex: 0 0 auto;
}
.fc-icon-arrow {
  margin-left: 0.35em;
}
.fc-icon-info {
  color: var(--amber);
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
}

/* THE LIST TO CHOOSE FROM (PARCEL-CHOICE, 2026-09-30): the server's entries, directly under its own heading line. Each is
   one whole-width button, 48px or more to a finger: the county's address on its first line, its town and — where the
   server sends it — the county's use under it. Long names wrap; nothing scrolls sideways at 390px. */
.fc-choices {
  list-style: none;
  margin: -0.3rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.fc-choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0.7rem 0.9rem;
  font: inherit;
  text-align: left;
  color: var(--cloud);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius-sm);
  cursor: pointer;
  overflow-wrap: anywhere;
}
.fc-choice:hover {
  background: var(--surface-2);
}
.fc-choice:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}
.fc-choice-address {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
}
.fc-choice-place {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.5rem;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--cloud-dim);
}
/* The dot between the town and the use trails the town, so a use that wraps on a phone starts its own line cleanly. */
.fc-choice-town:not(:last-child)::after {
  content: "\00B7";
  margin-left: 0.5rem;
}

/* The server's action line, and the site's App Store button under it. */
.fc-proceed {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}
.fc-proceed-text {
  font-weight: 600;
}
.fc-proceed-button {
  width: 100%;
  min-height: 48px;
}
.fc-proceed-note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--cloud-dim);
}

.fc-footnote {
  margin: 0.8rem 0 0;
  font-size: 0.82rem;
  color: var(--cloud-dim);
}

/* ── THE EXTRAS (EXTRAS-WEB, 2026-09-28): drawn by free-check-extras.js only when the server sends them. The approved
   mockup's look: navy cards, small uppercase headings, one big figure each, emerald for money only, amber for the
   deadline and the actions. Nothing here takes room when its module is absent: absent modules are never drawn. ── */
.fc-screen[hidden] {
  display: none;
}
.fc-x-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.fc-x-eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--cloud-dim);
}
.fc-x-big {
  margin: 0;
  font-size: clamp(1.6rem, 6.6vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--cloud);
  overflow-wrap: anywhere;
}
.fc-x-text {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--cloud);
  overflow-wrap: anywhere;
}
.fc-x-dim {
  color: var(--cloud-dim);
}
.fc-x-small {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--cloud-dim);
  overflow-wrap: anywhere;
}
.fc-x-strong {
  font-weight: 600;
  color: var(--cloud);
}
.fc-x-money,
.fc-x-dim .fc-x-money {
  color: var(--emerald);
}
.fc-x-amber {
  color: var(--amber);
}
.fc-x-link {
  color: var(--amber);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  align-self: flex-start;
}
.fc-x-link:hover {
  color: var(--amber-hi);
}
.fc-x-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* The site's .btn never wraps; these labels are the server's sentences, so on a phone they wrap rather than push the
   page sideways. */
.fc-x-cta,
.fc-x-calendar,
.fc-x-unlock {
  white-space: normal;
  text-align: center;
  line-height: 1.3;
}

/* The deadline: amber while it is near (free-check-extras.js, URGENT_DAYS), the two buttons under the words on a phone
   and beside them on a wider screen. */
.fc-x-deadline {
  gap: 0.9rem;
}
.fc-x-deadline.is-urgent {
  border-color: var(--amber);
  background: rgba(252, 163, 17, 0.08);
}
.fc-x-deadline-text {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}
.fc-x-deadline-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.fc-x-calendar {
  min-height: 44px;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  background: transparent;
}
.fc-x-cta {
  min-height: 44px;
  padding: 0.65rem 0.9rem;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  width: 100%;
}
.fc-x-cta-row {
  display: flex;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

/* Exemptions: the name and its status pill on one row, the server's sentence under it, then how to apply. */
.fc-x-exemption {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.fc-x-exemption + .fc-x-exemption {
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.fc-x-exemption-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.fc-x-name {
  margin: 0;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  min-width: 0;
}
.fc-x-pill {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  background: rgba(252, 163, 17, 0.16);
  color: var(--amber-hi);
}

/* Prices around you: the figure and its sentence, the sparkline beside them. */
.fc-x-trend-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}
.fc-x-trend-text {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}
.fc-x-spark {
  flex: 0 0 auto;
  width: 7.5rem;
  height: auto;
  aspect-ratio: 180 / 64;
}
.fc-x-spark polyline {
  fill: none;
  stroke: var(--emerald);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

/* How much values rose, and Homes around you (SITE-CARDS, R176): the server's lines, then its source line, linked. A
   "yours went up more" line and the closer-look line after it are one block, set closer together than the card's
   other lines so they read as one statement. The source link is a full 44px target; its text stays small and dim. */
.fc-x-pair {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.fc-x-source {
  margin: -0.5rem 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--cloud-dim);
  overflow-wrap: anywhere;
}
.fc-x-source a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--cloud-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.fc-x-source a:hover {
  color: var(--cloud);
}

/* The estimator. */
.fc-x-estimator {
  border-color: rgba(70, 197, 138, 0.5);
}
.fc-x-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.fc-x-label,
.fc-x-legend {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(236, 236, 232, 0.8);
}
.fc-x-amount {
  max-width: 100%;
}
.fc-x-wrong {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.fc-x-legend {
  padding: 0;
  margin-bottom: 0.15rem;
}
.fc-x-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 0.5rem;
}
.fc-x-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-size: 0.9rem;
  cursor: pointer;
}
.fc-x-check input {
  width: 20px;
  height: 20px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--amber);
}
.fc-x-check input:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}
/* The live region stays in the page (so a screen reader hears it fill), but empty it takes no room — the negative margin
   gives back the card's gap. */
.fc-x-result:empty {
  margin-top: -0.75rem;
}
.fc-x-saving {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(70, 197, 138, 0.1);
}

/* The close, option B: the locked preview. Its table and tiles are fixed placeholder art (CLOSE_ART), blurred. */
.fc-x-notdone {
  margin-top: 0.2rem;
}
.fc-x-close {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.25rem 1rem;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid rgba(252, 163, 17, 0.6);
}
.fc-x-close-title {
  margin: 0;
  font-size: clamp(1.5rem, 6.4vw, 1.75rem);
  font-weight: 800;
  line-height: 1.15;
}
.fc-x-close-body {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(236, 236, 232, 0.8);
}
.fc-x-art {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  user-select: none;
  pointer-events: none;
}
.fc-x-art-table {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.9rem;
  border-radius: 14px;
  background: var(--paper);
  color: var(--paper-ink);
}
.fc-x-art-head,
.fc-x-art-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}
.fc-x-art-head {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper-slate);
}
.fc-x-art-rows {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  filter: blur(5px);
}
.fc-x-art-row {
  font-size: 0.88rem;
}
.fc-x-art-lock {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fc-x-art-lock-circle {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(3, 9, 59, 0.4);
}
.fc-x-art-lock-icon {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--amber);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fc-x-art-tiles {
  display: flex;
  gap: 0.5rem;
}
.fc-x-art-tile {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(2, 6, 21, 0.5);
}
.fc-x-art-label {
  font-size: 0.68rem;
  color: var(--cloud-dim);
}
.fc-x-art-value {
  font-size: 0.95rem;
  font-weight: 700;
  filter: blur(4px);
}
.fc-x-unlock {
  width: 100%;
  min-height: 56px;
  padding: 0.9rem 1.1rem;
  font-size: 1.05rem;
  font-weight: 700;
}
.fc-x-unlock .fc-x-icon {
  stroke-width: 2.5;
}
.fc-x-close .fc-proceed-note {
  text-align: center;
}

@media (min-width: 640px) {
  .fc-card {
    padding: 1.25rem 1.4rem;
  }
  .fc-input-unit {
    max-width: 16rem;
  }
  .fc-submit,
  .fc-proceed-button {
    width: auto;
    align-self: flex-start;
  }
  .fc-x-deadline {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .fc-x-deadline-actions {
    flex: 0 0 17.5rem;
  }
  .fc-x-small,
  .fc-x-source {
    font-size: 0.82rem;
  }
  .fc-x-amount {
    max-width: 16.25rem;
  }
  .fc-x-checks {
    display: flex;
    flex-wrap: wrap;
    column-gap: 1.25rem;
  }
  .fc-x-saving {
    padding: 1.1rem 1.15rem;
  }
  .fc-x-spark {
    width: 11.25rem;
  }
  .fc-x-close {
    padding: 1.5rem;
  }
  .fc-x-close-body {
    font-size: 1rem;
  }
  .fc-x-art-row {
    font-size: 0.94rem;
  }
}
