:root {
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, var(--pf-bg-top) 0%, var(--pf-bg-bottom) 58%, #f8fafc 100%);
  color: var(--pf-text);
}

.pf-page {
  min-height: 100vh;
  padding: calc(16px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  display: grid;
  place-items: center;
  gap: 14px;
}

.pf-brand-wrap {
  width: min(100%, 700px);
  justify-self: start;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 16px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
  padding: 12px 14px;
}

.pf-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--pf-brand);
  text-decoration: none;
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.pf-brand-logo {
  width: clamp(120px, 24vw, 164px);
  height: auto;
  display: block;
}

.pf-brand-text {
  color: #334155;
  font-size: .92rem;
  font-weight: 700;
}

.pf-brand-line {
  margin: 4px 0 0;
  color: var(--pf-muted);
  font-size: .82rem;
}

.pf-disclosure {
  margin: 6px 0 0;
  color: var(--pf-muted);
  font-size: .78rem;
}

.pf-card {
  width: min(100%, 700px);
  border-radius: 22px;
  border: 1px solid var(--pf-border);
  background: #fff;
  box-shadow: 0 22px 44px rgba(15, 23, 42, .08);
  padding: 20px;
}

.pf-progress {
  margin: 0;
  font-size: .82rem;
  color: var(--pf-muted);
  font-weight: 700;
}

.pf-live {
  margin: 0;
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.pf-dev-badge {
  margin: 8px 0 0;
  color: #9a3412;
  background: #ffedd5;
  border: 1px solid #fdba74;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  width: fit-content;
  padding: 5px 10px;
}

.pf-view {
  margin-top: 12px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 240ms ease, transform 240ms ease;
}

.pf-view[hidden] {
  display: none;
  opacity: 0;
  transform: translateY(8px);
}

.pf-eyebrow {
  margin: 0;
  color: var(--pf-muted);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
}

h1, h2 {
  margin: 8px 0 10px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(2rem, 6vw, 3.1rem); }
h2 { font-size: clamp(1.58rem, 4.6vw, 2.2rem); }

.pf-subtitle {
  margin: 0 0 18px;
  color: var(--pf-muted);
  font-size: clamp(1rem, 3vw, 1.14rem);
  line-height: 1.45;
}

.pf-label {
  display: block;
  margin: 10px 0 8px;
  font-size: .95rem;
  font-weight: 700;
}

.pf-input {
  width: 100%;
  min-height: 52px;
  border-radius: 12px;
  border: 1px solid var(--pf-border);
  padding: 12px 14px;
  font: inherit;
  color: var(--pf-text);
  background: #fff;
}

.pf-field-error {
  min-height: 20px;
  margin: 6px 0 0;
  font-size: .86rem;
  color: #b91c1c;
}

.pf-note {
  margin: 14px 0 0;
  color: var(--pf-muted);
  font-size: .9rem;
}

.pf-button {
  width: 100%;
  min-height: 52px;
  border-radius: 12px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 700 1rem/1.1 "Inter", sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease, color 220ms ease;
  margin-top: 10px;
}

.pf-button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.pf-button-primary {
  background: linear-gradient(145deg, var(--pf-primary), var(--pf-primary-strong));
  color: #fff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, .2);
}

.pf-button-secondary {
  border: 1px solid var(--pf-border-strong);
  background: #fff;
  color: var(--pf-text);
}

.pf-checkmark {
  margin: 0;
  color: var(--pf-success);
  font-weight: 700;
}

.pf-record-grid {
  display: grid;
  gap: 10px;
}

.pf-property-address, .pf-result-detail {
  margin: 0;
  color: #1e293b;
  font-size: 1rem;
  line-height: 1.45;
}

.pf-facts {
  margin: 14px 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.pf-facts li {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pf-facts span { color: var(--pf-muted); font-size: .9rem; }

.pf-choices { display: grid; gap: 10px; }

.pf-choice-card {
  width: 100%;
  min-height: 60px;
  text-align: left;
  padding: 14px;
  border: 1px solid var(--pf-border-strong);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.pf-choice-card.is-selected {
  border-color: var(--pf-primary);
  background: var(--pf-selected);
  box-shadow: inset 0 0 0 1px var(--pf-primary);
}

.pf-choice-address { margin: 0; font-size: 1rem; font-weight: 700; }
.pf-choice-owner, .pf-property-meta { margin: 4px 0 0; color: var(--pf-muted); font-size: .9rem; }

.pf-consent {
  margin-top: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .92rem;
  line-height: 1.45;
}

.pf-consent input {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  accent-color: var(--pf-primary);
  flex: none;
}

.pf-consent-optional { color: var(--pf-muted); }

.pf-terms {
  margin-top: 8px;
  border: 1px solid var(--pf-border);
  border-radius: 10px;
  padding: 8px 10px;
}

.pf-terms summary {
  cursor: pointer;
  font-size: .9rem;
  font-weight: 600;
}

.pf-terms p {
  margin: 8px 0 0;
  font-size: .86rem;
  color: var(--pf-muted);
}

.pf-form-status {
  min-height: 20px;
  margin: 10px 0 0;
  color: #b91c1c;
  font-size: .9rem;
}

.pf-loading-block {
  margin-top: 8px;
  display: grid;
  gap: 10px;
}

.pf-spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid #e2e8f0;
  border-top-color: var(--pf-accent);
  animation: pf-spin 1s linear infinite;
}

.pf-skeleton-row {
  height: 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, #e2e8f0 20%, #f1f5f9 45%, #e2e8f0 70%);
  background-size: 200% 100%;
  animation: pf-pulse 1.2s linear infinite;
}

.pf-skeleton-row.short { width: 64%; }

.pf-value {
  margin: 6px 0;
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
}

.pf-value-comparison {
  margin-top: 12px;
  border: 1px solid var(--pf-border);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.pf-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pf-value-row span { color: var(--pf-muted); font-size: .9rem; }
.pf-value-row strong { font-size: 1.02rem; }

.pf-disclaimer {
  margin: 12px 0;
  color: var(--pf-muted);
  font-size: .9rem;
  line-height: 1.45;
}

.pf-future-note {
  margin: 10px 0 0;
  color: var(--pf-muted);
  font-size: .86rem;
}

.pf-option-grid {
  margin: 14px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.pf-option-chip {
  min-height: 48px;
  border: 1px solid var(--pf-border-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--pf-text);
  font: 600 .92rem "Inter", sans-serif;
  cursor: pointer;
}

.pf-option-chip.is-selected {
  border-color: var(--pf-primary);
  background: var(--pf-selected);
}

input:focus-visible,
button:focus-visible,
a:focus-visible,
summary:focus-visible,
.pf-choice-card:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .35);
  outline-offset: 2px;
}

@keyframes pf-spin { to { transform: rotate(360deg); } }
@keyframes pf-pulse { to { background-position: -200% 0; } }

@media (min-width: 700px) {
  .pf-card { padding: 28px; border-radius: 24px; }
  .pf-record-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .pf-option-grid { grid-template-columns: repeat(2, 1fr); }
}

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

/* Funnel UI standardization layer */
:root {
  --pf-shell-max-width: 1280px;
}

body:not(.rc-body) {
  background: linear-gradient(180deg, #f8fafc 0%, var(--pf-bg-bottom) 100%);
}

.pf-header {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  padding: calc(12px + env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 14px max(20px, env(safe-area-inset-left));
}

.pf-header-inner {
  max-width: var(--pf-shell-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pf-brand-logo-link {
  display: inline-flex;
  align-items: center;
}

.pf-brand-logo-link .pf-brand-logo {
  width: clamp(126px, 13vw, 178px);
}

.pf-header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.pf-header-nav a {
  color: var(--pf-text);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
}

.pf-header-line,
.pf-header-disclosure {
  max-width: var(--pf-shell-max-width);
  margin: 0.35rem auto 0;
  color: var(--pf-muted);
  font-size: 0.82rem;
}

body:not(.rc-body) .pf-page {
  min-height: unset;
  max-width: var(--pf-shell-max-width);
  margin: 0 auto;
  padding: clamp(1rem, 2.6vw, 2rem) max(22px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left));
  display: block;
}

.pf-shell {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.pf-context {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
  padding: clamp(1.05rem, 2.2vw, 1.65rem);
}

.pf-context-eyebrow {
  color: var(--pf-primary-strong);
}

.pf-context-title {
  margin: 0.5rem 0 0;
  font-size: clamp(1.2rem, 2.35vw, 1.62rem);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.pf-context-copy {
  margin: 0.75rem 0 0;
  color: var(--pf-muted);
  font-size: 1.02rem;
  line-height: 1.45;
}

.pf-trust-list {
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.pf-trust-list li {
  border: 1px solid color-mix(in srgb, var(--pf-primary) 22%, #ffffff);
  border-radius: 999px;
  background: color-mix(in srgb, var(--pf-selected) 66%, #ffffff);
  color: var(--pf-primary-strong);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.72rem;
}

body:not(.rc-body) .pf-card {
  width: 100%;
}

.pf-card-std {
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.09);
}

.pf-card-std .pf-subtitle {
  font-size: clamp(1.04rem, 1.28vw, 1.18rem);
}

.pf-card-std .pf-label,
.pf-card-std .pf-input,
.pf-card-std .pf-button,
.pf-card-std .pf-field-error,
.pf-card-std .pf-note {
  font-size: 1rem;
}

.pf-progress-wrap {
  display: grid;
  gap: 0.5rem;
}

.pf-progress-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.pf-progress-steps li {
  text-align: center;
  border-radius: 999px;
  border: 1px solid var(--pf-border-strong);
  color: var(--pf-muted);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.3rem 0.5rem;
}

.pf-progress-steps li.is-active {
  background: var(--pf-selected);
  border-color: color-mix(in srgb, var(--pf-primary) 35%, #ffffff);
  color: var(--pf-primary-strong);
}

.pf-found-address {
  margin-top: 0.7rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--pf-border-strong);
  border-radius: 0.9rem;
  background: #f8fafc;
}

.pf-found-address h2 {
  margin: 0;
  font-size: clamp(1.3rem, 3.8vw, 1.8rem);
  line-height: 1.2;
}

.pf-owner-row {
  margin-top: 0.9rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 0.85rem;
  background: #ffffff;
}

.pf-owner-name {
  margin: 0.25rem 0 0;
  color: var(--pf-text);
  font-size: clamp(1.05rem, 3vw, 1.22rem);
  font-weight: 700;
  line-height: 1.35;
}

.pf-view h1:focus,
.pf-view h2:focus {
  outline: none;
}

@media (max-width: 700px) {
  .pf-header-nav {
    gap: 0.6rem;
    justify-content: flex-end;
  }

  .pf-header-nav a {
    font-size: 0.86rem;
  }

  .pf-progress-steps li {
    font-size: 0.7rem;
  }
}

@media (min-width: 980px) {
  .pf-shell {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr);
    gap: 1.9rem;
  }

  .pf-context {
    position: sticky;
    top: 1.1rem;
  }

  .pf-header {
    padding-top: calc(14px + env(safe-area-inset-top));
    padding-bottom: 16px;
  }

  .pf-header-nav {
    gap: 1rem;
  }

  .pf-card-std {
    padding: 34px;
    border-radius: 26px;
  }
}
