/* SudsMatch Kansas City — clean teal on white, friendly geometric sans */
:root {
  --ink: #12232E;
  --muted: #475763;
  --line: #E1E7EA;
  --bg: #FFFFFF;
  --soft: #F5F8F9;
  --mint: #E7F4F1;
  --accent: #0B7363;
  --accent-dark: #08594C;
  --sun: #FFF1C7;
  --sun-ink: #5B4300;
  --night: #12232E;
  --night-2: #1C3240;
  --on-night: #C8D3DA;
  --glow: #8FE0CF;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 14px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.55; }
img { max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { text-wrap: balance; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 14px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.logo span { color: var(--accent); font-weight: 600; }
.logo:hover { color: var(--ink); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--accent); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 10px; font: 700 16px/1 var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-dark); color: #FFFFFF; }
.btn-outline { background: transparent; color: var(--ink); border-color: #C3CDD3; }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-glow { background: var(--glow); color: var(--night); }
.btn-glow:hover { background: #B4EBDF; color: var(--night); }
.btn-ghost-light { background: transparent; color: #FFFFFF; border-color: #5C6E7A; }
.btn-ghost-light:hover { border-color: #FFFFFF; color: #FFFFFF; }
.nav .btn { min-height: 44px; padding: 10px 16px; font-size: 15px; }
.nav .btn-primary { color: #FFFFFF; }

/* Hero */
.hero { background: var(--mint); }
.hero .wrap { padding-block: 72px 64px; display: flex; flex-direction: column; gap: 22px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.hero h1 { font-size: clamp(36px, 6vw, 62px); line-height: 1.05; font-weight: 800; max-width: 820px; }
.lede { font-size: 19px; color: #3B4C58; max-width: 640px; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; font-weight: 600; color: #3B4C58; list-style: none; padding: 0; margin: 0; }
.checks li { display: flex; align-items: center; gap: 8px; }

.hero-top { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 48px; }
.hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero-photo { flex: 1 1 380px; min-width: 0; width: 100%; height: auto; max-width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 80% center; border-radius: 20px; box-shadow: 0 12px 40px rgba(18,35,46,0.14); display: block; }

.spotlight { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 48px; }
.spotlight-photo { flex: 1.3 1 420px; min-width: 0; width: 100%; height: auto; max-width: 100%; border-radius: 20px; display: block; box-shadow: 0 12px 40px rgba(18,35,46,0.12); }
.spotlight-text { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.spotlight-list { flex-direction: column; gap: 10px; font-size: 15px; }

/* Quick search */
.quick { background: #FFFFFF; border-radius: 16px; padding: 16px; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; box-shadow: 0 8px 30px rgba(18,35,46,0.08); max-width: 900px; }
.quick .field { flex: 1 1 180px; }
.quick .field.wide { flex: 2 1 240px; }
.quick .btn { flex: 1 1 180px; height: 50px; }

/* Fields */
.field { display: block; font-size: 14px; font-weight: 600; color: #3B4C58; }
.field input, .field select, .field textarea { display: block; margin-top: 6px; font: 400 16px/1.4 var(--font); color: var(--ink); background: #FFFFFF; border: 1px solid #BFCAD0; border-radius: 10px; padding: 12px; min-height: 50px; width: 100%; }
.field textarea { resize: vertical; min-height: 96px; }
.field .hint { font-weight: 400; font-size: 13px; color: var(--muted); }
.row { display: flex; flex-wrap: wrap; gap: 16px; }
.row > .field { flex: 1 1 220px; }
.req { color: #A3361F; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: #3B4C58; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.hidden-field { position: absolute; left: -9999px; }

/* Sections */
.section .wrap { padding-block: 72px; display: flex; flex-direction: column; gap: 28px; }
.section h2 { font-size: clamp(28px, 4vw, 36px); font-weight: 800; line-height: 1.15; }
.section-soft { background: var(--soft); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.tile { display: flex; flex-direction: column; gap: 8px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: #FFFFFF; }
.tile:hover { border-color: var(--accent); color: var(--ink); }
.tile strong { font-size: 18px; }
.tile span { color: var(--muted); font-size: 15px; }
.tile em { font-style: normal; font-weight: 700; font-size: 14px; color: var(--accent); }
.steps { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { display: flex; flex-direction: column; gap: 10px; counter-increment: step; }
.steps li::before { content: counter(step); width: 44px; height: 44px; border-radius: 50%; background: var(--mint); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; }
.steps h3 { font-size: 20px; }
.steps p { color: var(--muted); }

/* Dark band */
.band { background: var(--night); color: #FFFFFF; }
.band .wrap { padding-block: 80px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.band .copy { flex: 1 1 420px; display: flex; flex-direction: column; gap: 18px; }
.band .eyebrow { color: var(--glow); }
.band h2 { font-size: clamp(30px, 4.5vw, 40px); line-height: 1.1; font-weight: 800; }
.band p { color: var(--on-night); font-size: 17px; }
.band .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.plans { flex: 1 1 420px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.plan { background: var(--night-2); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; border: 2px solid transparent; }
.plan.featured { border-color: var(--glow); }
.plan .name { font-weight: 700; }
.plan .price { font-size: 26px; font-weight: 800; }
.plan p { font-size: 14px; color: var(--on-night); }

/* Pricing cards */
.price-cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); align-items: stretch; }
.price-card { position: relative; background: #FFFFFF; border: 1px solid var(--line); border-radius: 18px; padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; }
.price-card.popular { border: 2px solid var(--accent); }
.price-card .badge { position: absolute; top: -13px; left: 24px; background: var(--accent); color: #FFFFFF; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.price-card .name { font-size: 18px; font-weight: 700; }
.price-card .amount { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price-card .amount small { font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price-card ul { margin: 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 8px; color: #3B4C58; font-size: 15px; flex: 1; }
.price-card .btn { width: 100%; }
.small-note { font-size: 14px; color: var(--muted); }
.fee-box { background: #FFFFFF; border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.fee-box h3 { font-size: 20px; }
.fee-box dl { margin: 0; display: flex; flex-direction: column; }
.fee-box dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.fee-box dt { color: #3B4C58; }
.fee-box dd { margin: 0; font-weight: 600; }
.fee-box dl .total { border-bottom: 0; font-weight: 800; font-size: 18px; }
.fee-box dl .total dt { color: var(--ink); }
.fee-box p { font-size: 14px; color: var(--muted); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; background: #FFFFFF; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; }
.faq details p { margin-top: 10px; color: var(--muted); }

/* Form pages */
.page-head { background: var(--mint); }
.page-head .wrap { padding-block: 48px 40px; display: flex; flex-direction: column; gap: 12px; }
.page-head h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 800; }
.form-layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; padding-block: 40px 72px; }
.card-form { flex: 999 1 560px; min-width: 0; background: #FFFFFF; border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 4vw, 32px); display: flex; flex-direction: column; gap: 26px; }
.card-form fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card-form legend { font-size: 18px; font-weight: 800; padding: 0 0 6px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill span { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid #BFCAD0; font-weight: 600; font-size: 15px; background: #FFFFFF; color: var(--ink); }
.pill input:checked + span { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.pill input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper .label { min-width: 90px; font-size: 15px; color: #3B4C58; font-weight: 600; }
.stepper button { width: 44px; height: 44px; border-radius: 10px; border: 1px solid #BFCAD0; background: #FFFFFF; font: 400 22px/1 var(--font); color: var(--ink); cursor: pointer; }
.stepper output { min-width: 28px; text-align: center; font-weight: 800; font-size: 18px; }
.aside { flex: 1 1 300px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 16px; }
.aside .big { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.aside .small { font-size: 13px; color: var(--muted); }
.aside ul { margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: #3B4C58; }
.form-actions { display: flex; flex-direction: column; gap: 10px; }
.form-actions .btn { width: 100%; height: 54px; font-size: 17px; }

/* Thanks + text pages */
.center { text-align: center; align-items: center; }
.prose { max-width: 720px; display: flex; flex-direction: column; gap: 14px; }
.prose h2 { font-size: 22px; margin-top: 12px; }
.prose p, .prose li { color: #3B4C58; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { padding-block: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 14px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--muted); }

@media (max-width: 720px) {
  .aside { position: static; }
  .hero .wrap { padding-block: 48px 44px; }
  .section .wrap { padding-block: 52px; }
}
