/* CertChase — crisp industrial B2B
   Paper / charcoal / copper accent — not purple AI slop */

:root {
  --bg: #f4f1ea;
  --bg-alt: #ebe6dc;
  --surface: #fffcf7;
  --ink: #1c1f24;
  --ink-muted: #5a5f68;
  --line: #d4cfc4;
  --accent: #b45309;
  --accent-hover: #92400e;
  --accent-soft: #fef3c7;
  --teal: #0f5c5c;
  --ok: #166534;
  --ok-bg: #dcfce7;
  --warn: #a16207;
  --warn-bg: #fef9c3;
  --bad: #9f1239;
  --bad-bg: #ffe4e6;
  --shadow: 0 1px 2px rgba(28, 31, 36, 0.06), 0 12px 32px rgba(28, 31, 36, 0.08);
  --radius: 10px;
  --font: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --serif: "IBM Plex Serif", Georgia, serif;
  --max: 1080px;
  --narrow: 720px;
}

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

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.wrap.narrow {
  width: min(100% - 2rem, var(--narrow));
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 241, 234, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.75rem;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.logo-mark {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 4px;
  background: linear-gradient(145deg, var(--teal), #0a3d3d);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.15);
  position: relative;
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 35% 20% 20% 20%;
  border: 2px solid #f4f1ea;
  border-top: 0;
  border-radius: 0 0 3px 3px;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.25rem;
}

.nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--ink);
}

.nav-cta {
  background: var(--ink);
  color: #fff !important;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
}

.nav-cta:hover {
  background: var(--accent) !important;
  color: #fff !important;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 1rem;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  padding: 0.65rem 0.5rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  border-radius: 6px;
}

.mobile-nav a:hover {
  background: var(--bg-alt);
}

.mobile-nav .nav-cta {
  text-align: center;
  margin-top: 0.35rem;
  background: var(--ink);
  color: #fff !important;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
  .nav-toggle,
  .mobile-nav {
    display: none !important;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem 1.2rem;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

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

.btn-ghost:hover {
  border-color: var(--ink-muted);
  color: var(--ink);
  background: var(--surface);
}

.btn-block {
  width: 100%;
}

.muted {
  color: var(--ink-muted);
  font-weight: 400;
  font-size: 0.85em;
}

/* Hero */
.hero {
  position: relative;
  padding: 1.5rem 0 1.25rem;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 900px) {
  .hero {
    padding: 1.75rem 0 1rem;
  }
}

.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin: 1rem auto 0.25rem;
  width: fit-content;
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.85;
  transition: color 0.15s, opacity 0.15s;
}

.scroll-cue:hover {
  color: var(--ink);
  opacity: 1;
}

.scroll-cue-chevron {
  width: 0.65rem;
  height: 0.65rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -0.1rem;
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-cue-chevron {
    animation: cue-bounce 1.8s ease-in-out infinite;
  }
}

@keyframes cue-bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(3px); }
}

.hero-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 2.25rem;
  }
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(15, 92, 92, 0.08);
  border-radius: 999px;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.lede,
.section-lede {
  color: var(--ink-muted);
  font-size: 1.08rem;
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem;
}

.card-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

.status-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.status-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.75rem;
  row-gap: 0.1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  background: var(--bg);
}

.status-list .dot {
  grid-row: 1 / span 2;
  align-self: center;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
}

.status-list strong {
  font-size: 0.98rem;
}

.status-list span:last-child {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.status-ok {
  background: var(--ok-bg);
}
.status-ok .dot {
  background: var(--ok);
}

.status-warn {
  background: var(--warn-bg);
}
.status-warn .dot {
  background: var(--warn);
}

.status-bad {
  background: var(--bad-bg);
}
.status-bad .dot {
  background: var(--bad);
}

.card-foot {
  margin: 1rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

.section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}

.problem-grid {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .problem-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.problem-grid li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
}

.problem-grid h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.problem-grid p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.steps {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  counter-reset: none;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

.steps li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}

.step-num {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.steps h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.steps p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.callout {
  margin-top: 1.5rem;
  padding: 1.15rem 1.35rem;
  background: rgba(15, 92, 92, 0.06);
  border: 1px solid rgba(15, 92, 92, 0.22);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  color: var(--ink);
}

.callout-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--teal);
}

.callout-body {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.fit-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink-muted);
}

.fit-list li {
  margin-bottom: 0.45rem;
}

/* Pricing */
.pricing-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

@media (min-width: 700px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: stretch;
  }
}

.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: var(--teal);
  box-shadow: var(--shadow);
}

.badge {
  position: absolute;
  top: -0.65rem;
  right: 1rem;
  margin: 0;
  background: var(--teal);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

.price-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.price {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}

.price .amount {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.price .per {
  color: var(--ink-muted);
  font-size: 1rem;
}

.price-note {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.price-card ul {
  margin: 1.1rem 0 1.4rem;
  padding-left: 1.15rem;
  color: var(--ink-muted);
  flex: 1;
}

.price-card li {
  margin-bottom: 0.35rem;
}

.price-cta {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.75rem 1.2rem;
  box-sizing: border-box;
}

/* Waitlist form */
.section-waitlist {
  background: var(--ink);
  color: #f4f1ea;
}

.section-waitlist h2 {
  color: #fff;
}

.section-waitlist .section-lede {
  color: #d4d0c8;
}

.waitlist-form {
  display: grid;
  gap: 1rem;
  margin-top: 0.5rem;
}

.form-row {
  display: grid;
  gap: 0.35rem;
}

.form-row label {
  font-size: 0.92rem;
  font-weight: 600;
  color: #f0ebe3;
}

.req {
  color: #fcd34d;
}

.form-row input,
.form-row select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid #6b7280;
  border-radius: 8px;
  background: #2a2e36;
  color: #f4f1ea;
  font: inherit;
}

.form-row input::placeholder {
  color: #9ca3af;
}

.form-row select option {
  background: #2a2e36;
  color: #f4f1ea;
}

.form-row input:focus,
.form-row select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.form-row input.invalid,
.form-row select.invalid {
  border-color: #fb7185;
}

.field-error {
  margin: 0;
  font-size: 0.82rem;
  color: #fda4af;
}

.form-status {
  margin: 0.25rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

.form-status.success {
  background: rgba(22, 101, 52, 0.35);
  border: 1px solid #4ade80;
  color: #bbf7d0;
}

.form-status.error {
  background: rgba(159, 18, 57, 0.35);
  border: 1px solid #fb7185;
  color: #fecdd3;
}

.section-waitlist .btn-primary {
  margin-top: 0.35rem;
}

/* Dark band (waitlist + FAQ) */
.section-dark {
  background: #17191e;
  color: #f4f1ea;
  border-top: 1px solid #2e323a;
}

.section-dark h2 {
  color: #fff;
}

.section-dark .section-lede {
  color: #d4d0c8;
}

/* Continuity: waitlist already dark; FAQ follows without a light flash */
.section-waitlist {
  border-bottom: none;
}

.section-waitlist + .section-dark {
  padding-top: 2.5rem;
}

/* FAQ */
.faq details {
  background: #25282e;
  border: 1px solid #6b7280;
  border-radius: var(--radius);
  padding: 0.15rem 1rem;
  margin-bottom: 0.65rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.85rem 0;
  list-style: none;
  color: #f4f1ea;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: #c5c2ba;
  font-weight: 400;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details[open] {
  border-color: #9ca3af;
}

.faq details p {
  margin: 0 0 1rem;
  color: #d4d0c8;
  font-size: 0.98rem;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 3rem;
  background: #14161a;
  color: #a8adb6;
  font-size: 0.9rem;
}

.footer-brand {
  margin: 0 0 0.2rem;
  font-weight: 700;
  color: #f4f1ea;
  font-size: 1.05rem;
}

.footer-tag {
  margin: 0 0 1.25rem;
  color: #7d8490;
}

.disclaimer {
  margin: 0 0 1.25rem;
  max-width: 42rem;
  line-height: 1.55;
}

.disclaimer strong {
  color: #ddd9d0;
}

.copyright {
  margin: 0;
  font-size: 0.82rem;
  color: #6b7280;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}
