/* ============================================================
   AI SUSTAINED CONSULTING — Forest & Acid brand v2.0
   Shared stylesheet for consulting.ai-sustained.com
   Tokens & components per ai-sustained-newsletter design spec.
   ============================================================ */

:root {
  --forest: #1B4332;
  --ink: #0A0F0C;
  --ink-soft: #2A3530;
  --paper: #F2ECD9;
  --paper-2: #E8E1CB;
  --acid: #E8FF3A;
  --coral: #FF5A3C;
  --moss: #2D6A4F;
  --sage: #74C69D;
  --mint: #D8F3DC;
  --muted: #8FA398;
  --rule: rgba(242, 236, 217, 0.16);
  --rule-soft: rgba(242, 236, 217, 0.09);
  --panel: rgba(242, 236, 217, 0.04);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--forest);
  color: var(--paper);
  font-family: 'Inter', sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
  border-top: 3px solid var(--acid);
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 32px; }
.page { max-width: 860px; margin: 0 auto; padding: 0 28px; }

a { color: var(--acid); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============ MASTHEAD / NAV ============ */
.masthead {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 32px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.masthead-left { display: flex; gap: 10px; align-items: baseline; }
.wordmark { color: var(--acid); font-weight: 600; }
.subwordmark { color: var(--muted); font-weight: 500; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--paper); }
.nav a:hover { color: var(--acid); text-decoration: none; }
.nav a.cta {
  color: var(--ink);
  background: var(--acid);
  padding: 8px 16px;
  border-radius: 3px;
  font-weight: 600;
}
.nav a.cta:hover { color: var(--ink); opacity: 0.9; }

/* ============ KICKER ============ */
.kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--acid);
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.kicker::before { content: ''; width: 36px; height: 2px; background: var(--acid); }

/* ============ HERO ============ */
.hero { padding: 84px 0 64px; border-bottom: 1px solid var(--rule); }
.hero.center { text-align: center; }
.hero.center .kicker { justify-content: center; }
.hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: clamp(44px, 6.5vw, 80px);
  line-height: 1.03;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin-bottom: 26px;
  max-width: 18ch;
}
.hero.center h1 { margin-left: auto; margin-right: auto; }
.hero h1 .accent { font-style: italic; color: var(--acid); }
.deck {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--paper-2);
  max-width: 640px;
}
.hero.center .deck { margin-left: auto; margin-right: auto; }
.deck .accent { color: var(--acid); font-weight: 500; font-style: normal; }

/* ============ SECTIONS ============ */
section { padding: 56px 0; border-bottom: 1px solid var(--rule); }
h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 33px;
  line-height: 1.12;
  color: var(--paper);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 19px;
  color: var(--paper);
  margin-bottom: 10px;
}
p { font-size: 18px; color: var(--paper); margin-bottom: 18px; max-width: 70ch; }
p.lead { font-size: 20px; color: var(--paper-2); }
strong { font-family: 'Space Grotesk', sans-serif; font-weight: 600; color: var(--paper); }
em { font-family: 'Fraunces', serif; font-style: italic; color: var(--acid); }
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--sage); margin-bottom: 16px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 3px;
  background: var(--acid);
  color: var(--ink);
  border: 1px solid var(--acid);
}
.btn:hover { opacity: 0.9; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--acid); }
.btn.ghost:hover { background: rgba(232, 255, 58, 0.08); }

/* ============ METHOD / 3-COL ============ */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.card {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: 28px 26px;
}
.card .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; font-weight: 600; color: var(--acid);
  letter-spacing: 0.1em; margin-bottom: 14px; display: block;
}
.card p { font-size: 15px; color: var(--paper-2); margin-bottom: 0; }

/* ============ STAT GRID ============ */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.stat-box {
  background: var(--panel); padding: 22px 24px; border-radius: 4px;
  border: 1px solid var(--rule); border-bottom: 3px solid var(--acid);
}
.stat-label {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--sage); margin-bottom: 10px;
}
.stat-value { font-family: 'JetBrains Mono', monospace; font-size: 30px; font-weight: 600; color: var(--acid); line-height: 1; display: block; }
.stat-value .unit { font-size: 14px; font-weight: 500; color: var(--sage); margin-left: 3px; }
.stat-note { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.4; }

/* ============ PRICING TABLE ============ */
.price-table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 15px; }
.price-table thead th {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); background: var(--acid);
  text-align: left; padding: 16px 18px; vertical-align: bottom;
}
.price-table tbody td { padding: 20px 18px; vertical-align: top; border-bottom: 1px solid var(--rule); color: var(--paper-2); }
.price-table tbody tr:nth-child(even) td { background: var(--panel); }
.price-table .tier { font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: var(--acid); font-size: 16px; }
.price-table .price { font-family: 'JetBrains Mono', monospace; font-weight: 600; color: var(--paper); white-space: nowrap; }
.price-table .flagship td { box-shadow: inset 3px 0 0 var(--acid); }
.tag {
  display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 9px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink);
  background: var(--sage); padding: 2px 7px; border-radius: 2px; margin-left: 8px; vertical-align: middle;
}

/* ============ PULL QUOTE ============ */
.pullquote {
  text-align: center; max-width: 720px; margin: 8px auto;
  padding: 28px 0; border-top: 1px solid var(--acid); border-bottom: 1px solid var(--acid);
  position: relative;
}
.pullquote p {
  font-family: 'Fraunces', serif; font-style: italic; font-size: 28px; font-weight: 500;
  color: var(--paper); line-height: 1.35; margin: 0 auto; max-width: none;
}
.pullquote::before {
  content: '\201C'; font-family: 'Fraunces', serif; color: var(--acid);
  font-size: 60px; line-height: 0; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); opacity: 0.5;
}

/* ============ TACTICAL TAKEAWAY / CTA PANEL ============ */
.takeaway {
  background: var(--ink); border-radius: 6px; padding: 48px 44px;
  position: relative; overflow: hidden; margin: 8px 0;
}
.takeaway::after {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 200px; height: 200px; border-radius: 50%;
  border: 36px solid var(--acid); opacity: 0.14;
}
.takeaway .label {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--acid); margin-bottom: 18px;
}
.takeaway h2 {
  font-family: 'Fraunces', serif; font-style: italic; font-weight: 600; font-size: 32px;
  color: var(--paper); line-height: 1.2; margin-bottom: 24px; max-width: 22ch;
}
.takeaway h2 em { color: var(--acid); }

/* ============ ENQUIRY FORM ============ */
.enquiry { background: var(--panel); border: 1px solid var(--rule); border-radius: 6px; padding: 40px 38px; }
.enquiry .caption { font-family: 'Fraunces', serif; font-style: italic; font-size: 26px; color: var(--paper); margin-bottom: 8px; }
.hubspot-slot {
  border: 1px dashed var(--rule); border-radius: 5px; padding: 28px;
  text-align: center; color: var(--muted); font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.1em; margin-top: 20px;
}

/* ============ FOOTER ============ */
footer { background: var(--ink); padding: 40px 0; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
footer, footer p, footer a {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
footer a:hover { color: var(--acid); }
.colophon { font-size: 10px; color: var(--muted); }

/* ============ UTILITIES ============ */
.center { text-align: center; }
.mt-l { margin-top: 36px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero.center .btn-row { justify-content: center; }
ul.clean { list-style: none; }
ul.ticks { list-style: none; }
ul.ticks li { position: relative; padding-left: 28px; margin-bottom: 12px; font-size: 17px; color: var(--paper-2); }
ul.ticks li::before { content: '\2192'; position: absolute; left: 0; color: var(--acid); font-weight: 700; }

@media (max-width: 640px) {
  .nav { gap: 14px; }
  .nav .hide-sm { display: none; }
  .masthead { flex-wrap: wrap; }
}

/* ============ NATIVE ENQUIRY FORM ============ */
.ais-form { margin-top: 22px; max-width: 620px; }
.ais-form .f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px){ .ais-form .f-grid { grid-template-columns: 1fr; } }
.ais-form .f-field { margin-bottom: 16px; display: flex; flex-direction: column; }
.ais-form label { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 14px; color: var(--paper); margin-bottom: 7px; letter-spacing: 0.01em; }
.ais-form .req { color: var(--acid); }
.ais-form .opt { color: var(--muted); font-weight: 400; font-size: 12px; }
.ais-form input, .ais-form select, .ais-form textarea {
  font-family: 'Inter', sans-serif; font-size: 16px; color: var(--paper);
  background: rgba(242,236,217,0.06); border: 1px solid var(--rule);
  border-radius: 5px; padding: 12px 14px; width: 100%; transition: border-color .15s, background .15s;
}
.ais-form textarea { resize: vertical; min-height: 96px; }
.ais-form input::placeholder, .ais-form textarea::placeholder { color: var(--muted); }
.ais-form input:focus, .ais-form select:focus, .ais-form textarea:focus { outline: none; border-color: var(--acid); background: rgba(242,236,217,0.10); }
.ais-form select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23E8FF3A' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.ais-form select option { color: #0A0F0C; }
.ais-form .ais-submit { margin-top: 4px; border: none; cursor: pointer; }
.ais-form .ais-submit:disabled { opacity: 0.6; cursor: default; }
.ais-status { margin-top: 14px; font-family: 'Inter', sans-serif; font-size: 15px; min-height: 1em; }
.ais-status.ok { color: var(--acid); font-family: 'Fraunces', serif; font-style: italic; font-size: 18px; }
.ais-status.err { color: var(--coral); }
.ais-status a { color: var(--acid); }
