/* ─── Design tokens ─── */
:root {
  --navy:        #0c1f3d;
  --navy-hi:     #162d52;
  --teal:        #0d9488;
  --teal-dark:   #0f766e;
  --teal-faint:  rgba(13, 148, 136, 0.09);
  --teal-light:  #5eead4;
  --text:        #0f172a;
  --text-fr:     #475569;   /* slate-600, ~5.3:1 on white */
  --muted:       #64748b;
  --bg:          #f8f7f5;
  --bg-alt:      #f1f5f9;
  --white:       #ffffff;
  --border:      rgba(15, 23, 42, 0.09);
  --border-md:   rgba(15, 23, 42, 0.16);
  --shadow-sm:   0 1px 4px rgba(15, 23, 42, 0.07);
  --shadow:      0 4px 18px rgba(15, 23, 42, 0.09);
  --r:           16px;
  --r-sm:        10px;
  --max:         1100px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", "Helvetica Neue", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* ─── Container ─── */
.container {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

/* ─── Hero ─── */
.hero {
  background:
    radial-gradient(ellipse 70% 60% at 5% 0%, rgba(13, 148, 136, 0.20) 0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 95% 100%, rgba(13, 148, 136, 0.12) 0%, transparent 55%),
    var(--navy);
  color: var(--white);
  padding: clamp(52px, 10vw, 96px) 0 clamp(40px, 8vw, 72px);
}

/* Centers all hero framing — badge, headline, ledes, CTAs, chips */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.90);
  margin-bottom: 28px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-light);
  flex-shrink: 0;
}

.hero-logo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 28px;
}

.hero-logo-tile {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #2257a1 0%, #1a4a89 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 22px 44px rgba(4, 12, 28, 0.28);
}

.hero-logo-car {
  font-size: 3rem;
  line-height: 1;
  transform: translateY(-2px);
}

.hero-logo-bolt {
  position: absolute;
  right: 14px;
  bottom: 12px;
  font-size: 1.35rem;
  line-height: 1;
  color: #ffd43b;
  text-shadow: 0 3px 10px rgba(255, 212, 59, 0.3);
}

.hero-logo-title {
  margin-top: 14px;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
}

.hero-h1 {
  font-size: clamp(2.75rem, 10vw, 5.5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 6px;
  color: var(--white);
}

.hero-h1-fr {
  font-size: clamp(1.05rem, 3.2vw, 1.6rem);
  font-weight: 600;
  font-style: italic;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.25;
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}

/* Ledes are centered blocks; lede-lang is an inline prefix */
.hero-lede {
  font-size: clamp(0.93rem, 2.4vw, 1.02rem);
  color: rgba(255, 255, 255, 0.90);
  line-height: 1.72;
  max-width: 540px;
  margin-bottom: 8px;
}

.hero-lede-fr {
  font-size: clamp(0.88rem, 2.2vw, 0.98rem);
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 28px;
}

.lede-lang {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* ─── Buttons ─── */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;   /* centered on all screens */
  gap: 12px;
  margin-bottom: 36px;
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.38);
}

.btn-primary:hover {
  background: var(--teal-dark);
  box-shadow: 0 12px 30px rgba(13, 148, 136, 0.44);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.28);
  cursor: default;
}

/* ─── Hero chips ─── */
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;   /* centered on all screens */
  gap: 10px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.20);
  font-size: 0.80rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.90);
}

.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-light);
  flex-shrink: 0;
}

/* ─── Section shell ─── */
.section {
  padding: clamp(56px, 10vw, 96px) 0;
}

.section-alt { background: var(--bg-alt); }

.section-dark {
  background:
    radial-gradient(ellipse 60% 60% at 80% 20%, rgba(13, 148, 136, 0.13) 0%, transparent 60%),
    var(--navy);
  color: var(--white);
}

/* ─── Section header — centered framing block ─── */
/*
 * Wraps eyebrow + headline + FR headline + optional intro paragraphs.
 * text-align: center balances these elements without centering card content.
 * Cards sit OUTSIDE .section-header and use text-align: left.
 */
.section-header {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: 40px;
}

/* ─── Section typography ─── */
.section-eyebrow {
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 10px;
}

/* FR span inside eyebrow (used in difference section) */
.section-eyebrow span {
  display: block;
  margin-top: 5px;
  color: var(--text-fr);
  font-style: italic;
  letter-spacing: 0.04em;
  text-transform: none;
}

.section-eyebrow-light { color: var(--teal-light); }

.section-h2 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 4px;
}

/* FR span inside h2 (used in difference section) */
.section-h2 span {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.25rem, 3.8vw, 2.05rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.18;
  color: var(--text-fr);
}

.section-h2-light { color: var(--white); }

/* Standalone FR heading (used in all sections except difference) */
.section-h2-fr {
  font-size: clamp(1.3rem, 3.8vw, 2.1rem);
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-fr);
  margin-bottom: 16px;
}

.section-h2-fr-light {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 12px;
}

.section-sub {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 620px;
  margin-inline: auto;   /* centers within .section-header */
}

.section-sub-light { color: rgba(255, 255, 255, 0.85); }

.section-sub-fr {
  font-size: 0.97rem;
  font-style: italic;
  color: var(--text-fr);
  line-height: 1.72;
  max-width: 620px;
  margin-inline: auto;
  margin-top: 8px;
}

.section-sub-fr-light {
  color: rgba(255, 255, 255, 0.75);
  margin-top: 6px;
}

/* ─── Copy pair (used in difference section intro) ─── */
.section-copy-pair {
  display: grid;
  gap: 10px;
  max-width: 680px;
  margin-inline: auto;
  margin-top: 16px;
}

.section-copy-pair p {
  font-size: 1rem;
  line-height: 1.72;
  color: var(--muted);
}

.fr-copy { color: var(--text-fr); font-style: italic; }

/* ─── Difference / comparison section ─── */
.comparison-grid {
  display: grid;
  gap: 18px;
}

/* Cards: always left-aligned regardless of outer centering */
.comparison-card {
  position: relative;
  padding: 26px 28px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  text-align: left;
}

.comparison-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 20px 0 0 20px;
  background: rgba(148, 163, 184, 0.45);
}

.comparison-card-strong {
  border-color: rgba(13, 148, 136, 0.35);
  background: linear-gradient(180deg, rgba(13, 148, 136, 0.06), rgba(13, 148, 136, 0.02));
}

.comparison-card-strong::before {
  background: linear-gradient(180deg, var(--teal), rgba(13, 148, 136, 0.45));
}

.comparison-card-header {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.comparison-label,
.comparison-label-fr {
  margin: 0;
  font-weight: 800;
  line-height: 1.25;
}

.comparison-label { font-size: 1.02rem; color: var(--text); }
.comparison-label-fr { font-size: 0.98rem; color: var(--text-fr); font-style: italic; }

.comparison-intro,
.comparison-intro-fr {
  line-height: 1.6;
  margin-bottom: 6px;
}

.comparison-intro { color: var(--muted); font-size: 0.93rem; }
.comparison-intro-fr { color: var(--text-fr); font-style: italic; font-size: 0.90rem; }

.comparison-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding-left: 1.2rem;
}

.comparison-list li { line-height: 1.45; color: var(--text); font-size: 0.93rem; }
.comparison-list li::marker { color: var(--teal); }
.comparison-list li span { display: block; }

.fr-line { margin-top: 4px; color: var(--text-fr); font-style: italic; font-size: 0.90em; }

@media (min-width: 820px) {
  .comparison-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
}

/* ─── Workflow section ─── */
.workflow {
  display: grid;
  gap: 16px;
}

.workflow-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.step-num {
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--teal);
  opacity: 0.60;
  line-height: 1;
  margin-bottom: 12px;
}

.workflow-card h3 {
  font-size: 0.97rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.workflow-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}

@media (min-width: 640px) {
  .workflow { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .workflow { grid-template-columns: repeat(4, 1fr); }
}

/* ─── Capabilities section ─── */
.caps-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}

.cap-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.cap-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--teal-faint);
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.cap-card h3 {
  font-size: 0.93rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.cap-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.60;
}

@media (min-width: 720px) {
  .caps-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ─── OCR trust section ─── */
.trust-grid {
  display: grid;
  gap: 16px;
}

.trust-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.trust-check {
  font-size: 1rem;
  color: var(--teal);
  font-weight: 900;
  margin-bottom: 8px;
  line-height: 1;
}

.trust-card h3 {
  font-size: 0.93rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.trust-card p {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.65;
}

@media (min-width: 640px) {
  .trust-grid { grid-template-columns: 1fr 1fr; }
}

/* ─── Canada section ─── */
.canada-grid {
  display: grid;
  gap: 16px;
}

.canada-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.canada-card h3 {
  font-size: 0.97rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.canada-card p {
  font-size: 0.91rem;
  color: var(--muted);
  line-height: 1.70;
}

@media (min-width: 720px) {
  .canada-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ─── Shared French card classes ─── */
.card-fr-title {
  font-size: 0.90rem;
  font-weight: 600;
  font-style: italic;
  color: var(--text-fr);
  margin-bottom: 10px;
  line-height: 1.35;
}

.card-fr {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-fr);
  line-height: 1.60;
  margin-top: 8px;
}

/* ─── Coming soon / store section ─── */
.store-grid {
  display: grid;
  gap: 16px;
}

.store-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r);
  padding: 26px;
  text-align: left;
}

.store-platform {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 10px;
}

.store-card h3 {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.store-fr-title {
  font-size: 0.92rem;
  font-weight: 600;
  font-style: italic;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 10px;
}

.store-card p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.store-fr {
  font-style: italic;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 6px;
}

.store-pill {
  display: inline-flex;
  align-items: center;
  margin-top: 20px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.90);
  font-size: 0.80rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

@media (min-width: 640px) {
  .store-grid { grid-template-columns: 1fr 1fr; }
}

/* ─── Footer ─── */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
}

.footer-link {
  font-size: 0.86rem;
  color: var(--muted);
  transition: color 140ms;
}

.footer-link:hover { color: var(--teal); }

.footer-copy {
  font-size: 0.79rem;
  color: var(--muted);
}

/* ─── Mobile refinements ─── */
@media (max-width: 599px) {
  /* Tighter container on small screens */
  .container {
    padding-inline: 18px;
  }

  .hero-logo-tile {
    width: 92px;
    height: 92px;
    border-radius: 24px;
  }

  .hero-logo-car {
    font-size: 2.65rem;
  }

  .hero-logo-bolt {
    right: 12px;
    bottom: 10px;
    font-size: 1.2rem;
  }

  .hero-logo-title {
    font-size: 1.4rem;
  }

  /* Slightly more section breathing room */
  .section {
    padding-block: clamp(44px, 9vw, 64px);
  }

  /* Section header stays centered, tighter max-width */
  .section-header {
    margin-bottom: 32px;
  }

  /* Full-width CTAs on mobile for easier tapping */
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 320px;
  }

  /* Cards get consistent comfortable padding */
  .workflow-card,
  .cap-card,
  .trust-card,
  .canada-card,
  .comparison-card,
  .store-card {
    padding: 22px 20px;
  }

  /* 2-col caps grid can get tight on very small phones */
  .caps-grid {
    grid-template-columns: 1fr;
  }
}
