/* Codify Aigency — one-pager. Dark industrial, mobile-first, no frameworks. */

:root {
  --bg: #141210;
  --surface: #1e1b16;
  --surface-2: #26221b;
  --ink: #f4f1e8;
  --muted: #b3aa97;
  --line: #2e2a21;
  --accent: #f5a524;
  --accent-ink: #1a1206;
  --radius: 10px;
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
section { padding: 64px 0; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 16px; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 16px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-sub { color: var(--muted); max-width: 640px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 640px; }

.placeholder-note {
  color: var(--accent);
  font-size: 0.85rem;
  border: 1px dashed var(--accent);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin: 20px 0 0;
}
.fineprint { font-size: 0.82rem; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  border-radius: var(--radius);
  padding: 14px 26px;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
  transition: transform 0.08s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #ffb93e; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-large { padding: 16px 32px; font-size: 1.05rem; }
.btn-small { padding: 9px 18px; font-size: 0.9rem; }
.btn-block { display: block; width: 100%; margin-bottom: 12px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 18, 16, 0.94);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 800; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
}
.brand-text { font-weight: 800; font-size: 1.05rem; letter-spacing: 0.02em; }
.brand-text em { font-style: normal; color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.site-nav a:hover { color: var(--ink); }
.site-nav .nav-cta { color: var(--accent-ink); }
.menu-toggle {
  display: none;
  background: none; border: none; cursor: pointer; padding: 10px;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px; background: var(--ink);
  margin: 5px 0; border-radius: 2px;
}
.hazard {
  height: 4px;
  background: repeating-linear-gradient(
    -45deg,
    var(--accent) 0 12px,
    transparent 12px 24px
  );
  opacity: 0.85;
}

/* Hero */
.hero { padding: 84px 0 64px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 18px; }
.micro-trust { color: var(--muted); font-size: 0.92rem; }

/* Demo */
.demo { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.player-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
}
.player-card audio { width: 100%; display: block; }

/* Proof */
.stat-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 28px; }
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.stat-num { display: block; font-size: 1.6rem; font-weight: 800; color: var(--accent); }
.stat-label { display: block; color: var(--muted); font-size: 0.92rem; margin-top: 6px; }

/* How it works */
.how { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
.steps li {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  position: relative;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 800; font-size: 1.2rem; margin-bottom: 14px;
}
.steps-note { margin-top: 22px; color: var(--muted); font-weight: 600; }

/* Services ladder */
.ladder { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
.ladder li {
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: var(--surface);
}
.ladder li:first-child { border-left-color: var(--accent); background: var(--surface-2); }
.ladder strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.ladder span { color: var(--muted); font-size: 0.95rem; }

/* Pricing */
.pricing { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price-card {
  background: var(--surface-2);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 32px 28px;
  margin-top: 28px;
  max-width: 560px;
}
.price-card h3 { font-size: 1.3rem; }
.price { font-size: 1.5rem; font-weight: 800; color: var(--accent); margin-bottom: 20px; }
.price-card ul { list-style: none; margin: 0 0 26px; padding: 0; }
.price-card li { padding: 8px 0 8px 28px; position: relative; color: var(--ink); }
.price-card li::before {
  content: "\2713"; position: absolute; left: 0;
  color: var(--accent); font-weight: 800;
}

/* FAQ */
.faq-list { margin-top: 28px; max-width: 760px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; background: var(--surface); overflow: hidden; }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  color: var(--ink); font-family: var(--font);
  font-size: 1.02rem; font-weight: 700; text-align: left;
  padding: 18px 52px 18px 20px; position: relative;
}
.faq-q::after {
  content: "+"; position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%); font-size: 1.4rem; color: var(--accent); font-weight: 400;
}
.faq-item.open .faq-q::after { content: "\2212"; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-a p { padding: 0 20px 20px; margin: 0; color: var(--muted); }

/* Trial */
.trial { background: var(--surface); border-top: 1px solid var(--line); }
.trial-grid { display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: 28px; }
.trial-form label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 14px; }
.trial-form input {
  display: block; width: 100%; margin-top: 6px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); font-family: var(--font); font-size: 1rem;
  padding: 13px 14px;
}
.trial-form input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }

/* Footer */
.site-footer { padding: 48px 0 40px; border-top: 1px solid var(--line); }
.footer-brand { font-weight: 800; font-size: 1.05rem; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; margin: 14px 0; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.footer-nav a:hover { color: var(--ink); }
.footer-line { color: var(--accent); font-weight: 600; margin-top: 18px; }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}

/* Larger screens */
@media (min-width: 640px) {
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .ladder { grid-template-columns: repeat(2, 1fr); }
  .trial-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 20px 20px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav .nav-cta { border-bottom: none; margin-top: 12px; text-align: center; }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
}

@media (min-width: 960px) {
  section { padding: 88px 0; }
  .hero { padding: 110px 0 90px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .faq-a { transition: none; }
}
