/* Clearway Compliance — site styles */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

:root {
  --paper:      #FBFBFA;
  --surface:    #FFFFFF;
  --ink:        #141A18;
  --ink-soft:   #33403B;
  --muted:      #5D6B66;
  --line:       #E2E6E3;
  --line-soft:  #EDF0EE;
  --accent:     #0B5D51;
  --accent-ink: #084A40;
  --wash:       #EAF2EF;
  --on-accent:  #FFFFFF;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;

  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.875rem);
  --step-0:  clamp(1rem, 0.97rem + 0.14vw, 1.0625rem);
  --step-1:  clamp(1.15rem, 1.09rem + 0.3vw, 1.3rem);
  --step-2:  clamp(1.4rem, 1.28rem + 0.6vw, 1.75rem);
  --step-3:  clamp(1.75rem, 1.5rem + 1.1vw, 2.4rem);
  --step-4:  clamp(2.1rem, 1.65rem + 2vw, 3.25rem);

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 1080px;
  --prose: 66ch;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:      #101413;
    --surface:    #171C1A;
    --ink:        #EDF1EF;
    --ink-soft:   #D2DBD7;
    --muted:      #9DAAA5;
    --line:       #262E2B;
    --line-soft:  #1E2523;
    --accent:     #63C4B1;
    --accent-ink: #8AD8C8;
    --wash:       #16302B;
    --on-accent:  #08201C;
  }
}

:root[data-theme="dark"] {
  --paper:      #101413;
  --surface:    #171C1A;
  --ink:        #EDF1EF;
  --ink-soft:   #D2DBD7;
  --muted:      #9DAAA5;
  --line:       #262E2B;
  --line-soft:  #1E2523;
  --accent:     #63C4B1;
  --accent-ink: #8AD8C8;
  --wash:       #16302B;
  --on-accent:  #08201C;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.012em;
  text-wrap: balance;
  color: var(--ink);
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 {
  font-family: var(--sans);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.35;
}

p { text-wrap: pretty; }
strong { font-weight: 600; }

a.link, .prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a.link:hover, .prose a:hover { color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band { padding-block: clamp(3rem, 7vw, 5.5rem); }
.band--tight { padding-block: clamp(2.25rem, 4.5vw, 3.5rem); }
.band--surface { background: var(--surface); border-block: 1px solid var(--line); }
.band--wash { background: var(--wash); border-block: 1px solid var(--line); }

.stack { display: flex; flex-direction: column; }
.stack > * + * { margin-top: var(--gap, 1rem); }

.prose { max-width: var(--prose); }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.9em; }
.prose h4 { margin-top: 1.8em; margin-bottom: -0.5em; }
.prose ul { margin-top: 1em; display: flex; flex-direction: column; gap: 0.55em; }
.prose ul li {
  position: relative;
  padding-left: 1.15em;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 1px;
  background: var(--accent);
}

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 2rem;
  padding-block: 1.15rem;
}
.wordmark {
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark span { color: var(--accent); }
.site-nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  font-size: var(--step--1);
}
.site-nav a {
  text-decoration: none;
  color: var(--muted);
  padding-block: 2px;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.7rem 1.35rem;
  border-radius: 2px;
  text-decoration: none;
  border: 1px solid var(--accent);
  transition: background-color 140ms ease, color 140ms ease;
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--wash); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* ---------- hero ---------- */

.hero { padding-block: clamp(3rem, 8vw, 6rem) clamp(2.5rem, 5vw, 4rem); }
.hero__eyebrow {
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.4rem;
}
.hero h1 { max-width: 17ch; }
.hero__lede {
  margin-top: 1.5rem;
  max-width: 56ch;
  font-size: var(--step-1);
  color: var(--ink-soft);
  line-height: 1.55;
}
.hero__cta { margin-top: 2.25rem; }

/* ---------- router ---------- */

.router {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.router__item {
  background: var(--surface);
  padding: 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
  transition: background-color 140ms ease;
}
.router__item:hover { background: var(--wash); }
.router__state {
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.router__item h3 { font-size: var(--step-1); }
.router__item p { font-size: var(--step--1); color: var(--muted); line-height: 1.55; }

/* ---------- section heading ---------- */

.sec-head { max-width: 60ch; margin-bottom: 2.5rem; }
.sec-head .label {
  display: block;
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.sec-head p { margin-top: 1rem; color: var(--ink-soft); }

/* ---------- promise list ---------- */

.promise { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 2rem 2.5rem; }
.promise__item { border-top: 2px solid var(--accent); padding-top: 1rem; }
.promise__item h4 { margin-bottom: 0.45rem; }
.promise__item p { font-size: var(--step--1); color: var(--muted); }

/* ---------- columns ---------- */

.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem 3.5rem; }

/* ---------- sector list ---------- */

.sector-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.1rem 2.5rem;
}
.sector-list li {
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: var(--step--1);
}

/* ---------- price table ---------- */

.table-scroll { overflow-x: auto; }
table.price {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step--1);
  min-width: 560px;
}
table.price caption {
  text-align: left;
  color: var(--muted);
  font-size: var(--step--1);
  padding-bottom: 1rem;
}
table.price th, table.price td {
  text-align: left;
  padding: 0.95rem 1rem 0.95rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.price thead th {
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom-color: var(--ink);
}
table.price td.fee {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-weight: 600;
  padding-right: 0;
}
table.price tr.featured td { background: var(--wash); }
table.price tr.featured td:first-child { padding-left: 1rem; }
table.price td:last-child { padding-right: 1rem; }
.price-note { margin-top: 1.5rem; font-size: var(--step--1); color: var(--muted); max-width: var(--prose); }

/* ---------- answer box ---------- */

.answer {
  border-left: 2px solid var(--accent);
  background: var(--wash);
  padding: 1.35rem 1.5rem;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink);
}

/* ---------- guide index ---------- */

.guide-list { display: flex; flex-direction: column; }
.guide-list a {
  display: block;
  text-decoration: none;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.guide-list a:first-child { border-top: 1px solid var(--line); }
.guide-list a:hover h3 { color: var(--accent); }
.guide-list p { font-size: var(--step--1); color: var(--muted); margin-top: 0.4rem; max-width: 62ch; }

/* ---------- form ---------- */

.form { max-width: 34rem; display: flex; flex-direction: column; gap: 1.15rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: var(--step--1); font-weight: 500; }
.field input, .field select, .field textarea {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.65rem 0.7rem;
  font-size: var(--step-0);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { min-height: 7rem; resize: vertical; }

/* ---------- contact details ---------- */

.contact-details { display: flex; flex-direction: column; gap: 1.4rem; }
.contact-details dt {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.contact-details dd { font-size: var(--step-1); }

/* ---------- disclaimer ---------- */

.disclaimer {
  font-size: var(--step--1);
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  max-width: var(--prose);
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding-block: 2.75rem 3rem;
  font-size: var(--step--1);
  color: var(--muted);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.site-footer h4 {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.8rem;
}
.site-footer ul { display: flex; flex-direction: column; gap: 0.45rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer__base {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- guide byline ---------- */
.byline {
  margin-top: 1.5rem;
  font-size: var(--step--1);
  color: var(--muted);
}

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.1rem 0.7rem 0.85rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  font-size: var(--step--1);
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(20, 26, 24, 0.14), 0 8px 24px rgba(20, 26, 24, 0.12);
  transition: transform 140ms ease, background-color 140ms ease;
}
.wa-float:hover { background: var(--accent-ink); transform: translateY(-1px); }
.wa-float svg { width: 22px; height: 22px; flex: none; fill: currentColor; }
@media (max-width: 560px) {
  .wa-float__label { display: none; }
  .wa-float { padding: 0.85rem; }
}

/* router: four options, never an empty cell */
@media (max-width: 900px) { .router { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .router { grid-template-columns: 1fr; } }

/* ---------- supported services lists ---------- */
.helped { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem 3.5rem; }
.helped h3 { font-family: var(--sans); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.6rem; }
.helped li { padding-block: 0.6rem; border-bottom: 1px solid var(--line); font-size: var(--step--1); }
