:root{
  --bg:#f9fafb;
  --card:#ffffff;
  --text:#111827;
  --muted:#4b5563;
  --border:#e5e7eb;
  --accent:#2563eb;
  --accentHover:#1d4ed8;
  --shadow: 0 10px 30px rgba(17,24,39,.08);
  --radius: 14px;
  --max: 1080px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background: radial-gradient(1000px 600px at 20% 0%, rgba(37,99,235,.10), transparent 60%),
              radial-gradient(900px 500px at 80% 10%, rgba(99,102,241,.08), transparent 55%),
              var(--bg);
  line-height:1.5;
}

a{ color:inherit; text-decoration:none; }

a:focus, button:focus, input:focus, select:focus{
  outline:3px solid rgba(37,99,235,.35);
  outline-offset:2px;
  border-radius: 10px;
}

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 18px 64px;
}

/* Header */
header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 10px 6px 18px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
  letter-spacing:-0.02em;
}

.logo{
  width:34px;
  height:34px;
  border-radius:10px;
  background: linear-gradient(135deg, var(--accent), #60a5fa);
  box-shadow: 0 8px 18px rgba(37,99,235,.25);
  display:grid;
  place-items:center;
  color:white;
  font-weight:800;
  font-size:16px;
  user-select:none;
}

nav{
  display:flex;
  gap:14px;
  align-items:center;
  color:var(--muted);
  font-size:14px;
}

nav a{
  padding:8px 10px;
  border-radius: 10px;
}

nav a:hover{
  background: rgba(17,24,39,.04);
  color: var(--text);
}

/* Hero/card containers */
.hero{
  margin-top: 8px;
  padding: 22px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(6px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.9);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(17,24,39,.06);
  padding: 18px;
}

.kicker{
  display:inline-flex;
  gap:8px;
  align-items:center;
  font-size: 12px;
  color: var(--muted);
  background: rgba(17,24,39,.04);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(17,24,39,.06);
  width: fit-content;
}

h1{
  margin: 14px 0 10px;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.12;
  letter-spacing:-0.03em;
}

.subhead{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  max-width: 70ch;
}

/* Buttons */
.ctaRow{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top: 8px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(17,24,39,.10);
  background: rgba(255,255,255,.92);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  min-width: 190px;
  cursor:pointer;
  transition: transform .06s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.btn:hover{
  background: rgba(255,255,255,1);
  border-color: rgba(37,99,235,.25);
  box-shadow: 0 10px 22px rgba(17,24,39,.06);
  transform: translateY(-1px);
}

.btnPrimary{
  background: var(--accent);
  color: white;
  border-color: rgba(37,99,235,.35);
  box-shadow: 0 10px 22px rgba(37,99,235,.18);
}

.btnPrimary:hover{
  background: var(--accentHover);
  transform: translateY(-1px);
}

.btnSmall{
  min-width:auto;
  padding: 10px 12px;
  font-size: 13px;
}

/* Layout helpers */
.grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:18px;
}

/* ========= CALCULATOR POLISH (roomier) ========= */

/* Inputs list spacing */
.calcGrid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 16px;                 /* more breathing room */
}

/* Each field */
.field{
  display:grid;
  gap: 8px;                  /* more separation between label and input */
}

label{
  font-size: 13px;
  color: rgba(75,85,99,.95);
  font-weight: 700;          /* labels read cleaner */
}

/* Inputs */
input, select{
  width: 100%;
  padding: 12px 12px;
  height: 44px;              /* consistent control height */
  border-radius: 12px;
  border: 1px solid rgba(17,24,39,.12);
  background: white;
  font-size: 14px;
  color: var(--text);
}

input::placeholder{
  color: rgba(75,85,99,.65);
}

/* Make number inputs look less "cramped" in Chrome */
input[type="number"]{
  padding-right: 12px;
}

/* Hint text */
.hint{
  font-size: 12px;
  color: rgba(75,85,99,.88);
  line-height: 1.35;
  margin-top: 2px;
}

/* Buttons row inside calculator cards */
.btnRow{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top: 6px;
}

.btnRow .btn{
  min-width: 160px;
}

/* Results */
.results{
  display:grid;
  gap: 10px;
  margin-top: 12px;
}

.resultRow{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  padding: 12px 12px;        /* slightly taller */
  background: white;
  border: 1px solid rgba(17,24,39,.06);
  border-radius: 14px;
}

.resultRow strong{
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.resultRow span{
  font-weight: 700;
}

/* Trust section on homepage */
.trust{
  margin-top: 22px;
  display:grid;
  grid-template-columns: 1fr;
  gap:14px;
  padding: 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.trustItem{
  display:flex;
  gap:14px;
  align-items:flex-start;
  color: var(--muted);
  font-size: 14px;
}

.check{
  width: 20px;
  height: 20px;
  border-radius: 7px;
  background: rgba(37,99,235,.12);
  display:grid;
  place-items:center;
  color: var(--accent);
  font-weight:900;
  margin-top: 2px;
  flex: 0 0 auto;
}

/* How it works steps */
.steps{
  margin-top: 12px;
  display:grid;
  gap:12px;
}

.step{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(17,24,39,.08);
  background: rgba(255,255,255,.98);
  width:100%;
}

.step + .step{
  box-shadow: 0 1px 0 rgba(17,24,39,.04) inset;
}

.badge{
  width: 30px;
  height: 30px;
  border-radius: 11px;
  background: rgba(37,99,235,.12);
  display:grid;
  place-items:center;
  color: var(--accent);
  font-weight:800;
  flex: 0 0 auto;
}

/* Footer */
footer{
  margin-top: 26px;
  padding: 18px 6px 0;
  color: var(--muted);
  font-size: 13px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  justify-content:space-between;
}

.footerLinks{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
}

.footerLinks a{
  padding: 6px 8px;
  border-radius: 10px;
}

.footerLinks a:hover{
  background: rgba(17,24,39,.04);
  color: var(--text);
}

.legal{
  max-width: 90ch;
  margin-top: 10px;
  color: rgba(75,85,99,.95);
}

/* Responsive */
@media (max-width: 860px){
  nav{ display:none; }
  .btn{ min-width: 100%; }
  .grid2{ grid-template-columns: 1fr; }

  /* Calculator: stack buttons full width on mobile */
  .btnRow .btn{ min-width: 100%; }
}
/* IRS Mileage Pro Tip */
.proTip{
  margin-top: 16px;
  background: linear-gradient(
    135deg,
    rgba(37,99,235,.06),
    rgba(99,102,241,.05)
  );
  border: 1px solid rgba(37,99,235,.18);
}

.proTipHeader{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom: 8px;
  font-size: 14px;
}

.proTipIcon{
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: rgba(37,99,235,.12);
  display:grid;
  place-items:center;
  font-size: 15px;
}

.proTipText{
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--text);
}

.proTipFine{
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}
