/* MeasureMate — shared styles. Mobile-first, no dependencies. */
:root{
  --bg:#f7f8fa; --card:#ffffff; --ink:#1a2230; --muted:#5b6575;
  --brand:#0f766e; --brand-dark:#0b5f59; --accent:#f59e0b;
  --line:#e5e9ef; --radius:14px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;background:var(--bg);color:var(--ink);line-height:1.65;font-size:16px}
a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline}
.wrap{max-width:1080px;margin:0 auto;padding:0 18px}
/* header */
.site-header{background:var(--card);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;height:62px}
.logo{font-weight:800;font-size:1.25rem;color:var(--ink);display:flex;align-items:center;gap:8px}
.logo span{color:var(--brand)}
.nav{display:flex;gap:16px;font-size:.95rem}
.nav a{color:var(--muted);font-weight:600}
.nav a:hover{color:var(--brand)}
/* hero */
.hero{background:linear-gradient(135deg,#0f766e,#115e59);color:#fff;padding:56px 0 48px;text-align:center}
.hero h1{font-size:2rem;line-height:1.25;margin-bottom:12px}
.hero p{opacity:.92;max-width:640px;margin:0 auto;font-size:1.05rem}
/* tool grid */
.section{padding:40px 0}
.section h2{font-size:1.5rem;margin-bottom:6px}
.section .sub{color:var(--muted);margin-bottom:22px}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:22px;transition:transform .15s,box-shadow .15s}
.card:hover{transform:translateY(-3px);box-shadow:0 8px 24px rgba(15,118,110,.12)}
.card .icon{font-size:2rem;margin-bottom:10px}
.card h3{font-size:1.1rem;margin-bottom:6px;color:var(--ink)}
.card p{font-size:.92rem;color:var(--muted);margin-bottom:12px}
.card .go{font-weight:700;color:var(--brand)}
/* calculator */
.calc{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:26px;margin:24px 0}
.calc h2{font-size:1.35rem;margin-bottom:14px}
.field{margin-bottom:14px}
.field label{display:block;font-weight:600;margin-bottom:6px;font-size:.95rem}
.field input,.field select{width:100%;padding:11px 12px;border:1px solid var(--line);border-radius:9px;font-size:1rem;background:#fff;color:var(--ink)}
.field input:focus,.field select:focus{outline:2px solid var(--brand);border-color:var(--brand)}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media(max-width:560px){.row2{grid-template-columns:1fr}}
.btn{display:inline-block;background:var(--brand);color:#fff;border:none;border-radius:9px;padding:13px 26px;font-size:1.02rem;font-weight:700;cursor:pointer;width:100%}
.btn:hover{background:var(--brand-dark)}
.result{background:#ecfdf5;border:1px solid #a7f3d0;border-radius:var(--radius);padding:20px;margin-top:18px;display:none}
.result.show{display:block}
.result h3{margin-bottom:8px;color:var(--brand-dark)}
.result .big{font-size:1.6rem;font-weight:800;color:var(--ink)}
.result ul{margin:8px 0 0 18px;color:var(--muted)}
.hint{font-size:.88rem;color:var(--muted);margin-top:8px}
/* content */
.prose{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:26px;margin:24px 0}
.prose h2{font-size:1.3rem;margin:22px 0 10px}
.prose h2:first-child{margin-top:0}
.prose p,.prose li{color:#334155}
.prose ul,.prose ol{margin:10px 0 10px 20px}
.faq details{border:1px solid var(--line);border-radius:10px;padding:14px 16px;margin-bottom:10px;background:#fff}
.faq summary{font-weight:700;cursor:pointer}
/* breadcrumbs */
.crumbs{font-size:.88rem;color:var(--muted);padding:16px 0 0}
.crumbs a{color:var(--muted)}
/* footer */
.site-footer{background:#0f172a;color:#cbd5e1;padding:34px 0;margin-top:40px;font-size:.92rem}
.site-footer .wrap{display:flex;flex-wrap:wrap;gap:18px;justify-content:space-between}
.site-footer a{color:#94a3b8}
.site-footer strong{color:#fff}
