/* ============================================================
   Anzen API — Landing page (v2, leaner)
   ============================================================ */

@font-face { font-family: 'Founders Grotesk'; src: url('/fonts/FoundersGrotesk-Light.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Founders Grotesk'; src: url('/fonts/FoundersGrotesk-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Founders Grotesk'; src: url('/fonts/FoundersGrotesk-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --brand-100: #eff0ed;
  --brand-200: #cad3c7;
  --brand-300: #75946e;
  --brand-500: #013806;
  --brand-600: #081f09;
  --sage:      #e8ebe8;
  --cream:     #f0f2ef;
  --mint:      #8ddc7c;
  --mint-soft: #b6e0ac;

  --white: #ffffff;
  --ink:   #1a1a1a;
  --ink-2: #262626;
  --ink-3: #646464;
  --line:  #e5e5e5;
  --line-sage: #d0d7cf;

  --dark:      #081f09;
  --dark-2:    #0c2a0e;
  --dark-line: #1e3a20;

  --font: 'Founders Grotesk', 'Inter', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
.band-dark { background: var(--dark); color: #fff; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
section { position: relative; }

.kicker { display: inline-flex; align-items: center; gap: 11px; font-size: 13px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--brand-500); margin: 0; }
.kicker img { width: 16px; height: 14px; }
.band-dark .kicker { color: var(--mint); }

.lead { font-size: 20px; line-height: 1.5; color: var(--ink-2); margin: 0; font-weight: 400; }
.band-dark .lead { color: var(--brand-200); }

.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font); font-size: 16px; font-weight: 500; border-radius: 8px; padding: 14px 24px; cursor: pointer; border: 1px solid transparent; transition: background .3s ease, color .3s ease, border-color .3s ease; white-space: nowrap; }
.band-dark .btn-primary { background: var(--mint); color: var(--brand-600); box-shadow: none; }
.band-dark .btn-primary:hover { background: var(--mint-soft); }
.band-dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.28); }
.band-dark .btn-ghost:hover { background: rgba(255,255,255,0.08); }

/* HERO */
.hero { padding: 32px 0 40px; }
.hero-inner { display: flex; justify-content: flex-start; text-align: left; }
.hero-copy { max-width: 760px; }
.hero .kicker { color: var(--brand-300); }
.hero h1 { font-size: 60px; line-height: 1.0; letter-spacing: -2px; color: var(--ink); margin: 22px 0 0; max-width: 18ch; }
.hero .lead { margin: 24px 0 0; max-width: 52ch; font-size: 21px; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; justify-content: flex-start; }

/* SECTION scaffolding */
.section-head { max-width: 680px; }
.section-head h2 { font-size: 42px; line-height: 1.05; letter-spacing: -1.2px; margin-top: 16px; }
.section-head .lead { margin-top: 18px; }

/* what it is (stacked doc rows) */
.doc-list { margin-top: 52px; }
.doc-row { display: grid; grid-template-columns: 52px minmax(220px, 0.7fr) 1.3fr; align-items: start; gap: 28px; padding: 30px 0; border-top: 1px solid var(--line-sage); }
.doc-list .doc-row:last-child { border-bottom: 1px solid var(--line-sage); }
.doc-ico { width: 52px; height: 52px; border-radius: 13px; flex: none; background: var(--brand-500); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; align-self: center; }
.doc-row h3 { font-size: 24px; letter-spacing: -0.5px; align-self: center; }
.doc-row p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink-3); max-width: 56ch; align-self: center; }

@media (max-width: 640px) {
  .doc-row { grid-template-columns: 52px 1fr; column-gap: 16px; row-gap: 12px; align-items: center; padding: 26px 0; }
  .doc-row h3 { grid-column: 2; align-self: center; font-size: 21px; }
  .doc-row p { grid-column: 1 / -1; align-self: start; font-size: 16px; max-width: none; }
}

/* STATEMENT BANDS */
.statement { background: var(--cream); border-top: 1px solid var(--line-sage); border-bottom: 1px solid var(--line-sage); }
.statement .wrap { max-width: var(--maxw); }
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
.ps-col:first-child { padding-right: 56px; }
.ps-col--solution { padding-left: 56px; border-left: 1px solid var(--line-sage); }
.ps-h { font-size: 32px; line-height: 1.08; letter-spacing: -1px; margin-top: 14px; text-wrap: balance; }
.ps-p { font-size: 19px; line-height: 1.5; color: var(--ink-2); margin: 18px 0 0; }

/* where it plugs in */
.plug-head { max-width: 680px; }
.plug-head h2 { font-size: 42px; line-height: 1.05; letter-spacing: -1.2px; margin-top: 16px; }
.plug-head .lead { margin-top: 18px; }
.plug-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 56px; margin-top: 52px; align-items: center; }
.plug-list { display: flex; flex-direction: column; gap: 4px; }
.plug-item { padding: 26px 0; border-top: 1px solid var(--line-sage); display: flex; align-items: flex-start; gap: 18px; }
.plug-item:last-child { border-bottom: 1px solid var(--line-sage); }
.plug-item i { color: var(--brand-500); font-size: 26px; line-height: 26px; flex: none; margin-top: 0; }
.plug-item h4 { font-size: 21px; letter-spacing: -0.4px; margin: 0; }
.plug-item p { margin: 8px 0 0; font-size: 16px; line-height: 1.5; color: var(--ink-3); }

/* DEPTH & TRUST (dark) */
.trust-grid { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 60px; margin-top: 52px; align-items: start; }
.trust-illus { min-height: 440px; }
.trust-head h2 { color: #fff; }
.why-copy { order: 1; }
.trust-grid .nf-panel { order: 2; }

/* WHY US metrics */
.why-p { font-size: 20px; line-height: 1.55; color: var(--brand-200); margin: 0 0 20px; }
.why-p:first-of-type { margin-top: 0; }
.metric-strip { display: flex; flex-direction: column; gap: 0; margin-top: 12px; }
.metric { display: flex; align-items: baseline; gap: 18px; padding: 18px 0; border-top: 1px solid var(--dark-line); }
.metric:last-child { border-bottom: 1px solid var(--dark-line); }
.m-big { font-size: 32px; font-weight: 500; color: var(--mint); letter-spacing: -1px; line-height: 1; flex: none; min-width: 3.4ch; }
.m-lbl { font-size: 16px; color: var(--brand-200); line-height: 1.4; }

/* CTA + form */
.cta { padding: 104px 0; text-align: left; background: var(--cream); border-top: 1px solid var(--line-sage); }
.cta h2 { font-size: 42px; letter-spacing: -1.2px; line-height: 1.05; max-width: 18ch; margin: 22px 0 0; }
.cta .lead { margin: 22px 0 0; max-width: 52ch; }
.cta-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 72px; align-items: start; }
.cta-grid .cta-copy h2 { max-width: 16ch; }
.cta-form-wrap { background: var(--white); border: 1px solid var(--line-sage); border-radius: 16px; padding: 32px 30px; box-shadow: 0 2px 8px rgba(39,39,39,0.06); }
.cta .demo-form { display: flex; flex-direction: column; gap: 18px; }
.cta .demo-form[hidden] { display: none; }
.cta .field { display: flex; flex-direction: column; gap: 7px; }
.cta .field label { font-size: 14px; font-weight: 500; color: var(--ink); letter-spacing: -0.2px; }
.cta .field input { font-family: var(--font); font-size: 16px; color: var(--ink); padding: 12px 14px; border: 1px solid var(--line-sage); border-radius: 8px; background: var(--white); transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out; }
.cta .field input::placeholder { color: var(--ink-3); }
.cta .field input:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 2px rgba(1,56,6,0.18); }
.cta .field input[aria-invalid="true"] { border-color: var(--error, #bc362b); }
.cta .field .field-err { font-size: 13px; color: var(--error, #bc362b); min-height: 0; }
.df-submit { width: 100%; justify-content: center; margin-top: 6px; }
.cta .demo-confirm { text-align: center; padding: 18px 8px 14px; }
.cta .dc-mark i { font-size: 52px; color: var(--brand-500); line-height: 1; }
.cta .dc-title { color: var(--brand-500); font-size: 26px; letter-spacing: -0.5px; margin: 14px 0 0; }
.cta .dc-msg { font-size: 16px; line-height: 1.5; color: var(--ink-3); margin: 10px 0 0; }

@media (max-width: 880px) {
  .cta-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* reveal */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s cubic-bezier(.2,.7,.3,1), transform .6s cubic-bezier(.2,.7,.3,1); }
  .reveal.in { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .plug-grid, .trust-grid { grid-template-columns: 1fr; gap: 40px; }
  .ps-grid { grid-template-columns: 1fr; gap: 36px; }
  .ps-col:first-child { padding-right: 0; }
  .ps-col--solution { padding-left: 0; border-left: none; padding-top: 36px; border-top: 1px solid var(--line-sage); }
  .section-head h2, .cta h2 { font-size: 34px; }
  .hero h1 { font-size: 44px; }
  .trust-illus { min-height: 320px; }
}
