/* ============================================================
   ARVENZA.ai — home page
   Extends style.css + pages.css (diagram vocabulary, figures).
   ============================================================ */

/* ---- hero: the operating layer, drawn live ---- */
.hhero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 76px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(820px 520px at 78% 42%, rgba(20, 184, 196, 0.09), transparent 62%),
    radial-gradient(620px 420px at 96% 96%, rgba(224, 168, 104, 0.06), transparent 60%),
    var(--abyss);
}
.hhero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: center;
}
.hhero__inner > * { min-width: 0; }
.hhero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 22px; }
.hhero__sub { color: var(--muted); font-size: 1.06rem; max-width: 54ch; margin-bottom: 30px; }
.hhero__note { margin-top: 20px; font-size: 0.85rem; color: var(--faint); max-width: 54ch; }
.hhero__diagram svg { display: block; width: 100%; height: auto; overflow: visible; }
@media (max-width: 1100px) {
  .hhero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hhero__diagram { max-width: 600px; }
}

/* the band that is the operating layer */
.dx-band { fill: rgba(20, 184, 196, 0.045); stroke: url(#layer-edge); stroke-width: 1.4; }
.dx-bandlabel { font-family: var(--display); font-size: 12px; font-weight: 600; fill: var(--white); }
.dx-chip .dx-frame { fill: var(--panel-2); stroke: rgba(147, 160, 188, 0.34); stroke-width: 1; }

/* each product keeps its own colour, including when it lights up */
.dx-prod .dx-frame { fill: color-mix(in srgb, var(--k1) 9%, var(--panel-2)); }
.dx-prod .dx-glow { stroke: var(--k1); fill: color-mix(in srgb, var(--k1) 22%, transparent); }

/* ---- shared section rhythm ---- */
.hsec { padding: 92px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 72px; }
.hsec--panel { background: var(--panel); }
.hsec h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); max-width: 26ch; }
.hsec__lead { color: var(--muted); max-width: 62ch; font-size: 1rem; }
.hsec__more { display: inline-block; margin-top: 30px; font-weight: 500; }
@media (max-width: 640px) { .hsec { padding: 64px 0; } }

/* ---- the four products, as a 2 × 2 map ---- */
.pmap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 36px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.pmap > a {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 22px;
  padding: 32px 32px 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: inherit;
  transition: background-color 0.25s ease;
}
.pmap > a:hover, .pmap > a:focus-visible { background: color-mix(in srgb, var(--k1) 6%, transparent); }
.pmap > a:focus-visible { outline: 2px solid var(--k1); outline-offset: -2px; }
.pglyph { width: 60px; height: 60px; }
.pglyph * { fill: none; stroke: var(--k1); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pglyph .f { fill: var(--k1); stroke: none; }
.pglyph .s2 { stroke: var(--k2); }
.pmap__cat { display: block; color: var(--muted); font-size: 0.85rem; margin-bottom: 2px; }
.pmap h3 {
  display: inline-block;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(94deg, var(--k1) 10%, var(--k2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}
.pmap__status {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--k1);
  -webkit-text-fill-color: currentColor;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 2px 9px;
  margin-left: 8px;
  vertical-align: 0.35em;
}
.pmap p { color: var(--muted); font-size: 0.95rem; margin-bottom: 16px; max-width: 44ch; }
.pmap__fact { color: var(--text); font-size: 0.9rem; padding-left: 12px; border-left: 2px solid var(--k1); margin-bottom: 18px; }
.pmap__more { color: var(--k1); font-weight: 500; font-size: 0.93rem; }
@media (max-width: 900px) {
  .pmap { grid-template-columns: 1fr; }
  .pmap > a { grid-template-columns: 48px 1fr; gap: 16px; padding: 26px 22px; }
  .pglyph { width: 48px; height: 48px; }
}

/* figures take the colour of the product they measure */
.fig[class*="k-"] { border-left-color: var(--k1); }
.figs__note a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* ---- why: four statements ---- */
.why { display: grid; grid-template-columns: 1fr 1fr; margin-top: 34px; border-top: 1px solid var(--line); }
.why > div { padding: 30px 36px 30px 0; border-bottom: 1px solid var(--line); }
.why > div:nth-child(even) { padding: 30px 0 30px 36px; border-left: 1px solid var(--line); }
.why h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); margin-bottom: 10px; }
.why p { color: var(--muted); max-width: 48ch; }
@media (max-width: 760px) {
  .why { grid-template-columns: 1fr; }
  .why > div, .why > div:nth-child(even) { padding: 26px 0; border-left: 0; }
}

/* ---- use cases, tagged with the products they use ---- */
.ucgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 34px; margin-top: 34px; }
.ucgrid > div { padding-top: 18px; border-top: 1px solid var(--line); }
.ucgrid h3 { font-size: 1.08rem; margin-bottom: 8px; }
.ucgrid p { color: var(--muted); font-size: 0.93rem; margin-bottom: 14px; }
.pchips { display: flex; flex-wrap: wrap; gap: 6px; }
.pchip {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--k1);
  border: 1px solid color-mix(in srgb, var(--k1) 55%, transparent);
  border-radius: 999px;
  padding: 2px 10px;
}
@media (max-width: 900px) { .ucgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ucgrid { grid-template-columns: 1fr; } }

/* ---- three steps, each with a way into the docs ---- */
.hsteps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 38px; counter-reset: hstep; list-style: none; }
.hsteps li { position: relative; padding-top: 54px; counter-increment: hstep; }
.hsteps li::before {
  content: counter(hstep);
  position: absolute;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  color: var(--abyss);
  background: linear-gradient(135deg, var(--teal), var(--peri));
}
.hsteps li::after { content: ""; position: absolute; top: 18px; left: 50px; right: -20px; height: 1px; background: var(--line); }
.hsteps li:last-child::after { display: none; }
.hsteps h3 { margin-bottom: 8px; }
.hsteps p { color: var(--muted); font-size: 0.95rem; margin-bottom: 12px; }
.hsteps a { font-weight: 500; font-size: 0.93rem; }
@media (max-width: 800px) {
  .hsteps { grid-template-columns: 1fr; gap: 28px; }
  .hsteps li::after { display: none; }
}

/* ---- go deeper ---- */
.rlinks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 32px; }
.rlinks a { display: block; padding-top: 16px; border-top: 1px solid var(--line); transition: border-color 0.2s ease; }
.rlinks b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--white); margin-bottom: 6px; }
.rlinks span { display: block; color: var(--muted); font-size: 0.92rem; }
.rlinks a:hover, .rlinks a:focus-visible { border-top-color: var(--teal); }
.rlinks a:hover b { color: var(--teal); }
@media (max-width: 900px) { .rlinks { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .rlinks { grid-template-columns: 1fr; } }

/* ---- contact: keep the form inside a phone screen ---- */
.journey__inner > * { min-width: 0; }
.journey .cform input, .journey .cform textarea { width: 100%; min-width: 0; }
@media (max-width: 980px) { .journey__inner { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .journey .cform { grid-template-columns: 1fr; } }


/* ---- compact single-window layer (2026-09-29) ---- */
.hhero { padding: 32px 0 46px; }
.hsec { padding: 54px 0; }
.pmap { grid-template-columns: repeat(4, 1fr); }
.pmap a { padding: 20px 18px; }
.pmap .pglyph { width: 38px; height: 38px; }
.pmap h3 { font-size: 1.05rem; }
.pmap a > div > p { font-size: 0.85rem; }
.pmap__fact, .pmap__more { font-size: 0.78rem; }
@media (max-width: 1080px) { .pmap { grid-template-columns: 1fr 1fr; } }

.pmap a { padding: 15px 16px; }
.pmap .pglyph { width: 32px; height: 32px; }

.pmap a { padding: 12px 14px; }

img.pglyph { border-radius: 9px; }

/* ---- One-window chapters (2026-10-01): each homepage topic fills its own window; nothing peeks across the fold ---- */
@media (min-width: 980px) {
  .hhero, .hsec, .section.journey {
    display: flex; align-items: center;
    min-height: calc(100vh - 71px);
  }
  .hhero > .container, .hsec > .container, .section.journey > .container { width: 100%; }
  .hhero { padding: 0 0 20px; }
  section[id] { scroll-margin-top: 71px; }
}
@media (min-width: 980px) {
  .hsec { padding: 28px 0; }
  .section.journey { padding: 28px 0; }
  #products.hsec { padding: 14px 0; }
  .pmap { margin-top: 10px; }
  .pmap a { padding: 10px 12px; }
}
@media (min-width: 980px) {
  .journey__card { padding: 20px 22px; }
  .callrow { padding: 9px 12px; }
  .cform input, .cform textarea, .cform select { padding: 8px 12px; }
  .journey__caption { margin: 6px 0 10px; }
  .cform__privacy { margin-top: 8px; }
}
@media (min-width: 980px) {
  .cform { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
  .cform textarea, .cform button { grid-column: 1 / -1; }
}
@media (min-width: 980px) {
  .journey__sub { margin: 4px 0 8px; }
  .cform__title { margin: 6px 0 6px; }
  .journey__caption { margin: 4px 0 6px; }
  .cform__privacy { margin-top: 6px; font-size: 0.78rem; }
  .callrow { padding: 7px 12px; }
  .journey__card { padding: 16px 20px; }
}
