/* MCalc public home page (Home.aspx) - the first page of the website. Login stays on Default.aspx. */
:root {
  --brand: #32BDEA; --brand-600: #1a9cc9; --brand-700: #13789b; --brand-50: #eaf8fd; --brand-100: #d3f1fb;
  --ink: #0f2630; --text: #33454d; --muted: #6b7f88; --line: #e3edf1; --soft: #f6fafb; --card: #fff; --bg: #ffffff;
  --green: #1f9d6b; --amber: #c98a0b; --r: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Lato, "Segoe UI", Roboto, Arial, sans-serif; color: var(--text); background: var(--bg); line-height: 1.55; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 12px; font-weight: 700; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: transform .12s, box-shadow .12s, background .12s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--brand-600); color: #fff; box-shadow: 0 8px 20px rgba(26, 156, 201, .28); }
.btn-primary:hover { background: var(--brand-700); }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: var(--brand); color: var(--brand-700); }
.btn-wa { background: #25d366; color: #fff; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 14px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand svg { width: 38px; height: 38px; }
.brand b { display: block; font-size: 21px; color: var(--ink); line-height: 1.1; font-weight: 900; }
.brand small { display: block; font-size: 11.5px; color: var(--muted); }
.nav { display: flex; gap: 22px; margin-left: 28px; font-weight: 600; font-size: 14.5px; color: var(--muted); }
.nav a:hover { color: var(--brand-700); }
.top__act { margin-left: auto; display: flex; gap: 8px; }

/* ---------- hero ---------- */
.hero { background: radial-gradient(1000px 420px at 85% -10%, var(--brand-100), transparent 70%), linear-gradient(180deg, var(--brand-50), #fff 80%); padding: 64px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.hero .wrap > *, .grid > * { min-width: 0; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--brand-100); color: var(--brand-700); font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 99px; }
.hero h1 { font-size: 46px; line-height: 1.12; color: var(--ink); margin: 18px 0 16px; font-weight: 900; letter-spacing: -.02em; }
.hero h1 span { color: var(--brand-600); }
.hero p.lead { font-size: 18px; color: var(--text); margin: 0 0 26px; max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.hero__trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero__trust i { width: 18px; height: 18px; border-radius: 50%; background: var(--green); color: #fff; font-style: normal; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; }

/* phone mock-up with a working sq.ft calculator */
.mock { position: relative; justify-self: center; width: 100%; max-width: 400px; }
.phone { background: #0f2630; border-radius: 34px; padding: 12px; box-shadow: 0 30px 60px rgba(15, 38, 48, .25); }
.screen { background: #f4f8fa; border-radius: 24px; overflow: hidden; }
.screen__top { background: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.screen__top b { color: var(--ink); font-size: 15px; }
.screen__top small { margin-left: auto; color: var(--muted); font-size: 12px; }
.calc { padding: 16px; }
.calc h4 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.calc .row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.calc label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.calc input, .calc select { width: 100%; height: 42px; border: 1px solid #d7e4ea; border-radius: 10px; padding: 0 10px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; }
.calc input:focus, .calc select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.calc .full { margin-top: 10px; }
.calc__out { margin-top: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc__out small { display: block; font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.calc__out b { font-size: 20px; color: var(--ink); font-variant-numeric: tabular-nums; }
.calc__out .tot { grid-column: 1 / -1; border-top: 1px dashed var(--line); padding-top: 10px; display: flex; justify-content: space-between; align-items: center; }
.calc__out .tot b { color: var(--brand-700); font-size: 24px; }
.calc__note { font-size: 11.5px; color: var(--muted); margin: 10px 2px 2px; }
.float { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; box-shadow: 0 12px 28px rgba(15, 38, 48, .12); font-size: 13px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.float i { font-style: normal; width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.float--a { left: -46px; top: -18px; } .float--a i { background: #e6f6ef; color: var(--green); }
.float--b { right: -34px; bottom: -20px; } .float--b i { background: #e9f9ef; color: #128c4a; }

/* ---------- sections ---------- */
section.block { padding: 72px 0; }
section.block.alt { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.head .eyebrow { color: var(--brand-700); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
.head h2 { font-size: 34px; line-height: 1.2; color: var(--ink); margin: 8px 0 10px; font-weight: 900; letter-spacing: -.01em; }
.head p { margin: 0; color: var(--muted); font-size: 16.5px; }

.grid { display: grid; gap: 18px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; transition: border-color .15s, transform .15s, box-shadow .15s; }
.card:hover { border-color: var(--brand-100); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(15, 38, 48, .06); }
.ico { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-50); color: var(--brand-700); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.ico svg { width: 24px; height: 24px; }
.card h3 { margin: 0 0 6px; font-size: 17.5px; color: var(--ink); }
.card p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* steps */
.steps { counter-reset: s; }
.step { position: relative; padding-top: 58px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 22px; left: 22px; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-600); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.step { padding-top: 66px; }

/* who */
.who { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.who span { background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 9px 18px; font-weight: 700; color: var(--ink); font-size: 14.5px; }

/* pricing */
.plans { grid-template-columns: repeat(4, 1fr); align-items: stretch; }
.plan { display: flex; flex-direction: column; text-align: center; position: relative; }
.plan h3 { font-size: 16px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.plan .price { font-size: 36px; font-weight: 900; color: var(--ink); margin: 6px 0 2px; }
.plan .per { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.plan .save { color: var(--green); font-weight: 800; font-size: 13px; min-height: 20px; }
.plan .btn { margin-top: auto; }
.plan--best { border: 2px solid var(--brand); box-shadow: 0 18px 40px rgba(26, 156, 201, .16); }
.plan--best .tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--brand-600); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 99px; white-space: nowrap; }
.plans-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 18px; }

/* faq */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; color: var(--ink); font-size: 16px; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--brand-600); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* cta + footer */
.cta { background: linear-gradient(135deg, var(--brand-700), var(--brand-600)); color: #fff; border-radius: 22px; padding: 44px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta h2 { margin: 0 0 6px; font-size: 30px; font-weight: 900; }
.cta p { margin: 0; opacity: .9; }
.cta div:first-child { flex: 1 1 320px; }
.cta .btn-light { border-color: transparent; }
.cta .btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .35); }
footer { padding: 40px 0 30px; color: var(--muted); font-size: 14px; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
footer h4 { color: var(--ink); margin: 0 0 10px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
footer a { display: block; padding: 3px 0; } footer a:hover { color: var(--brand-700); }
.copy { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 18px; text-align: center; font-size: 13px; }

/* phone: login always at hand */
.mbar { display: none; }

@media (max-width: 991px) {
  .nav { display: none; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .g4, .plans { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: 1fr 1fr; }
  footer .wrap { grid-template-columns: 1fr 1fr; }
  .float--a { left: -6px; } .float--b { right: -6px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .top .wrap { height: 60px; }
  .brand small { display: none; }
  .top__act .btn-reg { display: none; }
  .hero { padding: 36px 0 40px; }
  .hero h1 { font-size: 30px; }
  .hero p.lead { font-size: 16px; }
  .hero__cta .btn { flex: 1 1 100%; }
  section.block { padding: 52px 0; }
  .head h2 { font-size: 26px; }
  .g3, .g4 { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr 1fr; gap: 12px; }
  .plan { padding: 18px 12px; } .plan .price { font-size: 28px; }
  .cta { padding: 28px 22px; } .cta h2 { font-size: 24px; } .cta .btn { flex: 1 1 100%; }
  footer .wrap { grid-template-columns: 1fr; }
  .float { display: none; }
  body { padding-bottom: 76px; }
  .mbar { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); backdrop-filter: blur(8px); }
  .mbar .btn { flex: 1 1 0; }
}
.brand img { width: 38px; height: 38px; }
.top__act .btn svg { flex: 0 0 auto; }
.plan .per:empty, .plan .save:empty { visibility: hidden; }
/* Update 53: language switch */
.top__act .btn-lang { gap: 6px; }
@media (max-width: 600px) { .top__act .btn-lang { padding: 0 10px; } }
