/* ==========================================================================
   HelpUsAdopt.AI — warm, lighthearted design system
   The on-ramp to SecurelyIntegrated.AI, a Coast2Coast MSP company
   ========================================================================== */

:root {
  --linen:      #FBF7F0;   /* page */
  --paper:      #FFFFFF;   /* cards */
  --sand:       #F6F0E6;   /* footer, subtle bands */
  --line:       #EADFD0;
  --line-2:     #CFC4B3;

  --cocoa:      #2B2A28;   /* headings, strong text */
  --text:       #55504A;   /* body */
  --text-2:     #6B655C;
  --text-3:     #8A8276;   /* captions — 4.6:1 on linen */

  --sea:        #1F7A6B;   /* action */
  --sea-2:      #15594E;
  --mint:       #E3F1EC;   /* selected wash */
  --apricot:    #F2A65A;   /* warmth */
  --apricot-2:  #FCE3C7;
  --rust:       #8A4D14;   /* text on apricot wash */

  --font-head:  "Nunito", "Inter", system-ui, sans-serif;
  --font:       "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1120px;
  --wrap-narrow: 720px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 24px 48px -28px rgba(43,42,40,.25);
  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::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: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--linen);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--sea); text-decoration: none; }
a:hover { color: var(--sea-2); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--cocoa);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  font-weight: 800;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 3.65rem); letter-spacing: -0.025em; line-height: 1.08; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
strong, b { color: var(--cocoa); font-weight: 600; }
::selection { background: rgba(31,122,107,.22); }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 3px; border-radius: 8px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--sea); color: #fff; font-weight: 600;
  padding: .7rem 1.1rem; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: var(--wrap-narrow); }
section[id] { scroll-margin-top: 24px; }
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.muted { color: var(--text-3); }
.small { font-size: .875rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font: inherit; font-weight: 600; font-size: 1rem;
  padding: .95rem 1.5rem; border-radius: 14px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .18s var(--ease), background .18s, box-shadow .18s, color .18s, border-color .18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--sea); color: #fff; box-shadow: 0 10px 24px -12px rgba(31,122,107,.6); }
.btn-primary:hover { background: var(--sea-2); color: #fff; }
.btn-warm { background: var(--apricot); color: var(--cocoa); }
.btn-warm:hover { background: #EE9A47; color: var(--cocoa); }
.btn-ghost { background: var(--paper); border-color: var(--line); color: var(--cocoa); }
.btn-ghost:hover { border-color: var(--line-2); color: var(--cocoa); }
.btn-link { background: none; color: var(--text-2); padding-inline: .5rem; }
.btn-link:hover { color: var(--cocoa); transform: none; }
.btn-lg { padding: 1.05rem 1.7rem; font-size: 1.06rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.arrow { transition: transform .2s var(--ease); flex: none; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--cocoa); }
.brand:hover { color: var(--cocoa); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-text { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand-text .dotai { color: var(--sea); }
.powered { font-size: .82rem; color: var(--text-2); display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.powered a { color: var(--cocoa); font-weight: 600; }
.powered .dot { color: var(--line-2); }

/* ---------- hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 5vw, 3rem); }
.hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 2.5rem; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 1.3rem; }
.hero-copy h1 { margin: 0; max-width: 14ch; }
.hero-copy .lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 540px; margin: 0; }
.hero-copy .note { font-size: .875rem; color: var(--text-3); margin: .2rem 0 0; }
.pill {
  display: inline-flex; align-items: center; gap: .5rem; align-self: flex-start;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: .45rem .9rem; font-size: .82rem; font-weight: 600; color: var(--sea);
}
.pill svg { width: 14px; height: 14px; }

.preview-card {
  width: 100%; max-width: 400px; margin: 0 auto;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 1.1rem;
  transform: rotate(-1.5deg);
}
.preview-card .cap { display: flex; justify-content: space-between; font-size: .82rem; color: var(--text-3); }
.preview-card .cap b { color: var(--cocoa); }
.preview-card .num { display: flex; align-items: flex-end; gap: .6rem; }
.preview-card .num span:first-child { font-family: var(--font-head); font-weight: 800; font-size: 4.5rem; line-height: 1; color: var(--cocoa); }
.preview-card .num span:last-child { font-size: 1.25rem; color: var(--text-3); padding-bottom: .6rem; }
.preview-card p { margin: 0; font-size: .9rem; line-height: 1.55; }
.bar { height: 12px; border-radius: 999px; background: var(--sand); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--apricot); border-radius: 999px; transition: width .6s var(--ease); }
.bands { display: flex; gap: .5rem; flex-wrap: wrap; }
.band-chip { font-size: .75rem; font-weight: 600; padding: .38rem .65rem; border-radius: 999px; background: var(--sand); color: var(--text-3); }
.band-chip.on { background: var(--apricot-2); color: var(--rust); }
.band-chip.on.good { background: var(--mint); color: var(--sea-2); }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; padding: 1.5rem 0 3rem; }
.step {
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px;
  padding: 1.6rem; display: flex; flex-direction: column; gap: .6rem;
}
.step h3 { margin: 0; font-size: 1.2rem; }
.step p { margin: 0; font-size: .95rem; line-height: 1.55; }
.ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--mint); color: var(--sea);
}
.ico.warm { background: var(--apricot-2); color: #B9651B; }
.ico svg { width: 20px; height: 20px; }

/* ---------- scorecard ---------- */
.scorecard { background: var(--paper); border-block: 1px solid var(--line); padding: clamp(3rem, 6vw, 4.5rem) 0; }
.sc-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.sc-count { font-size: .8rem; font-weight: 600; color: var(--text-3); letter-spacing: .08em; text-transform: uppercase; }
.progress { flex: 1; max-width: 280px; height: 8px; border-radius: 999px; background: var(--sand); overflow: hidden; }
.progress > span { display: block; height: 100%; width: 0; background: var(--sea); border-radius: 999px; transition: width .35s var(--ease); }
.sc-q { font-size: clamp(1.45rem, 2.8vw, 2.1rem); line-height: 1.2; margin-bottom: 1.5rem; min-height: 2.4em; }
.answers { display: grid; gap: .75rem; margin-bottom: 1.5rem; }
.answer {
  text-align: left; font: inherit; font-size: 1.05rem; color: var(--cocoa);
  background: var(--linen); border: 2px solid var(--line); border-radius: 16px;
  padding: 1.05rem 1.25rem; cursor: pointer;
  display: flex; align-items: center; gap: .9rem;
  transition: border-color .15s, background .15s, transform .15s var(--ease);
  min-height: 60px;
}
.answer:hover { border-color: var(--line-2); transform: translateY(-1px); }
.answer .radio {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2);
  flex: none; background: var(--paper); transition: border .15s;
}
.answer[aria-checked="true"] { background: var(--mint); border-color: var(--sea); }
.answer[aria-checked="true"] .radio { border: 7px solid var(--sea); }
.sc-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.sc-start { text-align: center; padding: 1rem 0; }
.sc-start h2 { margin-bottom: .6rem; }
.sc-start p { max-width: 52ch; margin: 0 auto 1.4rem; }
[hidden] { display: none !important; }

/* ---------- results ---------- */
.results { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.results-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 2.5rem; align-items: start; }
.result-copy { display: flex; flex-direction: column; gap: 1.2rem; }
.result-head { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.dial { position: relative; width: 150px; height: 150px; flex: none; }
.dial svg { width: 150px; height: 150px; }
.dial .ring { transition: stroke-dasharray .9s var(--ease); }
.dial .val {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  font-family: var(--font-head); font-weight: 800; font-size: 2.5rem; line-height: 1; color: var(--cocoa);
}
.dial .val small { font-size: 1rem; color: var(--text-3); font-weight: 700; }
.result-title { display: flex; flex-direction: column; gap: .5rem; flex: 1; min-width: 240px; }
.stage { align-self: flex-start; font-size: .8rem; font-weight: 700; padding: .45rem .8rem; border-radius: 999px; background: var(--apricot-2); color: var(--rust); }
.stage.good { background: var(--mint); color: var(--sea-2); }
.result-title h2 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.result-copy .verdict { font-size: 1.05rem; margin: 0; }
.next-step {
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  padding: 1.25rem 1.4rem; display: flex; gap: .9rem; align-items: flex-start;
}
.next-step .ico { width: 38px; height: 38px; border-radius: 10px; flex: none; }
.next-step b { display: block; margin-bottom: .25rem; font-size: .95rem; }
.next-step span { font-size: .95rem; line-height: 1.55; }
.gaps { margin: 0; padding-left: 1.2em; font-size: .95rem; }
.gaps li { margin-bottom: .4em; }

.capture {
  background: var(--cocoa); border-radius: var(--radius-lg); padding: 1.9rem;
  color: var(--linen); display: flex; flex-direction: column; gap: .95rem;
}
.capture h3 { color: #fff; font-size: 1.5rem; margin: 0; }
.capture p { margin: 0; font-size: .95rem; line-height: 1.6; color: #D9D1C5; }
.capture label { font-size: .82rem; font-weight: 600; color: #D9D1C5; }
.capture input {
  font: inherit; font-size: 1rem; padding: .9rem 1rem; border-radius: 12px;
  border: 1px solid #4A4742; background: #3A3834; color: #fff; width: 100%;
}
.capture input::placeholder { color: #8F887C; }
.capture input:focus { outline: none; border-color: var(--apricot); box-shadow: 0 0 0 3px rgba(242,166,90,.25); }
.capture .row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.capture .fine { font-size: .82rem; color: #A8A094; }
.capture .fine a { color: var(--apricot); font-weight: 600; }
.hp { position: absolute; left: -9999px; }
.status { display: none; border-radius: 12px; padding: .8rem 1rem; font-size: .92rem; }
.status.show { display: block; }
.status.ok { background: rgba(31,122,107,.25); border: 1px solid rgba(31,122,107,.6); color: #CDEFE5; }
.status.err { background: rgba(242,120,90,.18); border: 1px solid rgba(242,120,90,.5); color: #FFD3C4; }
.restart { margin-top: 1.2rem; }

/* ---------- about band ---------- */
.about { background: var(--paper); border-top: 1px solid var(--line); padding: clamp(3rem, 6vw, 4.5rem) 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.about p { font-size: 1rem; }
.who { background: var(--linen); border: 1px solid var(--line); border-radius: 20px; padding: 1.6rem; }
.who ul { margin: 0; padding-left: 1.15em; font-size: .95rem; }
.who li { margin-bottom: .45em; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--sand); padding: 2.2rem 0; font-size: .85rem; color: var(--text-2); }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 1.1rem; }
.site-footer nav a { color: var(--text-2); }
.site-footer nav a:hover { color: var(--cocoa); }

/* ---------- legal pages ---------- */
.legal { max-width: var(--wrap-narrow); padding: 2rem 24px 4rem; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2rem; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .results-grid, .about-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .preview-card { transform: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .btn-row .btn { width: 100%; }
  .capture .row { grid-template-columns: 1fr; }
  .sc-nav { flex-direction: column-reverse; align-items: stretch; }
  .sc-nav .btn { width: 100%; }
  .progress { max-width: none; }
}
