/* Seller Connect USA — visual system.
   Typeface: Libre Franklin (variable, wght 100-900), an open revival of Franklin
   Gothic — the workhorse of American newspaper classifieds and civic signage.
   It reads as plain-spoken and local rather than a SaaS geometric grotesk, which
   is the register this brief asks for. Loaded as direct @font-face src (not a
   googleapis.com @import) so the only extra network hop is straight to the woff2
   file the preconnect in <head> already warms up. */

@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("https://fonts.gstatic.com/s/librefranklin/v20/jizDREVItHgc8qDIbSTKq4XkRiUf2zc.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("https://fonts.gstatic.com/s/librefranklin/v20/jizDREVItHgc8qDIbSTKq4XkRiUR2zcLig.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- tokens ---------- */
:root {
  /* neutrals: chroma 0, equal R=G=B, per SPEC §9 (no cream/sand/parchment) */
  --bg: #FFFFFF;
  --bg-alt: #F4F4F4;
  --ink: #1E1E1E;
  --ink-soft: #54504C;
  --line: #D8D6D3;
  --border: #918A83;

  /* the one accent: a muted clay/terracotta, hsl(18, 55%, 37%) — brick and
     roof-tile warmth, grounded, nowhere near real-estate blue or indigo/violet */
  --accent: #924A2A;
  --accent-dark: #69331C;
  --accent-tint: #F8F0ED;

  /* status (functional feedback, not brand decoration — kept muted to match) */
  --success: #335B41;
  --error: #7E2E25;

  --font-body: "Libre Franklin", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: clamp(16px, 5vw, 40px);
  --radius: 6px;
  --radius-sm: 4px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg, picture { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; }
input, textarea, button { font-family: inherit; }

h1, h2, h3 { font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(2.25rem, 1.5rem + 3.2vw, 3.75rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); font-weight: 700; }

p { color: var(--ink); }

a { color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 0.15em; }
a:hover { color: var(--accent-dark); }

/* ---------- focus (never outline:none) ---------- */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--accent-dark);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* ---------- skip link ---------- */
.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--ink);
  color: #FFFFFF;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip:focus {
  top: 1rem;
}

/* ---------- layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap.narrow {
  max-width: 70ch;
}
.block {
  padding-block: clamp(3rem, 2.2rem + 4vw, 6.5rem);
}
.block .wrap > h2 {
  margin-bottom: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
}

#how, #who, #form { background: var(--bg-alt); }
#final-cta { background: var(--accent-tint); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.85rem 1.75rem;
  background: var(--accent);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: var(--border); border-color: var(--border); cursor: not-allowed; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-alt); border-color: var(--ink); color: var(--ink); }

.btn-sm {
  min-height: 38px;
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
}

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-block: 1.1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  background: url("/favicon.svg") center / contain no-repeat;
}
.brand-name {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
}
.header-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding-block: 0.25rem;
}
.header-nav a:hover { color: var(--accent); text-decoration: underline; }
.header-nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; }

@media (max-width: 620px) {
  .header-nav {
    width: 100%;
    padding-top: 0.5rem;
    border-top: 1px solid var(--line);
  }
}

/* ---------- cookie bar ---------- */
.cookie-bar[hidden] { display: none; }
.cookie-bar {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  max-width: 640px;
  margin-inline: auto;
  background: var(--ink);
  color: #FFFFFF;
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.cookie-bar p {
  color: #FFFFFF;
  flex: 1 1 260px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.cookie-bar .btn-ghost {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.55);
}
.cookie-bar .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #FFFFFF; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding-block: 2.5rem;
}
.footer-legal {
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.65;
  max-width: 75ch;
}
.footer-legal a { color: inherit; text-decoration: underline; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.footer-links a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--border);
}
.footer-links a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.footer-by {
  margin-top: 1.5rem;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- hero / final-cta ---------- */
#hero .wrap, #final-cta .wrap {
  max-width: 46rem;
}
#hero h1, #final-cta h2 {
  margin-bottom: 1.25rem;
}
#hero p, #final-cta p {
  color: var(--ink-soft);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  max-width: 52ch;
  margin-bottom: 2rem;
}

/* ---------- how / steps ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  counter-reset: step;
}
.step {
  counter-increment: step;
  position: relative;
  padding-top: 3.25rem;
}
.step::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: var(--radius-sm);
}
.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--ink-soft); }

@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}

/* ---------- situations ---------- */
.situations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem 2.5rem;
}
.situation {
  border-top: 3px solid var(--accent);
  padding-top: 1.1rem;
}
.situation h3 { margin-bottom: 0.4rem; }
.situation p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- who ---------- */
#who p { color: var(--ink-soft); font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); line-height: 1.7; }

/* ---------- faq ---------- */
.faq {
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
  padding-block: 1.5rem;
}
.faq-item dt,
.faq-item summary {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  cursor: default;
  list-style: none;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  padding-block: 0.25rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:hover { color: var(--accent); }
.faq-item dd,
.faq-item p {
  margin: 0;
  margin-top: 0.6rem;
  color: var(--ink-soft);
}

/* ---------- form ---------- */
#form .wrap { max-width: 46rem; }
#form h2 { margin-bottom: 0.75rem; }
#form > .wrap > p { color: var(--ink-soft); margin-bottom: 2rem; }

#lead-form { display: flex; flex-direction: column; }

#form label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}
#form input:not([type="checkbox"]):not([type="hidden"]),
#form textarea {
  display: block;
  width: 100%;
  margin-bottom: 1.5rem;
  padding: 0.85rem 1rem;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  min-height: 48px;
}
#form textarea { min-height: 7rem; resize: vertical; }
#form input::placeholder,
#form textarea::placeholder { color: var(--ink-soft); opacity: 0.8; }
#form input:hover:not([disabled]),
#form textarea:hover:not([disabled]) { border-color: var(--ink-soft); }

/* honeypot — off-screen per SPEC §10, never display:none */
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* consent — a legal record, not fine print */
#form :is(label[for="consent"], label:has(#consent)) {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
  margin: 0.5rem 0 1.5rem;
  cursor: pointer;
}
#form input[type="checkbox"] {
  width: 26px;
  height: 26px;
  min-width: 26px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--accent-dark);
  cursor: pointer;
}

.cf-turnstile { margin-bottom: 1.5rem; }

#lead-submit { align-self: flex-start; }

#form-status { font-size: 0.9375rem; }
#form-status:empty { display: none; }
#form-status.is-error,
#form-status.is-success {
  display: block;
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  background: var(--bg-alt);
}
#form-status.is-error { color: var(--error); border-left: 4px solid var(--error); }
#form-status.is-success { color: var(--success); border-left: 4px solid var(--success); }

/* ---------- selection ---------- */
::selection { background: var(--accent-tint); color: var(--accent-dark); }
