/* ===========================================================
   JoeDoe — shared stylesheet
   Brand: Navy #000066 (employer spend) / Yellow #FFEE66 (personal spend)
   Font: Roboto
   =========================================================== */

:root {
  --navy: #000066;
  --navy-soft: #14146b;
  --yellow: #ffee66;
  --yellow-soft: #fff6c2;
  --ink: #0b0b1f;
  --paper: #ffffff;
  --paper-dim: #f6f6fb;
  --line: #e2e2ee;
  --muted: #55597a;
  --danger: #c8102e;
  --radius: 16px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { font-weight: 700; margin: 0 0 .5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--yellow-soft);
  border: 1px solid var(--yellow);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--yellow); color: var(--navy); }
.btn-primary:hover { box-shadow: 0 8px 24px rgba(255,238,102,.55); }
.btn-outline { background: transparent; color: var(--paper); border-color: rgba(255,255,255,.4); }
.btn-outline:hover { border-color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { box-shadow: 0 8px 24px rgba(0,0,102,.25); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }

/* ---------- header/nav ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: background-color .25s ease, border-color .25s ease;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max);
  margin: 0 auto;
}
.nav .logo { display: flex; align-items: center; gap: 10px; }
.nav .logo svg { height: 30px; width: auto; }
.nav .logo svg path { transition: fill .25s ease; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a.navlink { font-weight: 500; color: var(--ink); font-size: 15px; transition: color .25s ease; }
.nav-links a.navlink:hover { color: var(--navy); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .btn { transition: transform .15s ease, box-shadow .15s ease, background .25s ease, color .25s ease, border-color .25s ease; }

/* hamburger toggle (mobile only) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: background-color .25s ease;
}
header.site.on-dark .nav-toggle span { background: #fff; }

@media (max-width: 880px) {
  .nav { flex-wrap: wrap; }
  .nav-toggle { display: flex; }
  .nav-links, .nav-cta { display: none; }

  header.site.menu-open .nav-links,
  header.site.menu-open .nav-cta {
    display: flex;
    width: 100%;
  }
  header.site.menu-open .nav-links {
    order: 10;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin-top: 14px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }
  header.site.menu-open .nav-links a.navlink { width: 100%; padding: 10px 0; }
  header.site.menu-open .nav-cta {
    order: 11;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 14px;
  }
  header.site.on-dark.menu-open .nav-links { border-top-color: rgba(255,255,255,.14); }
}

/* ---------- wink mascot icon (assets/joedoe-wink.riv, static fallback SVG) ---------- */
.wink-icon {
  display: inline-block;
  flex-shrink: 0;
  border-radius: 50%;
  box-sizing: border-box;
  background: url('assets/joedoe-wink.svg') center/contain no-repeat;
}
.wink-icon canvas { display: block; width: 100%; height: 100%; }
.wink-icon--sm { width: 32px; height: 32px; }
.wink-icon--lg { display: block; width: 72px; height: 72px; margin-bottom: 20px; cursor: pointer; }

/* badge/coin backing so the icon's navy ring stays legible when placed
   directly on a navy section (e.g. the hero) — the icon's own outer
   stroke is navy, which disappears without a light plate behind it */
.wink-icon--badge {
  background-color: #fff;
  padding: 14px;
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
}

/* hero visual: a virtual-card mockup (real card aspect ratio) with the
   animated mark riding on it in its own light plate for contrast */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.vcard {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1.586 / 1;
  background: var(--yellow);
  border-radius: 22px;
  box-shadow: 0 30px 70px rgba(0,0,0,.35);
}
.vcard-logo {
  position: absolute;
  top: 7%;
  left: 7%;
  height: 56px;
  width: auto;
}
.vcard-pan {
  position: absolute;
  bottom: 7%;
  left: 7%;
  color: var(--navy);
  font-size: clamp(15px, 4vw, 19px);
  font-weight: 700;
  letter-spacing: .1em;
}
.wink-icon--card {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  width: 38%;
  aspect-ratio: 1;
  background-color: #fff;
  box-shadow: 0 10px 26px rgba(0,0,0,.25);
}
.wallet-note { color: rgba(255,255,255,.75); font-size: 13.5px; text-align: center; max-width: 34ch; }
@media (max-width: 520px) {
  .vcard-logo { height: 42px; }
}

/* header over a dark (navy) section */
header.site.on-dark {
  background: rgba(0,0,102,.92);
  border-bottom-color: rgba(255,255,255,.12);
}
header.site.on-dark .nav .logo svg path { fill: #fff; }
header.site.on-dark .nav-links a.navlink { color: rgba(255,255,255,.85); }
header.site.on-dark .nav-links a.navlink:hover { color: var(--yellow); }
header.site.on-dark .nav-cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
header.site.on-dark .nav-cta .btn-ghost:hover { border-color: #fff; }
header.site.on-dark .nav-cta .btn-dark { background: var(--yellow); color: var(--navy); }
header.site.on-dark .nav-cta .btn-dark:hover { box-shadow: 0 8px 24px rgba(255,238,102,.35); }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #fff;
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,238,102,.18) 0%, rgba(255,238,102,0) 70%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  color: #fff;
  margin-bottom: 20px;
}
.hero h1 .hl { color: var(--yellow); }
.hero p.lead {
  font-size: 18px;
  color: rgba(255,255,255,.82);
  max-width: 46ch;
}
.hero-ctas { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.hero-stats .stat b { display: block; font-size: 26px; color: var(--yellow); }
.hero-stats .stat span { font-size: 13px; color: rgba(255,255,255,.65); }


/* ---------- sections ---------- */
section { padding: 88px 0; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); }
.section-head p { font-size: 17px; }
.bg-dim { background: var(--paper-dim); }
.bg-navy { background: var(--navy); color: #fff; }
.bg-navy p { color: rgba(255,255,255,.75); }
.bg-navy h2, .bg-navy h3 { color: #fff; }

/* problem cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card .icon-badge {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--yellow-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}
.card h3 { font-size: 19px; }
.card p { font-size: 15px; margin-bottom: 0; }
.card .stat-line { font-weight: 700; color: var(--navy); font-size: 14px; margin-top: 12px; }

.card.dark { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.card.dark .icon-badge { background: rgba(255,238,102,.15); }
.card.dark h3 { color: #fff; }
.card.dark p { color: rgba(255,255,255,.75); }

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  background: #fff;
  position: relative;
}
.step .num {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--yellow);
  font-weight: 700;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.step h4 { font-size: 15px; margin-bottom: 6px; }
.step p { font-size: 13px; margin: 0; }

/* table */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
table.compare { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
table.compare th, table.compare td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14.5px; }
table.compare th { background: var(--paper-dim); font-weight: 700; color: var(--navy); }
table.compare td.win { color: var(--navy); font-weight: 700; }
table.compare tr:last-child td { border-bottom: none; }
@media (max-width: 640px) {
  table.compare { min-width: 560px; }
  table.compare th, table.compare td { padding: 12px 14px; font-size: 13.5px; }
}

/* pricing */
.pricing-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  background: #fff;
}
.pricing-card.featured { border-color: var(--navy); box-shadow: 0 12px 32px rgba(0,0,102,.1); }
.pricing-card .price { font-size: 40px; font-weight: 700; color: var(--navy); }
.pricing-card .price span { font-size: 14px; font-weight: 500; color: var(--muted); }
.pricing-card ul { padding-left: 0; list-style: none; margin: 20px 0; }
.pricing-card ul li { padding: 6px 0; font-size: 14.5px; color: var(--muted); }
.pricing-card ul li::before { content: "✓ "; color: var(--navy); font-weight: 700; }

/* CTA band */
.cta-band {
  background: var(--yellow);
  border-radius: 24px;
  padding: 56px 40px;
  text-align: center;
}
.cta-band h2 { color: var(--navy); }
.cta-band p { color: rgba(0,0,51,.7); max-width: 52ch; margin-inline: auto; }

/* tracks (partners page) */
.track {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  background: #fff;
}
.track .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--yellow-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pill { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 13px; color: var(--muted); }

/* market metrics */
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 760px) { .metric-row { grid-template-columns: 1fr; } }
.metric {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
}
.metric .label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.metric .value { font-size: 34px; font-weight: 700; color: var(--navy); margin: 8px 0; }
.metric p { font-size: 13.5px; margin: 0; }

/* roadmap */
.roadmap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 860px) { .roadmap { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .roadmap { grid-template-columns: 1fr; } }
.roadmap .stage {
  border-left: 3px solid var(--yellow);
  padding-left: 16px;
}
.roadmap .stage .q { font-weight: 700; color: var(--navy); font-size: 13px; letter-spacing: .05em; text-transform: uppercase; }
.roadmap .stage h4 { font-size: 15px; margin: 6px 0; }
.roadmap .stage p { font-size: 13.5px; margin: 0; }

/* footer */
footer.site {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: 56px 0 32px;
}
footer.site p { color: var(--yellow); }
footer.site .foot-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
footer.site .logo svg path { fill: #fff; }
footer.site .foot-cols { display: flex; gap: 56px; flex-wrap: wrap; }
footer.site .foot-col h5 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
footer.site .foot-col a { display: block; font-size: 14px; color: rgba(255,255,255,.65); margin-bottom: 10px; }
footer.site .foot-col a:hover { color: var(--yellow); }
footer.site .fine { padding-top: 24px; display: flex; justify-content: space-between; font-size: 13px; flex-wrap: wrap; gap: 12px; }

.badge-strip { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; justify-content: center; margin-top: 28px; opacity: .8; font-size: 13px; color: var(--muted); }

/* ---------- small-screen spacing ---------- */
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  section { padding: 56px 0; }
  .hero { padding: 72px 0 48px; }
  .section-head { margin-bottom: 36px; }
  .cta-band { padding: 40px 24px; }
  .pricing-card { padding: 24px; }
  footer.site { padding: 48px 0 28px; }
  footer.site .foot-cols { gap: 32px; }
}
