/* ============================================================
   honestaistack.com  ·  shared stylesheet
   No build step. No dependencies. Plain CSS custom properties.

   Design locks (do not break these when editing):
   - ONE accent colour: var(--accent). Used on every page, nowhere else.
   - ONE radius scale: 4px everything. Crisp, editorial, no pills.
   - Dual theme via prefers-color-scheme. Whole page flips together.
   - Type: system stack. Swap in a self-hosted font later if wanted;
     never add a Google Fonts <link> (blocks render, leaks referrers).
   ============================================================ */

:root {
  color-scheme: light dark;

  /* Neutrals: cool stone. One family only. */
  --bg:            #fbfbfa;
  --bg-sunk:       #f3f3f1;
  --surface:       #ffffff;
  --text:          #16161a;
  --text-muted:    #5b5b64;
  --line:          #e2e2dd;
  --line-strong:   #c9c9c2;

  /* Single accent: deep teal. Locked for the whole site. */
  --accent:        #10695a;
  --accent-hover:  #0c5347;
  --accent-on:     #ffffff;
  --accent-soft:   #e6f0ed;

  --radius: 4px;
  --maxw: 1180px;
  --measure: 62ch;

  --shadow: 0 1px 2px rgba(22, 22, 26, 0.05),
            0 8px 24px -12px rgba(22, 22, 26, 0.12);

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

  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
               "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:           #0e0f11;
    --bg-sunk:      #141619;
    --surface:      #16181b;
    --text:         #f1f1ef;
    --text-muted:   #a2a2aa;
    --line:         #262a2e;
    --line-strong:  #3a3f45;

    --accent:       #43bfa4;
    --accent-hover: #59d0b6;
    --accent-on:    #08211c;
    --accent-soft:  #14302a;

    --shadow: 0 1px 2px rgba(0, 0, 0, 0.5),
              0 8px 28px -14px rgba(0, 0, 0, 0.6);
  }
}

/* ---------- reset ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.12;
  text-wrap: balance;
}

p { margin: 0; }

a { color: inherit; }

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

/* ---------- layout primitives ---------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding-block: clamp(56px, 8vw, 104px); }
.section--sunk { background: var(--bg-sunk); }
.section--line { border-top: 1px solid var(--line); }

.measure { max-width: var(--measure); }

.stack > * + * { margin-top: 14px; }

/* One eyebrow allowed per 3 sections. Used sparingly on purpose. */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 18px;
}

.h2 { font-size: clamp(28px, 4vw, 40px); }
.h3 { font-size: clamp(19px, 2vw, 22px); letter-spacing: -0.012em; }

.lede {
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--text-muted);
  line-height: 1.62;
}

.small { font-size: 14.5px; color: var(--text-muted); line-height: 1.55; }

.mono-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* ---------- navigation: one line, 64px tall ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 64px;
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

.wordmark {
  font-size: 16.5px;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark span { color: var(--accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14.5px;
}

/* :not(.btn) matters: without it this rule out-specifies .btn--primary
   and repaints the nav CTA label in muted grey on the accent fill. */
.nav__links a:not(.btn) {
  text-decoration: none;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.18s var(--ease);
}
.nav__links a:not(.btn):hover { color: var(--text); }

@media (max-width: 860px) {
  .nav__links { gap: 18px; }
  .nav__links .nav__hide-sm { display: none; }
}

/* Below 560px the wordmark plus one link plus the CTA no longer fit on a
   single line, so the links drop and the CTA stays. Every nav destination
   is still reachable by scrolling; the CTA is the only thing that is not. */
@media (max-width: 560px) {
  .nav__links a:not(.btn) { display: none; }
  .btn { padding-inline: 16px; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 15px;
  font-weight: 550;
  line-height: 1.2;
  white-space: nowrap;      /* CTA labels never wrap */
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s var(--ease),
              border-color 0.18s var(--ease),
              transform 0.08s var(--ease);
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-on);   /* contrast checked both themes, AA pass */
}
.btn--primary:hover { background: var(--accent-hover); }
.btn--primary:active { transform: translateY(1px); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--text-muted); }
.btn--ghost:active { transform: translateY(1px); }

.btn--block { width: 100%; }

.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ---------- hero: asymmetric split ---------- */

.hero {
  padding-top: clamp(40px, 6vw, 80px);   /* cap is pt-24 equivalent */
  padding-bottom: clamp(48px, 7vw, 88px);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

/* Sized so the headline holds at 2 lines from 1024px up. Change the
   copy and you have to re-check the wrap, not just the font size. */
.hero h1 {
  font-size: clamp(32px, 4.4vw, 48px);
  max-width: 26ch;
}

.hero .lede { margin-top: 20px; max-width: 46ch; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
}

/* ---------- signup card (hero + footer reuse) ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.field { display: grid; gap: 7px; margin-bottom: 16px; }

.field label {
  font-size: 13.5px;
  font-weight: 550;
  color: var(--text);          /* AA contrast, not a faint grey */
}

.field input {
  width: 100%;
  padding: 11px 13px;
  font: inherit;
  font-size: 15.5px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color 0.18s var(--ease);
}
.field input:hover { border-color: var(--text-muted); }
.field input::placeholder { color: var(--text-muted); opacity: 1; }

.field__help { font-size: 13px; color: var(--text-muted); }

.field__error {
  font-size: 13px;
  color: #b3261e;
  display: none;
}
@media (prefers-color-scheme: dark) {
  .field__error { color: #ff8f85; }
}
.field[data-invalid="true"] input { border-color: #b3261e; }
.field[data-invalid="true"] .field__error { display: block; }

.form__note { margin-top: 12px; font-size: 12.5px; color: var(--text-muted); }

.form__status {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  font-size: 14.5px;
}
.form__status[data-show="true"] { display: block; }

.form__status[data-tone="error"] {
  background: #fdeceb;
  border-color: #e7b4b0;
  color: #7a1d18;
}
@media (prefers-color-scheme: dark) {
  .form__status[data-tone="error"] {
    background: #2a1614;
    border-color: #5c2b26;
    color: #ffb3ac;
  }
}

/* ---------- method: 2x2 hairline grid, no cards ---------- */

.method {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.method__item {
  padding: 28px 28px 28px 0;
  border-bottom: 1px solid var(--line);
}
.method__item:nth-child(odd) { padding-right: 44px; }
.method__item:nth-child(even) {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}

.method__item h3 { margin-bottom: 9px; }

@media (max-width: 760px) {
  .method { grid-template-columns: 1fr; }
  .method__item,
  .method__item:nth-child(odd),
  .method__item:nth-child(even) {
    padding: 24px 0;
    border-left: 0;
  }
}

/* ---------- scope: grouped two-column list ---------- */

.scope {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 72px);
  margin-top: 36px;
}

.scope h3 { margin-bottom: 14px; font-size: 17px; }

.scope ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15.5px;
  color: var(--text-muted);
}
.scope li + li { margin-top: 9px; }

@media (max-width: 700px) { .scope { grid-template-columns: 1fr; } }

/* ---------- empty state ---------- */

.empty {
  max-width: 620px;
  margin: 36px auto 0;
  padding: 40px 28px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}
.empty h3 { margin-bottom: 10px; }
.empty p { margin-inline: auto; max-width: 46ch; }
.empty .btn { margin-top: 22px; }

/* ---------- review cards (used once reviews exist) ---------- */

.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 38px;
}

.review-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.review-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.review-card img { aspect-ratio: 16 / 10; object-fit: cover; }
.review-card__body { padding: 18px 20px 22px; }
.review-card__meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 9px;
}
.review-card h3 { font-size: 18px; margin-bottom: 8px; }

/* ---------- about: split with portrait ---------- */

.about {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
.about__photo {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background: var(--bg-sunk);
  border: 1px solid var(--line);
  object-fit: cover;
}
@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; }
  .about__photo { max-width: 200px; }
}

/* ---------- disclosure band ---------- */

.disclosure {
  padding: 26px 28px;
  background: var(--bg-sunk);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.disclosure h2 { font-size: 18px; margin-bottom: 10px; }

/* ---------- claim page: numbered steps ---------- */

.steps { margin-top: 36px; display: grid; gap: 0; }

.step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.step:first-child { border-top: 1px solid var(--line); }
.step h3 { margin-bottom: 7px; }

.bonus-list { margin-top: 32px; display: grid; gap: 14px; }

.bonus {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.bonus h3 { font-size: 16.5px; margin-bottom: 6px; }
.bonus__value {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}
@media (max-width: 560px) {
  .bonus { grid-template-columns: 1fr; }
}

.claim-form { max-width: 460px; margin-top: 36px; }

/* ---------- article (review template) ---------- */

.article { max-width: 700px; margin-inline: auto; }
.article__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.article h1 { font-size: clamp(30px, 4.6vw, 44px); }
.article__standfirst {
  margin-top: 18px;
  font-size: 19px;
  color: var(--text-muted);
  line-height: 1.6;
}
.article__body { margin-top: 40px; font-size: 17.5px; line-height: 1.72; }
.article__body h2 {
  font-size: 25px;
  margin-top: 44px;
  margin-bottom: 14px;
}
.article__body h3 { font-size: 19px; margin-top: 32px; margin-bottom: 10px; }
.article__body p + p { margin-top: 18px; }
.article__body ul { padding-left: 22px; margin: 16px 0; }
.article__body li + li { margin-top: 8px; }
.article__body blockquote {
  margin: 26px 0;
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--accent);
  color: var(--text-muted);
}

.verdict {
  margin: 36px 0;
  padding: 24px 26px;
  background: var(--bg-sunk);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.verdict h2 { margin: 0 0 12px; font-size: 19px; }
.verdict dl { margin: 0; display: grid; gap: 12px; }
.verdict dt {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}
.verdict dd { margin: 4px 0 0; }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding-block: 52px 40px;
  background: var(--bg-sunk);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 18px;
  font-size: 14.5px;
}
.footer__links a { color: var(--text-muted); text-decoration: none; }
.footer__links a:hover { color: var(--text); text-decoration: underline; }
.footer__legal {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text-muted);
  max-width: 78ch;
}
@media (max-width: 800px) {
  .footer__grid { grid-template-columns: 1fr; }
}
