/* ==========================================================================
   Aria Labs — landing page
   Tokens mirror the design source: dark ground, paper inversions, lime accent.
   ========================================================================== */

:root {
  /* Color */
  --ink: #0A0A0B;
  --paper: #EFEEE9;
  --lime: #C6F832;
  --amber: #FFD60A;

  --ink-70: rgba(10, 10, 11, 0.72);
  --ink-68: rgba(10, 10, 11, 0.68);
  --ink-60: rgba(10, 10, 11, 0.60);
  --ink-55: rgba(10, 10, 11, 0.55);
  --ink-50: rgba(10, 10, 11, 0.50);
  --ink-rule: rgba(10, 10, 11, 0.16);

  --paper-80: rgba(239, 238, 233, 0.80);
  --paper-72: rgba(239, 238, 233, 0.72);
  --paper-70: rgba(239, 238, 233, 0.70);
  --paper-62: rgba(239, 238, 233, 0.62);
  --paper-55: rgba(239, 238, 233, 0.55);
  --paper-45: rgba(239, 238, 233, 0.45);
  --rule: rgba(239, 238, 233, 0.12);
  --rule-strong: rgba(239, 238, 233, 0.18);
  --wash: rgba(239, 238, 233, 0.03);

  /* Type */
  --display: "Archivo", system-ui, sans-serif;
  --body: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  /* Layout */
  --shell: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(64px, 8vw, 120px);
  --radius: 2px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--amber); }

img, svg { max-width: 100%; }

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

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  padding: 12px 20px;
}
.skip-link:focus { left: 12px; top: 12px; color: var(--ink); }

/* --- Shared type roles ---------------------------------------------------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 20px;
}
.eyebrow--ink { color: var(--ink-55); }

.section-head h2 {
  font-size: clamp(32px, 4.4vw, 58px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.tag {
  color: var(--amber);
  font-family: var(--mono);
}

/* --- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.01em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover {
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 8px 0 -3px var(--amber);
}

.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { color: var(--paper); transform: translateY(-2px); }

.btn--sm { font-size: 14px; padding: 12px 20px; }
.btn--sm:hover { box-shadow: 0 6px 0 -2px var(--amber); transform: translateY(-1px); }
.btn--lg { font-size: 16px; padding: 18px 30px; }

.link-underline {
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--paper-72);
  padding-bottom: 3px;
}
.link-underline--lime { font-size: 15px; border-bottom-color: var(--lime); padding-bottom: 4px; }

/* --- Header --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 11, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 16px;
}

/* The mark is an <img>, so the page's `color` cannot reach it and the old
   currentColor hover is gone; opacity carries the affordance instead. */
.logo { display: flex; align-items: center; flex: 0 0 auto; transition: opacity .18s ease; }
.logo:hover { opacity: 0.78; }
.logo img { display: block; }

.site-nav .btn--sm { display: none; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
  margin-left: auto;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  color: var(--paper);
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}

.hero__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
  padding-top: clamp(56px, 8vw, 120px);
  padding-bottom: clamp(40px, 5vw, 72px);
}

.hero h1 {
  font-size: clamp(44px, 6.6vw, 86px);
  line-height: 0.94;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.hero__mark {
  position: relative;
  display: inline-block;
  padding: 0 2px;
}
.hero__mark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.08em;
  height: 0.09em;
  background: var(--lime);
}

.hero__sub {
  margin-top: 28px;
  max-width: 44ch;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
  color: var(--paper-72);
}

.hero__actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

/* --- Hero figure / viz toggle -------------------------------------------- */

.viz {
  margin: 0;
  border: 1px solid rgba(239, 238, 233, 0.16);
  background: var(--wash);
  padding: clamp(18px, 2vw, 26px);
}
.viz[hidden] { display: none; }

.viz figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(239, 238, 233, 0.6);
  margin-bottom: 18px;
}

.viz__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--paper-62);
}
.viz__legend span { display: flex; align-items: center; gap: 8px; }
.swatch-line { width: 18px; height: 3px; background: var(--lime); }
.swatch-dash { width: 18px; height: 0; border-top: 1.5px dashed rgba(239, 238, 233, 0.5); }

@keyframes ariaDraw {
  from { stroke-dashoffset: 1400; }
  to { stroke-dashoffset: 0; }
}
.viz__curve { animation: ariaDraw 1.6s ease-out both; }

.viz__dots {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 10px;
  align-items: center;
  justify-items: center;
  padding: 8px 0;
}
.viz__dots span { border-radius: 50%; background: var(--lime); }

.viz-switch {
  display: flex;
  gap: 1px;
  margin-bottom: 14px;
  background: rgba(239, 238, 233, 0.16);
  border: 1px solid rgba(239, 238, 233, 0.16);
  width: fit-content;
}
.viz-switch button {
  background: var(--ink);
  color: var(--paper-62);
  border: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 9px 16px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.viz-switch button:hover { color: var(--paper); }
.viz-switch button[aria-pressed="true"] { background: var(--lime); color: var(--ink); }

/* --- Proof strip ---------------------------------------------------------- */

.proof { border-top: 1px solid var(--rule); }
.proof__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  padding-block: 28px;
}
.proof__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-55);
}
.proof__logos {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-left: auto;
  list-style: none;
  margin-block: 0;
  padding: 0;
}
.proof__logos li {
  border: 1px solid rgba(239, 238, 233, 0.2);
  padding: 9px 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(239, 238, 233, 0.6);
  transition: border-color .2s ease, color .2s ease;
}
.proof__logos li:hover { border-color: var(--lime); color: var(--paper); }

/* --- Inverted sections ---------------------------------------------------- */

.section { padding-block: var(--section-y); }
.section--paper { background: var(--paper); color: var(--ink); }
.section--rule { border-bottom: 1px solid var(--rule); }

/* --- Problem grid (3-up) -------------------------------------------------- */

.problem-grid {
  margin-top: clamp(40px, 5vw, 72px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--ink-rule);
  border: 1px solid var(--ink-rule);
}

.problem {
  background: var(--paper);
  padding: clamp(26px, 3vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: background .2s ease;
}
.problem:hover { background: #E6E4DC; }

.problem__n {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-50);
}
.problem h3 {
  font-size: clamp(21px, 2vw, 26px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.problem__detail { font-size: 16px; line-height: 1.55; color: var(--ink-68); }
.problem__outcome {
  margin-top: auto;
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}
.problem__outcome dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-bottom: 8px;
}
.problem__outcome dd {
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 600;
  font-family: var(--display);
  letter-spacing: -0.01em;
}

/* --- Capability cards ----------------------------------------------------- */

.head-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
}
.head-row > div { max-width: 48ch; }

.feature-grid {
  margin-top: clamp(40px, 5vw, 72px);
  display: grid;
  /* 250px, not the source's 270px: at the 1240px shell four cards otherwise
     wrap 3 + 1 and orphan the last one. */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.feature {
  border: 1px solid var(--rule-strong);
  background: var(--wash);
  padding: clamp(24px, 2.6vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.feature:hover {
  border-color: var(--lime);
  background: rgba(198, 248, 50, 0.06);
  transform: translateY(-3px);
}
.feature__icon { height: 44px; display: flex; align-items: flex-end; }
.feature h3 {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.feature p { font-size: 15.5px; line-height: 1.6; color: var(--paper-70); }

/* --- Steps ---------------------------------------------------------------- */

.steps {
  list-style: none;
  margin: clamp(40px, 5vw, 72px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(24px, 3vw, 48px);
}
.step { display: flex; flex-direction: column; gap: 16px; }
.step__rule { display: flex; align-items: center; gap: 14px; }
.step__n {
  font-family: var(--display);
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.step__rule i { flex: 1; height: 2px; background: var(--ink); }
.step h3 {
  font-size: clamp(21px, 2vw, 25px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.step p { font-size: 16px; line-height: 1.6; color: var(--ink-68); }

/* --- Pricing -------------------------------------------------------------- */

.pricing-grid {
  margin-top: clamp(40px, 5vw, 72px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: rgba(239, 238, 233, 0.16);
  border: 1px solid rgba(239, 238, 233, 0.16);
}

.tier {
  background: var(--ink);
  padding: clamp(26px, 3vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: background .2s ease;
}
.tier:hover { background: rgba(198, 248, 50, 0.05); }

.tier--featured { background: var(--lime); color: var(--ink); }
.tier--featured:hover { background: #BDF221; }

.tier__name {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-55);
}
.tier--featured .tier__name { color: var(--ink-60); }
.tier__badge {
  background: var(--ink);
  color: var(--lime);
  padding: 4px 8px;
  letter-spacing: 0.1em;
}

.tier__price {
  font-family: var(--display);
  font-size: clamp(40px, 4.6vw, 58px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.tier__price span {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--paper-62);
}
.tier--featured .tier__price span { color: var(--ink-60); }

.tier__flag {
  margin-top: -8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-60);
}

.tier h3 {
  font-size: clamp(21px, 2vw, 25px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.tier__pitch { font-size: 15.5px; line-height: 1.55; color: var(--paper-70); }
.tier--featured .tier__pitch { color: var(--ink-68); }

.tier__list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--paper-70);
}
.tier--featured .tier__list { color: var(--ink-68); }
.tier__list li { display: flex; gap: 12px; }
.tier__list li::before {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-top: 6px;
  background: var(--lime);
}
.tier--featured .tier__list li::before { background: var(--ink); }

.tier__cta { margin-top: auto; padding-top: 8px; }
.tier__cta .btn { display: block; text-align: center; }

.btn--outline {
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--rule-strong);
  font-size: 16px;
  padding: 17px 26px;
}
.btn--outline:hover {
  color: var(--ink);
  background: var(--lime);
  border-color: var(--lime);
  transform: translateY(-2px);
}

.pricing-note {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--paper-55);
}

/* --- Metric block --------------------------------------------------------- */

.metric__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(64px, 8vw, 110px);
}
.metric__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 24px;
}
.metric__figure {
  font-family: var(--display);
  font-size: clamp(80px, 13vw, 168px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.86;
  color: var(--lime);
}
.metric__caption {
  margin-top: 24px;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.45;
  max-width: 36ch;
  color: var(--paper-80);
}
.metric__rows {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(239, 238, 233, 0.16);
  border: 1px solid rgba(239, 238, 233, 0.16);
  margin: 0;
}
.metric__row {
  background: var(--ink);
  padding: 22px clamp(18px, 2vw, 28px);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
}
.metric__row dt { font-size: 15.5px; color: rgba(239, 238, 233, 0.75); }
.metric__row dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 15px;
  color: var(--lime);
}

/* --- CTA banner ----------------------------------------------------------- */

.cta { background: var(--lime); color: var(--ink); }
.cta__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(64px, 8vw, 110px);
}
.cta h2 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.cta__sub {
  margin-top: 22px;
  max-width: 42ch;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
  color: var(--ink-70);
}

.cta__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 440px;
  width: 100%;
  justify-self: end;
}
.cta__form label { display: flex; flex-direction: column; gap: 8px; }
.cta__form label > span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.cta__form input {
  font-family: var(--body);
  font-size: 16px;
  padding: 16px 18px;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  width: 100%;
}
.cta__form input::placeholder { color: var(--ink-50); }
.cta__form button { margin-top: 6px; padding: 18px 26px; }
.cta__fineprint { font-size: 13px; line-height: 1.5; color: var(--ink-60); }
.cta__status { font-size: 14px; font-weight: 600; font-family: var(--display); }
.cta__status:empty { display: none; }

/* --- Footer --------------------------------------------------------------- */

.site-footer { border-top: 1px solid var(--rule); }
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  padding-block: clamp(40px, 5vw, 64px);
}
.site-footer__logo { display: block; opacity: 0.72; transition: opacity .18s ease; }
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 2.4vw, 32px);
  font-size: 14px;
  color: var(--paper-70);
}
.site-footer__legal {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--paper-45);
}

/* --- Reveal on scroll ----------------------------------------------------- */

.js-reveal .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 860px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter) 20px;
    font-size: 16px;
  }
  .site-nav[hidden] { display: none; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--rule); }

  .site-header__inner { position: relative; gap: 16px; }
  .site-header .btn--sm { display: none; }
  .site-nav .btn--sm { display: block; margin-top: 16px; text-align: center; }

  .proof__logos { margin-left: 0; }
  .cta__form { justify-self: start; }
}

@media (max-width: 520px) {
  .viz__dots { grid-template-columns: repeat(8, 1fr); }
  .hero__actions .btn--lg { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js-reveal .reveal { opacity: 1; transform: none; }
}
