/* Matrix Pro Internet Solutions
   Layout: split hero with a speed-finder card, alternating light/tinted bands, navy footer. */
:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --tint: #eaf0fb;
  --ink: #101a3a;
  --muted: #4d5a7c;
  --line: #d6deef;
  --brand: #16245c;      /* deep navy */
  --brand-2: #2f5bea;    /* signal blue */
  --cta: #ff8a1f;        /* call-to-action orange */
  --cta-ink: #1d1200;
  --ok: #138a52;
  --footer-bg: #0d1638;
  --footer-ink: #c9d3f2;
  --shadow: 0 10px 30px -12px rgba(22, 36, 92, .25);
  --radius: 14px;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1129; --surface: #121a3a; --tint: #16204a; --ink: #eef2ff; --muted: #a8b4da;
    --line: #26325e; --brand: #8fa8ff; --brand-2: #7c9bff; --cta: #ff9a3d; --cta-ink: #1d1200;
    --ok: #3ccf8b; --footer-bg: #070b1d; --footer-ink: #aab6de; --shadow: 0 10px 30px -12px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1129; --surface: #121a3a; --tint: #16204a; --ink: #eef2ff; --muted: #a8b4da;
  --line: #26325e; --brand: #8fa8ff; --brand-2: #7c9bff; --cta: #ff9a3d; --cta-ink: #1d1200;
  --ok: #3ccf8b; --footer-bg: #070b1d; --footer-ink: #aab6de; --shadow: 0 10px 30px -12px rgba(0,0,0,.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
}
img { max-width: 100%; }
a { color: var(--brand-2); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--cta); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.wrap {
  max-width: 1160px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.skip { position: absolute; left: -999px; top: 8px; background: var(--cta); color: var(--cta-ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Top info bar */
.topbar { background: var(--footer-bg); color: var(--footer-ink); font-size: .85rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; padding-block: 7px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--surface); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; padding-block: 12px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.logo svg { width: 40px; height: 40px; flex: none; }
.logo strong { font-family: var(--font-display); font-size: 1.15rem; display: block; line-height: 1.1; }
.logo span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 10px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--tint); color: var(--brand); }
.dropdown { position: relative; }
.dropdown > button { font: inherit; font-weight: 500; font-size: .95rem; background: none; border: 0; color: var(--ink); padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.dropdown > button:hover { background: var(--tint); }
.dropdown-menu { position: absolute; top: 100%; left: 0; min-width: 190px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 6px; display: none; }
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu, .dropdown.open .dropdown-menu { display: grid; }
.header-cta { display: flex; gap: 8px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; color: var(--ink); font: inherit; cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: .95rem; padding: 12px 20px; border-radius: 10px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-cta { background: var(--cta); color: var(--cta-ink); }
.btn-brand { background: var(--brand); color: var(--surface); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-sm { padding: 9px 14px; font-size: .88rem; }

/* Sections */
.band { padding-block: clamp(56px, 8vw, 96px); }
.band-tint { background: var(--tint); }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-2); }
.section-head { display: grid; gap: 12px; max-width: 680px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--surface), var(--bg)); padding-block: clamp(40px, 6vw, 80px); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero-copy .lead { font-size: 1.12rem; color: var(--muted); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 0; font-size: .92rem; color: var(--muted); }
.checks li::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: 6px; }
.call-line { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface); max-width: 460px; }
.call-line .num { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--brand); text-decoration: none; }
.call-line small { display: block; color: var(--muted); font-size: .82rem; }
.pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(19,138,82,.5); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(19,138,82,0); } 100% { box-shadow: 0 0 0 0 rgba(19,138,82,0); } }

/* Speed finder */
.finder { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 26px; display: grid; gap: 18px; min-width: 0; }
.finder h2 { font-size: 1.35rem; }
.finder p.sub { color: var(--muted); font-size: .92rem; }
.finder fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.finder legend { font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 7px 13px; border: 1.5px solid var(--line); border-radius: 999px; font-size: .88rem; cursor: pointer; user-select: none; }
.chip input:checked + span { border-color: var(--brand-2); background: var(--tint); color: var(--brand); font-weight: 600; }
.chip input:focus-visible + span { outline: 3px solid var(--cta); outline-offset: 2px; }
.result { background: var(--tint); border-radius: 12px; padding: 16px; display: grid; gap: 4px; }
.result .speed { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.result small { color: var(--muted); }

/* Provider cards */
.providers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.provider { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: grid; gap: 16px; align-content: start; }
.provider-top { display: flex; align-items: center; gap: 14px; }
.badge { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: #fff; background: var(--brand); flex: none; }
.badge.alt { background: var(--brand-2); }
.provider-top small { color: var(--muted); display: block; }
.provider ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--muted); }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat-row div { background: var(--tint); border-radius: 10px; padding: 10px 12px; }
.stat-row b { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--brand); }
.stat-row span { font-size: .78rem; color: var(--muted); }
.note { font-size: .85rem; color: var(--muted); margin-top: 24px; max-width: 80ch; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding: 24px 20px 20px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.steps li::before { counter-increment: s; content: "Step " counter(s); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-2); }
.steps p { color: var(--muted); font-size: .95rem; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; }
.feature { display: grid; gap: 8px; align-content: start; }
.feature .ico { width: 44px; height: 44px; border-radius: 10px; background: var(--tint); display: grid; place-items: center; color: var(--brand-2); }
.feature .ico svg { width: 22px; height: 22px; }
.feature p { color: var(--muted); font-size: .96rem; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.about-copy { display: grid; gap: 16px; min-width: 0; }
.about-copy p { color: var(--muted); }
.about-panel { background: var(--brand); color: #fff; border-radius: 18px; padding: 30px; display: grid; gap: 18px; }
:root[data-theme="dark"] .about-panel { background: var(--surface); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .about-panel { background: var(--surface); border: 1px solid var(--line); } }
.about-panel h3 { color: inherit; }
.about-panel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.about-panel li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; opacity: .92; }
.about-panel li::before { content: "→"; color: var(--cta); font-weight: 700; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand-2); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 18px; color: var(--muted); }

/* Contact */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: start; }
.contact-info { display: grid; gap: 18px; min-width: 0; }
.contact-info p { color: var(--muted); }
.info-card { display: grid; gap: 4px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow-wrap: anywhere; }
.info-card small { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.info-card a, .info-card b { font-weight: 700; font-size: 1.08rem; color: var(--ink); text-decoration: none; }
form.lead-form { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: grid; gap: 16px; box-shadow: var(--shadow); min-width: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand-2); outline: none; box-shadow: 0 0 0 3px rgba(47,91,234,.2); }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: .84rem; color: var(--muted); align-items: start; }
.consent input { width: 18px; height: 18px; margin-top: 2px; }
.form-msg { padding: 14px 16px; border-radius: 10px; font-weight: 500; }
.form-msg.ok { background: rgba(19,138,82,.12); color: var(--ok); }
.form-msg.err { background: rgba(255,138,31,.15); color: var(--ink); }

/* Page hero (inner pages) */
.page-hero { background: var(--brand); color: #fff; padding-block: clamp(44px, 6vw, 72px); }
:root[data-theme="dark"] .page-hero { background: var(--tint); color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .page-hero { background: var(--tint); color: var(--ink); } }
.page-hero .wrap { display: grid; gap: 16px; }
.page-hero p { max-width: 62ch; opacity: .9; font-size: 1.08rem; }
.page-hero .eyebrow { color: var(--cta); }
.crumbs { font-size: .85rem; opacity: .8; }
.crumbs a { color: inherit; }

/* Plan table */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--tint); }
tr:last-child td { border-bottom: 0; }
td b { font-family: var(--font-display); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: grid; gap: 12px; align-content: start; }
.panel ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--muted); }
.panel p { color: var(--muted); }

.cta-strip { background: var(--brand); color: #fff; border-radius: 20px; padding: clamp(28px, 4vw, 44px); display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
:root[data-theme="dark"] .cta-strip { background: var(--tint); color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cta-strip { background: var(--tint); color: var(--ink); } }
.cta-strip p { opacity: .85; }
.cta-strip > div { display: grid; gap: 8px; min-width: 0; }

.legal { max-width: 780px; display: grid; gap: 16px; }
.legal h2 { font-size: 1.3rem; margin-top: 12px; }
.legal p, .legal li { color: var(--muted); }

/* Footer */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); padding-block: 56px 28px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-family: var(--font-display); font-size: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--footer-ink); text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { color: #fff; }
.disclaimer { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 22px; display: grid; gap: 10px; font-size: .8rem; opacity: .85; }

/* Sticky mobile call bar */
.mobile-call { display: none; }

@media (max-width: 980px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav, .header-cta .btn-ghost { display: none; }
  .menu-toggle { display: inline-block; }
  .nav.open { display: grid; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); gap: 2px; }
  .nav.open .dropdown-menu { display: grid; position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; }
  .nav.open .dropdown > button { display: none; }
}
@media (max-width: 820px) {
  .hero .wrap, .about, .contact, .two-col, .providers { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .mobile-call { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; gap: 10px; background: var(--surface); border-top: 1px solid var(--line);
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
  .mobile-call .btn { flex: 1; }
}
@media (max-width: 560px) {
  .steps, .features, .footer-grid { grid-template-columns: 1fr; }
  .header-cta .btn-cta { display: none; }
  .stat-row { grid-template-columns: 1fr 1fr 1fr; }
}
