/* 10-8 Video main-site look for the Software section (index, tour, install).
   Load AFTER each page's own <style> so these values win. Matches www.10-8video.com:
   midnight navy, blue accent, orange support phone, Montserrat italic headings, Inter text. */

:root {
  --gold:       #3b82f6;            /* accent text (kept the old name so page rules still work) */
  --gold-light: #60a5fa;
  --gold-dim:   rgba(37,99,235,0.14);
  --accent-btn: #2563eb;
  --accent-btn-hover: #1d4ed8;
  --orange:     #f59e0b;
  --blue-mid:   #2563eb;
  --blue-light: #3b82f6;
  --navy:       #0f172a;
  --navy-2:     #111b30;
  --navy-3:     #1e293b;
  --navy-4:     #243247;
  --navy-5:     #2b3a52;
  --border:     rgba(59,130,246,0.22);
  --border-b:   rgba(148,163,184,0.16);
  --text:       #e2e8f0;
  --text-muted: #94a3b8;
  --white:      #f8fafc;
}

body { font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--navy); }

/* Headings like the main site: heavy italic caps. The mock app in the tour keeps its own fonts. */
h1:not(#app h1), h2:not(#app h2) {
  font-family: Montserrat, Inter, sans-serif; font-style: italic; font-weight: 900;
  text-transform: uppercase; letter-spacing: -0.5px;
}
h1 em, h2 em { color: var(--gold); font-style: italic; }

/* Buttons and pills that sat on gold now sit on blue: white text. */
.btn-primary, .nav-cta, .tier-cta-gold, .tier-badge, .form-submit,
.tier-switch button[aria-pressed="true"], .tier-pill.pro, .choice .tag, .part-title span {
  background: var(--accent-btn); color: #fff;
}
.btn-primary, .tier-cta-gold, .form-submit { text-transform: uppercase; letter-spacing: .4px; font-weight: 900; }
.btn-primary:hover, .nav-cta:hover, .tier-cta-gold:hover, .form-submit:hover { background: var(--accent-btn-hover); }

[id] { scroll-margin-top: 72px; }
.explain { top: 76px; }

/* ── MAIN-SITE HEADER ── */
.mh { background: var(--navy); border-bottom: 1px solid rgba(37,99,235,.2); box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); position: relative; z-index: 120; }
.mh-in { max-width: 1440px; margin: 0 auto; height: 112px; padding: 0 1.5rem; display: flex; align-items: center; gap: 1.25rem; }
.mh-logo { display: block; flex-shrink: 0; }
.mh-logo img { display: block; height: 56px; width: auto; }
.mh-leo { display: flex; align-items: center; gap: .45rem; font-size: .62rem; font-weight: 900; line-height: 1.15; text-transform: uppercase; color: #fff; border: 1px solid rgba(148,163,184,.25); border-radius: 100px; padding: .35rem .8rem; white-space: nowrap; }
.mh-leo i { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); flex-shrink: 0; }
.mh-nav { display: flex; gap: 2.4rem; margin: 0 auto; }
.mh-nav a { color: #fff; text-decoration: none; font-size: .94rem; font-weight: 900; text-transform: uppercase; letter-spacing: -.3px; transition: color .2s; }
.mh-nav a:hover, .mh-nav a.on { color: var(--gold); }
.mh-phone { display: flex; flex-direction: column; align-items: flex-end; text-decoration: none; color: var(--orange); font-size: 1.35rem; font-weight: 900; line-height: 1.1; white-space: nowrap; }
.mh-phone small { display: flex; align-items: center; gap: .4rem; font-size: .58rem; letter-spacing: 1px; text-transform: uppercase; color: var(--orange); font-weight: 800; }
.mh-phone small::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.mh-quote { background: var(--accent-btn); color: #fff; text-decoration: none; text-transform: uppercase; font-weight: 900; font-size: .78rem; letter-spacing: .3px; padding: .8rem 1.3rem; border-radius: 6px; white-space: nowrap; transition: background .2s; }
.mh-quote:hover { background: var(--accent-btn-hover); }
.mh-menu { display: none; background: none; border: 1px solid rgba(148,163,184,.3); border-radius: 6px; width: 42px; height: 42px; color: #fff; cursor: pointer; place-items: center; }
.mh-menu svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; }
.mh-drawer { display: none; border-top: 1px solid var(--border-b); background: var(--navy); padding: .5rem 1.25rem 1.25rem; }
.mh-drawer a { display: block; color: #fff; text-decoration: none; font-weight: 900; text-transform: uppercase; padding: .8rem 0; border-bottom: 1px solid var(--border-b); font-size: .92rem; }
.mh-drawer a.phone { color: var(--orange); border-bottom: 0; }
.mh.open .mh-drawer { display: block; }

/* ── SOFTWARE SECTION BAR (sticky, under the main header) ── */
.subnav { position: sticky; top: 0; z-index: 110; background: rgba(17,27,48,.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-b); }
.subnav-in { max-width: 1440px; margin: 0 auto; padding: 0 1.5rem; height: 56px; display: flex; align-items: center; gap: 1.5rem; }
.subnav-title { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.subnav-title small { font-size: .62rem; font-weight: 700; color: var(--text-muted); letter-spacing: .3px; }
.subnav-title small a { color: var(--text-muted); text-decoration: none; }
.subnav-title small a:hover { color: var(--gold); }
.subnav-title b { font-family: Montserrat, Inter, sans-serif; font-style: italic; font-weight: 900; text-transform: uppercase; color: #fff; font-size: .95rem; letter-spacing: -.2px; }
.subnav-title b span { color: var(--gold); }
.subnav-links { display: flex; gap: .25rem; margin-left: auto; }
.subnav-links a { color: var(--text-muted); text-decoration: none; font-size: .82rem; font-weight: 700; padding: .45rem .8rem; border-radius: 6px; white-space: nowrap; transition: color .2s, background .2s; }
.subnav-links a:hover { color: #fff; background: rgba(255,255,255,.05); }
.subnav-links a.on { color: #fff; background: rgba(37,99,235,.18); box-shadow: inset 0 -2px 0 var(--accent-btn); }
.subnav-cta { background: var(--accent-btn); color: #fff; text-decoration: none; font-size: .74rem; font-weight: 900; text-transform: uppercase; letter-spacing: .3px; padding: .55rem 1rem; border-radius: 6px; white-space: nowrap; transition: background .2s; }
.subnav-cta:hover { background: var(--accent-btn-hover); }

/* ── MAIN-SITE FOOTER ── */
.mf { background: var(--navy); border-top: 0; position: relative; padding: 3rem 1.5rem 1.5rem; text-align: left; }
.mf::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: linear-gradient(180deg, #1d4ed8, rgba(37,99,235,0)); }
.mf-grid { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.mf h4 { font-family: Montserrat, Inter, sans-serif; font-size: .82rem; font-weight: 700; color: #fff; margin-bottom: .6rem; }
.mf p { font-size: .8rem; color: var(--text-muted); line-height: 1.6; }
.mf ul { list-style: none; display: grid; gap: .35rem; }
.mf ul a { color: var(--text-muted); text-decoration: none; font-size: .8rem; }
.mf ul a:hover { color: var(--gold); }
.mf-bottom { max-width: 1120px; margin: 2.5rem auto 0; padding-top: 1.25rem; border-top: 1px solid var(--border-b); text-align: center; }
.mf-bottom p { font-size: .72rem; color: #64748b; }
.mf-bottom p + p { margin-top: .3rem; }

/* ── RESPONSIVE ── */
@media (max-width: 1240px) {
  .mh-leo { display: none; }
  .mh-nav { gap: 1.6rem; }
}
@media (max-width: 1040px) {
  .mh-in { height: 88px; }
  .mh-logo img { height: 46px; }
  .mh-nav, .mh-phone { display: none; }
  .mh-quote { margin-left: auto; }
  .mh-menu { display: grid; }
  .subnav-title small { display: none; }
}
@media (max-width: 860px) {
  .subnav-in { height: auto; padding: .55rem 1rem; flex-wrap: wrap; row-gap: .35rem; }
  .subnav-title { display: none; }
  .subnav-links { margin-left: 0; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
  .subnav-links::-webkit-scrollbar { display: none; }
  .mf-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .mh-in { height: 72px; padding: 0 1rem; gap: .75rem; }
  .mh-logo img { height: 36px; }
  .mh-quote { padding: .6rem .8rem; font-size: .68rem; }
  .subnav-cta { display: none; }
  .mf-grid { grid-template-columns: 1fr; }
}

.btn-secondary, .btn-blue { text-transform: uppercase; letter-spacing: .4px; font-weight: 900; }

/* ── v2 QA fixes ── */
/* Section bar on phones: fade the right edge so it reads as scrollable; end padding lets the last link clear the fade. */
@media (max-width: 860px) {
  .subnav-links { padding-right: 28px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
}
/* Very small phones (320-374px): keep the logo, quote button and menu button inside the screen. */
@media (max-width: 374px) {
  .mh-in { gap: .5rem; padding: 0 .75rem; }
  .mh-logo { min-width: 0; flex-shrink: 1; }
  .mh-logo img { height: 28px; max-width: 100%; }
  .mh-quote { padding: .5rem .6rem; font-size: .62rem; white-space: nowrap; }
  .mh-menu { flex-shrink: 0; }
}

/* ── Phone number always in the top bar (Install Experience Plan, Phase 1) ── */
/* Tablets: keep the number next to Request Quote, smaller. */
@media (max-width: 1040px) {
  .mh-phone { display: flex; margin-left: auto; font-size: 1.05rem; }
  .mh-phone small { font-size: .5rem; }
  .mh-quote { margin-left: 0; }
}
/* Phones: the number takes Request Quote's place and is one tap to call. */
@media (max-width: 560px) {
  .mh-quote { display: none; }
  .mh-phone { font-size: .92rem; }
  .mh-phone small { display: none; }
  .mh-phone::before { content: 'Tap to call'; font-size: .5rem; letter-spacing: 1px; text-transform: uppercase; font-weight: 800; }
}
@media (max-width: 374px) {
  .mh-phone { font-size: .8rem; }
}
