/* ==========================================================================
   AnswerProof — single stylesheet (mobile-first)
   Brand: Navy #161F38 / Navy-light #1E2A4E / Teal #3BE3C3 / Teal-deep #2DD4BF
   Proportion ~60% navy / 30% white / 10% teal.
   Teal is NEVER body text on white (fails WCAG). It marks CTAs and accents only.
   ========================================================================== */

/* ---- Fonts (self-hosted) ---- */
@font-face {
  font-family: "Poppins";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/poppins-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/poppins-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/poppins-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/poppins-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Tokens ---- */
:root {
  --navy: #161F38;
  --navy-light: #1E2A4E;
  --teal: #3BE3C3;         /* accent on dark */
  --teal-deep: #2DD4BF;    /* accent / CTA on light */
  --ink: #161F38;          /* body text on white */
  --ink-muted: #4a5468;    /* muted text on white (>=4.5:1) */
  --white: #ffffff;
  --paper: #f6f8fb;        /* subtle off-white section */
  --line: #e3e8f0;
  --on-navy: #ffffff;
  --on-navy-muted: #c3ccdd; /* muted text on navy (>=4.5:1) */
  --font: "Poppins", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1080px;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(22, 31, 56, 0.12);
}

/* ---- Reset-ish ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-weight: 700; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
a { color: var(--ink); text-underline-offset: 2px; }
a:hover { text-decoration-color: var(--teal-deep); }

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

/* ---- Accessibility helpers ---- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--teal-deep); color: var(--navy);
  padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

:where(a, button, input, [tabindex]):focus-visible {
  outline: 3px solid var(--teal-deep);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block; font-weight: 700; font-family: inherit; font-size: 1rem;
  padding: 14px 22px; border-radius: 10px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; text-align: center; line-height: 1.1;
  transition: transform .06s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn--primary { background: var(--teal-deep); color: var(--navy); }
.btn--primary:hover { background: var(--teal); box-shadow: var(--shadow); }
.btn--primary:active { transform: translateY(1px); }
.btn--disabled { background: var(--line); color: var(--ink-muted); cursor: not-allowed; }

/* ---- Header ---- */
.site-header {
  background: var(--navy);
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 14px; padding-bottom: 14px;
}
.site-header__logo img { width: auto; height: 34px; }
.site-header__nav { display: flex; align-items: center; gap: 20px; }
.site-header__link {
  color: var(--on-navy); text-decoration: none; font-size: 0.95rem;
}
.site-header__link:hover { color: var(--teal); }
@media (max-width: 720px) {
  .site-header__link { display: none; } /* home's product cards carry the links */
}
.site-header__signin {
  color: var(--teal); text-decoration: none;
  font-weight: 700; font-size: 0.95rem;
}
.site-header__signin:hover { text-decoration: underline; }

/* Hero action row (buttons/links under the H1) */
.hero__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 4px 0 16px; }
.hero__alt { color: var(--teal); font-weight: 700; text-decoration: none; }
.hero__alt:hover { text-decoration: underline; }

/* Engine chips (/web) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.chips li {
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px;
  font-weight: 700; font-size: 0.9rem; color: var(--ink);
}

/* Two-up card grid + product/promise lines */
@media (min-width: 720px) { .jobs__grid--two { grid-template-columns: repeat(2, 1fr); } }
.product__status { font-size: 0.9rem; color: var(--ink-muted); margin: 10px 0 16px; }
.promise { font-weight: 700; color: var(--ink); margin: 28px 0 0; }
.cta .hero__actions { margin-top: 8px; }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(160deg, var(--navy-light), var(--navy) 70%);
  color: var(--on-navy);
  padding: 64px 0 72px;
}
.hero__inner { max-width: 760px; }
.badge {
  display: inline-block; margin: 0 0 18px;
  background: rgba(59, 227, 195, 0.14);
  color: var(--teal);
  border: 1px solid rgba(59, 227, 195, 0.35);
  padding: 6px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 700;
}
/* Brand H1 scale: 44-56px (p.9); min kept responsive for small screens. */
.hero__eyebrow {
  color: var(--teal); font-weight: 700; font-size: 0.9rem;
  margin: 0 0 10px; letter-spacing: 0.01em;
}
.hero__title { font-size: clamp(2.4rem, 6vw, 3.5rem); color: var(--on-navy); }
.hero__subhead {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--on-navy); max-width: 620px; margin-bottom: 14px;
}
.hero__subhead a { color: var(--teal); text-decoration: underline; }
.hero__note a { color: var(--teal); text-decoration: underline; }
.hero__note {
  font-size: 1rem; color: var(--on-navy-muted); max-width: 600px; margin-bottom: 28px;
}
.hero__form { max-width: 560px; }

/* Brand pillars — Reach / Clarity / Proof (p.3) */
.pillars { background: var(--navy); padding: 0 0 56px; }
.pillars__grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .pillars__grid { grid-template-columns: repeat(3, 1fr); } }
.pillar {
  border-top: 3px solid var(--teal-deep); padding-top: 16px; color: var(--on-navy);
}
.pillar__name { font-size: 1.25rem; color: var(--on-navy); margin-bottom: 6px; }
.pillar__body { color: var(--on-navy-muted); margin: 0; }

/* ---- Signup form ---- */
.signup { background: var(--white); color: var(--ink); padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); }
.cta .signup, .thanks .signup { box-shadow: none; border: 1px solid var(--line); }
.signup__label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 8px; }
.signup__row { display: flex; gap: 10px; flex-wrap: wrap; }
.signup__input {
  flex: 1 1 220px; min-width: 0;
  font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: 13px 14px; border: 2px solid var(--line); border-radius: 10px; background: #fff;
}
.signup__input::placeholder { color: #8a93a6; }
.signup__input:focus-visible { outline: 3px solid var(--teal-deep); outline-offset: 1px; border-color: var(--teal-deep); }
.signup__submit { flex: 0 0 auto; }
.signup__help { font-size: 0.82rem; color: var(--ink-muted); margin: 10px 0 0; }
.signup__error { color: #b3261e; font-weight: 700; margin: 0 0 10px; }
.signup__status { margin: 12px 0 0; font-weight: 700; }
.signup__status[hidden] { display: none; }
.signup.is-done .signup__row, .signup.is-done .signup__label, .signup.is-done .signup__help { display: none; }
/* Honeypot — visually hidden, off-screen (not display:none, so bots fill it) */
.signup__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Sections ---- */
.section { padding: 64px 0; }
.section:nth-of-type(even) { background: var(--paper); }
/* Brand H2 scale: 28-34px (p.9) */
.section__title { font-size: clamp(1.75rem, 4vw, 2.125rem); color: var(--ink); }
.section__intro { font-size: 1.1rem; color: var(--ink-muted); margin-bottom: 32px; }

/* Jobs */
.jobs__grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .jobs__grid { grid-template-columns: repeat(3, 1fr); } }
.job {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: 0 2px 10px rgba(22,31,56,0.04);
}
.job__name { display: flex; align-items: center; gap: 12px; font-size: 1.25rem; color: var(--ink); }
.job__num {
  display: inline-grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px;
  background: var(--navy); color: var(--teal); border-radius: 8px; font-size: 0.95rem;
}
.job__summary { font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.job__body { color: var(--ink-muted); margin: 0; }

/* Rubric table (/web evidence section) */
.rubric { width: 100%; border-collapse: collapse; margin: 0 0 28px; }
.rubric th, .rubric td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rubric thead th { font-size: 0.82rem; color: var(--ink-muted); font-weight: 700; }
.rubric tbody th { color: var(--ink); font-weight: 700; white-space: nowrap; }

/* Why now */
.why__list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 18px; }
.why__item {
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--teal-deep);
  border-radius: var(--radius); padding: 20px 22px;
}
.why__item p { margin: 0; }
.why__source { margin-top: 10px !important; font-size: 0.82rem; color: var(--ink-muted); }
.why__source a { color: var(--ink); }
.pullquote {
  margin: 0; padding: 28px 26px; background: var(--navy); color: var(--on-navy);
  border-radius: var(--radius);
}
.pullquote blockquote {
  margin: 0 0 12px; font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 700; line-height: 1.3;
}
.pullquote blockquote::before { content: "“"; color: var(--teal); }
.pullquote blockquote::after { content: "”"; color: var(--teal); }
.pullquote figcaption { color: var(--on-navy-muted); font-size: 0.9rem; }
.pullquote figcaption a { color: var(--teal); }

/* App sections (/shopify) — teal is never text on white, so eyebrows stay ink */
.app-eyebrow { font-weight: 700; font-size: 0.9rem; color: var(--ink-muted); margin: 0 0 8px; }
.section__body { color: var(--ink-muted); }
.section__subheading { font-size: 1.2rem; margin: 28px 0 14px; }
.app-icon { width: 96px; height: 96px; border-radius: 20px; margin: 0 0 18px; box-shadow: var(--shadow); }
.gallery { display: grid; gap: 20px; grid-template-columns: 1fr; margin: 28px 0 4px; }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery img { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }

/* Gallery lightbox (progressive enhancement — markup built by main.js) */
.gallery__zoom { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); }
.gallery__zoom img { width: 100%; }
.lightbox[open] {
  display: block; position: relative;
  border: 0; padding: 0; background: transparent; overflow: visible;
  width: fit-content; max-width: 96vw;
}
.lightbox::backdrop { background: rgba(22, 31, 56, 0.85); }
.lightbox__img {
  display: block; width: auto; height: auto;
  max-width: min(1100px, 92vw); max-height: 86vh;
  border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow);
}
.lightbox__close, .lightbox__nav {
  position: absolute; width: 44px; height: 44px; border-radius: 50%;
  border: 0; cursor: pointer; display: grid; place-items: center;
  background: rgba(22, 31, 56, 0.75); color: var(--on-navy);
  font-family: inherit; font-size: 1.5rem; line-height: 1; padding: 0;
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--teal-deep); color: var(--navy); }
.lightbox__close { top: 10px; right: 10px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 10px; }
.lightbox__nav--next { right: 10px; }
html:has(.lightbox[open]) { overflow: hidden; }

/* FAQ */
.faq__list { display: grid; gap: 4px; }
.faq__item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.faq__q { font-size: 1.2rem; color: var(--ink); margin-bottom: 10px; }
.faq__a { color: var(--ink-muted); margin: 0; max-width: 760px; }
.updated { margin-top: 26px; font-size: 0.85rem; color: var(--ink-muted); }

/* CTA repeat */
.cta { background: var(--navy) !important; color: var(--on-navy); text-align: left; }
.cta .section__title { color: var(--on-navy); }
.cta .section__intro { color: var(--on-navy-muted); }
.cta__inner { max-width: 620px; }

/* Thanks / error pages */
.thanks { background: linear-gradient(160deg, var(--navy-light), var(--navy) 70%); color: var(--on-navy); min-height: 60vh; display: grid; align-items: center; }
.thanks .hero__title { color: var(--on-navy); }
.thanks .hero__subhead { color: var(--on-navy-muted); }
.thanks__inner { max-width: 620px; padding-top: 40px; padding-bottom: 40px; }

/* Code snippets (/bot) */
.snippet {
  background: var(--navy); color: var(--on-navy);
  padding: 16px 20px; border-radius: var(--radius);
  overflow-x: auto; font-size: 0.95rem; max-width: 480px;
}
code.ua { background: var(--paper); border: 1px solid var(--line);
  border-radius: 6px; padding: 2px 8px; overflow-wrap: anywhere; }

/* Legal prose (/privacy) */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { color: var(--ink-muted); }
.legal ul { margin: 0 0 1rem; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal p.legal__callout {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 20px;
  color: var(--ink); font-weight: 700;
}

/* ---- Footer ---- */
.site-footer { background: var(--navy); color: var(--on-navy-muted); padding: 44px 0; }
.site-footer__logo { height: 30px; width: auto; margin-bottom: 12px; }
.site-footer__tagline { color: var(--teal); font-weight: 700; margin: 0 0 16px; }
.site-footer__copy { color: var(--on-navy); font-weight: 700; margin-bottom: 10px; }
.site-footer__links { margin: 0 0 12px; }
.site-footer__link { color: var(--on-navy); font-weight: 700; text-decoration: none; }
.site-footer__link:hover { color: var(--teal); text-decoration: underline; }
.site-footer__trademark { font-size: 0.82rem; color: var(--on-navy-muted); max-width: 640px; margin: 0; }

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