/* ===== MainIT Expenses public site — Main IT Solutions chrome (matches mainit.ca / learn.mainit.ca) ===== */
:root {
  --primary: #086ad8; --primary-dark: #0c4da2; --primary-soft: #e3eefc;
  --navy: #001d4c; --text: #0e2b3d; --muted: #6b7785; --body: #4a5a6a;
  --border: #dfe6f1; --surface: #ffffff; --surface-2: #eef3fb; --bg: #f3f7fd;
  --ok: #1a8a4a; --ok-soft: #e4f5ea; --warn: #a96500; --bad: #c0362c;
  --shadow: 0 2px 6px rgba(0, 29, 76, .05), 0 8px 24px rgba(0, 29, 76, .05);
  --radius: 10px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--body); background: #fff; line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { color: var(--text); margin: 0 0 12px; line-height: 1.2; }
p { margin: 0 0 12px; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.center { text-align: center; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.narrow-wrap { max-width: 900px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 5px; border: 2px solid transparent; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none !important; transition: background .15s, color .15s; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-light { background: #fff; color: var(--primary); border-color: #fff; }
.btn-light:hover { background: var(--primary-soft); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-small { padding: 7px 14px; font-size: .85rem; }
.btn:disabled { opacity: .6; cursor: default; }

/* top strip + header */
.topbar-strip { background: var(--primary); color: #fff; font-size: .82rem; }
.topbar-strip .wrap { display: flex; align-items: center; gap: 22px; min-height: 40px; flex-wrap: wrap; }
.tb-item { display: inline-flex; align-items: center; gap: 7px; color: #fff; font-weight: 500; }
.tb-item:hover { color: #fff; text-decoration: none; opacity: .85; }
.tb-item svg { width: 14px; height: 14px; fill: currentColor; flex: none; }
.tb-spacer { flex: 1; }
.site-header { background: #fff; box-shadow: 0 2px 12px rgba(0, 29, 76, .07); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 76px; position: relative; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo:hover { text-decoration: none; }
.logo img { display: block; height: 52px; width: auto; }
.logo-sub { font-weight: 800; color: var(--primary); font-size: 1.05rem; letter-spacing: .02em; border-left: 2px solid var(--border); padding-left: 10px; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a:not(.btn) { color: var(--primary); text-transform: uppercase; font-weight: 600; font-size: .82rem; letter-spacing: .04em; padding: 10px 12px; border-radius: 6px; }
.site-nav a:not(.btn):hover { background: var(--primary-soft); text-decoration: none; }
.site-nav .btn { margin-left: 10px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--primary); cursor: pointer; margin-left: auto; }

/* section titles */
.eyebrow { color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: 10px; }
section h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 600; }
.lead { font-size: 1.08rem; }

/* hero */
.hero { background: radial-gradient(1200px 500px at 85% 20%, rgba(8, 106, 216, .14), transparent 60%), linear-gradient(180deg, #f3f7fd, #fff); padding: 64px 0 80px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); font-weight: 700; line-height: 1.1; margin-bottom: 18px; }
.hero-lead { font-size: 1.14rem; max-width: 560px; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .92rem; color: var(--text); font-weight: 500; }
.hero-points li::before, ul.check li::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: 8px; }
.hero-art { position: relative; padding: 0 40px 40px 0; }
.hero-art .phone { position: absolute; right: 0; bottom: 0; width: 26%; border-radius: 18px; border: 5px solid var(--text); box-shadow: 0 24px 60px rgba(0, 29, 76, .3); background: #fff; }

/* browser frame */
.browser { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 29, 76, .18); border: 1px solid var(--border); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c9d4e6; display: block; }
.browser-bar i:first-child { background: #ff6b5e; } .browser-bar i:nth-child(2) { background: #ffc13b; } .browser-bar i:nth-child(3) { background: #2bc840; }
.browser-bar span { margin-left: 10px; font-size: .78rem; color: var(--muted); font-weight: 500; }
.browser img { display: block; width: 100%; }
.browser.narrow { max-width: 620px; margin: 0 auto; }

/* pains */
.pains { background: var(--navy); padding: 30px 0; }
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pain { display: flex; gap: 14px; align-items: flex-start; }
.pain-ico { font-size: 1.6rem; line-height: 1; width: 46px; height: 46px; border-radius: 10px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; flex: none; }
.pain h3 { color: #fff; font-size: 1.05rem; margin: 2px 0 4px; }
.pain p { color: #c9d4e6; margin: 0; font-size: .93rem; }

/* steps + features */
.steps-band { background: var(--bg); padding: 72px 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 36px; }
.steps.steps6 { grid-template-columns: repeat(6, 1fr); gap: 20px; }
.step-num { display: block; font-size: 2.6rem; font-weight: 800; color: var(--primary); opacity: .3; line-height: 1; margin-bottom: 10px; }
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { font-size: .93rem; }
.features { padding: 72px 0; background: #fff; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
.feature { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 28px 22px; box-shadow: var(--shadow); transition: transform .15s; }
.feature:hover { transform: translateY(-3px); }
.f-ico { width: 52px; height: 52px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-size: 1.35rem; font-weight: 800; margin-bottom: 16px; }
.feature h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature p { font-size: .94rem; margin: 0; }
.security { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.security span { background: var(--surface-2); color: var(--text); font-weight: 600; font-size: .86rem; padding: 8px 14px; border-radius: 99px; }

/* demo tour */
.demo { padding: 72px 0; background: linear-gradient(180deg, #fff, var(--bg)); }
.demo-lead { margin-bottom: 28px; }
.tour-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 24px; }
.tour-tabs button { font: inherit; font-weight: 600; font-size: .9rem; color: var(--primary); background: #fff; border: 1px solid var(--border); border-radius: 99px; padding: 8px 16px; cursor: pointer; }
.tour-tabs button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.tour-stage { position: relative; max-width: 1080px; margin: 0 auto; }
.tour-slide { display: none; margin: 0; }
.tour-slide.active { display: block; animation: fadeIn .35s ease; }
.tour-slide figcaption { text-align: center; max-width: 760px; margin: 22px auto 0; font-size: 1.02rem; }
.tour-slide figcaption b { color: var(--text); }
.tour-nav { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 14px; }
.tour-nav button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: #fff; color: var(--primary); font-size: 1.4rem; cursor: pointer; line-height: 1; }
.tour-count { font-size: .88rem; color: var(--muted); min-width: 48px; text-align: center; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* mobile */
.mobile { padding: 72px 0; background: #fff; }
.mobile-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
ul.check { list-style: none; padding: 0; margin: 16px 0 0; color: var(--text); font-weight: 500; }
ul.check li { margin-bottom: 8px; }
.phones { display: flex; gap: 18px; justify-content: center; align-items: flex-end; }
.phones img { width: 31%; border-radius: 22px; border: 5px solid var(--text); box-shadow: 0 18px 48px rgba(0, 29, 76, .2); background: #fff; }
.phones img:nth-child(2) { transform: translateY(-28px); }

/* accordions */
.acc { margin-top: 32px; display: grid; gap: 12px; }
.acc details { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 4px 22px; box-shadow: var(--shadow); }
.acc summary { cursor: pointer; list-style: none; font-weight: 700; color: var(--text); padding: 14px 0; display: flex; justify-content: space-between; align-items: center; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; color: var(--primary); font-size: 1.4rem; font-weight: 600; }
.acc details[open] summary::after { content: "–"; }
.acc ul { margin: 0 0 16px; padding-left: 20px; }
.acc li { margin-bottom: 6px; }
.acc details p { margin: 0 0 16px; }
.faq { background: #fff; }

/* contact */
.contact { padding: 72px 0; background: linear-gradient(180deg, var(--bg), #fff); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.contact-steps { padding-left: 20px; margin: 18px 0 24px; color: var(--text); }
.contact-steps li { margin-bottom: 8px; }
.contact-info { list-style: none; padding: 0; margin: 0; color: var(--text); }
.contact-info li { margin-bottom: 8px; }
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 28px; box-shadow: 0 24px 60px rgba(0, 29, 76, .12); display: grid; gap: 14px; }
.contact-card h3 { font-size: 1.25rem; margin: 0 0 4px; }
.contact-card label { display: grid; gap: 6px; font-size: .86rem; font-weight: 600; color: var(--text); }
.contact-card input, .contact-card select, .contact-card textarea { font: inherit; font-weight: 400; color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 11px 12px; background: #fff; width: 100%; }
.contact-card input:focus, .contact-card select:focus, .contact-card textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.contact-card .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-card .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--body); }
.contact-card .consent input { width: auto; margin-top: 4px; }
.contact-card .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-card button { justify-self: start; }
.form-msg { margin: 0; font-weight: 600; min-height: 1.4em; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--bad); }

/* CTA + footer */
.cta-band { background: linear-gradient(120deg, var(--primary), var(--primary-dark)); color: #fff; padding: 56px 0; }
.cta-band h2, .cta-band p { color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer { background: var(--navy); color: #c9d4e6; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding: 48px 16px 36px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin: 6px 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #c9d4e6; }
.site-footer a:hover { color: #fff; }
.footer-logo { display: inline-block; background: #fff; border-radius: 10px; padding: 8px 12px; }
.footer-logo img { display: block; height: 48px; width: auto; }
.footer-tag { margin-top: 14px; color: #9fb0cc; max-width: 280px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 16px 0; font-size: .82rem; color: #8a9bb8; }

/* responsive */
@media (max-width: 1080px) {
  .steps.steps6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .hero-grid, .mobile-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid, .steps { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 8px 16px 16px; box-shadow: 0 12px 24px rgba(0, 29, 76, .1); }
  .site-nav.open { display: flex; }
  .site-nav .btn { margin: 8px 0 0; }
}
@media (max-width: 720px) {
  .tb-hide-sm { display: none !important; }
  .feature-grid, .steps, .steps.steps6, .footer-grid, .pain-grid { grid-template-columns: 1fr; }
  .logo-sub { display: none; }
  .hero { padding: 40px 0 56px; }
  .hero-art { padding: 0 24px 24px 0; }
  .contact-card .row2 { grid-template-columns: 1fr; }
  .contact-card { padding: 20px; }
  .phones { gap: 10px; }
  .phones img { border-width: 3px; border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .tour-slide.active { animation: none; } .feature { transition: none; } }
