/* AlloTech.AI — marketing homepage
   Aligned with app.allotech.ai: navy base, cyan accent, Inter.
   No framework, no external requests: the whole page is HTML + this file.
   Muted text is #94A3B8 (6.8:1 on the navy base) rather than the previous
   #64748B, which measured 4.3:1 and failed WCAG AA. */

:root {
  --navy-950: #060B14;
  --navy-900: #0B0F1A;
  --navy-850: #0E1524;
  --navy-800: #121C2E;
  --line: #1D2942;
  --text: #E6E8EE;
  --muted: #94A3B8;
  --cyan: #00C8FF;
  --cyan-dim: #0FA3CE;
  --ink: #04121C;
  --ok: #34D399;
  --warn: #FBBF24;
  --radius: 14px;
  --maxw: 1140px;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--navy-900);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--cyan); color: var(--ink);
  padding: 10px 16px; z-index: 100; font-weight: 600;
}
.skip:focus { left: 8px; top: 8px; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------- header */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,15,26,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.navbar { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { font-weight: 800; font-size: 19px; color: var(--text); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand span { color: var(--cyan); }
.navlinks { display: flex; gap: 22px; margin-left: 12px; flex: 1; }
.navlinks a { color: var(--muted); font-size: 15px; font-weight: 500; }
.navlinks a:hover { color: var(--text); text-decoration: none; }
.navtools { display: flex; align-items: center; gap: 12px; }
.langsw { color: var(--muted); font-size: 14px; font-weight: 600; }

.menu { display: none; }
.menu > summary {
  list-style: none; cursor: pointer;
  width: 40px; height: 40px; border-radius: 9px;
  border: 1px solid var(--line); color: var(--text);
  display: grid; place-items: center; font-size: 19px; line-height: 1;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu[open] > summary { border-color: var(--cyan); color: var(--cyan); }
.menu .sheet {
  /* Fixed rather than absolute: the sheet must span the full viewport width
     regardless of how narrow its .navtools parent happens to be. */
  position: fixed; left: 0; right: 0; top: 60px;
  background: var(--navy-850); border-bottom: 1px solid var(--line);
  padding: 10px 24px 18px;
}
.menu .sheet a {
  display: block; padding: 12px 0; color: var(--text);
  font-size: 16.5px; font-weight: 550; border-bottom: 1px solid var(--line);
}
.menu .sheet a:last-child { border-bottom: 0; }

@media (max-width: 940px) {
  .navlinks { display: none; }
  .menu { display: block; }
  .navbar { height: 60px; position: relative; }
}

/* ----------------------------------------------------------------- button */
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 10px;
  font-weight: 650; font-size: 16px; line-height: 1.2; border: 1px solid transparent;
  transition: transform .18s cubic-bezier(.22,1,.36,1), background-color .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--cyan); color: var(--ink); }
.btn-primary:hover { background: #3AD5FF; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-sm { padding: 9px 16px; font-size: 14.5px; }

/* --------------------------------------------------------------- sections */
section { padding: 88px 0; border-top: 1px solid transparent; }
section.alt { background: var(--navy-850); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--cyan); margin: 0 0 14px;
}
h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 22px; font-weight: 800; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.16; letter-spacing: -.02em; margin: 0 0 18px; font-weight: 750; }
h3 { font-size: 19px; line-height: 1.35; margin: 0 0 8px; font-weight: 680; }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 62ch; margin: 0 0 30px; }
.section-lede { font-size: 18px; color: var(--muted); max-width: 68ch; margin: 0 0 44px; }

/* ------------------------------------------------------------------- hero */
.hero { padding: 92px 0 76px; }
.hero .lede { max-width: 60ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.cta-note { font-size: 14.5px; color: var(--muted); margin: 18px 0 0; }

/* ------------------------------------------------------------------ cards */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card {
  background: var(--navy-850); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
section.alt .card { background: var(--navy-800); }
.card p { color: var(--muted); margin: 0; font-size: 15.5px; }
.card p + p { margin-top: 10px; }

.pain { display: flex; gap: 13px; align-items: flex-start; }
.pain .mark { color: var(--warn); font-weight: 800; flex: none; line-height: 1.5; }

/* ------------------------------------------------------------------ steps */
.steps { counter-reset: s; }
.step { display: flex; gap: 18px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step .num {
  counter-increment: s; flex: none;
  width: 34px; height: 34px; border-radius: 9px;
  background: rgba(0,200,255,.12); border: 1px solid rgba(0,200,255,.35);
  color: var(--cyan); font-weight: 700; font-size: 15px;
  display: grid; place-items: center;
}
.step .num::before { content: counter(s); }

/* ------------------------------------------------------------------ agent */
.agent .top { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.agent .emoji { font-size: 24px; line-height: 1; }
.agent h3 { margin: 0; }
.agent .role { font-size: 13.5px; color: var(--muted); }
.badge {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.badge-prod { background: rgba(52,211,153,.14); color: var(--ok); border: 1px solid rgba(52,211,153,.35); }
.badge-beta { background: rgba(251,191,36,.13); color: var(--warn); border: 1px solid rgba(251,191,36,.35); }
.meta { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.meta strong { color: var(--text); font-weight: 600; }

/* --------------------------------------------------------------- timeline */
.tl { border-left: 2px solid var(--line); padding-left: 26px; margin: 0; }
.tl li { list-style: none; padding-bottom: 26px; position: relative; }
.tl li:last-child { padding-bottom: 0; }
.tl li::before {
  content: ""; position: absolute; left: -33px; top: 8px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--cyan); border: 3px solid var(--navy-900);
}
.tl .time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--cyan); font-size: 14px; letter-spacing: .04em; }
.tl h3 { margin: 4px 0 4px; font-size: 17.5px; }
.tl p { color: var(--muted); margin: 0; font-size: 15.5px; }

/* --------------------------------------------------------------- pricing */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1000px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .price-grid { grid-template-columns: 1fr; } }
.plan { background: var(--navy-850); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.plan.feature { border-color: rgba(0,200,255,.5); }
.plan .name { font-weight: 700; font-size: 17px; margin: 0 0 2px; }
.plan .who { font-size: 13.5px; color: var(--muted); min-height: 38px; margin: 0 0 12px; }
.plan .amt { font-size: 33px; font-weight: 800; letter-spacing: -.02em; }
.plan .per { font-size: 14px; color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 16px 0 20px; }
.plan li { font-size: 14.5px; color: var(--muted); padding-left: 22px; position: relative; margin-bottom: 8px; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--cyan); font-weight: 700; }
.plan .btn { width: 100%; text-align: center; }
.price-note { margin-top: 24px; font-size: 14.5px; color: var(--muted); }

/* -------------------------------------------------------------- trust/faq */
.trust li { color: var(--muted); margin-bottom: 11px; font-size: 15.5px; }
.callout {
  background: var(--navy-800); border: 1px solid var(--line);
  border-left: 3px solid var(--cyan); border-radius: 10px;
  padding: 18px 20px; margin-top: 26px; font-size: 15.5px; color: var(--muted);
}
.callout strong { color: var(--text); }

details.faq { border-bottom: 1px solid var(--line); padding: 18px 0; }
details.faq summary { cursor: pointer; font-weight: 620; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--cyan); font-weight: 700; flex: none; }
details.faq[open] summary::after { content: "–"; }
details.faq p { color: var(--muted); margin: 12px 0 0; font-size: 15.5px; max-width: 76ch; }

/* ------------------------------------------------------------------- final */
.final { text-align: center; }
.final .cta-row { justify-content: center; }

/* ------------------------------------------------------------------ footer */
footer.site { background: var(--navy-950); border-top: 1px solid var(--line); padding: 56px 0 34px; }
.fgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .fgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .fgrid { grid-template-columns: 1fr; } }
footer.site h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--text); margin: 0 0 14px; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: 9px; }
footer.site a { color: var(--muted); font-size: 14.5px; }
footer.site a:hover { color: var(--cyan); }
footer.site .about { color: var(--muted); font-size: 14.5px; max-width: 34ch; }
.legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* ------------------------------------------------- catalogue group headings */
.cat-h {
  font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text); margin: 42px 0 16px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px;
}
.cat-h:first-of-type { margin-top: 0; }
.cat-n {
  font-size: 12px; font-weight: 700; color: var(--cyan);
  background: rgba(0,200,255,.12); border: 1px solid rgba(0,200,255,.3);
  border-radius: 999px; padding: 1px 9px; letter-spacing: 0;
}
.grid.g3 .agent p { font-size: 14.5px; }
