/* AIpril — homepage. Design system per /DESIGN.md. Mobile-first. */

:root {
  --canvas: #0A1410;
  --surface: #152018;
  --border: #17251C;
  --border-interactive: #5A7A6A;
  --text-primary: #F4FAF5;
  --text-secondary: #B8CDB9;
  --text-tertiary: #8FA79A;
  --accent: #3DD68C;
  --accent-dim: #28A86C;
  --signal-warning: #E5C142;
  --signal-error: #E55A42;

  --font-primary: 'Commissioner', -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --radius-sm: 4px;
  --radius-md: 8px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  --container: 1200px;
  --nav-height: 72px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  background: var(--canvas);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }
em, i, blockquote, cite, address, dfn, var { font-style: normal; }

/* No italics anywhere — see DESIGN.md > Typography > The No-Italics Rule */

::selection { background: var(--accent); color: var(--canvas); }

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

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

.accent { color: var(--accent); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0;
  left: var(--space-4);
  background: var(--accent);
  color: var(--canvas);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 200;
  transform: translateY(-100%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(var(--space-4)); }

/* Type — one family (Commissioner), hierarchy from weight + size.
   See DESIGN.md > Typography > The Weight-and-Size Rule. */
h1, h2 {
  font-family: var(--font-primary);
  letter-spacing: -0.01em;
}
h1 { font-weight: 800; line-height: 1.08; font-size: clamp(40px, 8vw, 70px); }
h2 { font-weight: 700; line-height: 1.12; font-size: clamp(28px, 5vw, 44px); }
h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 600;
  line-height: 1.25;
}
h3 { font-size: clamp(18px, 2.4vw, 22px); }
p { color: var(--text-secondary); }

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 15px 30px;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.btn-primary {
  background: var(--accent);
  color: var(--canvas);
}
.btn-primary:hover { background: var(--accent-dim); }
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-interactive);
}
.btn-ghost:hover { border-color: var(--text-secondary); }

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--canvas);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  height: var(--nav-height);
  gap: var(--space-3);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.nav-logo img { width: 32px; height: 32px; object-fit: contain; }
.nav-links {
  display: none;
  gap: var(--space-7);
  flex: 1;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color .15s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-cta { display: flex; margin-left: auto; flex-shrink: 0; }
/* min-height (not just padding) guarantees the 44px touch target regardless of
   font metrics — see DESIGN.md audit note, 2026-08-13. */
.nav-cta .btn { padding: 9px 16px; font-size: 13px; min-height: 44px; }
.nav-cta-full { display: none; }

.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  margin-left: 0;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer {
  display: none;
  flex-direction: column;
  padding: var(--space-2) 0 var(--space-5);
  border-top: 1px solid var(--border);
  background: var(--canvas);
}
.drawer.is-open { display: flex; }
.drawer a {
  padding: var(--space-4) clamp(20px, 5vw, 80px);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
}
.drawer a:hover { color: var(--text-primary); }
.drawer .btn { margin: var(--space-3) clamp(20px, 5vw, 80px) 0; align-self: flex-start; }
.drawer a.btn-primary { color: var(--canvas); }
.drawer a.btn-primary:hover { color: var(--canvas); }

@media (min-width: 900px) {
  .nav-inner { gap: var(--space-8); }
  .nav-links { display: flex; }
  .nav-cta .btn { padding: 11px 22px; font-size: 14px; }
  .nav-cta-short { display: none; }
  .nav-cta-full { display: inline; }
  .burger, .drawer { display: none; }
}

/* Hero */
.hero {
  padding: var(--space-7) 0 var(--space-8);
}
.hero-grid {
  display: grid;
  gap: var(--space-7);
  align-items: start;
}
.hero-copy h1 {
  margin-bottom: var(--space-6);
  letter-spacing: -0.015em;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.hero-actions .btn { width: 100%; }

.hero-portrait-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.hero-portrait {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.hero-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--canvas) 0%, transparent 35%);
  pointer-events: none;
}
.hero-portrait-caption {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

/* Mobile default: one full-width row per metric, number beside label — see
   the 400px media query below for why. Below that width the 3-across grid's
   min-content (mono figures can't line-wrap) exceeds the available track
   width and clips; stacking keeps the figures at full size instead of
   shrinking the one thing on this page that's meant to read as evidence. */
.metrics {
  display: flex;
  flex-direction: column;
  margin-top: var(--space-8);
  border-top: 1px solid var(--border);
}
.metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  border-top: 1px solid var(--border);
}
.metric:first-child { border-top: none; }
.metric-n {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 500;
  line-height: 1;
  color: var(--accent);
  flex-shrink: 0;
}
.metric-l {
  font-size: clamp(12px, 1.4vw, 14px);
  color: var(--text-secondary);
  line-height: 1.4;
  text-align: right;
  min-width: 0;
}

/* 400px is measured, not a round-number guess: three stat tokens at their
   pinned mobile size (JetBrains Mono, 32px floor, 0.6em/char — verified
   against the actual hosted font's hmtx table) plus their column padding
   need ~353px; below 393px viewport width that exceeds the space `.wrap`
   leaves them. 400px clears that with a small margin, and it's also exactly
   where `.wrap`'s own fluid padding stops being pinned at its 20px floor
   (5vw = 20px at 400px) — the two responsive systems pivot at the same
   point instead of fighting each other a few pixels apart. */
@media (min-width: 400px) {
  .metrics { display: grid; grid-template-columns: repeat(3, 1fr); }
  .metric {
    display: block;
    padding: var(--space-6) var(--space-5) var(--space-7);
    border-top: none;
    border-left: 1px solid var(--border);
  }
  .metric:first-child { border-left: none; padding-left: 0; }
  .metric-n { margin-bottom: var(--space-3); }
  .metric-l { text-align: left; }
}

@media (min-width: 640px) {
  .hero-actions { flex-direction: row; }
  .hero-actions .btn { width: auto; }
}
@media (min-width: 900px) {
  .hero { padding-top: var(--space-8); }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; align-items: start; }
  .hero-portrait { aspect-ratio: auto; height: clamp(360px, 40vw, 520px); }
  .metric { padding: var(--space-7) var(--space-6) var(--space-8); }
}

/* Sections */
.section {
  padding: var(--space-8) 0;
  border-top: 1px solid var(--border);
}
.section-head { margin-bottom: var(--space-7); }
.section-head h2 { margin-bottom: var(--space-3); }
.section-head p { max-width: 46ch; font-size: 16px; }

@media (min-width: 900px) {
  .section { padding: var(--space-10) 0; }
}

/* Hero claim — the "not an agency" statement, fused into the hero section itself */
.hero-claim {
  max-width: 62ch;
  padding-top: var(--space-8);
  margin-top: var(--space-8);
  border-top: 1px solid var(--border);
}
.hero-claim h2 { margin-bottom: var(--space-5); }
.hero-claim-text {
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.75;
  margin-bottom: var(--space-5);
}
.profile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.chip {
  font-size: 12px;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-4);
}

/* Services */
.svc-grid {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.svc {
  background: var(--canvas);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
}
.svc-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 3px 10px;
  margin-bottom: var(--space-4);
}
.svc h3 { margin-bottom: var(--space-3); }
.svc p { font-size: 14px; margin-bottom: var(--space-5); flex-grow: 1; }
.svc-price {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}
.svc-price.is-free { color: var(--text-primary); }

.section-more { margin-top: var(--space-7); text-align: center; }

@media (min-width: 640px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .svc-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Process */
.proc-grid {
  display: grid;
  gap: var(--space-6);
}
.step { padding-top: var(--space-5); border-top: 1px solid var(--border); }
.step-n {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: var(--space-3);
}
.step h3 { margin-bottom: var(--space-2); }
.step p { font-size: 14px; }

@media (min-width: 900px) {
  .proc-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Pricing */
.pricing-grid {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.plan {
  background: var(--canvas);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.plan-tier {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 16px;
}
.plan-price {
  font-family: var(--font-mono);
  font-size: clamp(28px, 3.4vw, 36px);
  color: var(--text-primary);
}
.plan.is-featured .plan-price { color: var(--accent); }
.plan-sub { font-size: 13px; color: var(--text-secondary); }
.plan-feats { display: flex; flex-direction: column; gap: var(--space-3); flex-grow: 1; }
.plan-feats li {
  font-size: 14px;
  color: var(--text-secondary);
  padding-left: var(--space-5);
  position: relative;
}
.plan-feats li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 12px;
}
.plan-btn { width: 100%; }

@media (min-width: 900px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Final CTA */
.cta-section { border-bottom: 1px solid var(--border); }
.cta-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-8) var(--space-5);
  text-align: center;
}
.cta-box h2 { margin-bottom: var(--space-4); }
.cta-box p { max-width: 46ch; margin: 0 auto var(--space-6); }

@media (min-width: 900px) {
  .cta-box { padding: var(--space-9) var(--space-8); }
}

/* Footer */
footer {
  padding: var(--space-6) 0;
}
.foot-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  text-align: center;
}
.foot-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 800;
  font-size: 16px;
}
.foot-logo img { width: 24px; height: 24px; object-fit: contain; opacity: 0.7; }
.foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6);
}
.foot-links a {
  font-size: 13px;
  color: var(--text-secondary);
}
.foot-links a:hover { color: var(--text-primary); }
.foot-copy { font-size: 12px; color: var(--text-secondary); }

@media (min-width: 700px) {
  .foot-row { flex-direction: row; justify-content: space-between; text-align: left; }
}

