:root {
  --ink: #0A0908;
  --ink-elevated: #14110F;
  --ink-card: #1B1614;
  --ink-card-hover: #221C19;
  --bone: #F5F0E8;
  --bone-muted: #9C928A;
  --bone-faint: #807870;
  --rule: #2A231F;
  --rule-strong: #3A3128;
  --ferox: #D4A044;
  --ferox-dim: #9B7728;
  --signal-green: #50C878;
  --maxw: 1240px;
  --gut: 28px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
html, body { background: var(--ink); color: var(--bone); -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
::selection { background: var(--ferox); color: var(--bone); }

/* ----- Focus ----- */
:focus-visible {
  outline: 2px solid var(--ferox);
  outline-offset: 3px;
}
input:focus-visible {
  outline-offset: 0;
}

/* ----- Type utilities ----- */
.mono { font-family: 'Geist Mono', 'JetBrains Mono', monospace; font-feature-settings: "calt" off; }
.eyebrow {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-muted);
}
.eyebrow .dot {
  display: inline-block; width: 6px; height: 6px;
  background: var(--ferox); border-radius: 50%;
  margin-right: 10px; vertical-align: middle;
  transform: translateY(-1px);
}
h1, h2, h3 { font-family: 'Geist Mono', monospace; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(40px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -0.02em; }
h3 { font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; }
p { color: var(--bone-muted); max-width: 60ch; }
a { color: var(--bone); text-decoration: none; }

/* ----- Layout ----- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
section { padding: 120px 0; border-top: 1px solid var(--rule); }
section:first-of-type { border-top: none; padding-top: 0; }

/* ----- Nav ----- */
nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 9, 8, 0.72);
  border-bottom: 1px solid var(--rule);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand-mark svg { display: block; width: 100%; height: 100%; }
.brand-text { font-family: 'Geist Mono', monospace; font-weight: 600; letter-spacing: -0.005em; font-size: 19px; line-height: 1; }
.brand-text .suffix { color: var(--bone-muted); font-weight: 400; margin-left: 1px; }
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a { font-size: 14px; color: var(--bone-muted); }
.nav-links a:hover { color: var(--bone); }
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 36px; height: 36px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px;
  background: var(--bone); border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.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); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Geist Mono', monospace;
  font-size: 13px; font-weight: 500;
  padding: 10px 18px;
  border-radius: 4px;
  border: 1px solid var(--rule-strong);
  color: var(--bone);
  background: transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn:hover { background: var(--ink-card); border-color: var(--bone-muted); }
.btn.primary {
  background: var(--ferox);
  border-color: var(--ferox);
  color: var(--ink);
  font-weight: 600;
}
.btn.primary:hover { background: #E8B856; border-color: #E8B856; }
.btn .arrow { font-size: 14px; transform: translateY(-0.5px); }

/* ----- Footer ----- */
footer {
  border-top: 1px solid var(--rule);
  padding: 60px 0 48px;
  background: var(--ink);
}
.foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 64px;
}
.foot-brand { flex-shrink: 0; }
.foot-brand .brand-mark { width: 48px; height: 48px; }
.foot-brand .brand-text { font-size: 24px; }
.foot-social { display: flex; gap: 10px; margin-top: 20px; }
.foot-social a, .foot-social span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  color: var(--bone-muted);
  transition: all 0.15s ease;
}
.foot-social a:hover { color: var(--ferox); border-color: var(--ferox); }
.foot-col h4 {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--bone-faint);
  margin-bottom: 18px;
  font-weight: 500;
}
.foot-col a {
  display: block;
  font-size: 14px;
  color: var(--bone-muted);
  margin-bottom: 10px;
}
.foot-col a:hover { color: var(--bone); }
.foot-bottom {
  border-top: 1px solid var(--rule);
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--bone-faint);
}

/* ----- Section heads ----- */
.section-head { margin-bottom: 64px; max-width: 760px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { margin-bottom: 18px; }
.section-head p { font-size: 17px; }

/* ----- Scrollbar ----- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--rule-strong); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--bone-faint); }

/* Live-signal ping on eyebrow dots */
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(212, 160, 68, 0.55); }
  80%, 100% { box-shadow: 0 0 0 7px rgba(212, 160, 68, 0); }
}
.eyebrow .dot { animation: ping 2.4s ease-out infinite; }

/* ----- Responsive ----- */
@media (max-width: 960px) {
  section { padding: 80px 0; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 80px; left: 0; right: 0;
    flex-direction: column;
    background: var(--ink);
    border-bottom: 1px solid var(--rule);
    padding: 20px var(--gut);
    gap: 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 16px; }
  .nav-links .btn { width: 100%; justify-content: center; }
  .foot { flex-wrap: wrap; gap: 32px; }
  .foot-brand { width: 100%; margin-bottom: 8px; }
  .foot-col { min-width: 120px; }
}
@media (max-width: 600px) {
  .foot { flex-direction: column; gap: 28px; }
  .foot-col { min-width: unset; }
  .foot-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ----- Inner pages (contact, terms, privacy) ----- */
section.page-head { padding: 96px 0 56px; border-top: none; }
.page-head .eyebrow { margin-bottom: 20px; }
.page-head h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.page-head h1 .accent { color: var(--ferox); }
.page-head .lede { font-size: 18px; max-width: 62ch; }
.page-head .updated {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--bone-faint);
  margin-top: 20px;
}

/* Legal documents */
.doc { padding: 72px 0 120px; }
.doc-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.doc-toc { position: sticky; top: 112px; }
.doc-toc h4 {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-faint);
  margin-bottom: 14px;
}
.doc-toc ol { list-style: none; counter-reset: toc; }
.doc-toc li { counter-increment: toc; }
.doc-toc a {
  display: block;
  font-size: 13.5px;
  color: var(--bone-muted);
  padding: 5px 0;
}
.doc-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--ferox-dim);
  margin-right: 10px;
}
.doc-toc a:hover { color: var(--bone); }
.doc-body { max-width: 72ch; counter-reset: sec; }
.doc-body section { padding: 0 0 40px; border-top: none; }
.doc-body h2 {
  counter-increment: sec;
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 14px;
}
.doc-body h2::before {
  content: counter(sec, decimal-leading-zero);
  color: var(--ferox);
  font-size: 13px;
  margin-right: 14px;
  vertical-align: 2px;
}
.doc-body p, .doc-body li { font-size: 15.5px; line-height: 1.7; color: var(--bone-muted); max-width: none; }
.doc-body p + p { margin-top: 12px; }
.doc-body ul { margin: 12px 0 0 20px; }
.doc-body li { margin-bottom: 6px; }
.doc-body li::marker { color: var(--ferox-dim); }
.doc-body strong { color: var(--bone); font-weight: 600; }
.doc-body a { color: var(--ferox); }
.doc-body a:hover { text-decoration: underline; }
.doc-body code {
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  background: var(--ink-elevated);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1px 6px;
  color: var(--bone);
}
.doc-note {
  border-left: 2px solid var(--ferox);
  padding: 4px 0 4px 20px;
  margin-bottom: 48px;
}
.doc-note p { font-size: 15px; color: var(--bone); }

/* Contact */
.contact { padding: 72px 0 120px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-routes {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  overflow: hidden;
}
.contact-route {
  display: block;
  padding: 26px 28px;
  background: var(--ink-elevated);
  border-bottom: 1px solid var(--rule-strong);
  transition: background 0.15s ease;
}
.contact-route:last-child { border-bottom: none; }
.contact-route:hover { background: var(--ink-card-hover); }
.contact-route .role {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ferox);
  margin-bottom: 8px;
}
.contact-route h3 { font-family: 'Inter', sans-serif; font-size: 19px; font-weight: 500; margin-bottom: 6px; }
.contact-route p { font-size: 14.5px; line-height: 1.55; }
.contact-route .go {
  display: inline-block;
  margin-top: 12px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--bone-faint);
}
.contact-route:hover .go { color: var(--bone); }
.contact-form {
  background: var(--ink-elevated);
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  padding: 32px;
}
.contact-form h2 { font-family: 'Inter', sans-serif; font-size: 22px; font-weight: 500; margin-bottom: 6px; }
.contact-form > p { font-size: 14px; margin-bottom: 26px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-muted);
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  padding: 13px 14px;
  color: var(--bone);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  transition: border-color 0.15s ease;
}
.field select { appearance: none; cursor: pointer; }
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--bone-faint); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ferox); outline: none; }
.contact-form .btn { width: 100%; justify-content: center; padding: 14px 18px; }
.form-hint { font-size: 12.5px; color: var(--bone-faint); margin-top: 12px; }

@media (max-width: 960px) {
  section.page-head { padding: 64px 0 40px; }
  .doc { padding: 48px 0 80px; }
  .doc-grid { grid-template-columns: 1fr; gap: 40px; }
  .doc-toc { position: static; padding-bottom: 32px; border-bottom: 1px solid var(--rule); }
  .contact { padding: 48px 0 80px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 24px 20px; }
  .contact-route { padding: 22px 20px; }
}

/* ----- Blog ----- */
.blog { padding: 72px 0 120px; }
.blog-more { padding-top: 88px; }
.blog-more .eyebrow { margin-bottom: 28px; }
.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.post-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px 28px 28px;
  background: var(--ink-elevated);
  border: 1px solid var(--rule-strong);
  border-radius: 10px;
  transition: all 0.2s ease;
}
.post-card:hover {
  border-color: var(--ferox);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -12px rgba(212, 160, 68, 0.22);
}
.post-card h2 {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.post-card p { font-size: 14.5px; line-height: 1.55; flex-grow: 1; }
.post-read {
  font-family: 'Geist Mono', monospace;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ferox);
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.post-read .arrow { display: inline-block; transition: transform 0.2s ease; }
.post-card:hover .post-read .arrow { transform: translateX(4px); }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--bone-faint);
}
.post-tag {
  color: var(--ferox);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
}

.post-wrap { max-width: calc(72ch + 2 * var(--gut)); }
.post-head { padding: 72px 0 48px; border-bottom: 1px solid var(--rule); margin-bottom: 56px; }
.post-back {
  display: inline-block;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--bone-muted);
  margin-bottom: 32px;
}
.post-back:hover { color: var(--bone); }
.post-head .post-meta { margin-bottom: 18px; }
.post-head h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(32px, 4.2vw, 50px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}
.post-head .lede { font-size: 18px; }
.post-body h2 {
  font-size: 20px;
  line-height: 1.3;
  margin: 44px 0 14px;
}
.post-body p, .post-body li { font-size: 16.5px; line-height: 1.75; color: var(--bone-muted); max-width: none; }
.post-body p + p { margin-top: 16px; }
.post-body ul { margin: 14px 0 0 20px; }
.post-body li { margin-bottom: 8px; }
.post-body li::marker { color: var(--ferox-dim); }
.post-body strong { color: var(--bone); font-weight: 600; }
.post-body a { color: var(--ferox); }
.post-body code {
  font-family: 'Geist Mono', monospace;
  font-size: 13.5px;
  background: var(--ink-elevated);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1px 6px;
  color: var(--bone);
}
.post-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 56px;
  padding: 28px;
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  background: var(--ink-elevated);
}
.post-cta p { color: var(--bone); font-size: 16px; }

@media (max-width: 960px) {
  .blog { padding: 48px 0 80px; }
  .post-head { padding: 48px 0 36px; margin-bottom: 40px; }
}
@media (max-width: 600px) {
  .post-list { grid-template-columns: 1fr; }
  .post-card { padding: 24px 20px; }
}
.post-body pre {
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  line-height: 1.7;
  color: var(--bone);
  background: var(--ink-elevated);
  border: 1px solid var(--rule-strong);
  border-left: 2px solid var(--ferox);
  border-radius: 4px;
  padding: 20px 22px;
  margin: 18px 0;
  overflow-x: auto;
}
.post-body pre code { background: none; border: none; padding: 0; font-size: inherit; }
.post-body h3 { font-size: 17px; margin: 32px 0 10px; }
.post-body ol { margin: 14px 0 0 22px; }
.post-body blockquote { border-left: 2px solid var(--ferox); padding-left: 20px; margin: 18px 0; }
.post-body img { max-width: 100%; height: auto; border-radius: 6px; }
@media (max-width: 600px) {
  .post-body pre { padding: 16px; font-size: 12px; }
}

/* ============ PRICING ============ */
.home-pricing .billing-toggle { margin-top: -24px; }
.pricing-note a { color: var(--ferox); text-decoration: none; }
.pricing-note a:hover { text-decoration: underline; }
.pricing { padding: 56px 0 120px; }
.billing-toggle {
  display: flex; width: fit-content; gap: 4px; padding: 4px; margin: 0 auto 36px;
  border: 1px solid var(--rule-strong); border-radius: 999px; background: var(--ink-elevated);
}
.billing-toggle button {
  font: 500 14px 'Inter', sans-serif; color: var(--bone-muted); background: none;
  border: 0; border-radius: 999px; padding: 9px 18px; cursor: pointer;
}
.billing-toggle button[aria-pressed="true"] { background: var(--ferox); color: var(--ink); }
.billing-toggle button span { font-size: 12px; opacity: 0.8; }
.billing-toggle button:focus-visible { outline: 2px solid var(--ferox); outline-offset: 2px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.plan {
  display: flex; flex-direction: column; padding: 30px 28px;
  background: var(--ink-card); border: 1px solid var(--rule); border-radius: 14px;
}
.plan.featured { border-color: var(--ferox-dim); box-shadow: 0 0 0 1px var(--ferox-dim) inset; }
.plan h3 { font: 500 20px 'Inter', sans-serif; margin-bottom: 14px; }
.plan .price { display: flex; align-items: baseline; gap: 6px; color: var(--bone); }
.plan .amount { font: 600 40px 'Geist Mono', monospace; letter-spacing: -0.02em; }
.plan .per { color: var(--bone-muted); font-size: 14px; }
.plan .billed { font-size: 13px; color: var(--bone-faint); margin: 4px 0 18px; }
.plan .credits { font: 500 15px 'Geist Mono', monospace; color: var(--ferox); margin-bottom: 18px; }
.plan .credits span { color: var(--bone-muted); }
.plan ul { list-style: none; display: grid; gap: 10px; margin-bottom: 28px; flex: 1; }
.plan li { font-size: 14.5px; line-height: 1.5; color: var(--bone-muted); padding-left: 22px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ferox); }
.plan .btn { justify-content: center; }
.pricing-note { margin-top: 20px; font-size: 14px; color: var(--bone-muted); }
.credit-table { margin-top: 88px; }
.credit-table h2, .pricing-rules h3 { font-family: 'Inter', sans-serif; font-weight: 500; }
.credit-table h2 { font-size: 26px; margin-bottom: 10px; }
.credit-table > p { max-width: 70ch; margin-bottom: 24px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--rule); border-radius: 12px; }
.credit-table table { width: 100%; border-collapse: collapse; min-width: 560px; }
.credit-table th, .credit-table td { padding: 13px 18px; text-align: right; border-bottom: 1px solid var(--rule); font-size: 14.5px; }
.credit-table thead th { color: var(--bone-muted); font-weight: 500; font-size: 13px; }
.credit-table th[scope="row"], .credit-table thead th:first-child { text-align: left; }
.credit-table td { font-family: 'Geist Mono', monospace; }
.credit-table tbody tr:last-child th, .credit-table tbody tr:last-child td { border-bottom: 0; }
.pricing-rules { margin-top: 64px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.pricing-rules h3 { font-size: 16px; margin-bottom: 8px; }
.pricing-rules p { font-size: 14px; line-height: 1.55; }
@media (max-width: 900px) {
  .plans { grid-template-columns: 1fr; }
  .pricing-rules { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .pricing-rules { grid-template-columns: 1fr; }
  .plan .amount { font-size: 34px; }
}
