:root {
  --navy: #0f1d33;
  --navy-700: #16243d;
  --navy-600: #1c3050;
  --steel: #7aa2d8;
  --amber: #ff8b3d;
  --amber-600: #f5760f;
  --ink: #11192a;
  --muted: #5a6b85;
  --line: #e2e8f2;
  --bg: #f5f7fb;
  --card: #ffffff;
  --ok: #1f9d6b;
  --warn: #e2920c;
  --danger: #d83a3a;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(15, 29, 51, 0.22);
  --shadow-sm: 0 4px 14px -6px rgba(15, 29, 51, 0.18);
  --max: 1120px;
  --sp: 8px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.4em; }
p { margin: 0 0 1em; }
a { color: var(--amber-600); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--amber);
  color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 6px; }

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(245, 247, 251, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.brand-accent { color: var(--amber-600); }
.site-nav { display: flex; gap: 26px; }
.site-nav a { color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.site-nav a:hover { color: var(--ink); text-decoration: none; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 1rem; padding: 13px 22px; border-radius: 12px;
  border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: #2a1402; box-shadow: 0 8px 20px -8px rgba(255, 139, 61, 0.7); }
.btn-primary:hover { background: var(--amber-600); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--steel); background: #fff; }

/* HERO */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(122, 162, 216, 0.18), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-700) 60%, #0c1830 100%);
  color: #eaf1fb;
  padding: 72px 0 84px;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--steel); margin-bottom: 16px;
  border: 1px solid rgba(122, 162, 216, 0.35); padding: 5px 12px; border-radius: 999px;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.3rem); color: #fff; margin-bottom: 0.5em; }
.hero h1 .hl { color: var(--amber); }
.lede { font-size: 1.15rem; color: #c4d2e8; max-width: 46ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 30px; }
.hero-stats { list-style: none; display: flex; gap: 28px; padding: 0; margin: 0; flex-wrap: wrap; }
.hero-stats li { color: #9fb4d2; font-size: 0.9rem; }
.hero-stats strong { display: block; font-family: var(--display); font-size: 1.6rem; color: #fff; }

.hero-art { display: flex; justify-content: center; }
.gauge-card {
  background: linear-gradient(180deg, #16263f, #11203a);
  border: 1px solid rgba(122, 162, 216, 0.25);
  border-radius: 22px; padding: 28px; width: 100%; max-width: 340px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6); text-align: center;
}
.gauge { margin-bottom: 6px; }
.gauge-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--steel); }
.gauge-figure { font-family: var(--display); font-size: 2.4rem; font-weight: 700; color: #fff; margin: 2px 0 4px; }
.gauge-sub { font-size: 0.9rem; color: #9fb4d2; }

/* SECTIONS */
.section { padding: 76px 0; }
.section-alt { background: #eef2f9; border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}

/* ESTIMATOR */
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tool-controls { padding: 28px; }
.field { margin-bottom: 22px; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; font-weight: 600; margin-bottom: 10px; font-size: 0.95rem; }
.field-hint { color: var(--muted); font-size: 0.92rem; margin: 0; min-height: 1.2em; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg-btn {
  font-family: var(--font); font-weight: 600; font-size: 0.92rem;
  padding: 11px 10px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: #f8fafd; color: var(--muted); cursor: pointer; transition: all .15s ease;
}
.seg-btn:hover { border-color: var(--steel); color: var(--ink); }
.seg-btn.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }

select {
  width: 100%; font-family: var(--font); font-size: 1rem; color: var(--ink);
  padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3 5l4 4 4-4' fill='none' stroke='%235a6b85' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  appearance: none; cursor: pointer;
}

.tool-output { padding: 28px; display: flex; flex-direction: column; }
.out-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.out-range { font-family: var(--display); font-size: 2.6rem; font-weight: 700; color: var(--navy); margin: 4px 0 2px; }
.out-job { color: var(--muted); margin-bottom: 20px; }
.bar { height: 12px; border-radius: 999px; background: var(--line); overflow: hidden; display: flex; margin-bottom: 8px; }
.bar-parts { background: var(--steel); }
.bar-labor { background: var(--amber); }
.bar-legend { display: flex; gap: 18px; font-size: 0.85rem; color: var(--muted); margin-bottom: 22px; }
.bar-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.dot.parts { background: var(--steel); }
.dot.labor { background: var(--amber); }
.breakdown { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: auto; }
.bd-item { background: #f6f9fd; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; }
.bd-item .k { font-size: 0.8rem; color: var(--muted); }
.bd-item .v { font-family: var(--display); font-weight: 600; font-size: 1.2rem; color: var(--ink); }
.time-chip {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 18px;
  background: var(--navy); color: #dce7f6; font-size: 0.85rem; font-weight: 500;
  padding: 7px 13px; border-radius: 999px; align-self: flex-start;
}

.disclaimer { font-size: 0.85rem; color: var(--muted); margin-top: 22px; max-width: 70ch; }

/* SYMPTOM CHECKER */
.symptom-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 26px; }
.symptom-btn {
  text-align: left; font-family: var(--font); cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px; transition: all .15s ease; display: flex; flex-direction: column; gap: 8px;
}
.symptom-btn:hover { border-color: var(--amber); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.symptom-btn.is-active { border-color: var(--amber); box-shadow: 0 0 0 2px rgba(255,139,61,0.25); }
.symptom-emoji { font-size: 1.5rem; }
.symptom-label { font-weight: 600; font-size: 0.95rem; color: var(--ink); }

.symptom-output { padding: 28px; }
.symptom-output h3 { font-size: 1.45rem; margin-bottom: 6px; }
.urgency {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.85rem;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.urgency .pulse { width: 9px; height: 9px; border-radius: 50%; }
.urgency.ok { background: rgba(31,157,107,0.12); color: var(--ok); }
.urgency.ok .pulse { background: var(--ok); }
.urgency.warn { background: rgba(226,146,12,0.14); color: #a86c05; }
.urgency.warn .pulse { background: var(--warn); }
.urgency.danger { background: rgba(216,58,58,0.12); color: var(--danger); }
.urgency.danger .pulse { background: var(--danger); }

.so-block { margin-bottom: 18px; }
.so-block .so-title { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.cause-list { margin: 0; padding-left: 18px; }
.cause-list li { margin-bottom: 4px; }
.map-links { display: flex; flex-wrap: wrap; gap: 10px; }
.map-link {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: #f6f9fd; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; font-size: 0.9rem; font-weight: 500; color: var(--ink); font-family: var(--font);
}
.map-link:hover { border-color: var(--amber); }
.map-link .cost { color: var(--amber-600); font-weight: 600; }

/* MAINTENANCE */
.cheat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cheat-card { padding: 22px; }
.cheat-icon { font-size: 1.7rem; margin-bottom: 10px; }
.cheat-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.cheat-interval { font-family: var(--display); font-weight: 700; color: var(--amber-600); font-size: 1.05rem; margin-bottom: 8px; }
.cheat-card p:last-child { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ACQUIRE */
.acquire { background: var(--navy); color: #eaf1fb; padding: 56px 0; }
.acquire-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.acquire h2 { color: #fff; font-size: 1.6rem; margin-bottom: 8px; }
.acquire p { color: #c4d2e8; max-width: 58ch; margin: 0; }
.acquire .btn { white-space: nowrap; }

/* FOOTER */
.site-footer { background: #0b1426; color: #9fb4d2; padding: 48px 0 36px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.footer-brand .brand-name { color: #fff; font-size: 1.1rem; }
.footer-brand p { color: #8aa0c0; margin-top: 8px; max-width: 40ch; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; align-content: start; justify-content: flex-end; }
.footer-nav a { color: #9fb4d2; font-size: 0.93rem; }
.footer-nav a:hover { color: #fff; text-decoration: none; }
.footer-legal { grid-column: 1 / -1; border-top: 1px solid #1b2840; padding-top: 20px; margin: 8px 0 0; font-size: 0.82rem; color: #6f8298; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { order: -1; }
  .tool-grid { grid-template-columns: 1fr; }
  .symptom-grid { grid-template-columns: repeat(2, 1fr); }
  .cheat-grid { grid-template-columns: repeat(2, 1fr); }
  .acquire-inner { flex-direction: column; align-items: flex-start; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
}
@media (max-width: 620px) {
  .site-nav { display: none; }
  .hero { padding: 52px 0 60px; }
  .section { padding: 56px 0; }
  .seg { grid-template-columns: 1fr 1fr; }
  .breakdown { grid-template-columns: 1fr 1fr; }
  .out-range { font-size: 2.1rem; }
}
@media (max-width: 420px) {
  .symptom-grid { grid-template-columns: 1fr 1fr; }
  .cheat-grid { grid-template-columns: 1fr; }
}
