/* CQ Print – website styles. Brand colours match the desktop app. */
:root {
  --red: #b22222;
  --red-dark: #8e1b1b;
  --red-soft: #fbeaea;
  --charcoal: #3a3a3a;
  --ink: #1f2328;
  --muted: #5b6470;
  --line: #e6e8eb;
  --bg: #ffffff;
  --bg-alt: #f5f6f7;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 20, 20, .08);
  --shadow-lg: 0 24px 60px rgba(20, 20, 20, .16);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Poppins", "Century Gothic", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); 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.08rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }

.eyebrow {
  color: var(--red);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .75em;
}
.eyebrow-light { color: #ffb3b3; }
.accent { color: var(--red); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .85em 1.5em;
  border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: .55em 1.1em; font-size: .88rem; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(178, 34, 34, .28); }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: #25d366; color: #128c4a; }
.btn-light { background: #fff; color: var(--red); }
.btn-outline-light { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); }
.ico { width: 1.15em; height: 1.15em; fill: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: .6em; text-decoration: none; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 9px;
  background: var(--red); display: grid; place-items: center;
}
.logo-mark svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.logo-text { font-size: 1.35rem; font-weight: 600; letter-spacing: -.01em; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a:not(.btn) { text-decoration: none; font-size: .93rem; color: var(--muted); font-weight: 500; }
.site-nav a:not(.btn):hover { color: var(--red); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 85% 10%, var(--red-soft), transparent 60%),
    linear-gradient(#fff, var(--bg-alt));
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0 1.2em; }
.hero-actions.center { justify-content: center; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: .9rem; }
.hero-points li::before { content: "✓"; color: var(--red); font-weight: 700; margin-right: .45em; }
.hero-visual img { filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .12)); }

/* ---------- Strip ---------- */
.strip { background: var(--charcoal); color: #fff; }
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-item { padding: 22px 16px; text-align: center; border-left: 1px solid rgba(255, 255, 255, .1); }
.strip-item:first-child { border-left: 0; }
.strip-item strong { display: block; font-size: 1rem; font-weight: 600; }
.strip-item span { font-size: .82rem; color: #c9cdd2; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .sub { color: var(--muted); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px 24px;
}
.step p { color: var(--muted); margin: 0; }
.step-num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--red); color: #fff; font-weight: 700; margin-bottom: 16px;
}
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 52px; right: -24px; width: 24px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--red) 0 6px, transparent 6px 10px);
}

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.feature p { color: var(--muted); font-size: .92rem; margin: 0; }
.f-ico {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
  background: var(--red-soft); margin-bottom: 16px;
}
.f-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Screen tour */
.tour-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.tour-tabs button {
  font: inherit; font-size: .9rem; font-weight: 500;
  padding: .55em 1.2em; border-radius: 999px; cursor: pointer;
  background: var(--bg-alt); color: var(--muted); border: 1px solid var(--line);
  transition: .2s;
}
.tour-tabs button:hover { color: var(--red); }
.tour-tabs button[aria-selected="true"] { background: var(--red); color: #fff; border-color: var(--red); }
.window {
  margin: 0 auto; max-width: 980px; background: #fff;
  border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.window-bar { display: flex; gap: 7px; padding: 12px 14px; background: #ececec; }
.window-bar span { width: 12px; height: 12px; border-radius: 50%; background: #d0d0d0; }
.window-bar span:first-child { background: #ff5f57; }
.window-bar span:nth-child(2) { background: #febc2e; }
.window-bar span:nth-child(3) { background: #28c840; }
.window-shot { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.window-shot img { width: 100%; transition: opacity .25s ease; }
.window-shot img.fading { opacity: 0; }
.window figcaption { padding: 14px 18px; font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); }

/* Schools */
.schools { background: linear-gradient(135deg, var(--charcoal), #262626); color: #fff; }
.schools-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.schools p { color: #d5d8dc; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px; padding: 14px 16px 14px 46px; position: relative;
}
.checks li::before {
  content: "✓"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 50%; background: var(--red);
  display: grid; place-items: center; font-size: .75rem; font-weight: 700;
}

/* FAQ */
.faq details {
  border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; background: #fff;
  transition: box-shadow .2s;
}
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 52px 18px 22px; font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 400; color: var(--red); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--muted); }

/* CTA */
.cta { background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; text-align: center; }
.cta-inner { max-width: 680px; }
.cta p { color: #ffe1e1; font-size: 1.05rem; }

/* Footer */
.site-footer { background: #1e1e1e; color: #9aa0a6; font-size: .88rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 22px 0; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .85);
  display: grid; place-items: center; padding: 24px; cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox-close {
  position: absolute; top: 14px; right: 18px; background: none; border: 0;
  color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .strip-inner { grid-template-columns: repeat(2, 1fr); }
  .strip-item:nth-child(3) { border-left: 0; }
  .strip-item:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .1); }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px; display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 12px; justify-content: center; }
  .hero-inner, .schools-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 520px; margin: 0 auto; }
  .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
}
@media (max-width: 520px) {
  .features { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
