:root {
  --ink: #07111f;
  --ink-soft: #243244;
  --muted: #64748b;
  --paper: #f8fafc;
  --surface: #ffffff;
  --surface-2: #eef7f6;
  --line: #d9e4e8;
  --brand: #0f766e;
  --brand-dark: #0b5f59;
  --brand-2: #2563eb;
  --accent: #b7791f;
  --danger: #dc2626;
  --success: #047857;
  --shadow-sm: 0 8px 28px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 18px 56px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 28px 80px rgba(15, 23, 42, 0.14);
  --radius-sm: 0.875rem;
  --radius-md: 1.35rem;
  --radius-lg: 2rem;
  --sans: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Space Grotesk", "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 6%, rgba(15, 118, 110, 0.15), transparent 30%),
    radial-gradient(circle at 92% 0%, rgba(37, 99, 235, 0.12), transparent 28%),
    linear-gradient(180deg, #ffffff, rgba(248, 250, 252, 0.86) 520px, var(--paper));
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 {
  font-family: var(--display);
  letter-spacing: -0.045em;
  line-height: 1.04;
  color: var(--ink);
}
p { margin: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(248, 250, 252, 0.9);
  border-bottom: 1px solid rgba(217, 228, 232, 0.82);
}
.nav-link {
  position: relative;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  transition: color 180ms ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.32rem;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}
.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active { color: var(--ink); }
.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.is-active::after { transform: scaleX(1); }
.logo-mark {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.btn-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0.8rem 1.25rem;
  border: 1px solid transparent;
  font-weight: 900;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  font-size: 0.76rem;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}
.btn-main:hover { transform: translateY(-1px); }
.btn-main:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.25);
  outline-offset: 3px;
}
.btn-main:disabled { opacity: 0.62; cursor: not-allowed; transform: none; }
.btn-fill {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
}
.btn-fill:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-ghost {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.74);
}
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-sm);
}
.chip {
  display: inline-flex;
  align-items: center;
  width: max-content;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.42rem 0.78rem;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--brand-dark);
}
.chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}
.fine-print { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.text-red-600 { color: var(--danger); }
.text-emerald-700 { color: var(--success); }
.list-check li { position: relative; padding-left: 1.5rem; }
.list-check li::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.58rem;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: var(--brand);
}

main { animation: reveal 320ms ease-out; }
@keyframes reveal {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Product-grade shared layout utilities used across static routes. */
.eriteach-shell { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.eriteach-hero { padding: 74px 0 42px; }
.eriteach-hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.eriteach-hero-title { font-size: clamp(3.2rem, 7vw, 6.7rem); max-width: 880px; }
.eriteach-lead { max-width: 700px; color: var(--ink-soft); font-size: clamp(1.05rem, 2vw, 1.28rem); line-height: 1.68; }
.eriteach-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.eriteach-proof-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin-top: 2rem; }
.eriteach-proof-card { background: rgba(255, 255, 255, 0.78); border: 1px solid var(--line); border-radius: 1.25rem; padding: 1rem; }
.eriteach-proof-card strong { display: block; font-size: 0.94rem; }
.eriteach-proof-card span { display: block; color: var(--muted); font-size: 0.84rem; line-height: 1.5; margin-top: 0.18rem; }
.eriteach-section { padding: 78px 0; }
.eriteach-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 2rem; }
.eriteach-section-head h2 { font-size: clamp(2.2rem, 5vw, 4.4rem); max-width: 760px; }
.eriteach-section-head p { max-width: 560px; color: var(--muted); line-height: 1.68; }
.eriteach-card-grid { display: grid; gap: 1rem; }
.eriteach-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.eriteach-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.eriteach-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.eriteach-mini-card { background: rgba(255, 255, 255, 0.82); border: 1px solid var(--line); border-radius: 1.45rem; padding: 1.25rem; }
.eriteach-mini-card h3 { font-size: 1.35rem; }
.eriteach-mini-card p { color: var(--muted); line-height: 1.62; margin-top: 0.55rem; }
.eriteach-hero-panel { border: 1px solid var(--line); border-radius: 2rem; background: linear-gradient(145deg, #fff, #e9f7f5); box-shadow: var(--shadow-md); padding: 1.15rem; overflow: hidden; }
.eriteach-score-card { position: relative; min-height: 470px; border-radius: 1.55rem; background: var(--ink); color: #fff; padding: 1.35rem; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.eriteach-score-card::before { content: ""; position: absolute; right: -80px; bottom: -100px; width: 280px; height: 280px; border-radius: 50%; background: rgba(15, 118, 110, 0.35); }
.eriteach-score-card h2, .eriteach-score-card > * { position: relative; z-index: 1; color: #fff; }
.eriteach-score-card h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
.eriteach-score-list { display: grid; gap: 1rem; position: relative; z-index: 1; }
.eriteach-score-item { border: 1px solid rgba(255, 255, 255, 0.13); border-radius: 1.1rem; background: rgba(255, 255, 255, 0.09); padding: 1rem; }
.eriteach-score-item small { display: block; color: rgba(255, 255, 255, 0.64); font-weight: 900; letter-spacing: 0.11em; text-transform: uppercase; }
.eriteach-score-item strong { display: block; margin-top: 0.25rem; font-size: 1.3rem; }
.eriteach-cta-strip { border-radius: 2rem; background: linear-gradient(135deg, var(--ink), #0f2f3a); color: #fff; padding: clamp(1.5rem, 5vw, 4rem); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; overflow: hidden; position: relative; }
.eriteach-cta-strip::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(15, 118, 110, 0.28); right: -80px; top: -90px; }
.eriteach-cta-strip > * { position: relative; z-index: 1; }
.eriteach-cta-strip h2 { color: #fff; font-size: clamp(2rem, 4vw, 3.6rem); max-width: 740px; }
.eriteach-cta-strip p { color: rgba(255, 255, 255, 0.72); max-width: 650px; margin-top: 0.75rem; line-height: 1.65; }
.eriteach-cta-strip .btn-ghost { color: #fff; border-color: rgba(255,255,255,.28); background: transparent; }
.eriteach-cta-strip .btn-ghost:hover { color: var(--ink); background: #fff; }

/* Improve existing Tailwind-heavy pages without rewriting every route. */
main.mx-auto.max-w-6xl { width: min(1160px, calc(100% - 32px)); max-width: none; padding-left: 0; padding-right: 0; }
main.mx-auto.max-w-6xl > section:first-child h1 { font-size: clamp(2.8rem, 6vw, 5.3rem); max-width: 900px; }
main.mx-auto.max-w-6xl > section:first-child p { color: var(--ink-soft); line-height: 1.7; }
.panel.p-6, .panel.p-7, .panel.p-8, .panel.p-10, .panel.md\:p-8, .panel.md\:p-10 { border-radius: var(--radius-md); }
input, select, textarea {
  font: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(15, 118, 110, 0.18) !important;
  outline-offset: 1px;
  border-color: var(--brand) !important;
}

/* Client logo sections used by home page. */
.clients-section { margin: 78px 0; padding: 68px 0; background: #07111f; color: #fff; overflow: hidden; }
.clients-section h2 { color: #fff; }
.clients-section .muted, .clients-section p { color: rgba(255, 255, 255, 0.66); }
.stat-row { display: flex; flex-wrap: wrap; gap: 2rem; margin: 1.4rem 0 2rem; }
.stat-num { display: block; font-family: var(--display); font-size: 2rem; font-weight: 800; }
.stat-label { color: rgba(255,255,255,.62); font-size: .88rem; }
.marquee-wrapper { position: relative; overflow: hidden; width: 100%; }
.marquee-wrapper::before, .marquee-wrapper::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none; }
.marquee-wrapper::before { left: 0; background: linear-gradient(to right, #07111f, transparent); }
.marquee-wrapper::after { right: 0; background: linear-gradient(to left, #07111f, transparent); }
.marquee-track { display: flex; width: max-content; gap: 1rem; animation: eriteach-scroll 34s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
@keyframes eriteach-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.logo-card { flex: none; display: flex; align-items: center; justify-content: center; height: 96px; min-width: 190px; padding: 0 1.2rem; border-radius: 1.1rem; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.07); }
.logo-card img { max-height: 68px; max-width: 160px; object-fit: contain; filter: grayscale(1) brightness(.78); transition: filter .2s ease; }
.logo-card:hover img { filter: grayscale(0) brightness(1); }

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(17, 37, 63, 0.1);
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  animation: slideUp 300ms ease-out;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: translateY(0); } }
.cookie-banner.hidden { display: none; }
.cookie-banner__content { display: flex; align-items: flex-start; gap: 0.75rem; flex: 1; min-width: 280px; }
.cookie-banner__icon { width: 1.5rem; height: 1.5rem; border-radius: 999px; background: var(--surface-2); flex-shrink: 0; position: relative; }
.cookie-banner__icon::before { content: ""; position: absolute; inset: 0.48rem; border-radius: 50%; background: var(--brand); }
.cookie-banner__text { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.5; }
.cookie-banner__text a { color: var(--brand-2); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 0.75rem; flex-shrink: 0; }
.cookie-banner__btn { padding: 0.5rem 1rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 700; cursor: pointer; transition: background-color 150ms ease, border-color 150ms ease; }
.cookie-banner__btn--accept { background: var(--brand); color: #fff; border: none; }
.cookie-banner__btn--accept:hover { background: var(--brand-dark); }
.cookie-banner__btn--decline { background: transparent; color: var(--ink-soft); border: 1px solid var(--line); }
.cookie-banner__btn--decline:hover { border-color: #b6c2cf; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
@media (min-width: 768px) {
  [data-mobile-toggle] { display: none; }
}
@media (max-width: 980px) {
  .eriteach-hero-grid, .eriteach-cta-strip { grid-template-columns: 1fr; }
  .eriteach-grid-2, .eriteach-grid-3, .eriteach-grid-4, .eriteach-proof-grid { grid-template-columns: 1fr; }
  .eriteach-section-head { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 760px) {
  .eriteach-hero { padding-top: 48px; }
  .eriteach-score-card { min-height: 360px; }
  .eriteach-actions .btn-main, .eriteach-cta-strip .btn-main { width: 100%; }
}
@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; text-align: center; padding: 1rem; }
  .cookie-banner__content { flex-direction: column; align-items: center; text-align: center; }
  .cookie-banner__actions { width: 100%; justify-content: center; }
}
@media (max-width: 560px) {
  .eriteach-shell, main.mx-auto.max-w-6xl { width: min(100% - 22px, 1160px); }
  .eriteach-hero-title { font-size: 3rem; }
  .eriteach-section { padding: 56px 0; }
  .clients-section { margin: 56px 0; }
}
