/* Aver Studio - storefront
   Same identity as the products: warm black, ember, serif display. */
:root {
  --ink:        #0b0906;
  --ink-2:      #131009;
  --ink-3:      #1b1710;
  --hairline:   rgba(232, 226, 214, 0.10);
  --hairline-2: rgba(232, 226, 214, 0.20);
  --bone:       #e8e2d6;
  --bone-dim:   #a49b89;
  --bone-faint: #6b6355;
  --ember:      #e08c3c;
  --ember-lift: #f0a052;
  --ember-wash: rgba(224, 140, 60, 0.10);
  --rust:       #a33d2c;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans:  "Segoe UI", Inter, Roboto, system-ui, sans-serif;
  --ease:  cubic-bezier(.2, .7, .3, 1);
  --pad:   clamp(20px, 5vw, 64px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: .88em; color: var(--ember);
  background: var(--ember-wash); padding: 1px 5px;
}

.kicker {
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ember); margin-bottom: 12px;
}
.center { text-align: center; }
.narrow { max-width: 56ch; margin-left: auto; margin-right: auto; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: .005em; }
h1 { font-size: clamp(34px, 5.4vw, 62px); line-height: 1.1; }
h2 { font-size: clamp(27px, 3.4vw, 40px); line-height: 1.15; }
h3 { font-size: 19px; line-height: 1.3; }

.prose { color: var(--bone-dim); font-size: 15px; line-height: 1.75; }

/* ── nav ─────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 16px var(--pad);
  background: rgba(11, 9, 6, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.wordmark {
  font-family: var(--serif); font-size: 19px;
  color: var(--bone); text-decoration: none;
}
.wordmark::after {
  content: ""; display: inline-block;
  width: 5px; height: 5px; margin: 0 0 3px 8px;
  background: var(--ember); transform: rotate(45deg);
}
.nav nav { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nav nav a {
  color: var(--bone-dim); text-decoration: none;
  font-size: 13px; padding: 8px 12px;
  transition: color .18s var(--ease);
}
.nav nav a:hover { color: var(--bone); }
.nav-cta {
  border: 1px solid var(--hairline-2);
  color: var(--bone) !important;
}
.nav-cta:hover { border-color: var(--ember); color: var(--ember) !important; }

/* ── hero ────────────────────────────────────────────────────── */
.hero {
  padding: clamp(56px, 11vh, 116px) var(--pad) clamp(32px, 5vh, 56px);
  max-width: 1180px; margin: 0 auto;
  display: grid; gap: clamp(28px, 5vw, 64px);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  background: radial-gradient(70% 60% at 22% 0%, var(--ink-2) 0%, transparent 70%);
}
.eyebrow {
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ember); margin-bottom: 20px;
}
.hero h1 {
  margin-bottom: 24px; max-width: 19ch;
  text-wrap: balance;                /* keeps the ragged edge honest */
}
.lede {
  font-size: clamp(15px, 1.4vw, 17px); line-height: 1.7;
  color: var(--bone-dim); max-width: 54ch; margin-bottom: 34px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* constellation motif - the studio mark, same language as the products */
.motif { width: 100%; max-width: 330px; margin-left: auto; display: block; }
.motif-links line { stroke: var(--hairline-2); stroke-width: 1; }
.motif-nodes polygon {
  fill: none; stroke: var(--bone-faint); stroke-width: 1.25;
}
.motif-nodes polygon.on {
  fill: var(--ember-wash); stroke: var(--ember); stroke-width: 1.5;
}

.btn {
  display: inline-block; text-decoration: none;
  padding: 13px 24px;
  background: var(--ember); color: var(--ink);
  font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  transition: background .18s var(--ease);
}
.btn:hover { background: var(--ember-lift); }
.btn.ghost {
  background: none; color: var(--bone-dim);
  border: 1px solid var(--hairline-2); font-weight: 600;
}
.btn.ghost:hover { color: var(--bone); border-color: var(--bone-dim); }
.btn.full { display: block; text-align: center; margin-top: 22px; }
.btn:focus-visible, .nav a:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }

.hero-facts {
  list-style: none; display: flex; flex-wrap: wrap; gap: 44px;
  max-width: 1180px; margin: 0 auto;
  padding: 26px var(--pad) 0;
  border-top: 1px solid var(--hairline);
}
.hero-facts b {
  display: block; font-family: var(--serif); font-weight: 400;
  font-size: 27px; color: var(--ember);
}
.hero-facts span { font-size: 11px; letter-spacing: .06em; color: var(--bone-faint); }

/* ── work ────────────────────────────────────────────────────── */
.work { padding: clamp(56px, 9vh, 96px) var(--pad); max-width: 1180px; margin: 0 auto; }
.work-head { max-width: 62ch; margin-bottom: 40px; }
.work-head h2 {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: clamp(24px, 3vw, 34px); margin-bottom: 16px;
}

.shot {
  border: 1px solid var(--hairline);
  background: var(--ink-2);
  margin-bottom: 48px;
}
.shot img { width: 100%; }
.shot figcaption {
  padding: 12px 16px; font-size: 12px; color: var(--bone-faint);
  border-top: 1px solid var(--hairline);
}

.grid {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.grid article {
  background: var(--ink);
  padding: 28px 26px;
  transition: background .2s var(--ease);
}
.grid article:hover { background: var(--ink-2); }
.grid h3 { margin-bottom: 10px; }
.grid p { font-size: 14px; line-height: 1.7; color: var(--bone-dim); }

/* ── pricing ─────────────────────────────────────────────────── */
.pricing {
  padding: clamp(56px, 9vh, 96px) var(--pad);
  max-width: 1000px; margin: 0 auto;
  border-top: 1px solid var(--hairline);
}
.pricing h2 { margin-bottom: 16px; }
.pricing .prose { margin-bottom: 44px; }

.tiers {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  align-items: stretch;              /* same-kind elements, same height */
}
.tier {
  position: relative;
  border: 1px solid var(--hairline);
  background: var(--ink-2);
  padding: 32px 28px;
  display: flex; flex-direction: column;
}
.tier.feature { border-color: var(--ember); background: var(--ink-3); }
.flag {
  position: absolute; top: -1px; right: 22px;
  background: var(--ember); color: var(--ink);
  font-size: 9px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 10px;
}
.tier h3 { margin-bottom: 14px; }
.price {
  font-family: var(--serif); font-size: 46px; line-height: 1;
  color: var(--bone); margin-bottom: 6px;
}
.price span { font-size: 22px; color: var(--bone-faint); margin-right: 2px; }
.price sup { font-size: 17px; color: var(--bone-faint); }
.tier-note { font-size: 12px; color: var(--bone-faint); margin-bottom: 24px; }

.tier ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.tier li {
  font-size: 13.5px; line-height: 1.5; color: var(--bone-dim);
  padding-left: 24px; position: relative;
}
.tier li::before {
  position: absolute; left: 0; top: 0;
  font-size: 12px; font-weight: 700;
}
.tier li.yes::before { content: "✓"; color: var(--ember); }
.tier li.no::before  { content: "✕"; color: var(--rust); }
.tier li.no { color: var(--bone-faint); }
.tier .btn.full { margin-top: auto; }

.fineprint {
  margin-top: 28px; font-size: 12px; line-height: 1.7;
  color: var(--bone-faint); text-align: center;
  max-width: 66ch; margin-left: auto; margin-right: auto;
}

/* ── docs ────────────────────────────────────────────────────── */
.docs {
  border-top: 1px solid var(--hairline);
  padding: clamp(56px, 9vh, 96px) var(--pad);
  background: radial-gradient(60% 100% at 50% 100%, var(--ember-wash) 0%, transparent 72%);
}
.docs-inner { max-width: 60ch; margin: 0 auto; text-align: center; }
.docs h2 { margin-bottom: 16px; }
.docs .prose { margin-bottom: 30px; }
.docs .hero-cta { justify-content: center; }

/* ── foot ────────────────────────────────────────────────────── */
.foot {
  border-top: 1px solid var(--hairline);
  padding: 30px var(--pad);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 12px; color: var(--bone-dim);
}
.foot .dim { color: var(--bone-faint); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .motif { max-width: 230px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .nav nav a:not(.nav-cta) { display: none; }
  .hero-facts { gap: 28px; }
  .motif { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
