/* ============================================================================
   Fawn Circle — PUBLIC SITE stylesheet (Phase 4A, Option B static artifact)
   Spec: PUBLIC-FACE-SPEC-2026-07-16.md · Mockup: public-face-mockup-2026-07-16.html
   Tokens below are the app tokens (src/styles/tokens.css) VERBATIM, plus the
   Part-1 public register. The public site consumes ONLY these variables.
   Asset prefix law (arch memo §4): everything this site serves lives under
   /assets/ — never /static/ (CRA owns /static/).
   ========================================================================== */

:root {
  /* ---- Brand (app tokens, verbatim) ---- */
  --green-700: #1b4d3e;
  --green-600: #23634f;
  --green-100: #e7f0ec;
  --fawn-500: #c4906b;

  /* ---- Neutrals (app tokens, verbatim) ---- */
  --gray-900: #171b21;
  --gray-600: #5a6472;
  --gray-400: #98a1ac;
  --gray-200: #e4e8ec;
  --gray-100: #f2f4f6;
  --white: #ffffff;

  /* ---- Typography (app tokens, verbatim) ---- */
  --font-sans:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  --text-body: 14px;
  --lh-body: 22px;
  --text-body-public: 16px;
  --lh-body-public: 26px;
  --text-small: 13px;
  --lh-small: 20px;
  --text-micro: 12px;
  --lh-micro: 16px;
  --tracking-micro: 0.04em;

  /* ---- Radii & shadows (app tokens, verbatim) ---- */
  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 12px;
  --shadow-1: 0 1px 2px rgb(0 0 0 / 0.05);
  --shadow-2: 0 4px 12px rgb(0 0 0 / 0.08);
  --shadow-3: 0 12px 32px rgb(0 0 0 / 0.16);

  /* ---- Semantic warning (app tokens, verbatim — FINAL-BLESS §2 callout) ---- */
  --amber-600: #b45309;
  --amber-tint: rgba(180, 83, 9, 0.1);

  /* ---- PUBLIC REGISTER (spec Part 1) — the only additions ---- */
  --pub-hero: 40px;
  --pub-hero-lh: 48px;
  --pub-h2: 28px;
  --pub-h2-lh: 36px;
  --pub-section: 80px;
  --pub-warm: #f7f1ea;
}

/* ==== Base ==== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-sans);
  font-size: var(--text-body-public);
  line-height: var(--lh-body-public);
  color: var(--gray-900);
  background: var(--white);
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--green-700);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link (spec Part 4): first element on every page, visible on focus. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--green-700);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
}

/* ==== Buttons ==== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 22px;
  border-radius: var(--radius);
  background: var(--green-700);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: background-color 0.15s ease;
}
.btn:hover {
  background: var(--green-600);
}
.btn--ghost {
  background: transparent;
  color: var(--green-700);
  border: 1px solid var(--gray-200);
}
.btn--ghost:hover {
  background: var(--gray-100);
}
.btn--sm {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
}
.btn--on-dark {
  background: #fff;
  color: var(--green-700);
}
.btn--on-dark:hover {
  background: var(--gray-100);
}

/* ==== Header (spec Part 2) ====
   Natural visual DOM order (E ruling 2026-07-17): logo → nav → login → CTA
   last. Part 4's "CTA reachable early" is satisfied by the skip-link path,
   not by DOM-first tricks — tab order must match visual order. */
.pubhead {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  padding: 0 20px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--white);
  position: relative;
}
.pubhead__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--gray-900);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}
.pubhead__brand img {
  width: 28px;
  height: 28px;
}
.pubhead__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  font-size: 14px;
}
.pubhead__nav a {
  color: var(--gray-900);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}
.pubhead__nav a:hover {
  background: var(--gray-100);
}
.pubhead__nav a[aria-current="page"] {
  color: var(--green-700);
  font-weight: 600;
}
.pubhead__nav .pubhead__login {
  color: var(--gray-600);
  font-size: 13px;
  margin-left: 4px;
}
.pubhead__burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  font-size: 20px;
  color: var(--gray-600);
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.pubhead__burger:hover {
  background: var(--gray-100);
}

/* Mobile ≤768px: nav collapses behind a slide-down panel (spec Part 2);
   brand + quote CTA stay visible — the quote CTA never hides. */
@media (max-width: 768px) {
  .pubhead {
    padding: 0 16px;
    gap: 10px;
  }
  .pubhead__cta {
    margin-left: auto;
    height: 44px; /* Part 4: ≥44px tap targets on touch layouts */
  }
  .pubhead__burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .pubhead__nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 50;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 16px 16px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-2);
  }
  .nav-open .pubhead__nav {
    display: flex;
    animation: navdrop 0.18s ease;
  }
  .pubhead__nav a {
    padding: 12px;
    min-height: 44px;
    display: flex;
    align-items: center;
    font-size: 16px;
  }
  .pubhead__nav .pubhead__login {
    font-size: 15px;
    margin-left: 0;
    border-top: 1px solid var(--gray-200);
    border-radius: 0;
    margin-top: 4px;
    padding-top: 14px;
  }
}
/* ≤640px: the wordmark shortens to "Fawn Circle" (mockup phone frame). */
@media (max-width: 640px) {
  .pubhead__brand {
    font-size: 14px;
  }
  .pubhead__brand-tail {
    display: none;
  }
}
@keyframes navdrop {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ==== Bands (register rhythm) ==== */
.band {
  padding: var(--pub-section) 32px;
}
.band--tight {
  padding: 48px 32px;
}
.band--gray {
  background: var(--gray-100);
}
.band--warm {
  background: var(--pub-warm);
}
.band__inner {
  max-width: 1000px;
  margin: 0 auto;
}

.pub-h1 {
  font-size: var(--pub-hero);
  line-height: var(--pub-hero-lh);
  font-weight: 700;
  margin-bottom: 16px;
}
.pub-h2 {
  font-size: var(--pub-h2);
  line-height: var(--pub-h2-lh);
  font-weight: 700;
  margin-bottom: 8px;
}
.pub-sub {
  font-size: var(--text-body-public);
  line-height: var(--lh-body-public);
  color: var(--gray-600);
  margin-bottom: 32px;
  max-width: 640px;
}
.pub-link {
  color: var(--green-700);
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
}
.pub-link:hover {
  text-decoration: underline;
}

/* ==== Hero ==== */
.hero {
  display: flex;
  gap: 48px;
  align-items: center;
}
.hero__copy p {
  font-size: var(--text-body-public);
  line-height: var(--lh-body-public);
  color: var(--gray-600);
  margin-bottom: 24px;
  max-width: 520px;
}
.hero__cta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.hero__art {
  flex-shrink: 0;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--pub-warm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__art img {
  width: 128px;
  height: 128px;
}
.trust {
  display: flex;
  gap: 24px;
  margin-top: 28px;
  font-size: var(--text-small);
  line-height: var(--lh-small);
  color: var(--gray-600);
  flex-wrap: wrap;
}

/* ==== Offerings cards ==== */
.cards3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.offer {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: var(--white);
  box-shadow: var(--shadow-1);
}
.offer__ico {
  display: block;
  margin-bottom: 12px;
  color: var(--fawn-500); /* Part 1: fawn stays accent-only — icons are its sanctioned use */
}
.offer h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.offer p {
  font-size: 15px;
  line-height: 24px;
  color: var(--gray-600);
  margin-bottom: 14px;
}
.commercial-strip {
  margin-top: 20px;
  font-size: 15px;
  color: var(--gray-600);
}

/* ==== Why-us props / how-we-work steps ==== */
.props {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.prop__dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
}
.prop h3 {
  font-size: 17px;
  margin: 10px 0 6px;
}
.prop p {
  font-size: 15px;
  line-height: 24px;
  color: var(--gray-600);
}

/* ==== Carrier band ==== */
.logoband {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  list-style: none;
}
.logotile {
  height: 56px;
  min-width: 130px;
  flex: 0 0 auto;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  font-weight: 600;
  font-size: 14px;
  padding: 0 18px;
}

/* ==== About teaser / warm band ==== */
.teaser {
  display: flex;
  gap: 40px;
  align-items: center;
}
.teaser__art {
  flex-shrink: 0;
  width: 180px;
  height: 130px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.teaser__art img {
  width: 96px;
  height: 96px;
}

/* ==== Closing CTA band ==== */
.ctaband {
  background: var(--green-700);
  color: #fff;
  text-align: center;
}
.ctaband .pub-h2 {
  color: #fff;
}
.ctaband p {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-body-public);
  line-height: var(--lh-body-public);
  margin-bottom: 24px;
}

/* ==== Footer (spec Part 2: content-dense on purpose) ==== */
.pubfoot {
  background: var(--gray-900);
  color: #c9d1d9;
  padding: 48px 32px;
  font-size: 14px;
  line-height: 22px;
}
.pubfoot__cols {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}
.pubfoot__col {
  flex: 1 1 220px;
  min-width: 200px;
}
.pubfoot h2 {
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #98a1ac;
  margin-bottom: 10px;
  font-weight: 600;
}
.pubfoot address {
  font-style: normal;
}
.pubfoot a {
  color: #c9d1d9;
  text-decoration: none;
  display: inline-block;
  padding: 2px 0;
}
.pubfoot a:hover {
  text-decoration: underline;
}
.pubfoot__links a {
  display: block;
  padding: 6px 0;
}
.pubfoot__legal {
  border-top: 1px solid #30363d;
  margin-top: 28px;
  padding-top: 16px;
  font-size: 12px;
  line-height: 18px;
  color: #98a1ac;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* ==== Quote form (spec §3.5) ==== */
.qform {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  padding: 32px;
}
.qform__intro {
  font-size: 15px;
  line-height: 24px;
  color: var(--gray-600);
  margin: 6px 0 22px;
}
.qform__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.qform label {
  display: block;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  margin-bottom: 4px;
}
.qform .optional {
  color: var(--gray-400);
  font-weight: 400;
}
.qform input,
.qform select,
.qform textarea {
  width: 100%;
  height: 44px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 0 12px;
  font: inherit;
  font-size: 15px;
  background: var(--white);
  color: var(--gray-900);
}
.qform textarea {
  height: auto;
  padding: 10px 12px;
}
.qform input:focus,
.qform select:focus,
.qform textarea:focus {
  outline: 2px solid var(--green-700);
  outline-offset: 1px;
}
.qform .field-error {
  display: none;
  color: #dc2626;
  font-size: 13px;
  line-height: 20px;
  margin-top: 4px;
}
.field--invalid input {
  border-color: #dc2626;
}
.field--invalid .field-error {
  display: block;
}
.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.chip-t {
  height: 44px;
  padding: 0 18px;
  border-radius: 22px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  color: var(--gray-900);
}
.chip-t[aria-pressed="true"] {
  background: var(--green-100);
  border-color: var(--green-700);
  color: var(--green-700);
  font-weight: 600;
}
.hintline {
  font-size: 13px;
  line-height: 20px;
  color: var(--gray-400);
  margin-top: 10px;
  text-align: center;
}
/* Coverage-change warning (FINAL-BLESS §2, placement per E: a warning-styled
   callout DIRECTLY ABOVE the submit control on every public request form). */
.callout-warn {
  background: var(--amber-tint);
  border-left: 3px solid var(--amber-600);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  line-height: 21px;
  color: var(--gray-900);
  margin-top: 16px;
}
/* Consumer-report disclosure (FINAL-BLESS §3, placement per E: small print
   directly below the submit area — standing legal text where people expect it). */
.legal-fine {
  font-size: var(--text-small);
  line-height: var(--lh-small);
  color: var(--gray-600);
  margin-top: 16px;
}
.form-alert {
  display: none;
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 14px;
  line-height: 21px;
  margin-top: 14px;
}
.form-alert--show {
  display: block;
}

/* Honeypot: off-screen, never display:none (bots skip display:none fields). */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

/* ==== Quote success (a screen, not a toast) ==== */
.success {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 32px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
}
.success__ck {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.steps {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin: 28px 0;
  text-align: left;
  flex-wrap: wrap;
}
.steps__s {
  max-width: 150px;
  font-size: 13px;
  line-height: 19px;
  color: var(--gray-600);
}
.steps__n {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green-700);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

/* ==== About / story ==== */
.story-row {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}
.story-row__art {
  flex-shrink: 0;
  margin-top: 8px;
  opacity: 0.85;
}
@media (max-width: 768px) {
  .story-row__art {
    display: none;
  }
}
.story {
  max-width: 640px;
}
.story p {
  margin-bottom: 16px;
  color: var(--gray-900);
}

/* ==== Contact ==== */
.contact2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.nap {
  font-size: var(--text-body-public);
  line-height: 28px;
}
.nap__big {
  font-size: 22px;
  font-weight: 700;
}
.nap__big a {
  color: var(--green-700);
  text-decoration: none;
}
.nap__big a:hover {
  text-decoration: underline;
}
.msgcard {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--white);
  box-shadow: var(--shadow-1);
}
.msgcard h2 {
  font-size: 18px;
  margin-bottom: 8px;
}
.msgcard p {
  font-size: 15px;
  line-height: 24px;
  color: var(--gray-600);
  margin-bottom: 16px;
}
.compliance-panel {
  margin-top: 48px;
  padding: 16px 20px;
  background: var(--gray-100);
  border-radius: var(--radius);
  font-size: var(--text-small);
  line-height: var(--lh-small);
  color: var(--gray-600);
}

/* ==== Responsive ==== */
@media (max-width: 900px) {
  .cards3,
  .props {
    grid-template-columns: 1fr;
  }
  .contact2 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .hero {
    flex-direction: column-reverse;
    gap: 24px;
    align-items: flex-start;
  }
  .hero__art {
    display: none;
  }
  .teaser {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}
@media (max-width: 640px) {
  :root {
    --pub-hero: 32px;
    --pub-hero-lh: 40px;
    --pub-section: 48px;
  }
  .band,
  .band--tight {
    padding-left: 20px;
    padding-right: 20px;
  }
  .qform {
    padding: 24px 20px;
  }
  .qform__row {
    grid-template-columns: 1fr;
  }
}

/* Spec Part 4: nothing autoplays or parallaxes; honor reduced motion on the
   few transitions that exist. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
