/* FL CDL Training — marketing site
 * ─────────────────────────────────────────────────────────────────────────────
 * Layout for index.html only. Implemented from the same "Marketing Site —
 * Landing Page (Rainbow Brand)" design the sibling FL Drivers Training product
 * uses, so the two read as one family.
 *
 * WHAT DELIBERATELY DIFFERS FROM THE SIBLING PAGE — the reasoning is worth
 * keeping, because most of it is about not misleading a visitor:
 *
 *  1. No testimonial. Nobody has taken this course yet, so publishing a named
 *     quote would be inventing a customer. A fabricated review on a paid
 *     education site is a deceptive-practices problem, not a copy problem.
 *  2. No "free trial" anywhere. No trial exists in the plans, so the word must
 *     not appear on the button that leads to a price.
 *  3. No student counts ("join thousands…"). The count is zero.
 *  4. Question counts state the real number in content/, not a rounded-up
 *     marketing figure.
 *  5. The FLHSMV/FMCSA disclaimer in the footer is a launch requirement, not
 *     decoration: "FL CDL Training" next to a Florida-looking mark reads as a
 *     government service to someone anxious about a federal skills test.
 */

/* ── Sticky nav ───────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  /* Translucent + blurred per the design. An explicit rgba rather than the
     surface token because the effect needs an alpha channel and the token is
     opaque; these two literals are the light and dark surfaces this page
     actually sits on. */
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-light);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav {
    background: rgba(15, 23, 42, 0.82);
  }
}
:root[data-theme="dark"] .nav {
  background: rgba(15, 23, 42, 0.82);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px clamp(20px, 4vw, 32px);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  color: var(--text-primary);
}
.nav-brand:hover {
  text-decoration: none;
}
.nav-brand img {
  height: 34px;
  width: 34px;
}
.nav-brand span {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
}

/* Anchor links are the first thing to go when the bar gets crowded: below
   1100px the language picker, theme toggle and CTA already fill it, and every
   section is reachable by scrolling. */
.nav-links {
  display: flex;
  gap: 24px;
  margin-left: 14px;
}
@media (max-width: 1100px) {
  .nav-links {
    display: none;
  }
}
.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}
.nav-links a:hover {
  color: var(--primary);
  text-decoration: none;
}

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* A real <select> rather than a row of language pills. The pills were what
   pushed this bar to overflow, and the select shows the CURRENT language in its
   closed state — which the pills only conveyed through a colour difference. It
   also brings keyboard support and a native picker wheel on phones for free. */
.lang-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 5px 12px 5px 14px;
}
.lang-picker > span:first-child {
  font-size: 15px;
  line-height: 1;
}
.lang-picker .lang-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
@media (max-width: 640px) {
  .lang-picker .lang-label {
    display: none;
  }
}
.lang-picker select {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  padding: 2px 0;
}

.theme-toggle {
  border: 1px solid var(--border);
  background: var(--background);
  border-radius: var(--radius-full);
  width: 38px;
  height: 38px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease;
}
.theme-toggle:hover {
  border-color: var(--primary);
}

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--surface);
}
/* A blurred rainbow glow, not a rainbow fill. A saturated gradient behind the
   headline puts white-ish text on amber and pink, where it fails contrast no
   matter how much text-shadow is thrown at it. */
.hero-glow {
  position: absolute;
  top: -160px;
  right: -120px;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: var(--gradient-brand);
  filter: blur(120px);
  opacity: 0.18;
  pointer-events: none;
}
.hero-texture {
  position: absolute;
  inset: 0;
  background-image: url("../brand/texture-binary.svg");
  background-size: 260px;
  opacity: 0.05;
  pointer-events: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-glow {
    opacity: 0.22;
  }
  :root:not([data-theme="light"]) .hero-texture {
    opacity: 0.08;
    filter: invert(1);
  }
}
:root[data-theme="dark"] .hero-glow {
  opacity: 0.22;
}
:root[data-theme="dark"] .hero-texture {
  opacity: 0.08;
  filter: invert(1);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding: clamp(48px, 7vw, 72px) clamp(20px, 4vw, 32px) clamp(64px, 8vw, 96px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.hero-badge .dots {
  display: inline-flex;
  gap: 3px;
}
.hero-badge .dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.hero h1 {
  font-size: clamp(34px, 5.6vw, 58px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hero .hero-sub {
  margin-top: 24px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 540px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 480px;
}
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.hero-stats div > b {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
}
.hero-stats div > span {
  font-size: 14px;
  color: var(--text-tertiary);
}

/* Tilted product mock. Hidden below 980px — a 3D-transformed panel on a phone
   costs layout and legibility for no benefit. */
.hero-mock {
  position: relative;
  perspective: 1400px;
}
.hero-mock-card {
  transform: rotateY(-12deg) rotateX(4deg);
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.22);
  border: 1px solid var(--border-light);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mock-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 12px;
  border-bottom: 1px solid var(--border-light);
}
.mock-head img {
  height: 26px;
  width: 26px;
}
.mock-head b {
  font-size: 14px;
  font-weight: 700;
}
.mock-head .streak {
  margin-left: auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-orange);
}
.mock-row {
  display: flex;
  gap: 10px;
}
.mock-stat {
  flex: 1;
  background: var(--background);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  border-left: 3px solid var(--brand-amber);
}
.mock-stat:nth-child(2) {
  border-left-color: var(--brand-indigo);
}
.mock-stat b {
  display: block;
  font-size: 22px;
  font-weight: 800;
}
.mock-stat span {
  font-size: 12px;
  color: var(--text-tertiary);
}
.mock-panel {
  background: var(--background);
  border-radius: var(--radius-md);
  padding: 16px;
}
.mock-panel .kicker {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-green);
  margin-bottom: 4px;
}
.mock-panel .title {
  font-size: 15px;
  font-weight: 700;
}
.mock-panel .desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}
.mock-badge {
  background: var(--background);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.mock-badge .ico {
  font-size: 24px;
}
.mock-badge b {
  display: block;
  font-size: 14px;
  font-weight: 700;
}
.mock-badge span {
  font-size: 12px;
  color: var(--text-tertiary);
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-mock {
    display: none;
  }
}

/* ── Trust strip ─────────────────────────────────────────────────────────── */

.trust {
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: var(--background);
}
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding: 22px clamp(20px, 4vw, 32px);
}
.trust-inner span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}
.trust-inner span i {
  /* --ink-green, not --brand-green: a tick a person has to see is content. */
  color: var(--ink-green);
  font-style: normal;
  font-size: 16px;
}

/* ── Generic section rhythm ──────────────────────────────────────────────── */

.section {
  padding: clamp(56px, 8vw, 96px) 0;
}
.section-surface {
  background: var(--surface);
}
.section-bg {
  background: var(--background);
}

/* ── Feature cards ───────────────────────────────────────────────────────── */

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 24px;
}
.feature h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ── How it works ────────────────────────────────────────────────────────── */

.step {
  border-top: 4px solid var(--brand-pink);
  padding: 32px 28px;
}
.step:nth-child(2) {
  border-top-color: var(--brand-cyan);
}
.step:nth-child(3) {
  border-top-color: var(--brand-amber);
}
.step .num {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-pink);
}
.step:nth-child(2) .num {
  color: var(--ink-cyan);
}
.step:nth-child(3) .num {
  color: var(--ink-amber);
}
.step h3 {
  margin: 10px 0 8px;
  font-size: 20px;
  font-weight: 700;
}
.step p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ── Endorsement grid ────────────────────────────────────────────────────── */

.endorsements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}
.endorsement {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}
.endorsement .code {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
  background: var(--primary-bg);
  color: var(--primary-dark);
}
.endorsement b {
  display: block;
  font-size: 15px;
  font-weight: 700;
}
.endorsement span {
  display: block;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ── Language cards ──────────────────────────────────────────────────────── */

.lang-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lang-card {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  width: 100%;
}
.lang-card[aria-pressed="true"] {
  border-color: var(--primary);
}
.lang-card .flag {
  font-size: 30px;
}
.lang-card b {
  display: block;
  font-size: 17px;
  font-weight: 700;
}
.lang-card em {
  display: block;
  font-size: 15px;
  font-style: normal;
  color: var(--text-secondary);
}
.lang-card .check {
  margin-left: auto;
  font-size: 20px;
  color: var(--ink-green);
}

/* ── Rewards ─────────────────────────────────────────────────────────────── */

.reward-stats {
  display: flex;
  gap: 14px;
  max-width: 560px;
  margin: 0 auto 24px;
  flex-wrap: wrap;
}
.reward-stat {
  flex: 1 1 150px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  border-left: 3px solid var(--brand-orange);
}
.reward-stat:nth-child(2) {
  border-left-color: var(--brand-indigo);
}
.reward-stat:nth-child(3) {
  border-left-color: var(--brand-amber);
}
.reward-stat b {
  display: block;
  font-size: 22px;
  font-weight: 800;
}
.reward-stat span {
  font-size: 13px;
  color: var(--text-tertiary);
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}
.badge-row {
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.badge-row.locked {
  opacity: 0.55;
}
.badge-row .ico {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  flex: none;
}
.badge-row.locked .ico {
  filter: grayscale(1);
}
.badge-row b {
  display: block;
  font-size: 15px;
  font-weight: 700;
}
.badge-row span {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ── Pricing ─────────────────────────────────────────────────────────────── */

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
  max-width: 1000px;
  margin: 0 auto;
}
/* Cards stretch to a common height and pin their CTA to the bottom. With
   align-items:start each card sized to its own content, so the three buy
   buttons sat at three different heights — which reads as an unfinished table
   rather than a comparison. The feature lists are deliberately different
   lengths, so the slack has to go ABOVE the button, not below it. */
.plan {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.plan .btn {
  margin-top: auto;
}
/* The featured card gets a gradient BORDER, which CSS can only do by layering
   two background images and clipping them differently — one to the padding box
   (the card fill) and one to the border box (the gradient). */
.plan-featured {
  border: 2px solid transparent;
  background-image: linear-gradient(var(--surface), var(--surface)),
    var(--gradient-brand);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}
.plan-flag {
  position: absolute;
  top: -12px;
  left: 32px;
  background: var(--badge-purple);
  color: #fff;
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
}
.plan .plan-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.plan-featured .plan-name {
  color: var(--ink-indigo);
}
.plan .plan-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-top: 4px;
  min-height: 42px;
}
.plan .plan-price {
  margin: 10px 0 2px;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.plan .plan-billing {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 22px;
  min-height: 20px;
}
.plan ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.plan li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.plan li i {
  color: var(--ink-green);
  font-style: normal;
  font-size: 16px;
  line-height: 1.4;
}
/* Renewal terms sit IMMEDIATELY above the purchase control, not in a footnote:
   FTC negative-option rules and the card networks both expect the material
   terms to be clear and conspicuous BEFORE billing information is taken. */
.plan .renewal {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-tertiary);
  margin-bottom: 14px;
}

@media (max-width: 980px) {
  .price-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ── Closing CTA ─────────────────────────────────────────────────────────── */
/* A contained panel with a gradient border and a dark interior — not a
   full-bleed rainbow band. The band version put white text directly on
   saturated pink and amber, where it fails contrast at the light end of the
   ramp. A 4px frame around a slate panel gets the same colour presence with
   legible copy inside it. The dark interior is fixed in both themes: it is the
   design's one deliberately inverted surface. */

.closing {
  padding: 0 clamp(20px, 4vw, 32px) clamp(64px, 8vw, 96px);
  background: var(--background);
}
.closing-frame {
  max-width: 1160px;
  margin: 0 auto;
  border-radius: 24px;
  background: var(--gradient-brand);
  padding: 4px;
}
.closing-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #0f172a;
  padding: clamp(44px, 6vw, 72px) clamp(24px, 4vw, 48px);
  text-align: center;
}
.closing-panel .tex {
  position: absolute;
  inset: 0;
  background-image: url("../brand/texture-binary.svg");
  background-size: 240px;
  opacity: 0.1;
  filter: invert(1);
  pointer-events: none;
}
.closing-body {
  position: relative;
}
.closing-body img {
  height: 52px;
  width: 52px;
  margin-bottom: 18px;
}
.closing-body h2 {
  margin: 0 auto;
  max-width: 620px;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.12;
  font-weight: 800;
  color: #fff;
}
.closing-body p {
  margin: 16px auto 32px;
  max-width: 540px;
  font-size: 18px;
  line-height: 1.6;
  color: #cbd5e1;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.footer-rule {
  height: 4px;
  background: var(--gradient-brand-h);
}
/* CENTRED, and deliberately NOT on --text-tertiary. That token fails AA against
   the footer surface in both themes (2.56:1 on white, 3.07:1 on the dark
   surface, against a 4.5:1 floor), and the whole footer used to be on it — which
   is why the operator's own name was the faintest thing on the page. */
.footer-id {
  padding: clamp(40px, 6vw, 56px) clamp(20px, 4vw, 32px) 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.footer-id img {
  height: 64px;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.footer-id .entity {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.footer-id .address {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 420px;
}
.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding: 20px clamp(20px, 4vw, 32px) 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.footer-bottom .copyright,
.footer-bottom .disclaimer {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.footer-bottom .disclaimer {
  max-width: 680px;
}
.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
}
.footer-links a:hover {
  color: var(--primary);
}

/* ── Back to top ─────────────────────────────────────────────────────────── */
/* Belt and braces alongside the sticky nav. Appears past 500px, which is below
   the fold on every viewport — it never covers the hero CTAs, and it is gone
   again by the time the visitor is back at the top. */

.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 30;
  border: 0;
  cursor: pointer;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--gradient-brand);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.28);
  display: none;
  align-items: center;
  justify-content: center;
}
.to-top.on {
  display: flex;
}
