/* Echo · shared styles */
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&family=Montserrat:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --primary: #00B48B;
  --primary-dark: #008C6C;
  --primary-light: #4DD4B3;
  --secondary: #0E5156;
  --tertiary: #0B3142;
  --neutral: #E8EEF6;
  --neutral-2: #F4F7FB;
  --ink: #06121C;
  --ink-soft: #2A3742;
  --muted: #6B7785;
  --border: #DEE5EE;
  --white: #FFFFFF;

  --font-display: 'Ubuntu', system-ui, sans-serif;
  --font-body: 'Montserrat', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --container: 1280px;
  --radius: 18px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

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

/* Eyebrow / label */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-block;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.125rem;
  letter-spacing: -0.015em;
}
.brand img { width: 32px; height: 32px; }
.brand-logo img { width: auto; height: 38px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav-links a:hover { color: var(--primary); }
.nav-links a.active { color: var(--ink); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary {
  background: var(--ink);
  color: white;
}
.btn-primary:hover { background: var(--primary); }
.btn:active { transform: scale(0.97); transition-duration: .1s; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-arrow::after {
  content: "→";
  transition: transform .2s ease;
}
.btn-arrow:hover::after { transform: translateX(3px); }

/* Sections */
section { padding: 120px 0; }
.section-sm { padding: 80px 0; }

/* Hero */
.hero {
  padding: 60px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(3rem, 6.5vw, 5.75rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.hero h1 em {
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--secondary);
  display: block;
}
.hero-sub {
  margin-top: 28px;
  font-size: 1.1875rem;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 540px;
}
.hero-cta {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.hero-meta {
  margin-top: 56px;
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.8125rem;
  color: var(--muted);
}
.hero-meta-divider { width: 1px; height: 28px; background: var(--border); }

/* Persona split reveal */
.persona-card {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 24px;
  overflow: hidden;
  background: var(--neutral);
  cursor: pointer;
  isolation: isolate;
}
.persona-card .photo,
.persona-card .illus {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.persona-card .photo { clip-path: inset(0 50% 0 0); transition: clip-path .8s cubic-bezier(.7,.2,.2,1); }
.persona-card .illus { clip-path: inset(0 0 0 50%); transition: clip-path .8s cubic-bezier(.7,.2,.2,1); }
.persona-card.flip .photo { clip-path: inset(0 100% 0 0); }
.persona-card.flip .illus { clip-path: inset(0 0 0 0); }
.persona-card .split-line {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(11,49,66,0.2);
  z-index: 2;
  transition: left .8s cubic-bezier(.7,.2,.2,1), opacity .4s;
}
.persona-card.flip .split-line { left: 0%; opacity: 0; }
.persona-card .tag {
  position: absolute;
  bottom: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 3;
}
.persona-card .tag .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(0,180,139,0.18);
}

/* Section heading */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 64px;
  align-items: end;
}
.section-head h2 {
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.03em;
}
.section-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.0625rem;
  max-width: 560px;
}

/* Problem section */
.problem {
  background: var(--tertiary);
  color: var(--neutral);
}
.problem h2 { color: white; }
.problem .section-head p { color: rgba(232,238,246,0.7); }
.problem .eyebrow { color: rgba(232,238,246,0.6); }
.problem .eyebrow::before { background: var(--primary); }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(232,238,246,0.15);
}
.stat {
  padding: 72px 56px 56px;
  border-right: 1px solid rgba(232,238,246,0.15);
}
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: none; padding-right: 0; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(4rem, 7vw, 6.5rem);
  letter-spacing: -0.04em;
  color: var(--primary);
  line-height: 1;
}
.stat-label {
  margin-top: 16px;
  font-size: 0.9375rem;
  color: rgba(232,238,246,0.8);
  max-width: 280px;
}
.stat-foot {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: rgba(232,238,246,0.4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step {
  position: relative;
  padding: 36px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  transition: border-color .25s ease, transform .25s ease;
}
.step:hover { border-color: var(--primary); transform: translateY(-3px); }
.step-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--primary);
}
.step h3 {
  margin: 18px 0 12px;
  font-size: 1.75rem;
  font-weight: 500;
}
.step p { color: var(--ink-soft); font-size: 0.9375rem; }
.step ul {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.step ul li {
  font-size: 0.8438rem;
  color: var(--muted);
  padding: 8px 0;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
}
.step ul li::before {
  content: "↳";
  color: var(--primary);
  font-family: var(--font-mono);
}

/* Use cases */
.cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.case {
  background: white;
  padding: 40px 32px;
  transition: background .25s ease;
  cursor: default;
}
.case:hover { background: var(--neutral-2); }
.case-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.case h3 {
  margin: 18px 0 14px;
  font-size: 1.375rem;
  font-weight: 500;
}
.case p {
  font-size: 0.9062rem;
  color: var(--ink-soft);
  margin: 0;
}

/* CTA band */
.cta-band {
  background: var(--neutral-2);
  border-radius: 32px;
  padding: 80px 64px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
}
.cta-band h2 em {
  font-style: normal;
  color: var(--primary);
}
.cta-band p {
  color: var(--ink-soft);
  font-size: 1.0625rem;
  margin: 24px 0 32px;
}
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-ripple {
  width: 100%;
  aspect-ratio: 1/1;
  position: relative;
  display: grid;
  place-items: center;
}
.cta-ripple .ring {
  position: absolute;
  border: 1px solid var(--tertiary);
  border-radius: 50%;
  animation: ripple 4s linear infinite;
}
.cta-ripple .ring:nth-child(1) { inset: 0%; animation-delay: 0s; }
.cta-ripple .ring:nth-child(2) { inset: 8%; animation-delay: -1s; }
.cta-ripple .ring:nth-child(3) { inset: 16%; animation-delay: -2s; }
.cta-ripple .ring:nth-child(4) { inset: 24%; animation-delay: -3s; }
@keyframes ripple {
  0%   { opacity: 0.05; transform: scale(0.95); }
  50%  { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0.05; transform: scale(0.95); }
}
.cta-ripple .ring-core {
  width: 38%; height: 38%;
  border-radius: 50%;
  background: var(--tertiary);
  color: white;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.375rem;
  letter-spacing: -0.01em;
  z-index: 2;
  position: relative;
}

/* Footer */
footer {
  background: var(--ink);
  color: rgba(232,238,246,0.7);
  padding: 80px 0 32px;
  font-size: 0.875rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(232,238,246,0.1);
}
.foot-grid h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(232,238,246,0.5);
  margin-bottom: 18px;
}
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid ul li { padding: 6px 0; }
.foot-grid ul li a:hover { color: var(--primary); }
.foot-tag {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  color: white;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 360px;
  margin-top: 24px;
}
.foot-tag em { font-style: normal; color: var(--primary); }
.foot-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(232,238,246,0.4);
}

/* Generic page hero */
.page-hero {
  padding: 100px 0 80px;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  max-width: 900px;
  margin-top: 24px;
}
.page-hero h1 em {
  font-style: normal;
  color: var(--secondary);
  font-weight: 300;
}
.page-hero-sub {
  margin-top: 28px;
  font-size: 1.1875rem;
  color: var(--ink-soft);
  max-width: 640px;
}

/* responsive */
@media (max-width: 900px) {
  .hero-grid, .section-head, .cta-band, .foot-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps, .cases, .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid rgba(232,238,246,0.15); padding: 40px 0; }
  .cta-band { padding: 48px 28px; }
  section { padding: 80px 0; }
}


/* ---- Craft & accessibility layer ---- */
/* Tracking scale: display tight, headings mid, body neutral, labels open */
h1 { letter-spacing: -0.035em; line-height: 1.02; }
h2 { letter-spacing: -0.028em; line-height: 1.08; }
h3 { letter-spacing: -0.018em; line-height: 1.2; }
h4 { letter-spacing: -0.01em; line-height: 1.3; }
p, li { letter-spacing: 0; }
h1, h2, h3, h4 { font-optical-sizing: auto; }

/* Visible keyboard focus */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline-offset: 1px; }
.btn:focus-visible { border-radius: 999px; }

/* Nav: soft edge instead of hard line */
.nav { border-bottom-color: transparent; box-shadow: 0 1px 0 rgba(11,49,66,.06), 0 8px 24px -16px rgba(11,49,66,.18); background: rgba(255,255,255,.78); backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%); }

@media (prefers-reduced-transparency: reduce) {
  .nav { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .nav { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; border-bottom: 1px solid var(--ink); }
  :focus-visible { outline-width: 3px; }
}

/* Reduced motion: no loops, no wipes, fades only */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .15s !important; transition-property: opacity, color, background-color, border-color !important; }
  .cta-ripple .ring { animation: none !important; opacity: .5; transform: none !important; }
  .btn:active, .btn-arrow:hover::after { transform: none; }
}

/* Robust small-screen layout */
@media (max-width: 720px) {
  .container { padding: 0 20px; }
  section { padding: 64px 0; }
  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  [style*="display:flex"], [style*="display: flex"] { flex-wrap: wrap; }
  table { display: block; overflow-x: auto; }
  h1, h2, h3, p, li, a { overflow-wrap: anywhere; min-width: 0; }
  .foot-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* ---- Navigation: skip link + mobile menu ---- */
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; font-size: .875rem; }
.skip-link:focus { top: 12px; }
.nav-toggle { display: none; }
.nav-menu-cta { display: none; }

@media (max-width: 900px) {
  .nav-inner { gap: 12px; }
  .nav-cta { margin-left: auto; padding: 9px 14px; font-size: .8125rem; }
  .nav-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
    border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--ink); cursor: pointer;
    transition: border-color .2s ease, transform .1s ease;
  }
  .nav-toggle:active { transform: scale(.94); }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; content: "";
    transition: transform .25s cubic-bezier(.2,.8,.2,1), opacity .2s ease;
  }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before { position: absolute; top: -6px; }
  .nav-toggle-bars::after { position: absolute; top: 6px; }
  .nav.is-open .nav-toggle-bars { background: transparent; }
  .nav.is-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav.is-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

  /* Without JS: links stay reachable as a wrapped row */
  .nav-links { display: flex; flex-wrap: wrap; gap: 8px 20px; order: 3; width: 100%; font-size: .9375rem; }
  html:not(.js) .nav-inner { flex-wrap: wrap; }
  html:not(.js) .nav-toggle { display: none; }

  /* With JS: dropdown panel anchored under the header */
  .js .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; order: 0; width: auto;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 20px 20px; background: #fff;
    border-bottom: 1px solid var(--border); box-shadow: 0 16px 32px -20px rgba(11,49,66,.35);
    font-size: 1.0625rem;
    opacity: 0; transform: translateY(-8px); visibility: hidden; pointer-events: none;
    transform-origin: top right;
    transition: opacity .2s ease, transform .25s cubic-bezier(.2,.8,.2,1), visibility 0s linear .25s;
  }
  .js .nav.is-open .nav-links { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition-delay: 0s; }
  .js .nav-links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--border); color: var(--ink); }
  .js .nav-links a.active { color: var(--primary-dark, var(--secondary)); }
  .js .nav-menu-cta { display: inline-flex; justify-content: center; margin-top: 16px; }
}
@media (max-width: 480px) {
  .js .nav-cta { display: none; }
  .js .nav-toggle { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .js .nav-links { transform: none !important; }
}
