/* Mainland TechDesk - one stylesheet for every page.
   Colours live in the tokens below; change them here, not in the page. */

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f2f0ea;
  --ink: #16202e;
  --muted: #586274;
  --line: #e2ded4;
  --brand: #17375e;        /* deep harbour blue */
  --brand-ink: #ffffff;
  --accent: #e8792b;       /* 7am sunrise orange - buttons and shapes */
  --accent-text: #a8480f;  /* darker orange for small text, readable on light backgrounds */
  --accent-ink: #1b1206;
  --good: #1f7a3d;
  --warn: #8f4f00;
  --bad: #b3261e;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(22, 32, 46, .06), 0 8px 24px rgba(22, 32, 46, .06);
  --max: 1080px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f141b;
    --surface: #161d27;
    --surface-2: #1c2531;
    --ink: #eef1f5;
    --muted: #a3adbb;
    --line: #2a3442;
    --brand: #8fb4e3;
    --brand-ink: #0f141b;
    --accent: #f29a55;
    --accent-text: #f29a55;
    --good: #5cc581;
    --warn: #f0b45c;
    --bad: #ff8a80;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section.alt { background: var(--surface-2); }
.eyebrow { color: var(--accent-text); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .5em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 100; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
  transition: transform .08s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--brand); }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.05rem; }
.logo-mark { width: 32px; height: 32px; flex: none; }
.logo span { color: var(--accent-text); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 550; font-size: .95rem; }
.nav a:hover { color: var(--brand); }
.nav .btn { padding: 9px 16px; font-size: .95rem; }
.menu-toggle { display: none; background: none; border: 0; color: var(--ink); padding: 8px; cursor: pointer; }
.menu-toggle svg { width: 26px; height: 26px; }

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; border-bottom: 0; }
}

/* Hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-note { margin-top: 16px; font-size: .9rem; color: var(--muted); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Phone mock-up of the morning report */
.phone {
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px;
  padding: 18px 16px; box-shadow: var(--shadow); max-width: 380px; margin: 0 auto; width: 100%;
}
.phone-top { text-align: center; font-size: .8rem; color: var(--muted); margin-bottom: 10px; }
.bubble { background: var(--surface-2); border-radius: 16px 16px 16px 4px; padding: 10px 13px; margin-bottom: 8px; font-size: .92rem; line-height: 1.45; }
.bubble b { font-weight: 700; }
.up { color: var(--good); font-weight: 650; }
.flag { color: var(--warn); font-weight: 650; }
.alert { color: var(--bad); font-weight: 650; }
.example-tag { text-align: center; font-size: .75rem; color: var(--muted); margin-top: 6px; }

/* Cards */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); margin-top: 32px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.card .icon { width: 38px; height: 38px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-text); display: grid; place-items: center; margin-bottom: 12px; }
.card .icon svg { width: 22px; height: 22px; }

/* Two columns */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding-left: 30px; position: relative; margin-bottom: 12px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 9px; border-left: 3px solid var(--good); border-bottom: 3px solid var(--good); transform: rotate(-45deg); }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 32px; }
.step { counter-increment: step; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 800; margin-bottom: 12px; }
.step p { color: var(--muted); margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.field .opt { color: var(--muted); font-weight: 400; }
input, textarea, select {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px;
}
textarea { min-height: 110px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: var(--good); }
.form-status.err { color: var(--bad); }
.form-small { font-size: .85rem; color: var(--muted); margin-top: 10px; }

.field .hint { display: block; font-size: .85rem; color: var(--muted); margin-top: 4px; }
.next-steps { list-style: none; counter-reset: ns; padding: 0; margin: 20px 0; }
.next-steps li { counter-increment: ns; position: relative; padding-left: 40px; margin-bottom: 14px; }
.next-steps li::before { content: counter(ns); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 800; font-size: .9rem; }

/* Header: the page you're on */
.nav a[aria-current="page"] { color: var(--accent-text); }

/* Pills under the hero headline */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.pills li { padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; font-weight: 600; }

/* "Sound familiar?" moments */
.moments { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 28px; }
.moment { background: var(--surface); border-left: 4px solid var(--accent); border-radius: 10px; padding: 14px 16px; font-weight: 550; }
.moment small { display: block; color: var(--muted); font-weight: 400; margin-top: 4px; }

/* Promise cards */
.promises { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 28px; }
.promise { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.promise h3 { margin-bottom: .3em; }
.promise p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Sample tech check summary */
.report { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.report-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 8px; }
.report-head small { color: var(--muted); }
.report-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.report-row:last-of-type { border-bottom: 0; }
.report-row small { display: block; color: var(--muted); }
.tag { align-self: start; font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.tag.ok { background: color-mix(in srgb, var(--good) 15%, transparent); color: var(--good); }
.tag.fix { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.tag.now { background: color-mix(in srgb, var(--bad) 15%, transparent); color: var(--bad); }

/* Comparison table */
.compare-wrap { overflow-x: auto; margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; min-width: 620px; font-size: .95rem; }
.compare th, .compare td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--surface-2); }
.compare th.us, .compare td.us { background: color-mix(in srgb, var(--accent) 9%, transparent); font-weight: 600; }
.compare tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq { margin-top: 24px; max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 650; padding: 14px 32px 14px 0; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.4rem; color: var(--accent-text); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); margin: 0 0 14px; }

/* Industry page intro */
.page-hero { padding: 64px 0 40px; }
.page-hero .lead { max-width: 720px; }

/* Call-to-action band above the footer */
.cta-band { background: #17375e; color: #ffffff; padding: 48px 0; }  /* deep blue in light and dark mode */
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta-band h2 { margin-bottom: .2em; }
.cta-band p { margin: 0; opacity: .85; }

/* Footer */
.site-footer { padding: 44px 0 24px; color: var(--muted); font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { font-size: .95rem; color: var(--ink); }
.site-footer .footer-grid a:not(.logo) { display: block; color: var(--muted); text-decoration: none; margin-bottom: 8px; }
.site-footer .footer-grid a:not(.logo):hover { color: var(--brand); }
.site-footer .logo { margin-bottom: 10px; }
.footer-base { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); margin-top: 28px; padding-top: 18px; }
.footer-base a { color: var(--muted); }

/* Phones: the next step always in reach */
.mobile-cta { display: none; }
@media (max-width: 820px) {
  .mobile-cta { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; box-shadow: 0 6px 20px rgba(0,0,0,.25); transition: transform .2s ease, opacity .2s ease; }
  .mobile-cta.hide { transform: translateY(140%); opacity: 0; pointer-events: none; }
  .site-footer { padding-bottom: 88px; }
}

/* Plain pages (404, privacy, later pages) */
.page { padding: 64px 0; min-height: 60vh; }
.page .wrap { max-width: 760px; }

/* The home page has its own contact section, so no band above the footer there */
body.home .cta-band { display: none; }

/* Comparison table on phones: one card per row, our answer first in view */
@media (max-width: 700px) {
  .compare-wrap { border: 0; background: none; overflow: visible; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; min-width: 0; width: 100%; }
  .compare thead { display: none; }
  .compare tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; padding: 6px 14px; }
  .compare tbody th { border: 0; padding: 10px 0 4px; font-size: 1rem; }
  .compare td { border: 0; border-top: 1px solid var(--line); padding: 8px 0; display: grid; grid-template-columns: 9.5em 1fr; gap: 10px; }
  .compare td::before { content: attr(data-label); color: var(--muted); font-weight: 500; font-size: .85rem; }
  .compare td.us { background: none; color: var(--accent-text); }
  .compare tr:last-child td { border-top: 1px solid var(--line); }
}
