/* CertRally site. Palette: concrete, steel, survey-flag pink. */
:root {
  --concrete: #EEF0EC;
  --slab: #E1E5E0;
  --steel: #1C2321;
  --rebar: #55605A;
  --line: #C6CCC6;
  --flag: #D93E72;
  --flag-dark: #B12A5A;
  --ok: #2E7A57;
  --ok-tint: #DCEDE3;
  --bad-tint: #FADDE7;
  --warn: #9A6A12;
  --warn-tint: #F6EACB;
  --white: #FFFFFF;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Public Sans", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--concrete);
  color: var(--steel);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

a { color: inherit; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--flag); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--display);
  font-stretch: 118%;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; font-stretch: 110%; line-height: 1.2; }

p { margin: 0 0 1em; max-width: 64ch; }
.fine { font-size: 0.9rem; color: var(--rebar); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--flag);
  color: var(--white);
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 0.85em 1.4em;
  border-radius: 6px;
  transition: background-color 0.15s;
}
.btn:hover { background: var(--flag-dark); }
.btn-small { font-size: 0.95rem; padding: 0.55em 1em; }
.btn-wide { display: block; text-align: center; }
.link { font-weight: 600; text-underline-offset: 4px; }

/* Header */
.top { border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 1.3rem;
  text-decoration: none; color: var(--steel);
}
.mark { width: 28px; height: 28px; color: var(--steel); }
.top-nav { display: flex; align-items: center; gap: 24px; }
.top-nav a:not(.btn) { text-decoration: none; font-weight: 500; color: var(--rebar); }
.top-nav a:not(.btn):hover { color: var(--steel); }
@media (max-width: 640px) { .top-nav a:not(.btn) { display: none; } }

/* Hero */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.lede { font-size: 1.2rem; margin-top: 24px; color: #2C3532; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin: 32px 0 16px; flex-wrap: wrap; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }

/* The roster: the one moving thing on the page */
.roster {
  margin: 0;
  background: var(--white);
  border: 2px solid var(--steel);
  border-radius: 10px;
  padding: 20px 20px 16px;
  box-shadow: 8px 8px 0 var(--steel);
}
.roster-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--display); font-stretch: 112%; font-weight: 700;
  padding-bottom: 12px; border-bottom: 2px solid var(--steel);
}
.roster-count { font-family: var(--body); font-weight: 500; font-size: 0.95rem; color: var(--rebar); }
.roster-count b { color: var(--ok); }
.roster-list { list-style: none; margin: 0; padding: 0; }
.roster-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "sub chip" "issue chip";
  column-gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.roster-list li:last-child { border-bottom: 0; }
.sub { grid-area: sub; font-weight: 600; }
.issue { grid-area: issue; font-size: 0.9rem; color: var(--rebar); }
.chip {
  grid-area: chip; align-self: center;
  font-size: 0.82rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  transition: background-color 0.4s, color 0.4s;
}
.chip.ok { background: var(--ok-tint); color: var(--ok); }
.chip.bad { background: var(--bad-tint); color: var(--flag-dark); }
.chip.warn { background: var(--warn-tint); color: var(--warn); }
.roster-list li.fixed { animation: settle 0.6s ease-out; }
@keyframes settle { from { background: var(--ok-tint); } to { background: transparent; } }
.roster-note { font-size: 0.82rem; color: var(--rebar); margin: 12px 0 0; }

/* Bands */
.band { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--line); }
.band h2 { margin-bottom: 24px; }
.section-lede { margin-top: -8px; color: var(--rebar); }

/* Steps: a real sequence, so numbered */
.steps {
  list-style: none; counter-reset: step; margin: 40px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.steps li { counter-increment: step; border-top: 4px solid var(--steel); padding-top: 18px; }
.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--display); font-stretch: 125%; font-weight: 800;
  font-size: 2.6rem; line-height: 1; color: var(--flag); margin-bottom: 14px;
}
.steps h3 { margin-bottom: 10px; }
.steps p { font-size: 0.98rem; color: #2C3532; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Guarantee: dark slab */
.guarantee { background: var(--steel); color: var(--concrete); padding: clamp(56px, 8vw, 96px) 0; }
.guarantee-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.guarantee .big {
  font-family: var(--display); font-stretch: 115%; font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.2; max-width: 30ch;
}
.guarantee .fine { color: #A9B3AD; }
@media (max-width: 760px) { .guarantee-grid { grid-template-columns: 1fr; gap: 20px; } }

/* Pricing table */
.table-wrap { overflow-x: auto; margin: 32px 0 16px; }
.plans { width: 100%; min-width: 620px; border-collapse: collapse; background: var(--white); border: 2px solid var(--steel); }
.plans th, .plans td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.plans thead th {
  font-family: var(--display); font-stretch: 118%; font-weight: 750; font-size: 1.2rem;
  border-bottom: 2px solid var(--steel);
}
.plans tbody th { font-weight: 500; color: #2C3532; width: 38%; }
.plans .price-row b { font-family: var(--display); font-stretch: 118%; font-weight: 800; font-size: 1.9rem; }
.plans .pick { background: #F7E4EB; }
.plans tbody tr:last-child th, .plans tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
  .plans { min-width: 0; font-size: 0.82rem; }
  .plans th, .plans td { padding: 10px 7px; }
  .plans thead th { font-size: 0.95rem; font-stretch: 100%; }
  .plans tbody th { width: 34%; }
  .plans .price-row b { font-size: 1.2rem; font-stretch: 100%; }
}

/* Founding */
.founding { padding: clamp(48px, 7vw, 80px) 0; background: var(--slab); }
.founding-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: start; }
.founding p { font-size: 1.15rem; }
@media (max-width: 760px) { .founding-grid { grid-template-columns: 1fr; gap: 16px; } }

/* Audit */
.audit-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.audit-card { background: var(--white); border: 2px solid var(--steel); border-radius: 10px; padding: 24px; }
.audit-card .fine { margin: 14px 0 0; }
@media (max-width: 820px) { .audit-grid { grid-template-columns: 1fr; gap: 24px; } }

/* FAQ */
.qa { margin: 32px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 48px; }
.qa dt { font-weight: 600; margin-bottom: 6px; }
.qa dd { margin: 0; color: #2C3532; }
@media (max-width: 760px) { .qa { grid-template-columns: 1fr; } }

/* Footer */
.foot { border-top: 2px solid var(--steel); padding: 40px 0 48px; }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.brand-foot { margin-bottom: 8px; }
@media (max-width: 640px) { .foot-grid { grid-template-columns: 1fr; } }
