:root {
  --ink: #1E293B;
  --ink-muted: #475569;
  --canvas: #F8FAFC;
  --surface: #FFFFFF;
  --surface-alt: #F1F5F9;
  --green: #15803D;
  --green-hover: #166534;
  --green-soft: #DCFCE7;
  --amber: #B45309;
  --amber-soft: #FEF3C7;
  --slate-line: #CBD5E1;
  --radius-md: 10px;
  --radius-lg: 14px;

  /* 5-step type scale: 14 / 16 / 18 / 30 / 44 */
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-h2: 1.875rem;
  --text-h1: 2.75rem;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; /* taste-skill-ignore */
  font-size: var(--text-base);
  color: var(--ink);
  background-color: var(--canvas);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

p {
  max-width: 60ch;
}

code,
.inline-code,
[data-ui] .mono,
[data-ui] .mono-input {
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace; /* taste-skill-ignore */
}

.inline-code {
  background: var(--surface-alt);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: var(--text-sm);
  color: var(--ink);
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Motion Layer (transform & opacity only) */
@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes photoSettle {
  from {
    opacity: 0.9;
    transform: scale(1.03);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-enter {
  animation: heroRise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-photo {
  animation: photoSettle 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero-enter,
  .hero-photo {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Header */
.site-header {
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: var(--text-lg);
  letter-spacing: -0.02em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.metro-pill {
  background: var(--surface-alt);
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}

.nav-link {
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--text-base);
  transition: color 0.15s ease-out;
}

.nav-link:hover {
  color: var(--ink);
}

.nav-cta {
  background: var(--green);
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 700;
  font-size: var(--text-base);
  padding: 9px 16px;
  border-radius: 8px;
  transition: background-color 0.15s ease-out, transform 0.15s ease-out;
}

.nav-cta:hover {
  background: var(--green-hover);
  transform: translateY(-1px);
}

/* Hero */
.hero-section {
  padding: 40px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 40px;
  align-items: start;
}

.hero-copy h1 {
  margin: 0 0 16px;
  font-size: var(--text-h1);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--ink);
}

.hero-subhead {
  margin: 0 0 22px;
  font-size: var(--text-lg);
  color: var(--ink-muted);
}

.promise-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.promise-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: var(--text-base);
  color: var(--ink);
}

.check-icon {
  flex-shrink: 0;
  margin-top: 4px;
}

.hero-photo-frame {
  margin: 0 0 20px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero-photo-frame img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.hero-photo-frame figcaption {
  padding: 10px 14px;
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  background: var(--surface);
  padding: 16px 18px;
  border-radius: var(--radius-lg);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--ink);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

/* Checker Card (data-ui) */
.checker-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--slate-line);
}

.checker-head h2 {
  margin: 0 0 6px;
  font-size: var(--text-lg);
  font-weight: 800;
  letter-spacing: -0.015em;
}

.checker-head p {
  margin: 0 0 18px;
  font-size: var(--text-base);
  color: var(--ink-muted);
}

.field-row {
  margin-bottom: 14px;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field > span {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink);
}

input,
select,
textarea {
  width: 100%;
  font-family: inherit;
  font-size: var(--text-base);
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--slate-line);
  border-radius: 8px;
  padding: 10px 12px;
  transition: border-color 0.15s ease-out, background-color 0.15s ease-out;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
  background: var(--surface);
}

.mono-input {
  font-size: var(--text-sm);
}

.address-stack {
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 14px;
  display: grid;
  gap: 12px;
}

.address-stack-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.address-stack-head span {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink);
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--green);
  cursor: pointer;
  text-decoration: underline;
}

.link-btn:hover {
  color: var(--green-hover);
}

.address-group {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: 10px;
}

.btn-primary {
  width: 100%;
  background: var(--green);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 13px 18px;
  font-family: inherit;
  font-size: var(--text-base);
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease-out, transform 0.15s ease-out;
}

.btn-primary:hover:not(:disabled) {
  background: var(--green-hover);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: wait;
}

.form-footnote {
  margin: 10px auto 0;
  font-size: var(--text-sm);
  color: var(--ink-muted);
  text-align: center;
}

.alert-error {
  background: #FEE2E2;
  color: #991B1B;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: 12px;
}

.alert-success {
  background: var(--green-soft);
  color: #14532D;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: 12px;
}

/* Results Panel */
.results-section {
  padding: 12px 0 64px;
}

.results-banner {
  background: var(--ink);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.results-banner h2 {
  margin: 0 0 6px;
  font-size: var(--text-h2);
}

.results-banner p {
  margin: 0;
  color: #E2E8F0;
  font-size: var(--text-base);
}

.results-ref {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: var(--text-sm);
  color: #CBD5E1;
}

.results-ref .inline-code {
  background: #334155;
  color: #FFFFFF;
}

.results-grid {
  display: grid;
  gap: 16px;
}

[data-ui="results"] .result-card {
  background: var(--surface);
  border: 1px solid var(--slate-line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
}

.result-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.result-address {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: 700;
  word-break: break-word;
}

.result-meta {
  margin: 4px 0 0;
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

.status-badge {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: 700;
  white-space: nowrap;
}

.status-verified {
  background: var(--green-soft);
  color: #14532D;
}

.status-trec {
  background: var(--amber-soft);
  color: #78350F;
}

.status-queued {
  background: var(--surface-alt);
  color: var(--ink);
}

.rule-box {
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 14px;
}

.rule-box.verified-box {
  background: #F0FDF4;
}

.rule-box h4 {
  margin: 0 0 8px;
  font-size: var(--text-base);
}

.trec-list {
  margin: 8px 0 14px;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.trec-list a {
  color: var(--green);
  font-weight: 700;
}

.statute-note {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--ink-muted);
  background: var(--canvas);
  padding: 10px 12px;
  border-radius: 8px;
}

.cohort-inline-card {
  margin-top: 20px;
  background: var(--surface);
  border: 2px solid var(--green);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cohort-inline-card h3 {
  margin: 0 0 6px;
  font-size: var(--text-lg);
}

.cohort-inline-card p {
  margin: 0;
  color: var(--ink-muted);
}

.cohort-inline-actions {
  min-width: 260px;
}

.reserve-status {
  margin-top: 8px;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--green);
}

/* Workflow Split Section */
.workflow-section {
  padding: 64px 0;
  background: var(--surface);
}

.section-head {
  margin-bottom: 32px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: var(--text-h2);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--ink-muted);
  font-size: var(--text-lg);
}

.workflow-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 36px;
  align-items: start;
}

.photo-collage {
  display: grid;
  gap: 16px;
}

.photo-collage figure {
  margin: 0;
  background: var(--canvas);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.collage-main img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.collage-secondary img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.photo-collage figcaption {
  padding: 12px 16px;
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

.workflow-steps {
  display: grid;
  gap: 20px;
}

.workflow-item {
  background: var(--canvas);
  padding: 22px 24px;
  border-radius: var(--radius-lg);
}

.workflow-item h3 {
  margin: 0 0 8px;
  font-size: var(--text-lg);
}

.workflow-item p {
  margin: 0;
  color: var(--ink-muted);
}

/* Field Proof Band */
.field-proof-section {
  padding: 60px 0;
  background: var(--surface-alt);
}

.field-proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.field-proof-copy h2 {
  margin: 0 0 12px;
  font-size: var(--text-h2);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.field-proof-copy > p {
  margin: 0 0 20px;
  color: var(--ink-muted);
  font-size: var(--text-lg);
}

.comparison-list {
  display: grid;
  gap: 12px;
}

.compare-row {
  background: var(--surface);
  padding: 16px 18px;
  border-radius: var(--radius-md);
  display: grid;
  gap: 4px;
}

.compare-good {
  background: #F0FDF4;
}

.compare-row span {
  color: var(--ink-muted);
}

.field-proof-photo {
  margin: 0;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.field-proof-photo img {
  display: block;
  width: 100%;
  height: 310px;
  object-fit: cover;
}

.field-proof-photo figcaption {
  padding: 12px 16px;
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

/* Pricing Band */
.pricing-band {
  background: var(--ink);
  color: #FFFFFF;
  padding: 68px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 40px;
  align-items: center;
}

.pricing-copy h2 {
  margin: 0 0 12px;
  font-size: var(--text-h2);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.pricing-copy p {
  margin: 0 0 20px;
  color: #E2E8F0;
  font-size: var(--text-lg);
}

.dark-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  color: #F1F5F9;
}

.reserve-box {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.reserve-box h3 {
  margin: 0 0 6px;
  font-size: var(--text-lg);
}

.reserve-box p {
  margin: 0 0 16px;
  color: var(--ink-muted);
}

.reserve-box .field {
  margin-bottom: 12px;
}

/* FAQ & Footer */
.faq-section {
  padding: 64px 0;
}

.faq-list {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 36px;
}

.faq-entry dt {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: 8px;
}

.faq-entry dd {
  margin: 0;
  color: var(--ink-muted);
  max-width: 55ch;
}

.site-footer {
  background: var(--surface);
  padding: 32px 0;
}

.footer-inner {
  display: grid;
  gap: 10px;
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

.credits {
  margin: 0;
  max-width: none;
  color: var(--ink);
}

.credits a {
  color: var(--green);
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .hero-grid,
  .workflow-split,
  .field-proof-grid,
  .pricing-grid,
  .faq-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --text-h1: 2.15rem;
    --text-h2: 1.6rem;
  }

  .container {
    padding: 0 18px;
  }

  .nav-link {
    display: none;
  }

  .two-col,
  .address-group,
  .stat-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-section {
    padding: 28px 0 44px;
  }

  .checker-card {
    padding: 20px;
  }

  .results-ref {
    align-items: flex-start;
  }

  .cohort-inline-actions {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  :root {
    --text-h1: 1.9rem;
    --text-h2: 1.45rem;
  }

  .metro-pill {
    display: none;
  }

  .nav-cta {
    padding: 8px 12px;
    font-size: var(--text-sm);
  }

  .header-inner {
    min-height: 60px;
  }
}
