/* American House Warranty — styles.css
   Clean, high-trust, responsive, accessible.
*/
:root{
  --bg:#f6f8fc;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#475569;
  --line:#e2e8f0;
  --brand:#1e3a8a;      /* deep blue */
  --brand2:#0ea5e9;     /* sky */
  --accent:#ea580c;     /* warm accent */
  --good:#16a34a;
  --bad:#dc2626;
  --shadow: 0 18px 40px rgba(2,6,23,.10);
  --shadow2: 0 10px 22px rgba(2,6,23,.08);
  --r: 18px;
  --r2: 26px;
  --max: 1150px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:var(--font);
  color:var(--text);
  background: radial-gradient(1200px 600px at 10% -10%, rgba(14,165,233,.20), transparent 60%),
              radial-gradient(900px 500px at 100% 0%, rgba(234,88,12,.14), transparent 55%),
              var(--bg);
  line-height:1.45;
}

a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline}
small{color:var(--muted)}
img{max-width:100%;display:block}

.container{max-width:var(--max);margin:0 auto;padding:0 20px}
.section{padding:72px 0}
.section.tight{padding:44px 0}
.section .eyebrow{
  display:inline-flex;gap:8px;align-items:center;
  padding:8px 12px;border:1px solid var(--line);border-radius:999px;
  background:rgba(255,255,255,.72);backdrop-filter: blur(10px);
  color:var(--muted);font-weight:600;font-size:13px;
}
.pill{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 12px;border-radius:999px;
  background:rgba(14,165,233,.10);
  border:1px solid rgba(14,165,233,.22);
  color:#075985;
  font-weight:700;font-size:13px;
}
.pill.good{
  background:rgba(22,163,74,.10);
  border-color:rgba(22,163,74,.22);
  color:#166534;
}
.pill.warn{
  background:rgba(234,88,12,.10);
  border-color:rgba(234,88,12,.22);
  color:#9a3412;
}

.nav{
  position:sticky;top:0;z-index:50;
  border-bottom:1px solid rgba(226,232,240,.8);
  background:rgba(246,248,252,.72);
  backdrop-filter: blur(10px);
}
.nav .row{
  display:flex;align-items:center;justify-content:space-between;
  gap:14px;padding:14px 0;
}
.brand{
  display:flex;align-items:center;gap:12px;font-weight:900;
  letter-spacing:-.02em;
}
.logo{
  width:38px;height:38px;border-radius:12px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.24), var(--shadow2);
  position:relative;
}
.logo:before{
  content:""; position:absolute; inset:10px 11px 10px 11px;
  border-radius:10px;
  background:rgba(255,255,255,.92);
  clip-path: polygon(50% 0%, 100% 40%, 82% 100%, 18% 100%, 0% 40%);
}
.brand span{font-size:15px}
.brand .sub{display:block;font-size:12px;color:var(--muted);font-weight:700;margin-top:1px;letter-spacing:0}

.navlinks{
  display:flex;gap:18px;align-items:center;
  font-weight:700;color:var(--muted);font-size:14px;
}
.navlinks a{color:var(--muted)}
.navlinks a:hover{color:var(--text);text-decoration:none}
.navcta{display:flex;gap:10px;align-items:center}

.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:12px 16px;border-radius:14px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
  font-weight:800;font-size:14px;
  box-shadow: 0 8px 18px rgba(2,6,23,.06);
  cursor:pointer;
}
.btn:hover{transform: translateY(-1px)}
.btn:active{transform: translateY(0)}
.btn.primary{
  border-color: rgba(30,58,138,.30);
  background: linear-gradient(135deg, var(--brand), #15306d);
  color:#fff;
}
.btn.ghost{
  background:transparent;
  box-shadow:none;
}
.btn.accent{
  border-color: rgba(234,88,12,.35);
  background: linear-gradient(135deg, var(--accent), #fb923c);
  color:#fff;
}
.btn.full{width:100%}

.hero{
  padding:50px 0 10px;
}
.heroGrid{
  display:grid;grid-template-columns: 1.15fr .85fr;
  gap:26px;align-items:stretch;
}
.heroCard{
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.80));
  border: 1px solid rgba(226,232,240,.9);
  border-radius: var(--r2);
  box-shadow: var(--shadow);
  overflow:hidden;
  position:relative;
}
.heroCard .inner{padding:30px}
.h1{
  font-size: clamp(30px, 4vw, 46px);
  line-height:1.07;
  letter-spacing:-.03em;
  margin:10px 0 12px;
}
.lead{font-size:16px;color:var(--muted);max-width:58ch}
.heroList{
  margin:18px 0 0;
  padding:0; list-style:none;
  display:grid;gap:10px;
}
.heroList li{
  display:flex;gap:10px;align-items:flex-start;
  color:var(--text);
  font-weight:700;
}
.check{
  width:22px;height:22px;border-radius:7px;
  display:inline-flex;align-items:center;justify-content:center;
  background: rgba(22,163,74,.12);
  border:1px solid rgba(22,163,74,.22);
  color:#166534;
  flex: 0 0 22px;
  margin-top:1px;
}
.check svg{width:14px;height:14px}
.heroActions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}

.sideCard{
  padding:22px;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.86));
  border:1px solid rgba(226,232,240,.9);
  border-radius: var(--r2);
  box-shadow: var(--shadow2);
  display:flex;flex-direction:column;gap:14px;
}
.kpi{
  display:grid;grid-template-columns: 1fr 1fr; gap:12px;
}
.kpi .box{
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px 14px 12px;
  background:#fff;
}
.kpi .num{font-weight:900;font-size:18px;letter-spacing:-.02em}
.kpi .lbl{color:var(--muted);font-weight:700;font-size:12px;margin-top:2px}
.note{
  border:1px dashed rgba(30,58,138,.35);
  background: rgba(30,58,138,.06);
  border-radius:16px;
  padding:12px 14px;
  color:var(--muted);
  font-weight:650;
  font-size:13px;
}

.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:18px}
.grid2{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-top:18px}

.card{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(226,232,240,.9);
  border-radius: var(--r2);
  box-shadow: var(--shadow2);
  padding:18px;
}
.card h3{margin:0 0 8px;font-size:16px;letter-spacing:-.02em}
.card p{margin:0;color:var(--muted)}
.iconCircle{
  width:42px;height:42px;border-radius:16px;
  display:inline-flex;align-items:center;justify-content:center;
  background: rgba(14,165,233,.10);
  border:1px solid rgba(14,165,233,.22);
  margin-bottom:10px;
}
.iconCircle svg{width:20px;height:20px;color:#075985}

.split{
  display:grid;grid-template-columns: 1fr 1fr;
  gap:22px;align-items:stretch;
}
.photoCard{
  border-radius: var(--r2);
  overflow:hidden;
  border:1px solid rgba(226,232,240,.9);
  box-shadow: var(--shadow2);
  min-height: 360px;
  background:
    linear-gradient(180deg, rgba(2,6,23,.05), rgba(2,6,23,.35)),
    url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
}
.photoCard.alt{
  background:
    linear-gradient(180deg, rgba(2,6,23,.05), rgba(2,6,23,.35)),
    url("https://images.unsplash.com/photo-1484154218962-a197022b5858?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
}
.photoOverlay{
  height:100%;
  display:flex;flex-direction:column;justify-content:flex-end;
  padding:18px;
  color:#fff;
}
.photoOverlay .big{font-weight:900;font-size:20px;letter-spacing:-.02em}
.photoOverlay .small{opacity:.92;font-weight:650}

.faq details{
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
  padding:14px 14px;
}
.faq details + details{margin-top:10px}
.faq summary{
  cursor:pointer;
  font-weight:850;
  color:var(--text);
}
.faq p{margin:10px 0 0;color:var(--muted)}

.footer{
  border-top:1px solid rgba(226,232,240,.9);
  padding:28px 0;
  color:var(--muted);
  background: rgba(255,255,255,.45);
}
.footerGrid{
  display:grid;grid-template-columns: 1.2fr .8fr;
  gap:18px;
}
.footer a{color:var(--muted)}
.footer a:hover{color:var(--text)}
.tiny{font-size:12px;line-height:1.35;color:var(--muted)}
hr.sep{border:0;border-top:1px solid rgba(226,232,240,.9);margin:16px 0}

/* Modal form */
.modal{
  position:fixed; inset:0;
  background: rgba(2,6,23,.55);
  display:none; align-items:center; justify-content:center;
  z-index: 100;
  padding:18px;
}
.modal.open{display:flex}
.modalCard{
  width:min(760px, 100%);
  border-radius: 24px;
  background: rgba(255,255,255,.95);
  border:1px solid rgba(226,232,240,.9);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.modalTop{
  display:flex;justify-content:space-between;align-items:flex-start;
  gap:12px;
  padding:18px 18px 0 18px;
}
.modalTitle{
  padding:0 18px 6px 18px;
}
.modalTitle h2{margin:0;font-size:20px;letter-spacing:-.02em}
.modalTitle p{margin:6px 0 0;color:var(--muted);font-weight:650}
.modalClose{
  border:1px solid rgba(226,232,240,.9);
  background:#fff;border-radius:14px;
  width:42px;height:42px;
  display:inline-flex;align-items:center;justify-content:center;
  cursor:pointer;
}
.modalClose:hover{transform: translateY(-1px)}
.modalBody{padding:14px 18px 18px}
.formGrid{
  display:grid; grid-template-columns: 1fr 1fr;
  gap:12px;
}
.field{display:flex;flex-direction:column;gap:6px}
label{font-size:13px;color:var(--muted);font-weight:800}
input{
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  outline:none;
  font-size:15px;
}
input:focus{border-color: rgba(30,58,138,.35); box-shadow: 0 0 0 4px rgba(30,58,138,.10)}
.helper{font-size:12px;color:var(--muted);font-weight:650;margin-top:10px}
.consent{
  margin-top:12px;
  border:1px solid rgba(226,232,240,.9);
  background: rgba(248,250,252,.9);
  border-radius:16px;
  padding:12px 12px;
}
.consent p{margin:0;color:var(--muted);font-size:12.5px;line-height:1.35}
.consent a{font-weight:800}
.error{
  display:none;
  margin-top:10px;
  border:1px solid rgba(220,38,38,.25);
  background: rgba(220,38,38,.06);
  border-radius:14px;
  padding:10px 12px;
  color:#7f1d1d;
  font-weight:750;
  font-size:13px;
}
.success{
  display:none;
  margin-top:10px;
  border:1px solid rgba(22,163,74,.25);
  background: rgba(22,163,74,.06);
  border-radius:14px;
  padding:10px 12px;
  color:#14532d;
  font-weight:750;
  font-size:13px;
}

.badgeRow{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.badge{
  display:inline-flex;align-items:center;gap:8px;
  padding:10px 12px;border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--muted);
  font-weight:800;
  font-size:13px;
}
.badge svg{width:16px;height:16px;color:var(--brand)}
/* Pricing */
.pricing{
  display:grid;grid-template-columns:repeat(3,1fr);
  gap:16px;margin-top:18px;
}
.plan{
  background: rgba(255,255,255,.92);
  border:1px solid rgba(226,232,240,.9);
  border-radius: 24px;
  box-shadow: var(--shadow2);
  overflow:hidden;
  display:flex;flex-direction:column;
}
.planTop{padding:18px}
.planName{font-weight:950;letter-spacing:-.02em;font-size:16px}
.planPrice{font-weight:950;font-size:26px;letter-spacing:-.03em;margin-top:8px}
.planPrice span{font-size:13px;color:var(--muted);font-weight:800}
.planList{margin:12px 0 0;padding:0;list-style:none;display:grid;gap:10px;color:var(--muted);font-weight:700}
.planList li{display:flex;gap:10px}
.planBottom{padding:18px;border-top:1px solid rgba(226,232,240,.9);margin-top:auto;background:rgba(248,250,252,.75)}
.plan.featured{border-color: rgba(30,58,138,.28); transform: translateY(-4px)}
.plan.featured .planTop{background: linear-gradient(135deg, rgba(30,58,138,.06), rgba(14,165,233,.08))}
.tag{
  display:inline-flex;align-items:center;gap:8px;
  padding:6px 10px;border-radius:999px;
  background: rgba(234,88,12,.10);
  border:1px solid rgba(234,88,12,.22);
  color:#9a3412;
  font-weight:900;font-size:12px;
}

/* Legal pages */
.legal{
  max-width: 900px;
  margin: 0 auto;
}
.legal h1{margin:0 0 8px;letter-spacing:-.03em}
.legal h2{margin:26px 0 8px;letter-spacing:-.02em}
.legal p, .legal li{color:var(--muted)}
.legal .box{
  border:1px solid rgba(226,232,240,.9);
  background: rgba(255,255,255,.92);
  border-radius: 18px;
  padding:16px;
}

/* Responsive */
@media (max-width: 980px){
  .heroGrid{grid-template-columns:1fr; gap:16px}
  .split{grid-template-columns:1fr}
  .pricing{grid-template-columns:1fr; gap:12px}
  .grid3{grid-template-columns:1fr; gap:12px}
  .grid2{grid-template-columns:1fr; gap:12px}
  .footerGrid{grid-template-columns:1fr}
  .navlinks{display:none}
}
@media (max-width: 520px){
  .container{padding:0 16px}
  .heroCard .inner{padding:22px}
  .formGrid{grid-template-columns:1fr}
  .btn{width:100%}
  .navcta{width:100%}
  .nav .row{gap:10px}
}
