/* 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);
}

.fc-suggestions {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 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);
}

.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;
}
.fc-switch {
  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;
}
/* Live, with no aerial on the web (version 1), 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;
}
.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 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);
}

@media (min-width: 640px) {
  .fc-card {
    padding: 1.25rem 1.4rem;
  }
  .fc-submit,
  .fc-proceed-button {
    width: auto;
    align-self: flex-start;
  }
}
