/* Curb Appeal front end. Teal is the accent only; green = working, amber = modest, coral = weak. */
:root {
  --bg: #F7FAF9;
  --ink: #0F2B2D;
  --teal: #0A8084;
  --teal-soft: #1E4A4D;
  --mint: #9AD9D2;
  --panel: #E8F3F1;
  --panel-line: #CFE8E4;
  --line: #D5E4E2;
  --line-soft: #E3EEEC;
  --muted: #3B5152;
  --muted-2: #51676A;
  --field-line: #7E9293;
  --green: #2E9E6B;
  --amber: #C98A00;
  --coral: #E0533A;
  --grey: #6A7F80;
  --coral-bg: #FDE9E3;
  --coral-ink: #7D2A17;
  --amber-bg: #FFF1CC;
  --amber-ink: #5C4300;
  --green-bg: #DDF3E8;
  --green-ink: #134D32;
  --grey-bg: #E6ECEC;
  --grey-ink: #2F4344;
  --display: "Sora", "DM Sans", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.55; }
a { color: var(--teal); }
a:hover { color: var(--ink); }
h1, h2, h3, p, ul { margin: 0; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.display { font-family: var(--display); }

/* Header and footer */
.site-header { max-width: 1120px; margin: 0 auto; padding: 24px 32px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 40px; height: 40px; border-radius: 10px; background: var(--teal); display: flex; align-items: center; justify-content: center; flex: none; }
.brand-mark.small { width: 28px; height: 28px; border-radius: 8px; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.01em; }
.site-nav { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; font-size: 16px; font-weight: 600; }
.site-nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.header-note { font-size: 15px; color: var(--muted-2); }
.site-footer { max-width: 1120px; margin: 0 auto; padding: 40px 32px 56px; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; font-size: 15px; color: var(--muted-2); }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 12px; border: 2px solid transparent; font: inherit; font-size: 17px; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-soft); color: #fff; }
.btn-outline { background: transparent; border-color: var(--teal); color: var(--teal); }
.btn-outline:hover { background: var(--panel); color: var(--teal); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-mint { background: var(--mint); color: var(--ink); }
.btn-lg { min-height: 56px; font-size: 19px; border-radius: 14px; }
.btn[disabled], .btn[aria-disabled="true"] { cursor: not-allowed; opacity: 0.6; }
.btn-primary[disabled] { background: var(--teal); }

/* Landing */
.hero { max-width: 1120px; margin: 0 auto; padding: 32px 32px 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 48px; align-items: start; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; padding-top: 16px; }
.pill { align-self: flex-start; background: var(--mint); color: var(--ink); font-size: 14px; font-weight: 700; padding: 6px 14px; border-radius: 999px; }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 6vw, 64px); line-height: 1.02; letter-spacing: -0.025em; text-wrap: balance; }
.lede { font-size: 20px; color: var(--muted); text-wrap: pretty; }
.facts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 16px; font-weight: 600; color: var(--muted); }

.card-form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 1px 2px rgba(15, 43, 45, 0.06), 0 12px 32px rgba(15, 43, 45, 0.08); }
.card-form h2 { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -0.01em; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15px; font-weight: 600; }
.field .hint { font-size: 14px; color: var(--muted-2); }
.field input[type="text"], .field input[type="email"], .field input[type="url"], .field textarea, .field select {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: #fff; border: 1px solid var(--field-line); border-radius: 10px; padding: 0 14px; height: 48px;
}
.field textarea { height: auto; padding: 12px 14px; resize: vertical; }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check input { width: 24px; height: 24px; margin: 2px 0 0; flex: none; accent-color: var(--teal); }
.check label { font-size: 15px; color: var(--muted); }
.notice { border-radius: 12px; padding: 12px 16px; font-size: 16px; }
.notice-error { background: var(--coral-bg); color: var(--coral-ink); }
.notice-info { background: var(--panel); color: var(--ink); }
.form-secondary { align-self: center; font-size: 16px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }

.band-white { background: #fff; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.band-dark { background: var(--ink); color: var(--bg); }
.section { max-width: 1120px; margin: 0 auto; padding: 80px 32px; display: flex; flex-direction: column; gap: 40px; }
.section-grid { max-width: 1120px; margin: 0 auto; padding: 88px 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 48px; align-items: center; }
.h2 { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 4.5vw, 46px); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.three { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.step-card { background: var(--panel); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.step-card .num { font-family: var(--display); font-weight: 800; font-size: 40px; color: var(--teal); line-height: 1; }
.step-card h3 { font-size: 22px; font-weight: 700; }
.step-card p { color: var(--muted); font-size: 17px; }
.read-list { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 8px 28px; }
.read-row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 20px 0; border-bottom: 1px solid var(--line-soft); }
.read-row:last-child { border-bottom: 0; }
.read-row b { font-size: 18px; }
.dot-label { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: none; }
.dot.green { background: var(--green); } .dot.amber { background: var(--amber); } .dot.grey { background: var(--grey); } .dot.coral { background: var(--coral); }
.dot.dashed { background: transparent; border: 2px dashed var(--field-line); }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: var(--teal-soft); border-radius: 999px; padding: 8px 16px; font-size: 16px; font-weight: 600; }
.on-dark-muted { color: #BDD8D4; }
.two-cards { max-width: 1120px; margin: 0 auto; padding: 88px 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 32px; }
.big-card { border-radius: 20px; padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.big-card.white { background: #fff; border: 1px solid var(--line); }
.big-card.mint { background: var(--mint); }
.big-card h2 { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1.1; letter-spacing: -0.015em; }
.big-card ul { padding-left: 20px; font-size: 17px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.eyebrow { font-size: 15px; font-weight: 700; color: var(--teal); }
.faq { display: flex; flex-direction: column; gap: 28px; }
.faq h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.faq p { font-size: 17px; color: var(--muted); }
.placeholder { background: rgba(10, 128, 132, 0.08); border-radius: 4px; padding: 0 4px; }

/* Waiting / message cards (report page) */
.center-card { max-width: 640px; margin: 24px auto 80px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 40px 32px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.center-card h1 { font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1.1; letter-spacing: -0.02em; }
.center-card p { color: var(--muted); }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 4px solid var(--panel-line); border-top-color: var(--teal); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; border-top-color: var(--teal); border-right-color: var(--teal); } }

/* Report-ready banner and upgrade page */
.ready { max-width: 1120px; margin: 0 auto; padding: 16px 32px 32px; }
.ready-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; }
.ready-card h1 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4vw, 40px); line-height: 1.1; letter-spacing: -0.02em; }
.ready-card .sub { color: var(--muted); }
.score-line { display: flex; align-items: baseline; gap: 4px; }
.score-big { font-family: var(--display); font-weight: 800; font-size: 64px; line-height: 1; color: var(--teal); }
.score-of { font-size: 20px; font-weight: 600; color: var(--muted-2); }
.band-pill { margin-left: 10px; align-self: center; background: var(--mint); color: var(--ink); font-size: 14px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.ready-actions { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.lock-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.lock-card { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.lock-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--line-soft); display: flex; align-items: center; justify-content: center; }
.lock-card h3 { font-size: 19px; font-weight: 700; }
.lock-card p { font-size: 16px; color: var(--muted); }
.upgrade-box { background: var(--ink); color: var(--bg); border-radius: 20px; padding: 36px; display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; }
.upgrade-box h3 { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1.1; letter-spacing: -0.015em; }
.upgrade-box p { font-size: 17px; color: #BDD8D4; max-width: 640px; }

@media (max-width: 640px) {
  .wrap, .site-header, .site-footer, .section, .section-grid, .hero, .two-cards, .ready { padding-left: 20px; padding-right: 20px; }
  .card-form { padding: 24px 20px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
}
