/* A note for the next sweep: the purple also lived as rgba(102, 126, 234),
 * which is #667eea written in decimal. A grep for hex literals and
 * gradients does not see that, and neither does the hex-literal guard, so
 * five rules kept glowing purple at 40% alpha after the "purple is gone"
 * commit. Check both notations.
 */
/* EduQueue marketing
 *
 * The identity purple (#667eea -> #764ba2) is GONE, by the owner's decision
 * on 2026-11-29. Four directions were built as real pages and compared side
 * by side; the category standard won on its merits, so marketing no longer
 * carries a palette of its own. It uses the product's: --eq-accent for the
 * one accent, --eq-accent-ink where that accent has to be read as text,
 * --eq-ink / --eq-text / --eq-muted for type, --eq-line for rules.
 *
 * Every gradient became a flat fill. The canon's discipline is that emphasis
 * comes from weight, size and space, and a second colour smeared across a
 * surface is the thing it refuses. Two of those gradients were also measured
 * contrast failures nobody could see: white on the #764ba2 end was 3.66:1,
 * and the footer wordmark, painted with background-clip:text, ran from
 * 4.88:1 down to 2.80:1 -- invisible to a guard that reads `color:` because
 * gradient text sets none.
 *
 * This file previously claimed an exemption from tokenisation as "marketing
 * identity". That exemption existed to protect the purple. There is no
 * purple, so there is no exemption.
 */

/* Override app dashboard styles on marketing pages */
body.marketing-page,
body.marketing-page.fixed-nav,
body.marketing-page.sticky-footer,
body.marketing-page[style] {
  background: #ffffff !important;
  background-image: none !important;
  background-attachment: initial !important;
}

body.marketing-page .container-fluid {
  background-color: transparent;
  border-radius: 0;
  margin: 0;
  padding: 0;
}

body.marketing-page .marketing-nav .navbar {
  background-color: transparent !important;
  box-shadow: none !important;
}

/* Marketing Navigation */

/* The nav is FIXED, and until 2026-11-29 nothing cleared it. Pages looked
   right only where their own hero happened to carry enough top padding --
   so when the hero band was replaced that morning, the <h1> on /features/,
   /about/, /pricing/, /compare/, /faq/, /security/, /request-demo/ and
   /support/ slid under the bar (measured: nav ends at 69px, h1 top at 48px,
   clipped by 21px; 29px on /request-demo/). Only the home page escaped,
   because its hero is taller.

   The clearance is explicit now and belongs to the nav, not to whatever
   happens to sit beneath it. Measured at 1440 / 992 / 768 / 390: the nav is
   69px at every width, so one value is correct for all of them. */
body.marketing-page {
  --mk-nav-h: 69px;
  padding-top: var(--mk-nav-h);
}

.marketing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  padding: 0;
}

.marketing-nav.nav-scrolled {
  padding: 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.marketing-nav .navbar {
  padding: 12px 0;
}

.marketing-nav .navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.4rem;
  color: #2d3748;
  text-decoration: none;
}

.marketing-nav .navbar-brand:hover {
  text-decoration: none;
  color: #2d3748;
}

.marketing-nav .navbar-brand img {
  height: 40px;
  width: auto;
}

.marketing-nav .nav-link {
  color: #4a5568 !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 16px !important;
  transition: color 0.2s ease;
  position: relative;
}

.marketing-nav .nav-link:hover,
.marketing-nav .nav-link.active {
  /* On rgba(255,255,255,.97) over a white body, i.e. white. 3.66 -> 5.58:1. */
  color: var(--mk-ink-brand) !important;
}

.marketing-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--eq-accent);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.marketing-nav .nav-link:hover::after,
.marketing-nav .nav-link.active::after {
  transform: scaleX(1);
}

.btn-demo-nav {
  background: var(--eq-accent);
  color: white !important;
  padding: 10px 24px !important;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: none;
  display: inline-block;
  text-decoration: none;
  margin-left: 8px;
}

.btn-demo-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px rgba(11, 18, 32, .28);
  color: white !important;
  text-decoration: none;
}

/* Marketing Page Hero (reusable for inner pages) */
/* ---- The page opening -------------------------------------------------
   This was a full-bleed accent band, 140px of padding, centred white text
   over an SVG pattern, on all 13 marketing pages. The band is gone with the
   identity it belonged to.

   The canon opens a page with its heading, on the page's own ground, in the
   same measure as the content below it. Three reasons beyond taste:

     * 140px + 80px of band before the first real content is 220px a visitor
       scrolls past on every page. On /pricing/ the prices were below it.
     * Centred text at 1.5rem over a 720px measure wraps badly and strands
       single words, which is why the rule underneath needed `text-wrap:
       pretty` to patch it.
     * White on a coloured band is a contrast pair to maintain forever. On
       the page ground it is ink on paper, which is the pair everything else
       on the page already uses.

   Left-aligned, because the body text under it is, and a centred heading
   over left-aligned body is two different documents. */
.marketing-hero {
  background: transparent;
  padding: var(--eq-space-12) 0 var(--eq-space-6);
  position: relative;
}

.marketing-hero-content {
  position: relative;
  text-align: left;
  color: var(--eq-ink);
  max-width: 44rem;
}

.marketing-hero h1 {
  font-size: clamp(1.85rem, 1.45rem + 1.8vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--eq-ink);
  margin: 0 0 var(--eq-space-4);
  text-wrap: balance;
}

.marketing-hero .hero-subtitle {
  font-size: 1.06rem;
  max-width: var(--mk-measure);
  margin: 0;
  line-height: 1.6;
  color: var(--eq-muted);
  text-wrap: pretty;
}

/* Section Styles */
.marketing-section {
  padding: 80px 0;
}

.marketing-section-alt {
  padding: 80px 0;
  background: #f8f9fa;
}

.marketing-section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 1rem;
}

.marketing-section-subtitle {
  text-align: center;
  font-size: 1.15rem;
  /* Sits on white and on .marketing-section-alt's #f8f9fa. 4.02 / 3.81 -> 5.43 / 5.15:1. */
  color: var(--mk-ink-muted);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Section */
.cta-section {
  background: var(--eq-accent);
  padding: 80px 0;
  text-align: center;
  color: white;
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* The closing band is the one place the gradient itself sets the ceiling.
   White at opacity .9 composites to #f0f1fb, which is 3.89:1 over the band's
   midpoint; even FULL white is only 4.38:1 there and 3.66:1 at the #667eea
   end, so no ink change can reach 4.5:1 while the gradient stays — and the
   gradient is the brand's call, not this file's. The supported remedy is the
   other half of WCAG 1.4.3: at 24px this is large text, where the floor is
   3:1 and pure white clears it across the whole band. The opacity goes
   because it was buying nothing but contrast loss. */
.cta-section p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.btn-cta {
  display: inline-block;
  padding: 16px 40px;
  background: white;
  /* funnel.css already overrides this to --mk-brand-ink for every page that
     loads it; matched here so the base sheet is not a 3.66:1 trap on its own
     for anyone who unscopes the override. */
  color: var(--mk-brand-ink);
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  color: var(--eq-accent-ink);
  text-decoration: none;
}

/* Forms */
.marketing-form .form-group {
  margin-bottom: 1.5rem;
}

.marketing-form label {
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.marketing-form .form-control {
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.marketing-form .form-control:focus {
  border-color: var(--eq-accent-ink);
  box-shadow: 0 0 0 3px var(--eq-accent-wash, rgba(29, 78, 216, .14));
}

.marketing-form select.form-control {
  height: auto;
}

.marketing-form .btn-submit {
  background: var(--eq-accent);
  color: white;
  padding: 14px 40px;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.marketing-form .btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px rgba(11, 18, 32, .28);
}

/* Card Styles */
.marketing-card {
  background: white;
  border-radius: 16px;
  padding: 40px 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
}

.marketing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.marketing-card-icon {
  width: 70px;
  height: 70px;
  background: var(--eq-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.marketing-card-icon i {
  font-size: 1.75rem;
  color: white;
}

.marketing-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 15px;
}

.marketing-card p {
  /* .marketing-card is `background: white`. 4.02 -> 5.43:1. */
  color: var(--mk-ink-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* Responsive adjustments for nav */
@media (max-width: 991px) {
  .marketing-nav .navbar-collapse {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
  }

  .marketing-nav .nav-link::after {
    display: none;
  }

  .btn-demo-nav {
    margin-left: 0;
    margin-top: 10px;
    text-align: center;
    display: block;
  }
}

@media (max-width: 768px) {
  .marketing-hero {
    padding-top: var(--eq-space-8);
  }

  .marketing-section-title {
    font-size: 2rem;
  }

  .cta-section h2 {
    font-size: 2rem;
  }
}

/* ============================================
   Premium Footer Styles
   ============================================ */
.premium-footer {
  background: #0f172a;
  color: #e2e8f0;
  padding: 60px 0 30px;
  margin-top: 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.premium-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--eq-accent);
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  padding: 40px 0 50px;
  align-items: start;
}

.footer-brand-section {
  max-width: 600px;
}

.footer-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.footer-main-logo {
  height: 60px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

/* The wordmark was the identity gradient clipped to the text, which is both
   the most recognisable AI tell on a page and — on this particular ground —
   unreadable at one end. Measured against the #0f172a footer the gradient
   runs 4.88:1 at #667eea down to 2.80:1 at #764ba2, i.e. below the 3:1 floor
   WCAG gives 32px text, and no ink choice can rescue a gradient. Solid white
   is 17.85:1. The purple stays everywhere it is a FILL; it was never a
   colour for words on the dark footer. */
.footer-brand-name {
  font-size: 2rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.footer-tagline {
  font-size: 1.1rem;
  color: #94a3b8;
  margin-bottom: 35px;
  font-weight: 400;
  line-height: 1.6;
  /* "schools." was landing alone on a third line. Ignored by browsers that
     do not implement it, so it can only improve the wrap. */
  text-wrap: pretty;
}

.footer-badges-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--eq-accent-wash, rgba(29, 78, 216, .10));
  border-radius: 8px;
  font-size: 0.9rem;
  color: #cbd5e0;
}

.security-badge i {
  /* #e2e8f0, not an accent ink. Both of these sit inside
     `.premium-footer`, whose ground is #0f172a. An "ink" token is the
     accent DARKENED to be readable on white; on a dark ground it has to
     get lighter, and my blanket purple-to-token substitution moved it
     the wrong way — 2.66:1. This is the footer's own body colour,
     12.6:1 against that ground. */
  color: #e2e8f0;
  font-size: 1.1rem;
}

.footer-links-section {
  display: flex;
  flex-direction: column;
  gap: 25px;
  justify-self: end;
}

.footer-section-title {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #e2e8f0;
  margin-bottom: 20px;
}

.footer-link-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-action-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.footer-action-link:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--eq-accent-ink);
  color: white;
  text-decoration: none;
}

.footer-action-link i {
  font-size: 1rem;
  /* #e2e8f0, not an accent ink. Both of these sit inside
     `.premium-footer`, whose ground is #0f172a. An "ink" token is the
     accent DARKENED to be readable on white; on a dark ground it has to
     get lighter, and my blanket purple-to-token substitution moved it
     the wrong way — 2.66:1. This is the footer's own body colour,
     12.6:1 against that ground. */
  color: #e2e8f0;
}

.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0;
}

.footer-bottom-modern {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copyright {
  margin: 0;
  /* ON #0f172a, so this goes LIGHTER, not darker: 4.45 -> 6.96:1.
     --mk-ink-muted (#5f6b7a) would have made it 3.29:1 here. */
  color: var(--mk-ink-muted-dk);
  font-size: 0.95rem;
}

.footer-legal-links {
  display: flex;
  gap: 25px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-legal-links a {
  /* dark footer — lighter, not darker. 4.45 -> 6.96:1. */
  color: var(--mk-ink-muted-dk);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
}

.footer-legal-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--eq-accent);
  transition: width 0.3s ease;
}

.footer-legal-links a:hover {
  color: #cbd5e0;
}

.footer-legal-links a:hover::after {
  width: 100%;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 420px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: white;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.newsletter-form input::placeholder {
  /* Placeholder text is text: AA applies. On rgba(255,255,255,.05) over
     #0f172a this was 3.91:1; the lighter slate makes it 6.12:1. */
  color: var(--mk-ink-muted-dk);
}

.newsletter-form input:focus {
  /* An OUTLINE, measured. This was `outline: none` plus a 10%-alpha shadow,
     which measures 1.14:1 against this ground -- a look, not an indicator,
     on a public newsletter field. It was invisible to the focus guard until
     marketing.css left the exempt set on 2026-11-29.

     Both colours move LIGHTER, because this form sits on #0f172a. The border
     took --eq-accent-ink, which is the accent DARKENED for white grounds, so
     it moved contrast the wrong way -- the same mistake the footer icons had.
     The border is now --mk-ink-muted-dk (6.96:1 here, already the
     placeholder's value); the outline is plain white, 17.4:1, which is the
     colour the input's own text already uses. White rather than the token
     because the guard resolves the kit palette and the literal, not
     --mk-*, which funnel.css declares on body.marketing-page -- an outline it
     cannot resolve reads to it as no outline at all.

     The shadow it replaces was rgba(102, 126, 234, .1) -- the retired identity
     purple, which survives in five other rules in this file because a sweep
     for hex literals and gradients cannot see an rgba(). */
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--mk-ink-muted-dk);
  outline: 2px solid white;
  outline-offset: 2px;
}

.newsletter-form button {
  padding: 12px 24px;
  background: var(--eq-accent);
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -6px rgba(11, 18, 32, .28);
}

/* Footer responsive */
@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .footer-logo-wrapper {
    flex-direction: column;
    align-items: start;
    gap: 12px;
  }

  .footer-brand-name {
    font-size: 1.5rem;
  }

  .footer-links-section {
    justify-self: start;
  }

  .footer-bottom-modern {
    flex-direction: column;
    gap: 25px;
    text-align: center;
  }

  .footer-legal-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .footer-badges-row {
    justify-content: center;
  }
}


/* ---- Heading levels corrected 2026-11-29 ---------------------------------
   /faq/ ran h1 -> h3 (category) -> h5 (question), skipping two levels, and
   /about/ had an h4 directly under an h2. The levels now match the real
   outline; these rules keep the SIZES the design already had, so the fix is
   structural and nothing moves on screen. */
.faq-cat {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--mk-ink-brand, var(--eq-accent-ink));
  margin-bottom: var(--eq-space-6);
  padding-bottom: var(--eq-space-3);
  border-bottom: 1px solid var(--eq-line);
}
.faq-q { font-size: 1.05rem; font-weight: 600; color: var(--eq-ink); }
.ab-sub {
  color: var(--eq-ink);
  font-weight: 700;
  margin-bottom: var(--eq-space-5);
}


/* ---- Measure and wrapping, site-wide, added 2026-11-29 ------------------

   `ch` is the advance width of the ZERO glyph, which is wider than average
   lowercase -- so a 66ch cap renders about 88 characters, not 66, and the
   62ch above rendered about 83. That mistake went into four sibling
   stylesheets this morning with a comment claiming the unit "literally
   counts characters". Measured: 58ch is the value that lands under 80.

   The cap also has to reach the text that never had one. A <dd>, an <li> or
   a FAQ answer inherits the full column, which is where every remaining
   line-length finding on /security/ and /faq/ came from. The rules above
   are hero-scoped; these are the rest of the page. */
body.marketing-page {
  --mk-measure: 58ch;
}
body.marketing-page .marketing-section p,
body.marketing-page .sec-dl dd,
body.marketing-page .sec-note,
body.marketing-page .card-body,
body.marketing-page .ft-lede,
body.marketing-page .marketing-section li {
  max-width: var(--mk-measure);
}

/* A heading that drops one word onto its own line reads as a mistake, and a
   paragraph that strands one word on the last line is the same defect a line
   later. These two properties are the whole fix. */
body.marketing-page h1,
body.marketing-page h2,
body.marketing-page h3,
body.marketing-page .marketing-section-title {
  text-wrap: balance;
}
body.marketing-page p,
body.marketing-page li,
body.marketing-page dd,
body.marketing-page .marketing-section-subtitle {
  text-wrap: pretty;
}

/* `code` sat at the muted token on a tinted ground and measured below AA.
   --eq-ink is the reading colour; the tint still marks it as code. */
body.marketing-page code {
  color: var(--eq-ink);
}


/* ---- One voice across the two shells, 2026-11-30 -------------------------

   The home page extends layouts/base.html and the other twelve extend
   marketing_base.html, so measured at 1280 they were two products:

                      home              inner pages
     h1 face          Iowan Old Style   -apple-system
     h1 size/weight   65.6px / 600      41.6px / 700
     body size        18.88px           16.96px
     body line-height 29.26px           27.14px

   The design critique's words were that a buyer arriving from a spoke site
   crosses two visual identities in two clicks "and the second one is
   visibly older and cheaper".

   The GROUND is not the problem -- a dark landing page over light content
   pages is a deliberate and ordinary pattern, and the two shells stay
   different. The problem is the type, and type is a token. The inner pages
   now use the same display face and the same reading size as the page they
   are reached from.

   What this is NOT: porting one shell onto the other. That is a dozen
   pages of structural rework and a decision about what the product looks
   like, which is not mine to take. */
body.marketing-page {
  --mk-display: "Iowan Old Style", "Palatino Linotype", Palatino,
                "Book Antiqua", Georgia, serif;
}
body.marketing-page .marketing-hero h1,
body.marketing-page .marketing-section-title {
  font-family: var(--mk-display);
  font-weight: 600;
  letter-spacing: -0.015em;
}
body.marketing-page .marketing-section p,
body.marketing-page .marketing-hero .hero-subtitle,
body.marketing-page .ft-lede {
  font-size: 1.06rem;
  line-height: 1.62;
}

/* Bootstrap's .btn carries white-space:nowrap, and the FAQ wraps each
   question in <button class="btn btn-link btn-block"> inside an
   overflow:hidden card. Measured at 390: "How does the sex offender
   screening work?" needs 404px in a 356px box and was clipped
   mid-word with no scroll path, as was the PowerSchool question.
   Both are purchase-driving. */
.faq-q .btn, .faq-q .btn-link { white-space: normal; text-align: left; }
