/* Androgenix - The Online Visit : flow styles.
   Brand tokens from androgenix-marketing-kit/tokens/tokens.json:
   paper #F5F3EE, ink #272727, olive #8BB432 / olive-deep #5F7D22, alert #C43D2A,
   Archivo type. Scoped under .axv so the widget drops into any host page.
   Theme-aware: follows the host, honors a data-theme override. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/Archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}

.axv {
  --axv-paper: #F5F3EE;
  --axv-surface: #FFFFFF;
  --axv-surface-2: #FBFAF6;
  --axv-ink: #272727;
  --axv-muted: #666666;
  --axv-faint: #9A958A;
  --axv-olive: #8BB432;
  --axv-olive-deep: #5F7D22;
  --axv-olive-dark: #3A4E15;
  --axv-accent: #8BB432;        /* PRIMARY green - olive (Sean directive) */
  --axv-accent-2: #5F7D22;      /* olive-deep, for small text + hover contrast */
  --axv-on-accent: #223107;     /* text/icon on an olive fill (olive is light, needs dark ink) */
  --axv-accent-soft: #ECF1DE;   /* selected background tint */
  --axv-hair: #E4E1D7;
  --axv-hair-2: #D2CEC1;
  --axv-alert: #C43D2A;
  --axv-alert-soft: #F7E6E2;
  --axv-radius: 14px;
  --axv-maxw: 640px;
  --axv-font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  font-family: var(--axv-font);
  color: var(--axv-ink);
  background: var(--axv-paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  box-sizing: border-box;
}
.axv *, .axv *::before, .axv *::after { box-sizing: border-box; }

@media (prefers-color-scheme: dark) {
  .axv:not([data-theme="light"]) {
    --axv-paper: #141410;
    --axv-surface: #1E1E18;
    --axv-surface-2: #24241D;
    --axv-ink: #ECEAE2;
    --axv-muted: #A6A199;
    --axv-faint: #736E63;
    --axv-accent: #8BB432;
    --axv-accent-2: #9FD529;
    --axv-accent-soft: #293215;
    --axv-hair: #33322B;
    --axv-hair-2: #45433A;
    --axv-alert: #E06A58;
    --axv-alert-soft: #331915;
  }
}
.axv[data-theme="dark"] {
  --axv-paper: #141410;
  --axv-surface: #1E1E18;
  --axv-surface-2: #24241D;
  --axv-ink: #ECEAE2;
  --axv-muted: #A6A199;
  --axv-faint: #736E63;
  --axv-accent: #8BB432;
  --axv-accent-2: #9FD529;
  --axv-accent-soft: #293215;
  --axv-hair: #33322B;
  --axv-hair-2: #45433A;
  --axv-alert: #E06A58;
  --axv-alert-soft: #331915;
}

.axv-loading { padding: 48px 24px; text-align: center; color: var(--axv-muted); }

.axv-shell {
  max-width: var(--axv-maxw);
  margin: 0 auto;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 18px 20px 28px;
}

/* brand header */
.axv-brand { display: flex; align-items: center; justify-content: center; padding: 6px 0 18px; }
.axv-logo { height: 26px; width: auto; display: block; }
.axv-logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .axv:not([data-theme="light"]) .axv-logo-light { display: none; }
  .axv:not([data-theme="light"]) .axv-logo-dark { display: block; }
}
.axv[data-theme="dark"] .axv-logo-light { display: none; }
.axv[data-theme="dark"] .axv-logo-dark { display: block; }

/* progress */
.axv-bar { height: 4px; border-radius: 999px; background: var(--axv-hair); overflow: hidden; margin-bottom: 40px; }
.axv-bar-fill { height: 100%; width: 4%; background: var(--axv-accent); border-radius: 999px; transition: width .35s cubic-bezier(.2,.7,.2,1); }

/* stage */
.axv-stage { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; }
.axv-head { margin-bottom: 24px; }
.axv-eyebrow {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--axv-olive-deep); font-weight: 700; margin-bottom: 12px;
}
.axv[data-theme="dark"] .axv-eyebrow, .axv:not([data-theme="light"]) .axv-eyebrow { color: var(--axv-olive); }
.axv-prompt {
  font-size: clamp(24px, 4.6vw, 32px); line-height: 1.12; letter-spacing: -.02em;
  margin: 0; font-weight: 680; text-wrap: balance;
}
.axv-help { color: var(--axv-muted); font-size: 15px; margin: 12px 0 0; max-width: 52ch; }

.axv-body { margin-top: 4px; }

/* option buttons */
.axv-opts { display: flex; flex-direction: column; gap: 10px; }
.axv-opt {
  font: inherit; text-align: left; cursor: pointer;
  background: var(--axv-surface); color: var(--axv-ink);
  border: 1.5px solid var(--axv-hair); border-radius: var(--axv-radius);
  padding: 15px 17px; font-size: 16px; transition: border-color .12s, background .12s, transform .04s;
}
.axv-opt:hover { border-color: var(--axv-hair-2); }
.axv-opt:active { transform: translateY(1px); }
.axv-opt.is-on { border-color: var(--axv-accent); background: var(--axv-accent-soft); font-weight: 560; }
.axv-opt:focus-visible { outline: 2px solid var(--axv-accent); outline-offset: 2px; }
.axv-freetext { margin: 2px 0 6px; }

/* inputs */
.axv-input {
  font: inherit; width: 100%; background: var(--axv-surface); color: var(--axv-ink);
  border: 1.5px solid var(--axv-hair); border-radius: 11px; padding: 13px 14px; font-size: 16px;
}
.axv-input:focus { outline: none; border-color: var(--axv-accent); box-shadow: 0 0 0 3px var(--axv-accent-soft); }
.axv-textarea { min-height: 110px; resize: vertical; }
select.axv-input { appearance: none; -webkit-appearance: none; cursor: pointer; }

.axv-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.axv-field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 200px; }
.axv-field-sm { flex: 0 0 96px; }
.axv-label { font-size: 12.5px; color: var(--axv-faint); letter-spacing: .02em; font-weight: 560; }

/* list add-many */
.axv-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.axv-list-row { display: flex; align-items: center; gap: 10px; background: var(--axv-surface); border: 1px solid var(--axv-hair); border-radius: 10px; padding: 9px 12px; }
.axv-list-item { flex: 1; font-size: 15px; }
.axv-list-x { border: none; background: none; color: var(--axv-faint); font-size: 20px; cursor: pointer; line-height: 1; padding: 0 4px; }
.axv-list-x:hover { color: var(--axv-alert); }

/* scale */
.axv-scale { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.axv-scale-n { font: inherit; cursor: pointer; aspect-ratio: 1; border: 1.5px solid var(--axv-hair); background: var(--axv-surface); color: var(--axv-ink); border-radius: 10px; font-size: 15px; }
.axv-scale-n.is-on { border-color: var(--axv-accent); background: var(--axv-accent); color: var(--axv-on-accent); font-weight: 680; }
.axv-scale-ends { display: flex; justify-content: space-between; margin-top: 8px; color: var(--axv-faint); font-size: 12.5px; }

/* consent */
.axv-consent-doc { background: var(--axv-surface); border: 1px solid var(--axv-hair); border-radius: 12px; padding: 16px 18px; margin-bottom: 16px; }
.axv-consent-draft { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--axv-alert); font-weight: 700; margin-bottom: 8px; }
.axv-consent-body { font-size: 14px; color: var(--axv-muted); margin: 0; }

/* interstitials */
.axv-inter { padding: 6px 0; }
.axv-advocate-badge { display: inline-block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--axv-olive-deep); background: var(--axv-accent-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 14px; }
.axv[data-theme="dark"] .axv-advocate-badge, .axv:not([data-theme="light"]) .axv-advocate-badge { color: var(--axv-olive); }
.axv-inter-body { font-size: 17px; color: var(--axv-muted); max-width: 48ch; }

/* recap */
.axv-recap { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; border-top: 1px solid var(--axv-hair); }
.axv-recap-row { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--axv-hair); }
.axv-recap-q { color: var(--axv-muted); font-size: 14px; flex: 1; }
.axv-recap-a { font-size: 14px; font-weight: 560; text-align: right; max-width: 45%; }
.axv-recap-note { color: var(--axv-muted); font-size: 13.5px; margin-top: 16px; background: var(--axv-accent-soft); padding: 12px 14px; border-radius: 10px; }

/* stop + complete */
.axv-stop, .axv-complete { text-align: center; padding: 20px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.axv-stop-mark, .axv-check, .axv-cross { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; }
.axv-stop-mark { background: var(--axv-accent-soft); color: var(--axv-olive-deep); }
.axv-check { background: var(--axv-accent); color: var(--axv-on-accent); }
.axv-cross { background: var(--axv-alert); color: #fff; }
.axv-complete .axv-help, .axv-stop .axv-help { max-width: 42ch; }
.axv-spinner { width: 34px; height: 34px; border: 3px solid var(--axv-hair); border-top-color: var(--axv-accent); border-radius: 50%; animation: axv-spin .8s linear infinite; }
@keyframes axv-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .axv-spinner { animation: none; } .axv-bar-fill { transition: none; } }

/* call-office CTA (dead-end recovery) */
.axv-cta { margin-top: 8px; width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 6px; }
.axv-call {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--axv-accent); color: var(--axv-on-accent); text-decoration: none;
  font: inherit; font-weight: 700; font-size: 17px; padding: 15px 20px; border-radius: 12px;
}
.axv-call:hover { filter: brightness(0.93); }
.axv-call:focus-visible { outline: 2px solid var(--axv-accent-2); outline-offset: 2px; }
.axv-call-ico { width: 18px; height: 18px; fill: currentColor; }
.axv-hours { font-size: 13px; color: var(--axv-faint); }

/* footer nav */
.axv-footer { display: flex; gap: 12px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--axv-hair); }
.axv-btn { font: inherit; cursor: pointer; border-radius: 11px; padding: 13px 22px; font-size: 16px; font-weight: 560; border: 1.5px solid transparent; }
.axv-back { background: transparent; color: var(--axv-muted); border-color: var(--axv-hair); }
.axv-back:hover:not(:disabled) { border-color: var(--axv-hair-2); color: var(--axv-ink); }
.axv-cont { background: var(--axv-accent); color: var(--axv-on-accent); margin-left: auto; font-weight: 640; }
.axv-cont:hover:not(:disabled) { filter: brightness(0.93); }
.axv-btn:disabled { opacity: .45; cursor: not-allowed; }
.axv-btn:focus-visible { outline: 2px solid var(--axv-accent); outline-offset: 2px; }

@media (max-width: 480px) {
  .axv-shell { padding: 14px 16px 24px; }
  .axv-scale { grid-template-columns: repeat(5, 1fr); }
  .axv-recap-a { max-width: 50%; }
}
