/* Mass Coms Digital Signage site. Palette and type follow masscoms.com. */
:root {
  --navy-950: #0a1530;
  --navy-900: #152447;
  --brand: #23458f;
  --blue: #2580ef;
  --blue-soft: #e8f1fe;
  --ink: #0a1530;
  --muted: #5b6170;
  --line: #d7dbe0;
  --soft: #f2f4f7;
  --white: #ffffff;
  --alert: #d91f26;
  --alert-dark: #a3121a;
  --ok: #138a52;
  --radius: 18px;
  --shadow: 0 18px 50px -20px rgba(10, 21, 48, .35);
  --max: 1180px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:hover { color: var(--blue); }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.03em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); letter-spacing: -.04em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 0; }
.eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; display: block; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }
.accent { color: var(--blue); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: .98rem; border: 2px solid transparent; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #1569d4; color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-light { background: #fff; color: var(--navy-950); }
.btn-light:hover { color: var(--blue); }
.btn-outline-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-outline-light:hover { border-color: #fff; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { white-space: nowrap; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .94rem; padding: 8px 10px; border-radius: 8px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--blue); background: var(--blue-soft); }
.nav-cta { display: flex; gap: 10px; align-items: center; white-space: nowrap; }
.nav-cta .login { font-weight: 600; font-size: .94rem; text-decoration: none; color: var(--muted); }
.nav-cta .btn { padding: 10px 18px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }

@media (max-width: 1240px) {
  .menu-btn { display: block; }
  .nav-links, .nav-cta .login { display: none; }
  .nav-links.open { display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px 18px; box-shadow: var(--shadow); }
  .nav-links.open a { padding: 12px; }
}
@media (max-width: 520px) { .nav-cta .btn { display: none; } }

/* Sections */
section { padding: 88px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--navy-950); color: #fff; }
.section-dark .lead, .section-dark .muted { color: #b9c2d6; }
.section-dark .eyebrow { color: #7fb4f7; }
.section-head { margin-bottom: 48px; }

/* Hero */
.hero { padding: 72px 0 88px; background: radial-gradient(1200px 500px at 85% -10%, #dce9fd 0%, rgba(255,255,255,0) 60%), #fff; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.hero-points li { padding-left: 30px; position: relative; font-weight: 600; }
.hero-points li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%232580ef' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.page-hero { padding: 72px 0 64px; background: linear-gradient(180deg, #eef4fe 0%, #fff 100%); }
.page-hero.dark { background: radial-gradient(900px 400px at 80% 0%, #2a1530 0%, rgba(10,21,48,0) 70%), var(--navy-950); color: #fff; }
.page-hero.dark .lead { color: #c3cadb; }
.page-hero.dark .eyebrow { color: #ff8c8f; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } section { padding: 64px 0; } }

/* TV mock with takeover */
.tv { position: relative; }
.tv-screen { position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: #000; border: 10px solid #111827; box-shadow: var(--shadow), 0 0 0 1px #000; }
.tv-screen img { width: 100%; height: 100%; object-fit: cover; }
.tv-stand { width: 26%; height: 14px; margin: 0 auto; background: linear-gradient(#1f2937, #111827); border-radius: 0 0 10px 10px; }
.tv-caption { display: flex; justify-content: space-between; gap: 12px; font-size: .82rem; color: var(--muted); margin-top: 14px; font-weight: 600; }
.tv-caption .live { color: var(--alert); }
.takeover { position: absolute; inset: 0; background: var(--alert); color: #fff; display: grid; grid-template-columns: 1.1fr 1fr; gap: 4%; padding: 5% 5.5%; font-size: clamp(8px, 1.25vw, 15px); }
.takeover .t-label { font-weight: 800; letter-spacing: .2em; text-transform: uppercase; font-size: .9em; opacity: .9; display: flex; align-items: center; gap: 8px; }
.takeover .t-label::before { content: ""; width: .8em; height: .8em; border-radius: 50%; background: #fff; animation: pulse 1s infinite; }
.takeover .t-title { font-size: 4.6em; font-weight: 900; letter-spacing: -.04em; line-height: .95; margin: .25em 0 .2em; }
.takeover .t-msg { font-size: 1.15em; font-weight: 600; line-height: 1.35; }
.takeover ol { margin: 0; padding: 0; list-style: none; display: grid; gap: .6em; align-content: center; counter-reset: s; }
.takeover li { background: rgba(255,255,255,.14); border-radius: .6em; padding: .6em .8em; font-weight: 700; font-size: 1.02em; line-height: 1.3; counter-increment: s; display: flex; gap: .7em; }
.takeover li::before { content: counter(s); background: #fff; color: var(--alert); border-radius: 50%; min-width: 1.6em; height: 1.6em; display: grid; place-items: center; font-weight: 900; }
.takeover .t-foot { grid-column: 1 / -1; align-self: end; font-size: .9em; font-weight: 700; opacity: .85; border-top: 1px solid rgba(255,255,255,.3); padding-top: .7em; }
.tv-cycle .takeover { animation: takeover 12s infinite; }
@keyframes takeover { 0%, 52% { opacity: 0; visibility: hidden; } 54%, 96% { opacity: 1; visibility: visible; } 100% { opacity: 0; visibility: hidden; } }
@keyframes pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .tv-cycle .takeover { animation: none; opacity: 0; visibility: hidden; } .takeover .t-label::before { animation: none; } }
.tv-static .takeover { animation: none; }

/* Grids and cards */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card p:last-child { margin-bottom: 0; }
.card .muted { font-size: .97rem; }
.section-dark .card { background: var(--navy-900); border-color: #26375f; }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); margin-bottom: 16px; }
.icon svg { width: 22px; height: 22px; }
.icon.red { background: #fde8e8; color: var(--alert); }
.section-dark .icon { background: #1d3263; color: #8fc0ff; }
.step-num { font-size: .8rem; font-weight: 800; color: var(--blue); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; display: block; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } .split.reverse > :first-child { order: 0; } }
.shot { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: #fff; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.checks li { padding-left: 32px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%232580ef' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.checks.red li::before { background-color: #fde8e8; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23d91f26' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.section-dark .checks li::before { background-color: #1d3263; }

/* Strip of facts */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts div { background: #fff; padding: 22px; }
.facts strong { display: block; font-size: 1.6rem; letter-spacing: -.03em; }
.facts span { color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, 1fr); } }

/* Template gallery */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { font: inherit; font-weight: 700; font-size: .9rem; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--navy-950); color: #fff; border-color: var(--navy-950); }
.tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 960px) { .tpl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tpl-grid { grid-template-columns: 1fr; } }
.tpl { margin: 0; }
.tpl img { border-radius: 12px; aspect-ratio: 16/9; object-fit: cover; width: 100%; box-shadow: 0 10px 30px -18px rgba(10,21,48,.5); border: 1px solid var(--line); }
.tpl figcaption { margin-top: 10px; font-weight: 700; font-size: .95rem; }
.tpl figcaption span { display: block; font-weight: 500; color: var(--muted); font-size: .85rem; }
.tpl[hidden] { display: none; }
.marquee { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.marquee img { border-radius: 10px; aspect-ratio: 16/9; object-fit: cover; }
@media (max-width: 760px) { .marquee { grid-template-columns: repeat(2, 1fr); } }

/* Apps */
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.app { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: #fff; }
.app strong { display: block; margin-bottom: 4px; }
.app span { color: var(--muted); font-size: .9rem; line-height: 1.45; display: block; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .96rem; background: #fff; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--soft); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
.tag { display: inline-block; font-size: .78rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.tag.yes { background: #e3f5ec; color: var(--ok); }
.tag.no { background: #fde8e8; color: var(--alert-dark); }

/* Pricing */
.price-card { border: 2px solid var(--blue); border-radius: 24px; padding: 34px; background: #fff; box-shadow: var(--shadow); }
.price { font-size: 3.4rem; font-weight: 900; letter-spacing: -.05em; line-height: 1; }
.price small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.badge { display: inline-block; background: #e3f5ec; color: var(--ok); font-weight: 800; font-size: .82rem; padding: 6px 12px; border-radius: 999px; margin-bottom: 14px; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 0 22px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 18px 0; 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(--blue); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding-bottom: 6px; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--brand) 0%, var(--navy-950) 100%); color: #fff; border-radius: 28px; padding: 56px; display: grid; grid-template-columns: 1.4fr auto; gap: 30px; align-items: center; }
.cta-band p { color: #c8d3ec; margin: 0; }
.cta-band h2 { margin-bottom: .3em; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; padding: 36px 26px; } }

/* Footer */
.site-footer { background: var(--navy-950); color: #b9c2d6; padding: 64px 0 34px; font-size: .94rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 36px; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #b9c2d6; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer img { height: 28px; width: auto; margin-bottom: 16px; }
.foot-base { border-top: 1px solid #22305a; margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* Playlist panel illustration */
.playlist { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; display: grid; gap: 10px; }
.pl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 4px 6px 10px; border-bottom: 1px solid var(--line); }
.pl-head span { color: var(--muted); font-size: .88rem; }
.pl-row { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; padding: 6px; border-radius: 10px; }
.pl-row:nth-child(2) { background: var(--blue-soft); }
.pl-row img { border-radius: 6px; aspect-ratio: 16/9; object-fit: cover; }
.pl-row b { display: block; font-size: .96rem; }
.pl-row small { color: var(--muted); font-size: .84rem; }
.pl-foot { display: flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 700; color: var(--ok); padding: 6px; }
.pl-foot .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
@media (max-width: 600px) {
  .takeover { grid-template-columns: 1fr; font-size: 11px; }
  .takeover ol, .takeover .t-foot { display: none; }
  .takeover .t-title { font-size: 5em; }
  .takeover .t-msg { font-size: 1.3em; }
}

/* ---------- Home page (SiteSurvey-style layout) ---------- */
.home { background: #fff; }
.kicker { font-size: .8rem; font-weight: 600; letter-spacing: .02em; color: #8fb4ef; margin: 0 0 18px; }
.btn-signal { background: var(--blue); color: #fff; }
.btn-signal:hover { background: #4b97f5; color: #fff; }
.link-arrow { font-weight: 700; text-decoration: none; color: var(--ink); border-bottom: 1.5px solid currentColor; padding-bottom: 1px; display: inline-block; }
.link-arrow::after { content: " \2192"; }
.link-arrow:hover { color: var(--blue); }
.link-arrow.light { color: #e6edf9; font-weight: 600; }
.link-arrow.light:hover { color: #fff; }

.h-hero { background: #0b1630; color: #fff; padding: 76px 0 84px; }
.h-hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 64px; align-items: center; }
.h-hero h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); line-height: 1.02; letter-spacing: -.05em; font-weight: 700; margin-bottom: 22px; }
.h-hero h1 em { font-style: normal; color: #ff6b6e; }
.h-sub { color: #c4cde0; font-size: 1.15rem; line-height: 1.6; max-width: 540px; margin-bottom: 30px; }
.h-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.h-cta .btn { padding: 14px 24px; border-radius: 10px; }
.h-trust { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .88rem; color: #9fb0cf; }
.h-trust li::before { content: "\2713"; color: #6fd29b; font-weight: 800; margin-right: 7px; }
.h-demo { margin: 0; }
.h-switch { display: inline-flex; background: #15234a; border: 1px solid #263867; border-radius: 10px; padding: 4px; margin-bottom: 16px; }
.h-switch button { font: inherit; font-size: .86rem; font-weight: 700; color: #a9b7d6; background: none; border: 0; border-radius: 7px; padding: 8px 14px; cursor: pointer; }
.h-switch button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.h-switch button[data-state="alert"][aria-pressed="true"] { background: var(--alert); color: #fff; }
.h-demo .tv-screen { border-color: #04070f; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); }
.h-demo .tv-stand { background: #04070f; }
.h-demo .takeover { opacity: 0; visibility: hidden; transition: opacity .18s ease; }
.h-demo .tv[data-tv="alert"] .takeover { opacity: 1; visibility: visible; }
.h-demo figcaption { font-size: .8rem; color: #8a99b8; margin-top: 16px; max-width: 520px; }

.h-answer { padding: 44px 0; border-bottom: 1px solid var(--line); }
.h-answer-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: start; }
.h-small { font-size: 1.05rem; letter-spacing: -.01em; margin-bottom: 10px; }
.h-answer-text { color: #3d4456; margin: 0; }
.facts-list { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts-list div { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.facts-list dt { color: var(--muted); font-weight: 500; }
.facts-list dd { margin: 0; font-weight: 600; }

.h-section { padding: 104px 0; }
.h-tint { background: #f4f6f9; border-top: 1px solid #e6e9ef; border-bottom: 1px solid #e6e9ef; }
.h-section h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); letter-spacing: -.045em; font-weight: 700; line-height: 1.08; }
.h-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: end; margin-bottom: 48px; }
.h-head h2 { margin: 0; }
.h-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }
.h-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
.h-split.reverse > :first-child { order: 2; }
.h-copy p { color: #4a5164; font-size: 1.07rem; }
.h-copy .link-arrow { margin-top: 26px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 26px; position: relative; color: #2b3244; }
.ticks li::before { content: "\2713"; position: absolute; left: 0; color: var(--blue); font-weight: 800; }
.h-fig { margin: 0; }
.h-fig img { border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 30px 60px -36px rgba(10,21,48,.45); }
.h-fig figcaption, .note { font-size: .8rem; color: #7a8193; margin-top: 14px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; }
.steps li { padding: 28px 26px 30px; border-right: 1px solid var(--line); }
.steps li:last-child { border-right: 0; }
.steps span { font-family: "Geist Mono", ui-monospace, monospace; font-size: .8rem; color: var(--blue); }
.steps h3 { margin: 14px 0 8px; font-size: 1.08rem; letter-spacing: -.02em; }
.steps p { margin: 0; color: var(--muted); font-size: .94rem; }

.tpl-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tpl-strip figure { margin: 0; }
.tpl-strip img { border-radius: 10px; aspect-ratio: 16/9; object-fit: cover; border: 1px solid var(--line); }
.tpl-strip figcaption { font-size: .85rem; font-weight: 600; margin-top: 9px; color: #3d4456; }
.tpl-counts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 34px; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); }
.tpl-counts a:not(.link-arrow) { text-decoration: none; color: var(--muted); font-size: .95rem; }
.tpl-counts strong { color: var(--ink); font-size: 1.3rem; margin-right: 6px; letter-spacing: -.03em; }
.tpl-counts .link-arrow { margin-left: auto; }

.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.compare { min-width: 720px; font-size: .93rem; }
.compare th, .compare td { padding: 14px 18px; border-bottom: 1px solid #edf0f4; text-align: center; background: transparent; }
.compare thead th { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; background: #fafbfc; }
.compare tbody th { text-align: left; font-weight: 600; text-transform: none; letter-spacing: 0; font-size: .93rem; color: var(--ink); }
.compare thead th:first-child { text-align: left; }
.compare .us { background: #eef5ff; color: var(--brand); font-weight: 700; }
.compare thead .us { color: var(--brand); }
.compare td { color: #3d4456; }
.compare td.part { color: #a0640c; }
.compare td.us { color: var(--brand); }
.compare td.no { color: #6b7280; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }

.sector-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sector-links a { display: block; padding: 22px 24px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-decoration: none; color: var(--ink); transition: border-color .15s; }
.sector-links a:hover { border-color: var(--blue); }
.sector-links strong { display: block; margin-bottom: 6px; }
.sector-links strong::after { content: " \2192"; color: var(--blue); }
.sector-links span { color: var(--muted); font-size: .93rem; }

.price-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pp { border: 1px solid var(--line); border-radius: 16px; padding: 30px; background: #fff; }
.pp p { margin: 0; color: var(--muted); }
.pp-label { font-size: .74rem !important; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; margin-bottom: 10px !important; }
.pp-price { font-size: 2.6rem; font-weight: 700; letter-spacing: -.05em; color: var(--ink) !important; margin-bottom: 12px !important; line-height: 1; }
.pp-price small { font-size: .95rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.pp-dark { background: #0b1630; border-color: #0b1630; }
.pp-dark p { color: #b6c2da; }
.pp-dark .pp-label { color: #8fb4ef; }
.pp-dark .pp-price { color: #fff !important; }
.pp-dark .pp-price small { color: #9fb0cf; }

.h-faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; }
.h-faq h2 { margin-bottom: 18px; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; font-weight: 600; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--blue); font-size: 1.3rem; line-height: 1; }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list p { color: var(--muted); margin: -4px 0 22px; max-width: 640px; }

.h-cta-band { background: #0b1630; color: #fff; border-radius: 22px; padding: 56px 60px; display: grid; grid-template-columns: 1.3fr auto; gap: 40px; align-items: center; }
.h-cta-band h2 { color: #fff; margin-bottom: 12px; }
.h-cta-band p { color: #b6c2da; margin: 0; max-width: 560px; }
.h-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.h-cta-actions .btn { border-radius: 10px; }

@media (max-width: 960px) {
  .h-hero { padding: 52px 0 64px; }
  .h-hero-grid, .h-answer-grid, .h-head, .h-split, .h-faq { grid-template-columns: 1fr; gap: 32px; }
  .h-split.reverse > :first-child { order: 0; }
  .h-section { padding: 72px 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(2) { border-right: 0; }
  .steps li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .tpl-strip, .sector-links { grid-template-columns: 1fr 1fr; }
  .h-cta-band { grid-template-columns: 1fr; padding: 40px 28px; }
}
@media (max-width: 600px) {
  .steps, .tpl-strip, .sector-links, .price-pair { grid-template-columns: 1fr; }
  .steps li { border-right: 0; border-bottom: 1px solid var(--line); }
  .steps li:last-child { border-bottom: 0; }
  .tpl-strip figure:nth-child(n+4) { display: none; }
  .tpl-counts .link-arrow { margin-left: 0; }
  .facts-list div { grid-template-columns: 100px 1fr; }
}
.h-demo .tv-screen { container-type: inline-size; }
.h-demo .takeover { grid-template-columns: 1.25fr 1fr; gap: 5cqw; padding: 5cqw 5.5cqw 4cqw; font-size: 2.05cqw; }
.h-demo .takeover .t-title { font-size: 4.4em; }
.h-demo .takeover li { font-size: 1.05em; padding: .55em .7em; }
@media (max-width: 600px) { .h-demo .takeover { grid-template-columns: 1fr; font-size: 3cqw; } }

/* ---------- Inner pages (same system as home) ---------- */
.p-hero { background: #0b1630; color: #fff; padding: 56px 0 72px; }
.p-hero .h-hero-grid { align-items: center; }
.p-hero.solo .p-hero-inner { max-width: 760px; }
.p-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.04; letter-spacing: -.05em; font-weight: 700; margin-bottom: 20px; }
.p-hero h1 em { font-style: normal; color: #7db3ff; }
.p-hero.alert h1 em { color: #ff6b6e; }
.p-hero .h-sub { margin-bottom: 28px; }
.crumbs { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-wrap: wrap; gap: 6px; font-size: .8rem; color: #8a99b8; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #4d5c80; }
.crumbs a { color: #b6c2da; text-decoration: none; }
.crumbs a:hover { color: #fff; }
.p-hero .h-demo figcaption { color: #8a99b8; }

.lines-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.lines-grid.four { grid-template-columns: repeat(4, 1fr); }
.lines-grid.two { grid-template-columns: repeat(2, 1fr); }
.lines-grid > div { background: #fff; padding: 26px 26px 28px; }
.lines-grid h3 { font-size: 1.05rem; letter-spacing: -.02em; margin: 0 0 8px; }
.lines-grid p { margin: 0; color: var(--muted); font-size: .94rem; }
.lines-grid .tag-line { font-family: "Geist Mono", ui-monospace, monospace; font-size: .78rem; color: var(--blue); display: block; margin-bottom: 10px; }

.app-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; border-top: 1px solid var(--line); }
.app-list div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.app-list strong { font-weight: 600; }
.app-list span { color: var(--muted); }

.plain-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.plain-table table { min-width: 640px; font-size: .94rem; }
.plain-table th, .plain-table td { padding: 15px 20px; border-bottom: 1px solid #edf0f4; text-align: left; background: transparent; }
.plain-table thead th { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: #fafbfc; }
.plain-table tbody tr:last-child td { border-bottom: 0; }
.ok { color: var(--ok); font-weight: 700; }
.bad { color: var(--alert-dark); font-weight: 700; }

.pair-screen { position: absolute; inset: 0; background: #0d1b3a; color: #fff; display: grid; place-content: center; text-align: center; gap: 1.2cqw; font-size: 2cqw; }
.pair-screen small { color: #8fa3cc; font-size: 1em; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.pair-screen strong { font-family: "Geist Mono", ui-monospace, monospace; font-size: 5.4em; letter-spacing: .12em; font-weight: 500; line-height: 1.1; }
.pair-screen span { color: #b6c2da; font-size: 1.15em; }
.tv .tv-screen { container-type: inline-size; }

.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mosaic img { border-radius: 10px; aspect-ratio: 16/9; object-fit: cover; }

.price-hero { background: #fff; color: var(--ink); border-radius: 18px; padding: 30px; }
.price-hero .pp-label { color: var(--muted); }
.price-hero ul { margin-top: 18px; }
.price-hero li { color: #2b3244; font-size: .95rem; }

.filters button { border-radius: 8px; }
.filters button[aria-pressed="true"] { background: #0b1630; border-color: #0b1630; }

.faq-group + .faq-group { margin-top: 64px; }

@media (max-width: 960px) {
  .lines-grid, .lines-grid.four { grid-template-columns: 1fr 1fr; }
  .app-list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .lines-grid, .lines-grid.four, .lines-grid.two { grid-template-columns: 1fr; }
  .app-list div { grid-template-columns: 1fr; gap: 2px; }
}

/* MassCasts wordmark */
.wordmark { font-weight: 800; font-size: 1.32rem; letter-spacing: -.045em; color: var(--ink); line-height: 1; margin: 0; }
.wordmark b { color: var(--blue); font-weight: 800; }
.wordmark.light { color: #fff; font-size: 1.5rem; margin-bottom: 14px; }
.wordmark.light b { color: #7db3ff; }
.brand .by { font-weight: 600; font-size: .8rem; color: var(--muted); border-left: 1px solid var(--line); padding-left: 12px; white-space: nowrap; }
.part-of { font-size: .86rem; }
.part-of img { height: 18px; width: auto; display: block; margin: 12px 0 0; opacity: .85; }
@media (max-width: 1240px) { .brand .by { display: none; } }
.brand .logo { height: 23px; width: auto; display: block; }
.site-footer .logo-foot { height: 28px; width: auto; margin: 0 0 4px; }
@media (max-width: 520px) { .brand .logo { height: 20px; } }
.brand { margin-right: 18px; }
@media (max-width: 1380px) { .brand .by { display: none; } }

/* Five-step strip */
.steps.five { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 960px) { .steps.five { grid-template-columns: 1fr 1fr; } .steps.five li { border-right: 0; border-bottom: 1px solid var(--line); } }
@media (max-width: 600px) { .steps.five { grid-template-columns: 1fr; } }

/* School type links */
.sector-links.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .sector-links.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .sector-links.four { grid-template-columns: 1fr; } }

/* Quote builder */
.quote { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.quote-form { display: grid; gap: 18px; }
.quote-form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.quote-form .opt { font-weight: 500; color: var(--muted); font-size: .82rem; }
.quote-form input { font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.quote-form input[type=number] { font-size: 1.6rem; font-weight: 700; max-width: 160px; }
.quote-form input:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.quote-sheet { border: 1px solid var(--line); border-radius: 16px; padding: 30px; background: #fff; box-shadow: 0 30px 60px -40px rgba(10,21,48,.45); }
.quote-logo { height: 22px; width: auto; margin-bottom: 18px; }
.quote-for { font-weight: 700; margin: 0 0 16px; }
.quote-sheet table { font-size: .98rem; }
.quote-sheet th, .quote-sheet td { padding: 12px 0; border-bottom: 1px solid #edf0f4; background: transparent; text-transform: none; letter-spacing: 0; font-size: .98rem; }
.quote-sheet th { text-align: left; font-weight: 500; color: var(--muted); }
.quote-sheet td { text-align: right; font-weight: 600; }
.quote-sheet .saving td { color: var(--ok); }
.quote-sheet .total th, .quote-sheet .total td { font-size: 1.3rem; font-weight: 800; color: var(--ink); border-bottom: 0; padding-top: 16px; }
.quote-small { font-size: .82rem; color: var(--muted); margin: 14px 0 20px; }
.quote-actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.quote-actions .btn { border-radius: 10px; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
@media (max-width: 860px) { .quote { grid-template-columns: 1fr; } }

/* Checklist */
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.check-group { border: 1px solid var(--line); border-radius: 16px; padding: 24px 26px; background: #fff; break-inside: avoid; }
.check-group h3 { font-size: 1.08rem; margin-bottom: 12px; }
.check-group h3 span { font-family: "Geist Mono", ui-monospace, monospace; font-size: .8rem; color: var(--blue); margin-right: 8px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist label { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: #2b3244; cursor: pointer; }
.checklist input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--blue); flex: none; }
.print-btn { font: inherit; font-weight: 700; color: var(--blue); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
@media (max-width: 760px) { .check-grid { grid-template-columns: 1fr; } }

/* Printing: quote and checklist print clean, everything else hidden */
@media print {
  .site-header, .site-footer, .p-hero, .h-answer, .h-cta-band, .faq-list, .h-faq, .skip, .quote-form, .quote-actions, .print-btn { display: none !important; }
  body.print-quote main > section:not(#quote) { display: none !important; }
  body.print-quote .quote { display: block; }
  body.print-quote .quote-sheet { box-shadow: none; border: 0; padding: 0; }
  body.print-quote .h-head { display: none; }
  .h-section { padding: 0 !important; background: #fff !important; border: 0 !important; }
  .check-group { border-color: #bbb; }
  a { color: inherit; text-decoration: none; }
}
.print-only { display: none; }
@media print { .print-only { display: block; font-weight: 700; margin-bottom: 14px; } }

/* Mass Coms family bar (same on masscoms.com, MassCasts and MassVisit) */
.family-bar { background: #060d1f; color: #9fb0cf; font-size: .78rem; }
.fb-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.fb-label { font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.fb-links { display: flex; align-items: stretch; gap: 4px; }
.fb-links a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; text-decoration: none; color: #9fb0cf; border-bottom: 2px solid transparent; opacity: .72; transition: opacity .15s; }
.fb-links a:hover { opacity: 1; color: #fff; }
.fb-links a[aria-current="true"] { opacity: 1; color: #fff; border-bottom-color: var(--blue); }
.fb-links img { height: 14px; width: auto; display: block; }
@media (max-width: 860px) { .fb-label, .fb-links span { display: none; } .fb-inner { justify-content: center; } }

/* Works together */
.family-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fc { display: flex; flex-direction: column; gap: 10px; padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: #fff; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.fc:hover { border-color: var(--blue); transform: translateY(-2px); }
.fc img { height: 22px; width: auto; align-self: flex-start; margin-bottom: 8px; }
.fc strong { font-size: 1.05rem; }
.fc span { color: var(--muted); font-size: .94rem; flex: 1; }
.fc em { font-style: normal; font-weight: 700; font-size: .85rem; color: var(--blue); }
.fc:not(.current) em::after { content: " \2192"; }
.fc.current { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue) inset; }
.flow { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 16px; background: #fff; counter-reset: f; overflow: hidden; }
.flow li { padding: 22px 22px 24px; border-right: 1px solid var(--line); counter-increment: f; position: relative; }
.flow li:last-child { border-right: 0; }
.flow li::before { content: counter(f, decimal-leading-zero); display: block; font-family: "Geist Mono", ui-monospace, monospace; font-size: .78rem; color: var(--muted); margin-bottom: 10px; }
.flow p { margin: 10px 0 0; color: #2b3244; font-size: .94rem; }
.flow .tag { display: inline-block; font-size: .74rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; margin-right: 6px; }
.tag.tm { background: #e8ecf5; color: #0b1630; }
.tag.tc { background: #e6f0ff; color: #1b5fc4; }
.tag.tv { background: #e4f6ee; color: #0f7a4a; }
@media (max-width: 960px) { .family-cards { grid-template-columns: 1fr; } .flow { grid-template-columns: 1fr 1fr; } .flow li:nth-child(2) { border-right: 0; } .flow li:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } .flow li { border-right: 0; border-bottom: 1px solid var(--line); } .flow li:last-child { border-bottom: 0; } }

/* White cards inside dark heroes keep dark text */
.playlist, .price-hero, .quote-sheet, .fc { color: var(--ink); }
.pl-row b, .pl-head strong { color: var(--ink); }
