/* ============================================================
   EmClaim — marketing site stylesheet
   Family-cohesive with SmartCodingAI (navy base) but its own
   identity: a benchmark-line signature, teal = fair / amber = over,
   and a more technical display face (Space Grotesk).
   ============================================================ */

:root {
  /* base */
  --ink:        #0b0d1a;   /* near-black navy, kin to the family #0a0a23 */
  --ink-2:      #141833;   /* dark panel */
  --ink-3:      #1e2447;   /* dark panel lighter */
  --paper:      #ffffff;
  --bg-soft:    #f5f7fb;   /* light section */
  --line:       #e3e7f0;   /* hairline */
  --line-dark:  rgba(255,255,255,0.12);

  /* brand: two-tone semantic system */
  --teal:       #0fb3a3;   /* EmClaim teal */
  --teal-deep:  #0b8a7e;
  --teal-soft:  rgba(15,179,163,0.12);
  --amber:      #ef9d18;   /* "over benchmark" — the alert tone */
  --amber-soft: rgba(239,157,24,0.16);

  /* text */
  --text:       #2a3142;
  --text-soft:  #5b6478;
  --text-faint: #8a93a6;
  --heading:    #0b0d1a;

  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --shadow:    0 1px 2px rgba(11,13,26,0.06), 0 8px 24px -12px rgba(11,13,26,0.18);
  --shadow-lg: 0 24px 60px -24px rgba(11,13,26,0.35);
  --ease: cubic-bezier(.2,.7,.2,1);
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-deep); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--teal); }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--heading); line-height: 1.08; letter-spacing: -0.02em; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -0.01em; }
h4 { font-size: 1.12rem; letter-spacing: -0.01em; }
p  { margin-bottom: 1rem; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 760px; }
.section { padding: 5.5rem 0; }
.section.tight { padding: 3.5rem 0; }
.section.dark { background: var(--ink); color: #c9cee0; }
.section.dark h1, .section.dark h2, .section.dark h3, .section.dark h4 { color: #fff; }
.section.soft { background: var(--bg-soft); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-size: .8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .16em; color: var(--teal-deep);
  margin-bottom: 1rem;
}
.section.dark .eyebrow { color: var(--teal); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; opacity: .7; }

.lead { font-size: 1.2rem; color: var(--text-soft); line-height: 1.65; }
.section.dark .lead { color: #aab2c8; }
.section-head { max-width: 680px; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: var(--radius); border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s var(--ease), background .15s var(--ease), box-shadow .2s var(--ease), color .15s var(--ease);
}
.btn-primary { background: var(--teal); color: #04201d; border-color: var(--teal); }
.btn-primary:hover { background: var(--teal-deep); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(15,179,163,.7); }
.btn-ghost { background: transparent; color: var(--heading); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-deep); }
.section.dark .btn-ghost,
.band .btn-ghost,
.hero .btn-ghost { color: #fff; background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.45); }
.section.dark .btn-ghost:hover,
.band .btn-ghost:hover,
.hero .btn-ghost:hover { background: var(--teal-soft); border-color: var(--teal); color: #fff; transform: translateY(-2px); }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 34px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: .4rem; }
.nav a.navlink { font-family: var(--font-display); font-weight: 500; font-size: .98rem; color: var(--text-soft); padding: .5rem .8rem; border-radius: 8px; }
.nav a.navlink:hover, .nav a.navlink[aria-current="page"] { color: var(--heading); background: var(--bg-soft); }
.nav .btn { margin-left: .5rem; }
.menu-btn { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: .5rem; cursor: pointer; }
.menu-btn span { width: 24px; height: 2px; background: var(--heading); border-radius: 2px; transition: .25s var(--ease); }

@media (max-width: 860px) {
  .menu-btn { display: flex; }
  .nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: .75rem 1.5rem 1.25rem;
    gap: .25rem; box-shadow: var(--shadow); transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: .2s var(--ease);
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a.navlink { padding: .75rem .8rem; }
  .nav .btn { margin: .4rem 0 0; }
  .menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn.open span:nth-child(2) { opacity: 0; }
  .menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- hero ---------- */
.hero { background: radial-gradient(120% 120% at 85% -10%, var(--ink-3) 0%, var(--ink) 55%); color: #c9cee0; padding: 5rem 0 5.5rem; }
.hero h1 { color: #fff; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3.5rem; align-items: center; }
.hero .eyebrow { color: var(--teal); }
.hero-sub { font-size: 1.2rem; color: #aab2c8; max-width: 34ch; margin: 1.25rem 0 2rem; }
.hero .btn-row { margin-bottom: 1.25rem; }
.hero-fine { font-size: .9rem; color: #818aa3; }

/* benchmark chart — the signature element */
.benchmark { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius-xl); padding: 1.5rem 1.5rem 1.25rem; box-shadow: var(--shadow-lg); }
.benchmark-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; }
.benchmark-title { font-family: var(--font-display); font-size: .9rem; font-weight: 500; color: #c9cee0; letter-spacing: -.01em; }
.tag { font-family: var(--font-display); font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--text-faint); border: 1px solid var(--line-dark); padding: .25rem .5rem; border-radius: 6px; }
.plot { position: relative; height: 280px; display: flex; align-items: flex-end; gap: 1rem; padding-top: 1.5rem; }
.baseline { position: absolute; left: 0; right: 0; bottom: 24.3%; border-top: 1.5px dashed rgba(201,206,224,.5); }
.baseline span { position: absolute; right: 0; top: -1.45rem; font-family: var(--font-display); font-size: .72rem; font-weight: 600; letter-spacing: .04em; color: #c9cee0; background: var(--ink-2); padding: 0 .35rem; }
.bar { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.bar .col { width: 100%; max-width: 56px; border-radius: 6px 6px 0 0; height: var(--h); transition: height .9s var(--ease); }
.js .bar .col { height: 0; }
.bar.over .col { background: linear-gradient(180deg, var(--amber), #c97c08); }
.bar.fair .col { background: linear-gradient(180deg, var(--teal), var(--teal-deep)); }
.bar .val { font-family: var(--font-display); font-variant-numeric: tabular-nums; font-weight: 600; font-size: .92rem; color: #fff; margin-bottom: .4rem; }
.bar .lbl { font-size: .72rem; color: #818aa3; margin-top: .55rem; text-align: center; line-height: 1.25; }

@media (prefers-reduced-motion: reduce) {
  .bar .col, .js .bar .col { transition: none; height: var(--h); }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfd6e6; }
.card h3, .card h4 { margin-bottom: .6rem; }
.card p { color: var(--text-soft); margin: 0; font-size: .98rem; }
.card .chip { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--teal-soft); color: var(--teal-deep); font-family: var(--font-display); font-weight: 700; margin-bottom: 1rem; }
.card.over .chip { background: var(--amber-soft); color: #b3760a; }

/* numbered steps */
.steps { display: grid; gap: 1.25rem; counter-reset: step; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); }
.step .n { counter-increment: step; font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; font-size: 1rem; color: var(--teal-deep); border: 1.5px solid var(--teal); border-radius: 8px; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; }
.step .n::before { content: counter(step, decimal-leading-zero); }
.step h4 { margin-bottom: .35rem; }
.step p { color: var(--text-soft); margin: 0; }

/* feature row */
.rowset { display: grid; gap: 1.25rem; }
.frow { display: grid; grid-template-columns: 200px 1fr; gap: 1.5rem; padding: 1.5rem 0; border-top: 1px solid var(--line); align-items: start; }
.frow:first-child { border-top: 0; }
.frow h3 { font-size: 1.25rem; }
.frow p { color: var(--text-soft); margin: 0; }

/* checklist */
.checks { display: grid; gap: .7rem; }
.checks li { display: flex; gap: .65rem; align-items: flex-start; color: var(--text); }
.checks li::before { content: ""; flex: none; margin-top: .45rem; width: 14px; height: 8px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }

/* callout band */
.band { background: var(--ink); color: #c9cee0; border-radius: var(--radius-xl); padding: 3rem; text-align: center; }
.band h2 { color: #fff; margin-bottom: .75rem; }
.band p { max-width: 52ch; margin: 0 auto 1.75rem; color: #aab2c8; }
.band .btn-row { justify-content: center; }

/* page header (interior pages) */
.page-head { background: radial-gradient(120% 130% at 90% -20%, var(--ink-3) 0%, var(--ink) 60%); color: #aab2c8; padding: 4.5rem 0 4rem; }
.page-head h1 { color: #fff; margin-bottom: .9rem; }
.page-head .lead { color: #aab2c8; max-width: 60ch; }

/* honest-framing note */
.note { font-size: .92rem; color: var(--text-faint); border-left: 2px solid var(--line); padding: .4rem 0 .4rem 1rem; }
.section.dark .note { color: #818aa3; border-color: var(--line-dark); }

/* ---------- contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 3.5rem; align-items: start; }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 2.25rem; box-shadow: var(--shadow); }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-family: var(--font-display); font-weight: 500; font-size: .92rem; color: var(--heading); margin-bottom: .45rem; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--text);
  padding: .8rem .9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-note { font-size: .85rem; color: var(--text-faint); margin-top: 1rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #818aa3; padding: 3.5rem 0 2.5rem; font-size: .92rem; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line-dark); }
.footer-brand { display: inline-flex; align-items: center; }
.footer-logo { height: 30px; width: auto; display: block; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-links a { color: #aab2c8; font-family: var(--font-display); font-weight: 500; }
.footer-links a:hover { color: #fff; }
.footer-bottom { padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; align-items: center; }
.footer-family { color: #6c7589; }
.footer-family b { color: #aab2c8; font-weight: 600; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.active { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .frow { grid-template-columns: 1fr; gap: .5rem; }
  .band { padding: 2.25rem 1.5rem; }
}
@media (max-width: 540px) {
  body { font-size: 16px; }
  .section { padding: 4rem 0; }
  .field-row { grid-template-columns: 1fr; }
  .plot { height: 230px; }
}
