/* ==========================================================================
   Site stylesheet — single file, no build step.
   Brand colors live in the :root block. Change them there and the whole
   site follows.
   ========================================================================== */

:root {
  /* Brand — sampled from the Switch Business Consulting logo */
  --navy-900: #04101a;   /* near-black, logo background */
  --navy-800: #0a2338;
  --navy-700: #12568C;   /* brand blue */
  --navy-600: #1b6cad;
  --accent:   #10ABB0;   /* brand teal */
  --accent-d: #0b7e82;   /* darker teal — passes contrast as text on white */
  --gold:     #12568C;

  /* Surfaces & text (light) */
  --bg:        #ffffff;
  --bg-alt:    #f4f8f9;
  --bg-deep:   var(--navy-800);
  --surface:   #ffffff;
  --border:    #dbe5e9;
  --text:      #17222e;
  --text-mute: #566572;
  --text-inv:  #eef4f8;

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --font-display: Georgia, "Iowan Old Style", "Times New Roman", serif;

  /* Layout */
  --maxw: 1140px;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(10,37,64,.06), 0 8px 24px rgba(10,37,64,.07);
  --shadow-lg: 0 2px 4px rgba(10,37,64,.08), 0 18px 48px rgba(10,37,64,.12);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #0a121a;
    --bg-alt:    #0f1c27;
    --bg-deep:   #04101a;
    --surface:   #11202c;
    --border:    #24384a;
    --text:      #e6eef5;
    --text-mute: #9db0c1;
    --accent:    #2ac6cb;
    --accent-d:  #1fa9ae;
    --shadow:    0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.45), 0 18px 48px rgba(0,0,0,.5);
  }
}
:root[data-theme="dark"] {
  --bg: #0a121a; --bg-alt: #0f1c27; --bg-deep: #04101a; --surface: #11202c;
  --border: #24384a; --text: #e6eef5; --text-mute: #9db0c1;
  --accent: #2ac6cb; --accent-d: #1fa9ae;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.45), 0 18px 48px rgba(0,0,0,.5);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-d); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.22rem; }
p  { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .4em; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .74rem;
  font-weight: 700; color: var(--accent-d); margin: 0 0 .7em;
}
.lede { font-size: 1.18rem; color: var(--text-mute); }
.muted { color: var(--text-mute); }
.center { text-align: center; }

/* ---------- Skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--accent);
  color: #fff; padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 20px; min-height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.06rem; letter-spacing: -.02em;
  color: var(--text); text-decoration: none; white-space: nowrap;
}
.brand:hover { color: var(--text); }
.brand .mark {
  width: 34px; height: 34px; border-radius: 8px; flex: none;
  background: #000; object-fit: cover; display: block;
}
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  color: var(--text-mute); text-decoration: none; font-size: .93rem; font-weight: 500;
  padding: 8px 11px; border-radius: 7px;
}
.nav a:not(.btn):hover { color: var(--text); background: var(--bg-alt); }
.nav a.active { color: var(--text); font-weight: 600; }
.nav .btn { margin-left: 8px; }

.nav-toggle {
  margin-left: auto; display: none; background: none; border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 10px; cursor: pointer; color: var(--text);
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 10px 20px 18px; box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 6px; font-size: 1rem; }
  .nav .btn { margin: 10px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 8px;
  font-weight: 600; font-size: .96rem; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  font-family: inherit; line-height: 1.3;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 2px 10px rgba(16,171,176,.30); }
.btn-primary:hover { background: var(--accent-d); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text-mute); color: var(--text); }
.btn-light { background: #fff; color: var(--navy-800); }
.btn-light:hover { background: #eef4f8; color: var(--navy-800); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-lg { padding: 15px 30px; font-size: 1.03rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row.center { justify-content: center; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.tight { padding: 48px 0; }
.bg-alt { background: var(--bg-alt); }
.bg-deep {
  background: var(--bg-deep); color: var(--text-inv);
  background-image: radial-gradient(900px 420px at 12% -12%, rgba(16,171,176,.24), transparent 62%),
                    radial-gradient(700px 360px at 92% 8%, rgba(18,86,140,.34), transparent 60%);
}
.bg-deep h1, .bg-deep h2, .bg-deep h3 { color: #fff; }
.bg-deep .lede, .bg-deep .muted { color: #b3c6d3; }
.bg-deep .eyebrow { color: var(--accent); }
.bg-deep a:not(.btn) { color: #6fdfe4; }

/* ---------- Hero ---------- */
.hero { padding: 92px 0 84px; }
.hero h1 { max-width: 20ch; }
.hero .lede { max-width: 56ch; font-size: 1.24rem; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } .hero { padding: 60px 0 56px; } }

.hero-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 28px; box-shadow: var(--shadow-lg);
}
.bg-deep .hero-card {
  background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16);
  backdrop-filter: blur(8px);
}
.hero-card h3 { margin-bottom: .35em; }
.hero-card ol { margin: 0 0 1.2em; padding-left: 1.1em; }
.hero-card li { font-size: .95rem; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
a.card { text-decoration: none; color: inherit; display: block; transition: transform .14s ease, box-shadow .14s ease; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: inherit; }
.card .more { color: var(--accent-d); font-weight: 600; font-size: .92rem; }

.icon {
  width: 42px; height: 42px; border-radius: 9px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent-d); font-weight: 800; margin-bottom: 14px; font-size: 1.05rem;
}

.stat { text-align: center; }
.stat .num { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; color: var(--accent); line-height: 1.1; }
.stat .lbl { font-size: .9rem; color: var(--text-mute); }
.bg-deep .stat .lbl { color: #b9cbda; }

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: .7em; }
.checklist li::before {
  content: ""; position: absolute; left: 4px; top: .55em;
  width: 9px; height: 15px; border: solid var(--accent); border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) translateY(-50%); transform-origin: center;
}

.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 52px; margin-bottom: 26px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy-800); color: #fff; font-weight: 700; font-size: .95rem;
}
.bg-deep .steps li::before { background: var(--accent); }
.steps h3 { margin-bottom: .25em; font-size: 1.08rem; }
.steps p { margin-bottom: 0; color: var(--text-mute); }

.quote {
  border-left: 3px solid var(--accent); padding: 4px 0 4px 22px; margin: 0;
  font-family: var(--font-display); font-size: 1.16rem; font-style: italic;
}
.quote cite { display: block; margin-top: .8em; font: 600 .88rem/1.4 var(--font); font-style: normal; color: var(--text-mute); }

.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.04rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 700; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 12px 0 0; color: var(--text-mute); }

.pagehead { padding: 62px 0 34px; border-bottom: 1px solid var(--border); }
.pagehead h1 { margin-bottom: .3em; }
.pagehead .lede { max-width: 62ch; margin-bottom: 0; }

.prose { max-width: 760px; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }

table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 0 0 1.2em; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--border); }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-mute); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 20ch; margin-left: auto; margin-right: auto; }
.cta-band .lede { max-width: 56ch; margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #b9cbda; padding: 56px 0 28px; font-size: .93rem; }
.site-footer a:not(.brand) { color: #d7e4ee; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55em; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: .85rem;
}
.disclaimer { max-width: 60ch; color: #8ea4b6; font-size: .82rem; }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--text-mute); font-size: .85rem; }
input[type=text], input[type=email], input[type=tel], select, textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: .98rem;
  color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 8px;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   Questionnaire
   ========================================================================== */
.quiz-shell { max-width: 720px; margin: 0 auto; }
.quiz-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow-lg); padding: 34px;
}
@media (max-width: 560px) { .quiz-card { padding: 24px 20px; } }

.progress-head { display: flex; justify-content: space-between; align-items: baseline; font-size: .82rem; color: var(--text-mute); margin-bottom: 10px; }
.progress { height: 6px; background: var(--border); border-radius: 99px; overflow: hidden; margin-bottom: 28px; }
.progress span { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .35s cubic-bezier(.4,0,.2,1); }

.q-title { font-size: 1.42rem; margin-bottom: .3em; }
.q-help { color: var(--text-mute); font-size: .95rem; margin-bottom: 22px; }

.options { display: grid; gap: 10px; margin-bottom: 26px; }
.option {
  display: flex; gap: 13px; align-items: flex-start; cursor: pointer;
  border: 1.5px solid var(--border); border-radius: 10px; padding: 15px 17px;
  background: var(--bg); transition: border-color .12s ease, background .12s ease;
}
.option:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, var(--bg)); }
.option input { margin: 3px 0 0; accent-color: var(--accent); flex: none; width: 17px; height: 17px; }
.option.selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--bg)); }
.option .o-label { font-weight: 600; font-size: .98rem; display: block; }
.option .o-desc { color: var(--text-mute); font-size: .88rem; display: block; margin-top: 2px; }

.quiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.quiz-nav .back { background: none; border: none; color: var(--text-mute); cursor: pointer; font: inherit; font-size: .93rem; padding: 8px 4px; }
.quiz-nav .back:hover { color: var(--text); text-decoration: underline; }
.quiz-nav .back[hidden] { visibility: hidden; display: block; }

.result-badge {
  display: inline-block; padding: 6px 14px; border-radius: 99px;
  font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px;
}
.tier-a { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent-d); }
.tier-b { background: color-mix(in srgb, var(--navy-600) 16%, transparent); color: var(--navy-600); }
.tier-c { background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); }

.score-ring { display: flex; align-items: center; gap: 20px; margin: 22px 0 26px; }
.score-ring .ring {
  width: 92px; height: 92px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--accent) calc(var(--pct) * 1%), var(--border) 0);
}
.score-ring .ring i {
  width: 74px; height: 74px; border-radius: 50%; background: var(--surface);
  display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 1.4rem;
}
.findings { list-style: none; padding: 0; margin: 0 0 26px; }
.findings li { padding: 11px 0; border-bottom: 1px solid var(--border); display: flex; gap: 12px; font-size: .96rem; }
.findings li:last-child { border-bottom: none; }
.findings .flag { flex: none; font-weight: 800; color: var(--accent); }

.booking { border-top: 1px solid var(--border); margin-top: 26px; padding-top: 26px; }
.calendly-inline-widget { min-height: 640px; }

.form-error { color: #c0392b; font-size: .88rem; margin-top: 6px; }
.notice { padding: 14px 16px; border-radius: 8px; font-size: .93rem; margin-bottom: 18px; }
.notice-err { background: #fdecea; color: #922b21; border: 1px solid #f5c6c2; }

/* ---------- Admin ---------- */
.admin-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 20px; }
.admin-bar select, .admin-bar input { width: auto; min-width: 170px; }
.pill { display: inline-block; padding: 3px 9px; border-radius: 99px; font-size: .72rem; font-weight: 800; letter-spacing: .05em; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.table-wrap table { margin: 0; min-width: 900px; font-size: .9rem; }
.table-wrap tbody tr:hover { background: var(--bg-alt); }

@media print { .site-header, .site-footer, .quiz-nav { display: none; } }

/* ---------- Revenue fit table (services hub) ---------- */
.fit-table td { vertical-align: middle; }
.fit-table td:nth-child(2) { white-space: nowrap; width: 190px; }
.fit-bar {
  display: inline-block; width: 110px; height: 8px; border-radius: 99px;
  background: var(--border); overflow: hidden; vertical-align: middle; margin-right: 10px;
}
.fit-bar span {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--navy-700), var(--accent));
}
.fit-pct { font-weight: 700; font-size: .92rem; color: var(--text); }
@media (max-width: 680px) {
  .fit-table td:nth-child(2) { width: auto; }
  .fit-bar { width: 64px; }
}

/* ---------- Recommended engagement card on the results screen ---------- */
.rec-card {
  margin: 26px 0 4px; padding: 20px 22px; border-radius: 10px;
  border: 1px solid var(--border); border-left: 4px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}
.rec-card h3 { margin: 0 0 .3em; font-size: 1.12rem; }
.rec-card h3 a { text-decoration: none; }
.rec-card h3 a:hover { text-decoration: underline; }
.rec-card p:last-child { margin-bottom: 0; }

/* ---------- Grouped "what's included" sections ---------- */
.inc-group + .inc-group { margin-top: 42px; }
.inc-group-title {
  font-size: .82rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--accent-d); font-weight: 800; margin-bottom: 16px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}

/* ---------- Suggested expansion modules on the results screen ---------- */
.modules-list { list-style: none; padding: 0; margin: 14px 0 0; }
.modules-list li {
  padding: 12px 0; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline;
}
.modules-list li strong { font-size: .98rem; }
.modules-list li span { font-size: .91rem; }
