/* ============================================================
   Nevara Compute — design tokens
   Palette derived from matplotlib tab10 (the actual colours of
   a training curve) on cool plotting-paper ground.
   ============================================================ */

:root {
  --brand-navy: #010D27;
  --brand-cyan: #4FE3EF;
  --paper:      #EDF0F4;
  --paper-deep: #E2E7EE;
  --ink:        #0C1830;
  --ink-soft:   #3A4761;
  --muted:      #7A879B;
  --rule:       #D0D8E3;
  --grid:       #DCE3EC;
  --train:      #1F77B4;
  --val:        #FF7F0E;
  --white:      #FBFCFD;

  --f-display: "Archivo", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;

  --wrap: 1140px;
  --gap: clamp(64px, 9vw, 128px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--train); text-decoration-thickness: 1px; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--train);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

/* ---------- type ---------- */

h1, h2, h3 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; margin: 0; }

h1 { font-size: clamp(40px, 6.4vw, 72px); }
h2 { font-size: clamp(30px, 4.2vw, 46px); }
h3 { font-size: 20px; letter-spacing: -0.02em; line-height: 1.25; }

p { margin: 0 0 1em; }

.lede { font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft); max-width: 54ch; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 18px;
}

.eyebrow span { color: var(--train); }

.mono { font-family: var(--f-mono); }

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(237, 240, 244, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 66px;
}

.brand {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.brand-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--train);
  box-shadow: 0 0 0 4px rgba(31, 119, 180, 0.16);
}

.nav-links {
  display: flex;
  gap: 26px;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.nav-links a { color: var(--ink-soft); text-decoration: none; }
.nav-links a:hover { color: var(--train); }

@media (max-width: 800px) { .nav-links { display: none; } }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--f-mono);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 13px 22px;
  border-radius: 3px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--train); }

.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--train); color: var(--train); }

.btn-sm { padding: 10px 16px; font-size: 12.5px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: var(--gap);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 96%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 96%);
  pointer-events: none;
}

.hero .wrap { position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: clamp(36px, 5vw, 68px);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--train); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-note {
  margin-top: 22px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- plot panel (signature) ---------- */

.plot-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 16px 16px 12px;
  box-shadow: 0 18px 40px -28px rgba(16, 24, 43, 0.5);
}

.plot-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 8px;
}

.plot-head b { color: var(--ink); font-weight: 500; text-transform: none; letter-spacing: 0; }

.plot-legend {
  display: flex;
  gap: 20px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--ink-soft);
  padding: 4px 4px 0;
}

.plot-legend i { display: inline-block; width: 16px; height: 2px; margin-right: 7px; vertical-align: middle; }
.swatch-train { background: var(--train); }
.swatch-val { background: var(--val); }

.curve { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.curve-train { stroke: var(--train); }
.curve-val { stroke: var(--val); stroke-dasharray: 3 3.5; stroke-width: 1.8; }

.axis { stroke: var(--rule); stroke-width: 1; }
.gridline { stroke: var(--grid); stroke-width: 1; }
.axis-label { font-family: var(--f-mono); font-size: 9.5px; fill: var(--muted); }

.draw {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: draw 2.4s cubic-bezier(.2,.65,.3,1) forwards;
}
.draw-val { animation-delay: .35s; }

@keyframes draw { to { stroke-dashoffset: 0; } }

.plot-foot {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  margin-top: 10px;
  padding-top: 9px;
}

.plot-foot b { color: var(--train); font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  .draw { animation: none; stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}

/* ---------- generic section ---------- */

.section { padding-block: var(--gap); border-top: 1px solid var(--rule); }
.section-alt { background: var(--paper-deep); }
.section-head { max-width: 62ch; margin-bottom: 46px; }

/* ---------- comparison ---------- */

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.compare th, .compare td {
  text-align: left;
  padding: 15px 16px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.compare thead th {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.compare tbody th { font-weight: 600; width: 27%; }
.compare td.ours { color: var(--ink); font-weight: 600; }
.compare td.theirs { color: var(--muted); }

.compare-scroll { overflow-x: auto; }

/* ---------- steps ---------- */

.steps { display: grid; gap: 0; }

.step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: clamp(18px, 4vw, 44px);
  padding-block: 30px;
  border-top: 1px solid var(--rule);
  align-items: start;
}

.step:last-child { border-bottom: 1px solid var(--rule); }

.step-tag {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--train);
  letter-spacing: 0.08em;
  padding-top: 4px;
}

.step p { color: var(--ink-soft); margin: 9px 0 0; max-width: 62ch; }

.step-flag {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink);
  background: rgba(255, 127, 14, 0.14);
  border-left: 2px solid var(--val);
  padding: 7px 11px;
}

@media (max-width: 640px) {
  .step { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- pricing ---------- */

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 940px) { .tiers { grid-template-columns: 1fr; } }

.tier {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 26px 24px 28px;
  display: flex;
  flex-direction: column;
}

.tier-featured { border-color: var(--train); box-shadow: 0 0 0 1px var(--train); }

.tier-name {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.tier-featured .tier-name { color: var(--train); }

.price {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.price small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }

.tier-for { font-size: 14.5px; color: var(--ink-soft); margin: 12px 0 20px; }

.tier ul { list-style: none; margin: 0 0 22px; padding: 0; font-size: 14.5px; }

.tier li {
  padding: 7px 0 7px 22px;
  position: relative;
  color: var(--ink-soft);
  border-top: 1px solid var(--paper-deep);
}

.tier li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--train);
  font-family: var(--f-mono);
}

.tier li.excl { color: var(--muted); }
.tier li.excl::before { content: "\2013"; color: var(--muted); }

.tier .btn { margin-top: auto; justify-content: center; }

.price-note {
  margin-top: 26px;
  font-size: 14px;
  color: var(--muted);
  max-width: 70ch;
}

/* ---------- self-serve ---------- */

.passes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 8px;
}

@media (max-width: 760px) { .passes { grid-template-columns: 1fr; } }

.pass {
  border: 1px solid var(--rule);
  background: var(--white);
  border-radius: 4px;
  padding: 20px;
}

.pass .h { font-family: var(--f-mono); font-size: 12px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
.pass .v { font-size: 27px; font-weight: 800; letter-spacing: -0.03em; margin-top: 8px; }
.pass .s { font-size: 13.5px; color: var(--ink-soft); margin-top: 6px; }

/* ---------- deliverables ---------- */

.files {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 40px;
}

@media (max-width: 760px) { .files { grid-template-columns: 1fr; } }

.file-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
}

.file-row code {
  font-family: var(--f-mono);
  font-size: 13.5px;
  color: var(--ink);
  background: transparent;
}

.file-row span { font-size: 13.5px; color: var(--muted); text-align: right; }

/* ---------- form ---------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 760px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; }
.field-wide { grid-column: 1 / -1; }

.field label {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

.field input,
.field select,
.field textarea {
  font-family: var(--f-display);
  font-size: 15.5px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 12px 13px;
  width: 100%;
}

.field textarea { min-height: 108px; resize: vertical; }

.field label .opt {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--rule);
  text-transform: uppercase;
}

.field-hint {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--train); outline: none; box-shadow: 0 0 0 3px rgba(31,119,180,.14); }

.check {
  grid-column: 1 / -1;
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.check input { width: 17px; height: 17px; margin-top: 3px; flex: none; accent-color: var(--train); }

.form-submit { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.form-msg { font-family: var(--f-mono); font-size: 13px; }
.form-msg.ok { color: var(--train); }
.form-msg.err { color: #C2410C; }

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 30px;
}

@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  border: 1px solid var(--rule);
  background: var(--white);
  border-radius: 4px;
  padding: 20px;
}

.contact-card .h { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.contact-card .v { margin-top: 9px; font-size: 16px; font-weight: 600; word-break: break-word; }
.contact-card a { text-decoration: none; }

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--rule);
  padding-block: 40px 52px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--muted);
}

.foot-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-row a { color: var(--ink-soft); text-decoration: none; }
.foot-row a:hover { color: var(--train); }

/* ---------- legal page ---------- */

.legal { padding-block: clamp(44px, 6vw, 76px) var(--gap); }
.legal-body { max-width: 74ch; }
.legal-body h2 { font-size: clamp(22px, 3vw, 28px); margin: 46px 0 14px; }
.legal-body h2:first-of-type { margin-top: 34px; }
.legal-body p, .legal-body li { color: var(--ink-soft); font-size: 16px; }
.legal-body ul { padding-left: 20px; }
.legal-body li { margin-bottom: 8px; }
.legal-body strong { color: var(--ink); }

.legal-meta {
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--muted);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 14px 16px;
  background: var(--white);
}

.callout {
  border-left: 2px solid var(--val);
  background: rgba(255, 127, 14, 0.1);
  padding: 16px 18px;
  margin: 22px 0;
}

.callout p:last-child { margin-bottom: 0; }

/* ---------- pricing: audience split ---------- */

.aud-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--train);
  background: rgba(31, 119, 180, 0.1);
  border-radius: 3px;
  padding: 8px 13px;
  margin-bottom: 22px;
}

.tier-price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tier-was { font-family: var(--f-mono); font-size: 13px; color: var(--muted); }

.commercial {
  margin-top: 22px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--white);
  overflow: hidden;
}

.commercial-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.commercial-head .h { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.11em; text-transform: uppercase; color: var(--muted); }
.commercial-head .s { font-size: 14.5px; color: var(--ink-soft); margin-top: 7px; max-width: 68ch; }

.commercial-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--paper-deep);
  font-size: 15px;
}

.commercial-row:last-child { border-bottom: none; }
.commercial-row b { font-weight: 600; }
.commercial-row span { font-family: var(--f-mono); font-size: 14px; color: var(--train); white-space: nowrap; }

/* ---------- includes ---------- */

.incl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 44px;
}

@media (max-width: 760px) { .incl { grid-template-columns: 1fr; } }

.incl-row {
  display: flex;
  gap: 13px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
  color: var(--ink-soft);
}

.incl-row::before {
  content: "+";
  font-family: var(--f-mono);
  color: var(--train);
  flex: none;
}

.incl-row b { color: var(--ink); font-weight: 600; }

/* ---------- payment ladder ---------- */

.ladder { margin-top: 8px; }

.rung {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: clamp(16px, 3vw, 34px);
  padding: 22px 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}

.rung:last-child { border-bottom: 1px solid var(--rule); }

.rung-amt {
  font-family: var(--f-mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--train);
  padding-top: 2px;
}

.rung h3 { font-size: 17px; }
.rung p { margin: 7px 0 0; color: var(--ink-soft); font-size: 15px; max-width: 62ch; }

@media (max-width: 640px) { .rung { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- turnaround ---------- */

.turn { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 8px; }
.turn td { padding: 13px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.turn td:first-child { padding-right: 20px; }
.turn td:last-child { text-align: right; font-family: var(--f-mono); font-size: 14px; color: var(--train); white-space: nowrap; }

/* ---------- pay methods ---------- */

.methods { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }

.method {
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  border: 1px solid var(--rule);
  background: var(--white);
  border-radius: 3px;
  padding: 8px 13px;
}

.method-best { border-color: var(--train); color: var(--train); }


/* ---------- brand mark ---------- */

.brand { gap: 11px; }

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  display: block;
  background: var(--brand-navy);
  box-shadow: 0 0 0 1px rgba(79, 227, 239, .28), 0 4px 14px -6px rgba(1, 13, 39, .7);
  flex: none;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
}

.foot-brand img { width: 30px; height: 30px; border-radius: 6px; background: var(--brand-navy); }
.foot-brand b { font-family: var(--f-display); font-size: 16px; font-weight: 800; letter-spacing: -0.04em; color: var(--ink); }

/* ---------- faq ---------- */

.faq {
  max-width: 82ch;
  border-top: 1px solid var(--rule);
}

.qa {
  border-bottom: 1px solid var(--rule);
}

.qa summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 2px;
  cursor: pointer;
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  list-style: none;
}

.qa summary::-webkit-details-marker { display: none; }

.qa summary::after {
  content: "+";
  flex: none;
  font-family: var(--f-mono);
  font-size: 18px;
  font-weight: 400;
  color: var(--muted);
  transition: transform 0.15s ease, color 0.15s ease;
}

.qa[open] summary::after {
  content: "\2212";
  color: var(--brand-cyan);
}

.qa summary:hover { color: var(--ink-soft); }
.qa summary:focus-visible { outline: 2px solid var(--brand-cyan); outline-offset: 3px; border-radius: 3px; }

.qa-body {
  padding: 0 2px 22px;
}

.qa-body p {
  margin: 0;
  max-width: 70ch;
  font-size: 15px;
  line-height: 1.62;
  color: var(--ink-soft);
}

@media (max-width: 640px) {
  .qa summary { font-size: 15.5px; gap: 14px; }
  .qa-body p { font-size: 14.5px; }
}

