@import url('design-system/colors_and_type.css');

/* =========================================================================
   ElasticBadge Marketing — Bespoke Styles
   ========================================================================= */

:root {
  --eb-cream:  #fff6ec;
  --eb-cream-2:#ffeada;
  --eb-ink:    #1a1410;
  --eb-sand:   #f2e7dc;
  --paper:     #fdf7ed;
  --paper-line:#e7d9c6;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--eb-ink);
  font-weight: 500;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

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

/* ---------- Layout ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--eb-primary-700);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before,
.eyebrow::after {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--eb-primary);
  flex: 0 0 auto;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(26, 20, 16, 0.06);
}
.nav-inner {
  height: 68px;
  display: flex;
  align-items: center;
}
/* Equal-flex side rails — brand and CTA each take half the remaining space
   so nav-links is forced to true visual center between them. */
.nav-inner > .nav-brand,
.nav-inner > .nav-cta {
  flex: 1 1 0;
  min-width: 0;
}
.nav-inner > .nav-brand { justify-content: flex-start; }
.nav-inner > .nav-cta   { justify-content: flex-end; }
.nav-inner > .nav-links { flex: 0 0 auto; }
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.nav-brand .mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--eb-primary);
  display: grid;
  place-items: center;
  color: white;
  box-shadow: 0 4px 12px rgba(223, 132, 72, 0.35);
}
.nav-brand .mark svg { width: 20px; height: 20px; }
.nav-brand .sub {
  font-size: 11px;
  color: var(--fg-3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-left: 4px;
  padding-left: 10px;
  border-left: 1px solid var(--border-1);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--fg-2);
  transition: all 120ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nav-links a:hover { background: var(--eb-tint-50); color: var(--eb-primary-700); }
.nav-cta {
  display: flex;
  gap: 8px;
  align-items: center;
}
/* "Log in" is an outlined .btn.btn-sm beside Book a demo, in the top bar on every screen size.
   The user (Nov 22 2026): "there's no button at the top for the app login... how will people know?"
   Dark text with the outline in the page color: the -700 colors are under 4.5 to 1 as small text
   on the pass, class and umbrella themes, but clear 3 to 1 as a border. */
.nav-login {
  background: white;
  color: var(--eb-ink);
  box-shadow: inset 0 0 0 1.5px var(--eb-primary-700);
}
.nav-login:hover { background: var(--eb-tint-50); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  transition: all 150ms cubic-bezier(0.2, 0.8, 0.2, 1);
  white-space: nowrap;
}
/* Buttons are in normal capitalization with no trailing arrow (design audit 270, picked Nov 16 2026).
   Icons that lead a button, like the sparkle on "Run a sample check", stay. */
.btn-primary {
  background: linear-gradient(180deg, #e89a6a 0%, #cc7238 100%);
  color: white;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 2px 4px rgba(138, 76, 36, 0.18), 0 8px 20px rgba(138, 76, 36, 0.22);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 3px 6px rgba(138, 76, 36, 0.22), 0 12px 28px rgba(138, 76, 36, 0.28); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost {
  background: transparent;
  color: var(--eb-ink);
  box-shadow: inset 0 0 0 1.5px rgba(26,20,16,0.12);
}
.btn-ghost:hover { background: rgba(26,20,16,0.04); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 16px 26px; font-size: 16px; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 72px 0 96px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 900px 500px at 15% 10%, rgba(253, 241, 231, 0.9), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 60%, rgba(248, 220, 194, 0.6), transparent 60%),
    var(--eb-cream);
}
.hero::before {
  /* subtle grid */
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(138,76,36,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(138,76,36,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 100%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 5.4vw, 72px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 20px 0 24px;
  color: var(--eb-ink);
}
.hero h1 .swap {
  display: inline-block;
  position: relative;
  color: var(--eb-primary);
}
.hero h1 .swap::after {
  content: '';
  position: absolute;
  left: -4px; right: -4px;
  bottom: 6px;
  height: 14px;
  background: rgba(223,132,72,0.22);
  z-index: -1;
  border-radius: 3px;
  transform: skewX(-8deg);
}
.hero p.lede {
  font-size: 20px;
  line-height: 1.45;
  color: var(--ink-700);
  max-width: 520px;
  margin: 0 0 28px;
  font-weight: 500;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-proof {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--ink-600);
  font-weight: 600;
}
.hero-proof .avatars { display: flex; }
.hero-proof .avatars > * {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid white;
  margin-left: -8px;
  font-size: 12px;
  display: grid; place-items: center;
  color: white;
  font-weight: 700;
}
.hero-proof .avatars > *:first-child { margin-left: 0; }
.hero-proof .avatars.product-icons > * {
  width: 36px; height: 36px;
  background: white;
  border: 1px solid var(--border-1);
  box-shadow: 0 0 0 2px white, 0 2px 6px rgba(15,26,36,0.08);
  margin-left: -6px;
}
.hero-proof .avatars.product-icons > *:first-child { margin-left: 0; }
.hero-proof .avatars.product-icons img { width: 68%; height: 68%; display: block; }

/* ---------- Hero right side: split visual ---------- */
.hero-visual {
  position: relative;
  height: 560px;
}

/* Chaotic paper stack (left back) */
.paper-stack {
  position: absolute;
  left: -20px; top: 30px;
  width: 280px;
  height: 360px;
  transform: rotate(-7deg);
}
.paper-stack .sheet {
  position: absolute;
  inset: 0;
  background: var(--paper);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(26,20,16,0.12), 0 2px 6px rgba(26,20,16,0.08);
  padding: 20px 20px;
  font-family: 'Caveat', 'Kalam', cursive;
}
.paper-stack .sheet:nth-child(1) { transform: translate(12px, 14px) rotate(5deg); background: #fef2dc; }
.paper-stack .sheet:nth-child(2) { transform: translate(6px, 8px) rotate(-2deg); background: #fdf0d8;}
.paper-stack .sheet:nth-child(3) { transform: translate(0, 0) rotate(0); }

.sign-in-sheet { font-family: 'Caveat', 'Kalam', cursive; }
.sign-in-sheet h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin: 0 0 14px;
  color: var(--eb-ink);
  text-align: center;
  border-bottom: 2px solid var(--paper-line);
  padding-bottom: 8px;
}
.sign-in-sheet .row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 8px;
  padding: 7px 0;
  font-size: 20px;
  border-bottom: 1px solid var(--paper-line);
  color: #3a2a1a;
  line-height: 1;
}
.sign-in-sheet .row:nth-child(2) { transform: rotate(0.4deg); }
.sign-in-sheet .row:nth-child(3) { transform: rotate(-0.3deg); font-size: 22px; }
.sign-in-sheet .row:nth-child(4) { transform: rotate(0.2deg); }
.sign-in-sheet .row:nth-child(5) { transform: rotate(-0.6deg); }
.sign-in-sheet .row:nth-child(6) { color: #8e6540; font-style: italic; }
.sign-in-sheet .scribble { letter-spacing: -0.03em; }

/* Hero sticky notes (chaos side labels) */
.label-chaos, .label-order {
  position: absolute;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 3;
}
.label-chaos {
  left: 10px; top: -6px;
  background: #fbe4e4; color: var(--danger);
  transform: rotate(-5deg);
}
.label-order {
  right: 10px; top: 490px;
  background: var(--ep-tint-100); color: var(--ep-secondary);
  transform: rotate(3deg);
}

/* Floating stamp on paper stack */
.stamp {
  position: absolute;
  right: -14px; top: 90px;
  width: 110px; height: 110px;
  border: 4px solid var(--danger);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--danger);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transform: rotate(18deg);
  opacity: 0.85;
  z-index: 4;
  background: rgba(255,246,236, 0.3);
  line-height: 0.95;
}

/* ---------- Section common ---------- */
section { padding: 72px 0; position: relative; }
section.alt { background: var(--eb-cream); }
section.dark { background: var(--eb-ink); color: var(--white); }
section.dark .section-title { color: white; }
section.dark .section-sub { color: rgba(255,255,255,0.7); }

.section-head {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}
.section-head.left { text-align: left; margin-left: 0; margin-right: 0; max-width: 640px; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.02em;
  margin: 8px 0 10px;
  color: var(--eb-ink);
}
.section-sub {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-600);
  margin: 0;
  font-weight: 500;
}

/* ---------- Logo cloud ---------- */
.logos {
  padding: 48px 0 48px;
  background: white;
  border-top: 1px solid var(--border-1);
  border-bottom: 1px solid var(--border-1);
}
.logos-title {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--fg-3);
  margin-bottom: 24px;
  text-wrap: balance;
}
.logos-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
  opacity: 0.7;
}
.logo-item {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink-700);
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 640px) {
  .logos-row { justify-content: center; gap: 14px 16px; }
  .logo-item { font-size: 18px; }
}

@media (max-width: 359px) {
  .logo-item { font-size: 16px; }
}

/* ---------- How it works — printer strip ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  position: relative;
}
.step {
  position: relative;
  padding: 28px 24px;
  background: white;
  border-radius: 18px;
  border: 1px solid var(--border-1);
  box-shadow: var(--shadow-sm);
  transition: all 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step .n {
  display: inline-grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--eb-ink);
  color: white;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 16px;
}
.step h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--eb-ink);
  letter-spacing: -0.01em;
}
.step p {
  font-size: 14px;
  color: var(--ink-600);
  line-height: 1.5;
  margin: 0;
  font-weight: 500;
}
.step .visual {
  height: 140px;
  margin-bottom: 18px;
  background: var(--eb-tint-50);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}

/* ---------- Features grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature {
  background: white;
  border: 1px solid var(--border-1);
  border-radius: 16px;
  padding: 22px;
  transition: all 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.feature:hover {
  border-color: var(--eb-primary);
  box-shadow: 0 12px 32px rgba(223,132,72,0.12);
  transform: translateY(-2px);
}
.feature .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--eb-tint-50);
  color: var(--eb-primary-700);
  display: grid; place-items: center;
  margin-bottom: 14px;
  transition: all 200ms;
}
.feature:hover .icon { background: var(--eb-primary); color: white; transform: rotate(-6deg) scale(1.05); }
.feature h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--eb-ink);
  letter-spacing: -0.01em;
}
.feature p {
  font-size: 14px;
  color: var(--ink-600);
  line-height: 1.55;
  margin: 0;
  font-weight: 500;
}
.feature.wide { grid-column: span 2; }
/* A lone last feature card (ElasticBadge has seven) spans the row with its icon beside the text.
   The user picked this in the design audit (266A, Nov 16 2026). */
@media (min-width: 961px) {
  .features > .feature:last-child:nth-child(3n + 1) { grid-column: 1 / -1; display: grid; grid-template-columns: 44px minmax(0, 640px); column-gap: 16px; align-items: start; }
  .features > .feature:last-child:nth-child(3n + 1) .icon { grid-row: span 2; margin: 0; }
}

@keyframes mpNudge {
  0%, 100% { transform: translateX(0); }
  45%, 60% { transform: translateX(20px); }
}

/* ---------- Gallery of badge types ---------- */
.gallery {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 40px 0 0;
  min-height: 360px;
  perspective: 1200px;
}

/* ---------- Testimonials ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.quote {
  background: white;
  padding: 32px;
  border-radius: 20px;
  border: 1px solid var(--border-1);
  position: relative;
  box-shadow: var(--shadow-sm);
}
.quote::before {
  content: '“';
  position: absolute;
  top: -18px; left: 24px;
  font-family: 'Georgia', serif;
  font-size: 80px;
  color: var(--eb-primary);
  line-height: 1;
}
.quote p {
  font-size: 17px;
  line-height: 1.5;
  color: var(--eb-ink);
  font-weight: 500;
  margin: 0 0 20px;
}
.quote .who { display: flex; align-items: center; gap: 12px; }
.quote .who .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
}
.quote .who .meta { font-size: 13px; }
.quote .who .meta .name { font-weight: 700; color: var(--eb-ink); }
.quote .who .meta .role { color: var(--ink-500); margin-top: 2px; }

/* Single real testimonial: feature it large and centered instead of a 3-up grid. */
.quotes.single { grid-template-columns: 1fr; max-width: 780px; margin: 0 auto; }
.quotes.pair { grid-template-columns: 1fr 1fr; max-width: 960px; margin: 0 auto; }
.quote.featured { padding: 40px 44px; }
.quote.featured p { font-size: clamp(19px, 1.9vw, 23px); line-height: 1.5; }

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 56px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin: 48px 0 0;
}
/* A strip with three numbers uses three columns, and stacks on phones (design audit 262A, picked Nov 16 2026). */
.stats:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .stats:has(> :nth-child(3):last-child) { grid-template-columns: 1fr; gap: 28px; } }
.stat { text-align: center; }
.stat .num {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  color: var(--eb-primary);
  letter-spacing: -0.03em;
}
.stat .lbl {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---------- Pricing / CTA ---------- */
.cta-card {
  background: linear-gradient(135deg, var(--eb-primary) 0%, var(--eb-secondary) 100%);
  border-radius: 28px;
  padding: 72px 60px;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(138,76,36,0.25);
}
.cta-card::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.1) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at top right, black 20%, transparent 70%);
}
.cta-card h2 {
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: white;
  max-width: 720px;
}
.cta-card p {
  font-size: 18px;
  max-width: 580px;
  margin: 0 0 28px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
}
.cta-inner { position: relative; z-index: 1; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: white;
  border: 1px solid var(--border-1);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 150ms;
}
.faq-item[open] { border-color: var(--eb-primary); box-shadow: var(--shadow-sm); }
.faq-q {
  padding: 20px 24px;
  font-weight: 700;
  font-size: 17px;
  color: var(--eb-ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q .chev {
  width: 20px; height: 20px;
  flex: 0 0 auto;
  transition: transform 200ms;
}
.faq-item[open] .faq-q .chev { transform: rotate(180deg); }
/* Chrome and Edge: the answer glides open and shut. Browsers without ::details-content open it instantly, as before. */
@supports (interpolate-size: allow-keywords) {
  .faq-item { interpolate-size: allow-keywords; }
  .faq-item::details-content { block-size: 0; overflow: hidden; transition: block-size 260ms cubic-bezier(0.4, 0, 0.2, 1), content-visibility 260ms allow-discrete; }
  .faq-item[open]::details-content { block-size: auto; }
}
@media (prefers-reduced-motion: reduce) { .faq-item::details-content { transition: none; } }
.faq-a {
  padding: 0 24px 22px;
  color: var(--ink-600);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 500;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--eb-ink);
  color: rgba(255,255,255,0.7);
  padding: 72px 0 36px;
}
.footer a { transition: color 150ms ease; }
.footer a:hover { color: var(--eb-primary); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer h4 {
  color: white;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; font-size: 14px; }
.footer .brand {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer .tag {
  font-size: 14px;
  max-width: 320px;
  line-height: 1.5;
}

.sibling-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0 48px;
  padding: 24px;
  background: rgba(255,255,255,0.04);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
}
.sibling {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 12px;
  transition: all 150ms;
  cursor: pointer;
}
.sibling:hover { background: rgba(255,255,255,0.04); }
.sibling .dot {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  color: white;
  flex: 0 0 auto;
}
.sibling .name {
  font-weight: 800;
  font-size: 15px;
  color: white;
  letter-spacing: -0.01em;
}
.sibling .desc {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-top: 2px;
  font-weight: 500;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
/* On phones the legal links drop under the copyright line instead of squeezing beside it,
   which stacked "Terms of Service" one word per line. */
@media (max-width: 640px) {
  .footer-bottom { flex-wrap: wrap; gap: 12px 24px; }
  .footer-bottom a { white-space: nowrap; }
}

/* ---------- Tweaks panel ---------- */
.tweaks-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  border: 1px solid var(--border-1);
  padding: 18px 20px;
  width: 320px;
  display: none;
  font-family: var(--font-body);
}
.tweaks-panel.open { display: block; }
.tweaks-panel h4 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--eb-ink);
}
.tweak-row { margin-bottom: 18px; }
.tweak-row:last-child { margin-bottom: 0; }
.tweak-row label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-700);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.tweak-row input[type=range] {
  width: 100%;
  accent-color: var(--eb-primary);
}
.tweak-row .opts {
  display: flex;
  gap: 6px;
}
.tweak-row .opt {
  flex: 1;
  padding: 8px;
  border: 1.5px solid var(--border-1);
  background: white;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-700);
  cursor: pointer;
  transition: all 120ms;
}
.tweak-row .opt.active {
  border-color: var(--eb-primary);
  background: var(--eb-tint-50);
  color: var(--eb-primary-700);
}
.tweak-row .val {
  font-size: 11px;
  color: var(--fg-3);
  margin-top: 4px;
  font-weight: 600;
}

/* ---------- Security section ---------- */
.bg-check {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.bg-check-vis {
  background: white;
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-1);
}

/* ---------- Responsive basics ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 500px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .feature.wide { grid-column: span 2; }
  .quotes, .quotes.pair { grid-template-columns: 1fr; }
  .bg-check { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sibling-products { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

/* =========================================================================
   Product theming — body.theme-pass / body.theme-class remap --eb-* tokens
   so every shared rule adopts the product color automatically.
   ========================================================================= */
body.theme-pass {
  --eb-primary:     #84cc6e;
  --eb-primary-600: #6bb857;
  --eb-primary-700: #4f9c3f;
  --eb-secondary:   #35843c;
  --eb-tint-50:     #edf8e7;
  --eb-tint-100:    #d7efc9;
  --eb-cream:       #eef8e7;
  --eb-cream-2:     #d7efc9;
  --eb-ink:         #0f1f0c;
  --paper:          #f7fcee;
  --paper-line:     #c6dfb1;
}
body.theme-pass .btn-primary {
  background: linear-gradient(180deg, #9ad685 0%, #5fad4b 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 2px 4px rgba(53,132,60,0.18), 0 8px 20px rgba(53,132,60,0.22);
}
body.theme-pass .btn-primary:hover {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 3px 6px rgba(53,132,60,0.22), 0 12px 28px rgba(53,132,60,0.28);
}
body.theme-pass .cta-card {
  background: linear-gradient(135deg, #84cc6e 0%, #35843c 100%);
  box-shadow: 0 30px 60px rgba(53,132,60,0.25);
}
body.theme-pass .feature:hover { box-shadow: 0 12px 32px rgba(132,204,110,0.18); }
body.theme-pass .nav-brand .mark { box-shadow: 0 4px 12px rgba(132,204,110,0.35); }
body.theme-pass .hero h1 .swap { color: var(--eb-primary-700); }
body.theme-pass .hero h1 .swap::after { background: rgba(132,204,110,0.25); }

/* Default umbrella / blog theme — blue → teal → green fade
   Aligns with --brand-gradient (blue-teal-green) so the umbrella
   reads as the cross-product, multi-color brand instead of one product. */
body.theme-edlastics {
  --eb-primary:     #5fb39a;  /* mid teal — accent text + solid fills */
  --eb-primary-600: #4ea48a;
  --eb-primary-700: #3e8c75;  /* deeper teal — emphasis text */
  --eb-secondary:   #336387;  /* deep blue — paired accents */
  --eb-tint-50:     #ecf7f3;
  --eb-tint-100:    #cfe9df;
  --eb-cream:       #eef8f4;
  --eb-cream-2:     #dceeea;
  --eb-ink:         #0e2823;
  --paper:          #f0faf6;
  --paper-line:     #b7d8c9;
}
body.theme-edlastics .btn-primary {
  background: linear-gradient(115deg, #4a9bc9 0%, #5fb39a 50%, #6fc26a 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 2px 4px rgba(95,179,154,0.20), 0 8px 20px rgba(95,179,154,0.25);
}
body.theme-edlastics .btn-primary:hover {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 3px 6px rgba(95,179,154,0.24), 0 12px 28px rgba(95,179,154,0.32);
}
body.theme-edlastics .cta-card {
  background: linear-gradient(115deg, #4a9bc9 0%, #5fb39a 55%, #6fc26a 100%);
  box-shadow: 0 30px 60px rgba(95,179,154,0.28);
}
body.theme-edlastics .feature:hover { box-shadow: 0 12px 32px rgba(95,179,154,0.20); }
body.theme-edlastics .nav-brand .mark { box-shadow: 0 4px 12px rgba(95,179,154,0.38); }
body.theme-edlastics .hero h1 .swap { color: var(--eb-primary-700); }
body.theme-edlastics .hero h1 .swap::after { background: rgba(95,179,154,0.25); }
body.theme-edlastics .nav-links a.active-link::after { background: var(--eb-primary); }

body.theme-class {
  --eb-primary:     #65A6D8;
  --eb-primary-600: #4b93c9;
  --eb-primary-700: #3b7eb2;
  --eb-secondary:   #336387;
  --eb-tint-50:     #eaf3fa;
  --eb-tint-100:    #d2e5f3;
  --eb-cream:       #edf5fb;
  --eb-cream-2:     #d2e5f3;
  --eb-ink:         #0d1a24;
  --paper:          #f0f7fc;
  --paper-line:     #b7d4e9;
}
body.theme-class .btn-primary {
  background: linear-gradient(180deg, #7ebae3 0%, #4486ba 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 2px 4px rgba(51,99,135,0.18), 0 8px 20px rgba(51,99,135,0.22);
}
body.theme-class .btn-primary:hover {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 3px 6px rgba(51,99,135,0.22), 0 12px 28px rgba(51,99,135,0.28);
}
body.theme-class .cta-card {
  background: linear-gradient(135deg, #65A6D8 0%, #336387 100%);
  box-shadow: 0 30px 60px rgba(51,99,135,0.25);
}
body.theme-class .feature:hover { box-shadow: 0 12px 32px rgba(101,166,216,0.18); }
body.theme-class .nav-brand .mark { box-shadow: 0 4px 12px rgba(101,166,216,0.35); }
body.theme-class .hero h1 .swap { color: var(--eb-primary-700); }
body.theme-class .hero h1 .swap::after { background: rgba(101,166,216,0.25); }

/* =========================================================================
   Umbrella / shared extras — used by index.html and product pages alike
   ========================================================================= */

/* Product pill in nav (umbrella homepage) */
.nav-brand .mark.grad {
  background: var(--brand-gradient);
  box-shadow: 0 4px 12px rgba(75,147,201,0.28);
}

/* 3-up product showcase on umbrella homepage */
.product-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}
.prod-card {
  position: relative;
  background: white;
  border: 1px solid var(--border-1);
  border-radius: 24px;
  padding: 32px 28px 28px;
  overflow: hidden;
  transition: all 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  min-height: 560px;
}
.prod-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 160px;
  background: linear-gradient(180deg, var(--prod-tint, #fdf1e7), transparent);
  pointer-events: none;
}
.prod-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(15,26,36,0.12);
  border-color: var(--prod-primary, var(--eb-primary));
}
.prod-card .prod-mark {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--prod-primary, var(--eb-primary));
  color: white;
  display: grid; place-items: center;
  box-shadow: 0 10px 22px var(--prod-shadow, rgba(223,132,72,0.32));
  position: relative; z-index: 1;
  margin-bottom: 20px;
}
.prod-card .prod-kicker {
  font-size: 16px;
  font-weight: 800;
  color: var(--prod-primary, var(--eb-primary));
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative; z-index: 1;
  margin-bottom: 10px;
}
.prod-card h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--eb-ink);
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  position: relative; z-index: 1;
}
.prod-card .prod-tagline {
  font-size: 15px;
  color: var(--ink-600);
  margin: 0 0 20px;
  line-height: 1.45;
  font-weight: 500;
  position: relative; z-index: 1;
}
.prod-card .prod-vis {
  height: 180px;
  margin: 0 -28px 22px;
  background: var(--prod-tint, #fdf1e7);
  position: relative;
  overflow: hidden;
  display: grid; place-items: center;
}
.prod-card .prod-bullets {
  list-style: none; padding: 0; margin: 0 0 24px;
  position: relative; z-index: 1;
}
.prod-card .prod-bullets li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-700);
  font-weight: 500;
  padding: 6px 0;
  line-height: 1.45;
}
.prod-card .prod-bullets li::before {
  content: '';
  width: 16px; height: 16px; margin-top: 2px;
  border-radius: 50%;
  background: var(--prod-primary, var(--eb-primary));
  flex: 0 0 auto;
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  mask-size: 12px; mask-repeat: no-repeat; mask-position: center;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  -webkit-mask-size: 12px; -webkit-mask-repeat: no-repeat; -webkit-mask-position: center;
}
.prod-card .prod-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--prod-primary, var(--eb-primary));
  font-size: 15px;
  align-self: flex-start;
  transition: gap 180ms;
}
.prod-card:hover .prod-cta { gap: 14px; }
/* The small label and Tour link use each product's deep color, so small text clears 4.5 to 1 on white
   (ElasticPass 4.6, ElasticClass 6.4, ElasticBadge 5.2). */
.prod-card[data-name="ElasticPass"] { --prod-text: #35843c; }
.prod-card[data-name="ElasticClass"] { --prod-text: #336387; }
.prod-card[data-name="ElasticBadge"] { --prod-text: #a35a28; }
.prod-card .prod-kicker, .prod-card .prod-cta { color: var(--prod-text, var(--prod-primary, var(--eb-primary))); }

/* Umbrella hero swap for 3 words */
.hero h1 .swap.blue { color: #3b7eb2; }
.hero h1 .swap.blue::after { background: rgba(101,166,216,0.22); }
.hero h1 .swap.green { color: #4f9c3f; }
.hero h1 .swap.green::after { background: rgba(132,204,110,0.22); }

/* Homepage "Why one company": three columns under a rule in the Edlastics teal, no boxes and no 01/02/03,
   since the three points aren't steps (design audit 267, picked Nov 16 2026). */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.pillar {
  padding: 22px 0 0;
  border-top: 3px solid var(--brand-gradient-mid, #5fb39a);
}
.pillar h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--eb-ink);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.pillar p {
  font-size: 15px;
  color: var(--ink-600);
  line-height: 1.5;
  font-weight: 500;
  margin: 0;
  max-width: 34ch;
}

/* Generic two-column layout (copy + visual) */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.two-col.narrow { gap: 48px; }
.two-col .col-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--eb-ink);
  margin: 8px 0 10px;
}
.two-col .col-copy p {
  font-size: 18px;
  color: var(--ink-600);
  line-height: 1.55;
  font-weight: 500;
  margin: 0 0 12px;
}

/* Resource cards grid (footer resource section) */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.res-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: white;
  border: 1px solid var(--border-1);
  border-radius: 14px;
  transition: all 180ms;
}
.res-card:hover {
  border-color: var(--eb-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.res-card .res-kicker {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg-3);
  margin-bottom: 8px;
}
.res-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--eb-ink);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.res-card p {
  font-size: 13px;
  color: var(--ink-600);
  line-height: 1.45;
  margin: 0;
  font-weight: 500;
}

/* Umbrella product cards — responsive */
@media (max-width: 960px) {
  .product-trio { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .resource-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   Blog (blog.html)
   ========================================================================= */
.blog-section { padding: 64px 0 96px; }
.blog-section .section-head { margin-bottom: 48px; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 18px;
  background: white;
  border: 1px solid var(--border-1);
  border-radius: 16px;
  border-top: 4px solid var(--cat-color, var(--eb-primary));
  transition: all 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
  text-decoration: none;
  color: inherit;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(15,26,36,0.10);
  border-color: var(--cat-color, var(--eb-primary));
}
.blog-card-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cat-deep, var(--eb-primary-700));
  margin-bottom: 12px;
}
.blog-card-cat-icon {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--cat-color, var(--eb-primary));
  color: white;
  flex: 0 0 auto;
}
.blog-card-time {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-500);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
}
.blog-card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--eb-ink);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.blog-card-excerpt {
  font-size: 13.5px;
  color: var(--ink-600);
  font-weight: 500;
  line-height: 1.5;
  margin: 0 0 18px;
  flex: 1;
}
.blog-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cat-deep, var(--eb-primary-700));
  align-self: flex-start;
  transition: gap 180ms;
}
.blog-card:hover .blog-card-cta { gap: 12px; }

/* ---- Single post layout ---- */
.blog-wrap { max-width: 760px; }
.blog-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-600);
  text-decoration: none;
  padding: 6px 0;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.blog-back:hover { color: var(--eb-primary-700); }

.blog-post-header { margin-bottom: 36px; }
.blog-post-logo { display: block; height: 64px; width: auto; margin-bottom: 20px; }
.blog-post-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cat-deep, var(--eb-primary-700));
  margin-bottom: 14px;
}
.blog-post-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  color: var(--eb-ink);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 18px;
}
.blog-post-excerpt {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-600);
  font-weight: 500;
  margin: 0;
  padding: 16px 0 0;
  border-top: 4px solid var(--cat-color, var(--eb-primary));
  max-width: 640px;
}

.blog-post-body {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-700);
  font-weight: 500;
}
.blog-post-body h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--eb-ink);
  letter-spacing: -0.02em;
  margin: 36px 0 12px;
  line-height: 1.2;
}
.blog-post-body h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  color: var(--eb-ink);
  letter-spacing: -0.01em;
  margin: 24px 0 8px;
}
.blog-post-body p { margin: 0 0 16px; }
.blog-post-body ul,
.blog-post-body ol {
  margin: 0 0 18px;
  padding-left: 22px;
}
.blog-post-body li { margin-bottom: 8px; }
.blog-callout {
  background: var(--eb-tint-50);
  border-left: 4px solid var(--eb-primary);
  margin: 24px 0;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--eb-ink);
  line-height: 1.5;
  border-radius: 0 10px 10px 0;
}

.blog-post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 48px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--border-1);
}

/* Active nav link — color change + native text underline.
   Using text-decoration (instead of an absolutely-positioned ::after) keeps
   the link box identical to its siblings, so vertical alignment in the flex
   row stays clean across browsers. */
.nav-links a.active-link {
  color: var(--eb-primary-700);
  background: transparent;
  text-decoration: underline;
  text-decoration-color: var(--eb-primary);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.nav-links a.active-link:hover { background: transparent; }

@media (max-width: 960px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-post-body { font-size: 16px; }
}

/* ---------- Products dropdown in nav ---------- */
.nav-links .has-drop { position: relative; }
.nav-links .has-drop > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.prod-drop {
  position: absolute;
  top: 100%;
  left: -8px;
  z-index: 60;
  width: 300px;
  /* Top padding doubles as a hover bridge to the parent link, eliminating the
     4px geometric gap that used to make the dropdown close mid-cursor-travel.
     No horizontal padding so item hover/active highlights extend edge-to-edge. */
  padding: 14px 0 6px;
  background: white;
  border-radius: 14px;
  border: 1px solid var(--border-1);
  box-shadow: 0 20px 48px rgba(15,26,36,0.14), 0 6px 16px rgba(15,26,36,0.08);
  overflow: hidden;
}
.has-drop > .prod-drop { opacity: 0; transform: translateY(-6px); visibility: hidden; pointer-events: none; transition: opacity 140ms ease, transform 140ms ease, visibility 0s 140ms; }
.has-drop.open > .prod-drop { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: opacity 180ms cubic-bezier(0.2,0.8,0.2,1), transform 180ms cubic-bezier(0.2,0.8,0.2,1), visibility 0s; }
@media (prefers-reduced-motion: reduce) { .has-drop > .prod-drop, .has-drop.open > .prod-drop { transition: none; } }
.prod-drop-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  transition: background 140ms;
}
.prod-drop-item:hover { background: var(--ink-50); }
.prod-drop-item.active { background: var(--eb-tint-50); }
.prod-drop-item .dot {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  color: white;
  flex: 0 0 auto;
}
.prod-drop-item .name {
  font-weight: 800;
  font-size: 14px;
  color: var(--eb-ink);
  letter-spacing: -0.01em;
}
.prod-drop-item .desc {
  font-size: 12px;
  color: var(--ink-500);
  margin-top: 1px;
  font-weight: 500;
}

/* ---------- Book a demo page ---------- */
.demo-page { padding: 64px 0 88px; background: var(--eb-cream); }
.demo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.demo-title { font-family: var(--font-display); font-size: clamp(34px, 4vw, 52px); font-weight: 800; line-height: 1.04; letter-spacing: -0.02em; margin: 14px 0 16px; text-wrap: balance; }
.demo-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.demo-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5; color: var(--ink-700); }
.demo-points svg { flex: 0 0 auto; margin-top: 3px; color: var(--eb-primary-700); }
/* What happens next: a real sequence, so the steps are numbered. */
.demo-steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; counter-reset: none; }
.demo-steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: center; font-size: 16px; line-height: 1.5; color: var(--ink-700); }
.demo-steps strong { color: var(--ink-900); }
.demo-step-num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--eb-primary-700); color: var(--white); font-family: var(--font-display); font-weight: 800; font-size: 16px; }
.demo-quote { margin: 30px 0 0; padding: 20px 22px; border-radius: var(--radius-lg, 14px); background: var(--eb-tint-50, #eef6f2); }
.demo-quote blockquote { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink-900); font-weight: 500; }
.demo-quote figcaption { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; color: var(--ink-500); }
.demo-quote figcaption strong { display: block; color: var(--ink-900); font-size: 15px; }
.demo-quote-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #65A6D8; color: var(--white); font-weight: 800; font-size: 13px; flex: 0 0 auto; }
/* What your demo covers: fills in from the role picked in the form. */
.demo-for { margin-top: 22px; padding: 18px 20px; border-radius: var(--radius-lg, 14px); background: var(--white); box-shadow: 0 1px 0 var(--ink-200), 0 12px 28px rgba(15, 26, 36, 0.06); border-left: 4px solid var(--ink-300); transition: border-color 200ms; }
.demo-for.has-role { border-left-color: var(--eb-primary-700); }
.demo-for-kicker { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--eb-primary-700); }
.demo-for-title { font-family: var(--font-display); font-size: 21px; font-weight: 800; line-height: 1.2; margin: 8px 0 10px; text-wrap: balance; }
.demo-for-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.demo-for-list li { display: flex; gap: 9px; align-items: flex-start; font-size: 15px; line-height: 1.45; color: var(--ink-700); }
.demo-for-list svg { flex: 0 0 auto; margin-top: 4px; color: var(--eb-primary-700); }
.demo-for-empty { margin: 8px 0 0; font-size: 15px; color: var(--ink-500); }
.demo-role-select { font-weight: 600; }
.demo-card { background: var(--white); border-radius: var(--radius-xl); padding: 26px 28px; box-shadow: 0 1px 0 var(--ink-200), 0 20px 48px rgba(15, 26, 36, 0.08); display: grid; gap: 14px; }
.demo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.demo-field { display: grid; gap: 5px; min-width: 0; border: 0; padding: 0; margin: 0; }
.demo-field > label, .demo-field > legend { font-size: 13.5px; font-weight: 700; color: var(--ink-800); padding: 0; margin-bottom: 2px; }
.demo-field input, .demo-field select, .demo-field textarea { font: inherit; font-size: 16px; line-height: 1.35; color: var(--ink-900); background: var(--white); border: 1px solid var(--ink-300); border-radius: var(--radius-md); padding: 8px 12px; width: 100%; transition: border-color 150ms, box-shadow 150ms; }
.demo-field textarea { resize: vertical; min-height: 64px; }
.demo-field input:focus, .demo-field select:focus, .demo-field textarea:focus { outline: none; border-color: var(--eb-primary-700); box-shadow: 0 0 0 3px var(--eb-tint-100); }
.demo-field.has-error input, .demo-field.has-error select { border-color: var(--danger); }
.demo-hint { font-size: 12.5px; color: var(--ink-500); }
/* The hint or error line folds open and shut (grid rows 0fr to 1fr, so no height is needed). While shut it also
   cancels the field's 5px gap, so a field with no message is exactly as tall as before. */
.demo-msg { display: grid; grid-template-rows: 0fr; margin-top: -5px; opacity: 0; transition: grid-template-rows 240ms cubic-bezier(0.4, 0, 0.2, 1), margin-top 240ms cubic-bezier(0.4, 0, 0.2, 1), opacity 180ms ease; }
.demo-msg.open { grid-template-rows: 1fr; margin-top: 0; opacity: 1; }
.demo-msg > div { min-height: 0; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .demo-msg { transition: none; } }
.demo-error { font-size: 13px; font-weight: 600; color: var(--danger); }
.demo-send-failed { background: var(--danger-bg); padding: 10px 12px; border-radius: var(--radius-md); }
.demo-products:focus { outline: none; }
.demo-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-chip { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px; border: 1px solid var(--ink-300); background: var(--white); font-weight: 700; font-size: 14px; color: var(--ink-800); cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; transition: background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease, transform 120ms ease; }
.demo-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.demo-chip:hover { border-color: color-mix(in srgb, var(--chip) 55%, var(--ink-300)); }
.demo-chip:active { transform: scale(0.97); }
.demo-chip-dot { position: relative; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--chip); background: transparent; flex: 0 0 auto; transition: background-color 200ms ease, border-color 200ms ease; }
.demo-chip-dot::after { content: ""; position: absolute; left: 5.5px; top: 2.5px; width: 4px; height: 8px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transform-origin: center; transition: transform 240ms cubic-bezier(0.34, 1.56, 0.64, 1) 40ms; }
.demo-chip.on { border-color: var(--chip); background: color-mix(in srgb, var(--chip) 11%, white); box-shadow: 0 2px 8px color-mix(in srgb, var(--chip) 22%, transparent); }
.demo-chip.on .demo-chip-dot { background: var(--chip); }
.demo-chip.on .demo-chip-dot::after { transform: rotate(45deg) scale(1); }
/* Keyboard focus only, so a mouse click doesn't leave a ring around the chip. */
.demo-chip:has(input:focus-visible) { outline: 2px solid var(--eb-primary-700); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .demo-chip, .demo-chip-dot, .demo-chip-dot::after { transition: none; }
  .demo-chip:active { transform: none; }
}
/* ---------- Book a demo: small rewards while filling it in ---------- */
.demo-field > label { transition: color 160ms; }
.demo-field:focus-within > label { color: var(--eb-primary-700); }
.demo-input { position: relative; }
.demo-input input { padding-right: 40px; }
.demo-input select { padding-right: 60px; }
/* Brand-gradient underline: draws in on focus, glows briefly on every keystroke. */
.demo-input-line { position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #4f9ad0, #5fb39a, #6cc06f); transform: scaleX(0); transform-origin: left center; transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1); pointer-events: none; }
.demo-input:focus-within .demo-input-line { transform: scaleX(1); animation: demoLinePulse 220ms ease-out; }
@keyframes demoLinePulse { 0% { box-shadow: 0 0 0 0 rgba(95, 179, 154, 0); } 35% { box-shadow: 0 0 6px 0 rgba(95, 179, 154, 0.45); } 100% { box-shadow: 0 0 0 0 rgba(95, 179, 154, 0); } }
/* The check that springs in once a field is valid. */
.demo-input-check { position: absolute; right: 11px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: #2e9e5b; color: white; display: grid; place-items: center; transform: scale(0); opacity: 0; transition: transform 220ms cubic-bezier(0.3, 1.25, 0.6, 1), opacity 140ms; pointer-events: none; }
.demo-input.valid .demo-input-check { transform: scale(1); opacity: 1; }
.demo-input:has(select) .demo-input-check { right: 36px; }
.demo-input:has(textarea) .demo-input-check { display: none; }
/* A ring of dots that flies out from the check or a product dot. */
.demo-burst { position: absolute; right: 21px; top: 50%; width: 0; height: 0; pointer-events: none; }
.demo-input:has(select) .demo-burst { right: 46px; }
.demo-chip .demo-burst { left: 19px; right: auto; }
.demo-burst i { position: absolute; left: -2.5px; top: -2.5px; width: 5px; height: 5px; border-radius: 50%; background: var(--burst, #2e9e5b); opacity: 0; animation: demoBurst 560ms cubic-bezier(0.2, 0.7, 0.3, 1) forwards; }
@keyframes demoBurst { 0% { opacity: 1; transform: rotate(var(--a)) translateY(-4px) scale(1); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-20px) scale(0.3); } }
.demo-chip.on .demo-chip-dot { animation: demoPop 200ms cubic-bezier(0.3, 1.25, 0.6, 1); }
@keyframes demoPop { 0% { transform: scale(0.82); } 100% { transform: scale(1); } }
/* A gentle shake on the fields that still need attention. Two names so it replays on every submit. */
.demo-field.shake-0 { animation: demoShakeA 380ms ease; }
.demo-field.shake-1 { animation: demoShakeB 380ms ease; }
@keyframes demoShakeA { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
@keyframes demoShakeB { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
/* Submit: presses in, wakes up once everything is filled in, and shows dots while sending. */
.demo-submit { position: relative; overflow: hidden; transition: transform 120ms ease, box-shadow 220ms ease; }
.demo-submit:active { transform: scale(0.97); }
.demo-submit.is-ready { box-shadow: 0 10px 26px rgba(95, 179, 154, 0.45); }
.demo-submit.is-ready svg { animation: demoNudge 1.4s ease-in-out 4; }
@keyframes demoNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
.demo-submit.is-ready::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, 0.45) 50%, transparent 65%); transform: translateX(-120%); animation: demoShimmer 1.6s 0.3s ease-in-out 2; pointer-events: none; }
.demo-dots { display: inline-flex; gap: 4px; margin-left: 2px; }
.demo-dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: demoDot 900ms ease-in-out infinite; }
.demo-dots i:nth-child(2) { animation-delay: 120ms; }
.demo-dots i:nth-child(3) { animation-delay: 240ms; }
@keyframes demoDot { 0%, 80%, 100% { transform: translateY(0); opacity: 0.5; } 40% { transform: translateY(-5px); opacity: 1; } }
/* Role box: its lines step in when the role changes. */
.demo-for-title { animation: demoRise 320ms ease-out both; }
.demo-for-list li { animation: demoRise 380ms ease-out both; animation-delay: calc(var(--i, 0) * 70ms + 60ms); }
@keyframes demoRise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Book a demo: the printed demo pass ---------- */
.demo-sent { gap: 18px; overflow: hidden; }
.dpass-printer { position: relative; z-index: 2; height: 18px; border-radius: 10px; background: linear-gradient(180deg, #2a3a48, #17232e); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.35), 0 4px 10px rgba(13, 26, 36, 0.18); }
.dpass-slot { position: absolute; left: 14px; right: 14px; top: 8px; height: 3px; border-radius: 3px; background: #05090d; }
/* Room around the pass so its shadow fades out before the clip edge (no visible box). */
.dpass-feed { position: relative; z-index: 1; margin: -12px 0 -18px; padding: 12px 28px 40px; overflow: hidden; }
/* It feeds out of the slot in two stutters, like a real printer, then jolts when the stamp lands. */
.dpass { position: relative; background: #fffef9; border-radius: 0 0 14px 14px; box-shadow: 0 10px 22px rgba(13, 26, 36, 0.13), 0 0 0 1px rgba(13, 26, 36, 0.06); animation: passPrint 1.15s cubic-bezier(0.3, 0, 0.2, 1) both, passThunk 380ms 1.28s ease-out; }
@keyframes passPrint { 0% { transform: translateY(-104%); } 30% { transform: translateY(-70%); } 36% { transform: translateY(-68%); } 62% { transform: translateY(-34%); } 68% { transform: translateY(-32%); } 100% { transform: translateY(0); } }
@keyframes passThunk { 0% { transform: translateY(0) rotate(0); } 30% { transform: translateY(3px) rotate(-0.6deg); } 60% { transform: translateY(-1px) rotate(0.3deg); } 100% { transform: translateY(0) rotate(0); } }
.dpass-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 18px; background: linear-gradient(90deg, #4f9ad0, #5fb39a, #6cc06f); color: white; font-family: var(--font-display); font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.dpass-brand { display: inline-flex; align-items: center; gap: 8px; }
.dpass-brand img { width: 24px; height: 24px; padding: 2px; border-radius: 6px; background: white; }
.dpass-time { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.22); font-size: 12px; }
.dpass-body { padding: 18px 20px 14px; }
.dpass-name { font-family: var(--font-display); font-size: 30px; font-weight: 800; line-height: 1.05; letter-spacing: -0.01em; color: var(--ink-900); overflow-wrap: anywhere; padding-right: 120px; }
.dpass-meta { display: grid; gap: 1px; margin-top: 6px; font-size: 14px; color: var(--ink-500); }
.dpass-products { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.dpass-products span { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--chip) 45%, white); background: color-mix(in srgb, var(--chip) 14%, white); font-size: 12.5px; font-weight: 700; color: var(--ink-800); }
.dpass-products i { width: 8px; height: 8px; border-radius: 50%; background: var(--chip); }
.dpass-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; padding: 12px 20px 16px; border-top: 2px dashed rgba(13, 26, 36, 0.12); font-size: 13.5px; color: var(--ink-700); }
.dpass-foot small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-500); }
.dpass-next small { margin-bottom: 2px; }
.dpass-code { display: grid; gap: 4px; justify-items: end; flex: 0 0 auto; }
.dpass-barcode { width: 92px; height: 32px; border-radius: 2px; opacity: 0.85; background: repeating-linear-gradient(90deg, #0d1a24 0 2px, transparent 2px 4px, #0d1a24 4px 5px, transparent 5px 7px, #0d1a24 7px 10px, transparent 10px 11px, #0d1a24 11px 12px, transparent 12px 15px); }
.dpass-stamp { --stamp-tilt: -12deg; position: absolute; right: 16px; top: 60px; padding: 6px 12px; border: 3px solid #2e7d4f; border-radius: 8px; color: #2e7d4f; font-family: var(--font-display); font-size: 18px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; box-shadow: inset 0 0 0 2px rgba(46, 125, 79, 0.22); mix-blend-mode: multiply; opacity: 0; transform: rotate(var(--stamp-tilt)); animation: passStamp 440ms 1.2s cubic-bezier(0.2, 0.9, 0.3, 1.2) forwards; }
@keyframes passStamp { 0% { opacity: 0; transform: rotate(var(--stamp-tilt)) scale(2.4); } 60% { opacity: 0.95; transform: rotate(var(--stamp-tilt)) scale(0.92); } 100% { opacity: 0.9; transform: rotate(var(--stamp-tilt)) scale(1); } }
.dpass-stamp-second { --stamp-tilt: 7deg; top: auto; bottom: 70px; right: 22px; font-size: 12px; border-color: #c0392b; color: #c0392b; box-shadow: inset 0 0 0 2px rgba(192, 57, 43, 0.2); animation-delay: 1.75s; }
.dpass-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 14px 0 0; }
.dpass-fields div { min-width: 0; }
.dpass-fields dt { font-size: 10.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-500); }
.dpass-fields dd { margin: 0; font-family: 'Caveat', 'Kalam', cursive; font-size: 21px; line-height: 1.1; color: #1f3b8f; overflow-wrap: anywhere; }
.dpass-fine { margin: 0; padding: 0 20px 14px; font-size: 11px; font-style: italic; color: var(--ink-500); }
.demo-sent-copy { display: grid; gap: 8px; opacity: 0; animation: demoRise 400ms 0.9s ease-out forwards; }
.demo-sent-copy h2:focus { outline: none; }
.demo-confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 9999; pointer-events: none; }
@media (max-width: 640px) {
  .dpass-feed { margin: -12px 0 -18px; padding: 12px 12px 36px; }
  .dpass-name { font-size: 26px; padding-right: 0; }
  .dpass-stamp { top: auto; bottom: 64px; right: 12px; font-size: 15px; }
  .dpass-stamp-second { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-input-line, .demo-input-check, .demo-submit, .demo-check input, .demo-check input::after { transition: none; }
  .demo-input:focus-within .demo-input-line,
  .demo-submit.is-ready svg, .demo-submit.is-ready::after, .demo-field.shake-0, .demo-field.shake-1, .demo-check.shake-0, .demo-check.shake-1,
  .demo-chip.on .demo-chip-dot, .demo-check input:checked, .demo-dots i, .demo-for-title, .demo-for-list li { animation: none; }
  .demo-burst { display: none; }
  .dpass, .demo-sent-copy { animation: none; opacity: 1; }
  .dpass-stamp { animation: none; opacity: 0.9; }
}

.demo-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.demo-submit { justify-self: end; }
.demo-submit:disabled { opacity: 0.7; cursor: wait; }
.demo-state h2 { font-family: var(--font-display); font-size: 30px; font-weight: 800; margin: 0; }
.demo-state p { font-size: 17px; line-height: 1.55; color: var(--ink-700); margin: 0; }
.demo-fine { font-size: 14px !important; color: var(--ink-500) !important; }
@media (max-width: 960px) {
  .demo-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 640px) {
  .demo-page { padding: 40px 0 64px; }
  .demo-card { padding: 22px; }
  .demo-row { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Legal pages (privacy policy, terms of service) ---------- */
/* The text is the published Google Doc in a frame (components-legal.jsx). */
.legal-page { padding: 56px 0 88px; background: var(--eb-cream); }
.legal-head { max-width: 760px; margin-bottom: 28px; }
.legal-title { font-family: var(--font-display); font-size: clamp(34px, 4vw, 52px); font-weight: 800; line-height: 1.04; letter-spacing: -0.02em; margin: 0 0 10px; text-wrap: balance; }
.legal-date { font-size: 17px; line-height: 1.5; color: var(--ink-600); margin: 0; }
.legal-note { margin: 18px 0 0; padding: 14px 18px; border-radius: var(--radius-lg, 14px); background: var(--white); border-left: 4px solid var(--eb-primary-700); font-size: 16px; line-height: 1.5; color: var(--ink-700); }
.legal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 32px; align-items: start; }
.legal-doc { background: var(--white); border-radius: var(--radius-lg, 14px); box-shadow: 0 1px 0 var(--ink-200), 0 12px 28px rgba(15, 26, 36, 0.06); overflow: hidden; }
.legal-doc iframe { display: block; width: 100%; height: max(640px, calc(100vh - 200px)); border: 0; }
.legal-side { position: sticky; top: 96px; display: grid; gap: 16px; font-size: 15px; line-height: 1.5; color: var(--ink-700); }
.legal-side p { margin: 0; }
.legal-side a, .legal-note a { color: var(--eb-primary-700); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.legal-side-title { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--eb-primary-700); margin: 0 0 10px; }
.legal-versions ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.legal-version-current { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink-900); }
.legal-version-current svg { flex: 0 0 auto; color: var(--eb-primary-700); }
@media (max-width: 960px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .legal-side { position: static; }
  .legal-doc iframe { height: 75vh; min-height: 520px; }
}
@media (max-width: 640px) {
  .legal-page { padding: 40px 0 64px; }
}

/* ---------- Log in page (/login, components-login.jsx) ---------- */
.login-page { padding: 64px 0 88px; background: var(--eb-cream); }
.login-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.login-title { font-family: var(--font-display); font-size: clamp(34px, 4vw, 52px); font-weight: 800; line-height: 1.04; letter-spacing: -0.02em; margin: 0 0 12px; text-wrap: balance; }
.login-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.login-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 28px; border-radius: 24px; background: var(--white); border: 1px solid var(--border-1); overflow: hidden; transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 220ms, border-color 220ms; }
.login-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 140px; background: linear-gradient(180deg, var(--prod-tint), transparent); pointer-events: none; }
.login-card > * { position: relative; }
.login-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(15, 26, 36, 0.1); border-color: var(--prod-primary); }
.login-card:focus-visible { outline: 3px solid var(--prod-text); outline-offset: 3px; }
.login-mark { width: 52px; height: 52px; border-radius: 14px; background: var(--white); border: 1.5px solid var(--prod-primary); display: grid; place-items: center; margin-bottom: 18px; }
.login-mark img { width: 72%; height: 72%; }
.login-kicker { font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--prod-text); }
.login-name { font-family: var(--font-display); font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin: 6px 0 4px; color: var(--eb-ink); }
.login-desc { font-size: 15px; font-weight: 500; line-height: 1.45; color: var(--ink-600); margin: 0 0 24px; }
.login-cta { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 12px; background: var(--prod-text); color: var(--white); font-size: 15px; font-weight: 700; transition: gap 180ms; }
.login-card:hover .login-cta { gap: 12px; }
.login-help { margin: 36px 0 0; text-align: center; font-size: 16px; line-height: 1.5; color: var(--ink-600); }
.login-help a { color: var(--eb-primary-700); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .login-card, .login-cta { transition: none; }
  .login-card:hover { transform: none; }
}
@media (max-width: 960px) {
  .login-grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .login-page { padding: 40px 0 64px; }
  .login-head { margin-bottom: 28px; }
}

/* =========================================================================
   Brand logos (assets/brand/, from the Edlastics style guide).
   Gradient marks first; white versions only on dark or product-color tiles.
   The *-mark.svg files share one square canvas with optical padding baked in,
   so every tile sizes its icon the same way: 72% of the tile, centered.
   ========================================================================= */
.nav-brand .nav-logo { height: 36px; width: auto; display: block; }
html body .nav-brand .mark.logo { background: none; box-shadow: none; width: 40px; height: 40px; border-radius: 0; }
.nav-brand .mark.logo img { width: 100%; height: 100%; }
/* Narrow phones: the brand shrinks so Log in, Book a demo and the menu button fit beside it
   (the three take about 187px). Product names shrink below 410px (ElasticBadge was 9px from Log in
   at 390), the Edlastics logo below 390px, and below 360px only the mark shows, with the product
   name still readable to screen readers. Measured Nov 22 2026 at 320 to 640px on every nav. */
.nav-brand .nav-logo-mark { display: none; }
@media (max-width: 409px) {
  .nav-brand { font-size: 16px; gap: 6px; }
  html body .nav-brand .mark.logo { width: 32px; height: 32px; }
}
@media (max-width: 389px) {
  .nav-brand .nav-logo { height: 30px; }
}
@media (max-width: 359px) {
  .nav-brand .nav-logo { display: none; }
  .nav-brand .nav-logo-mark { display: block; height: 34px; width: auto; }
  .nav-brand .nav-brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.footer .footer-logo { height: 34px; width: auto; display: block; }

.footer .footer-mark,
.prod-drop-item .dot.logo,
.sibling .dot.logo,
.prod-card .prod-mark { background: white; display: grid; place-items: center; padding: 0; }
.footer .footer-mark { width: 36px; height: 36px; border-radius: 9px; flex: 0 0 auto; }
.prod-drop-item .dot.logo { border: 1px solid var(--border-1); }
.prod-card .prod-mark { border: 1.5px solid var(--prod-primary, var(--eb-primary)); }
.footer .footer-mark img,
.prod-drop-item .dot.logo img,
.sibling .dot.logo img,
.prod-card .prod-mark img { width: 72%; height: 72%; display: block; }

/* Products dropdown. The items are links inside .nav-links, so the nav link
   rule (inline-flex, line-height 1, 8px radius, tint hover) leaks onto them.
   These selectors outrank it: full-width rows, inset highlight, normal leading. */
.nav-links .prod-drop {
  width: 292px;
  padding: 14px 6px 6px;
}
.nav-links .prod-drop .prod-drop-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 10px;
  line-height: 1.25;
  font-weight: 500;
  color: inherit;
  text-decoration: none;
}
.nav-links .prod-drop .prod-drop-item + .prod-drop-item { margin-top: 2px; }
.nav-links .prod-drop .prod-drop-item:hover { background: var(--ink-50); color: inherit; }
.nav-links .prod-drop .prod-drop-item.active,
.nav-links .prod-drop .prod-drop-item.active:hover { background: var(--eb-tint-50); }
.nav-links .prod-drop .prod-drop-item.active .dot.logo { border-color: var(--eb-tint-100, var(--border-1)); }
.nav-links .prod-drop .prod-drop-item .dot.logo { width: 40px; height: 40px; border-radius: 10px; }
.nav-links .prod-drop .prod-drop-item .name { font-size: 15px; }
.nav-links .prod-drop .prod-drop-item .desc { font-size: 13px; margin-top: 2px; }

/* ---------- Phone menu (nav-menu.jsx) ----------
   Below 960px .nav-links is hidden, so the menu button opens it as a panel under the bar,
   with the product list open in place of the hover dropdown. */
.nav-toggle { display: none; }
@media (max-width: 960px) {
  .nav-toggle {
    display: inline-grid; place-items: center; flex: 0 0 auto;
    width: 40px; height: 40px; padding: 0;
    border: 0; border-radius: 10px; background: transparent;
    color: var(--eb-ink); cursor: pointer;
  }
  .nav-toggle:hover, .nav.menu-open .nav-toggle { background: var(--eb-tint-50); }
  .nav-toggle:focus-visible { outline: 2px solid var(--eb-primary-700); outline-offset: 2px; }
  .nav.menu-open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: 100%; left: 0; right: 0;
    padding: 10px 20px 18px;
    background: white;
    border-bottom: 1px solid var(--border-1);
    box-shadow: 0 18px 32px rgba(15, 26, 36, 0.12);
    max-height: calc(100vh - 68px); max-height: calc(100dvh - 68px); overflow-y: auto;
  }
  .nav.menu-open .nav-links > li > a { display: flex; padding: 13px 12px; font-size: 16px; }
  /* "Products" becomes a label over the open product list. */
  .nav.menu-open .nav-links .has-drop > a {
    pointer-events: none; padding: 10px 12px 4px;
    font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-500);
  }
  .nav.menu-open .nav-links .has-drop > a svg { display: none; }
  .nav.menu-open .nav-links .prod-drop {
    position: static; width: auto; padding: 0 0 8px; margin-bottom: 6px;
    border: 0; border-bottom: 1px solid var(--border-1); border-radius: 0;
    box-shadow: none; animation: none; overflow: visible;
  }
}
/* Phones: the logo, Log in, Book a demo and the menu button all stay in the bar, so it tightens up. */
@media (max-width: 640px) {
  .nav-cta { gap: 6px; }
  .nav-cta .btn-sm { padding: 7px 10px; }
  .nav-toggle { width: 36px; height: 36px; }
}

/* Student check on the demo form: shown when someone submits with "Student" picked. */
.demo-student-confirm { display: grid; gap: 8px; padding: 16px 18px; border-radius: var(--radius-md); background: var(--eb-tint-50, #eef6f2); border: 1px solid var(--eb-tint-100, #d6ece2); animation: demoRise 260ms ease-out both; }
.demo-student-confirm h3 { margin: 0; font-family: var(--font-display); font-size: 19px; font-weight: 800; color: var(--ink-900); }
.demo-student-confirm p { margin: 0; font-size: 14.5px; color: var(--ink-700); }
.demo-student-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .demo-student-confirm { animation: none; } }

/* Student stop: switch back to the demo form */
.demo-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 6px; padding: 14px 16px; border-radius: var(--radius-md); border: 1px solid var(--ink-100, #e3e8ee); background: var(--ink-50); }
.demo-switch-text { display: grid; gap: 2px; }
.demo-switch-label { font-weight: 600; font-size: 15.5px; color: var(--ink-900); }
.demo-switch-hint { font-size: 14px; color: var(--ink-500); }
.demo-switch { flex: none; position: relative; width: 52px; height: 30px; padding: 0; border: 0; border-radius: 999px; background: var(--ink-300, #b8c2cc); cursor: pointer; transition: background-color 220ms ease; }
.demo-switch.is-on { background: #6d4bd8; }
.demo-switch-knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25); transition: transform 260ms cubic-bezier(0.3, 1.25, 0.6, 1); }
.demo-switch.is-on .demo-switch-knob { transform: translateX(22px); }
.demo-switch:focus-visible { outline: 3px solid #6d4bd8; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .demo-switch, .demo-switch-knob { transition: none; } }

/* Headings balance their lines, so none ends on one short word (design audit 268, picked Nov 16 2026). */
.section-title, .cta-card h2, .cta-inner h2, .col-copy h2, .hero h1 { text-wrap: balance; }

/* ---------- Careers page (/careers, components-careers.jsx) ---------- */
.careers-page { padding: 72px 0 96px; background: var(--eb-cream); }
.careers-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.careers-title { font-family: var(--font-display); font-size: clamp(36px, 4.4vw, 56px); font-weight: 800; line-height: 1.04; letter-spacing: -0.02em; margin: 14px 0 16px; text-wrap: balance; }
.careers-lede { font-size: 18px; line-height: 1.55; color: var(--ink-700); margin: 0 0 28px; max-width: 34em; }
.careers-note { padding: 24px 26px; border-radius: 20px; background: var(--white); border: 1px solid var(--border-1); max-width: 34em; }
.careers-note h2 { font-family: var(--font-display); font-size: 22px; font-weight: 800; margin: 0 0 8px; letter-spacing: -0.01em; }
.careers-note p { font-size: 16px; line-height: 1.55; color: var(--ink-600); margin: 0 0 18px; }
.careers-note p a { color: var(--eb-primary-700); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
/* The seating chart: a whiteboard, then a 4 x 3 grid of desks, each with a drawn face and a "here" check. */
.careers-chart { margin: 0; padding: 22px; border-radius: 24px; background: var(--white); border: 1px solid var(--border-1); box-shadow: 0 24px 48px rgba(15, 26, 36, 0.08); transform: rotate(1.2deg); }
.careers-chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-500); }
.careers-chart-open { color: var(--eb-primary-700); }
.careers-board { margin: 0 auto 18px; width: 70%; padding: 10px 12px; border-radius: 10px; background: var(--ink-50); border: 2px solid var(--ink-200); text-align: center; font-family: 'Caveat', 'Kalam', cursive; font-size: 22px; color: var(--ink-600); }
.careers-desks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.careers-desk { position: relative; aspect-ratio: 1; border-radius: 14px; background: var(--eb-tint-50); border: 1.5px solid var(--eb-tint-100); display: grid; place-items: center; }
.careers-desk img { width: 72%; height: 72%; border-radius: 50%; }
.careers-here { position: absolute; right: -5px; top: -5px; width: 20px; height: 20px; border-radius: 50%; background: var(--success); color: var(--white); display: grid; place-items: center; box-shadow: 0 0 0 2px var(--white); }
@media (max-width: 960px) {
  .careers-inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .careers-chart { max-width: 480px; width: 100%; margin: 0 auto; }
}
@media (max-width: 640px) {
  .careers-page { padding: 44px 0 64px; }
  .careers-chart { transform: none; padding: 16px; }
  .careers-desks { gap: 10px; }
}

/* ---------- Page not found (404.html, components-404.jsx) ---------- */
.lost-page { padding: 72px 0 96px; background: var(--eb-cream); }
.lost-hero { max-width: 760px; margin-bottom: 72px; }
.lost-title { font-family: var(--font-display); font-size: clamp(36px, 4.4vw, 56px); font-weight: 800; line-height: 1.04; letter-spacing: -0.02em; margin: 14px 0 16px; text-wrap: balance; }
.lost-lede { font-size: 18px; line-height: 1.55; color: var(--ink-700); margin: 0 0 28px; max-width: 34em; }
.lost-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.lost-sub { font-family: var(--font-display); font-size: 24px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 20px; }
.lost-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lost-card { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 18px; background: linear-gradient(180deg, var(--prod-tint), var(--white) 70%); border: 1px solid var(--border-1); transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 220ms, border-color 220ms; }
.lost-card .login-mark { width: 44px; height: 44px; border-radius: 12px; margin: 0; flex: 0 0 auto; }
.lost-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(15, 26, 36, 0.08); border-color: var(--prod-primary); }
.lost-card:focus-visible { outline: 3px solid var(--prod-text); outline-offset: 3px; }
.lost-card-name { font-family: var(--font-display); font-size: 19px; font-weight: 800; color: var(--eb-ink); }
.lost-card-desc { font-size: 14px; color: var(--ink-600); }
.lost-card-arrow { margin-left: auto; color: var(--prod-text); flex: 0 0 auto; }
@media (prefers-reduced-motion: reduce) {
  .lost-card { transition: none; }
  .lost-card:hover { transform: none; }
}
@media (max-width: 960px) {
  .lost-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .lost-page { padding: 44px 0 64px; }
  .lost-hero { margin-bottom: 48px; }
  .lost-grid { grid-template-columns: minmax(0, 1fr); }
}
