/* Ridgewell Diagnostics: palette follows chromate.org (slate blue + teal on white) */
:root {
  --primary: #33556c;
  --primary-dark: #243f52;
  --teal: #1c9fa7;
  --teal-light: #29c0b2;
  --heading: #1f2a33;
  --text: #555d66;
  --muted: #7b8590;
  --bg: #ffffff;
  --bg-soft: #f6f8f9;
  --bg-tint: #eef6f7;
  --border: #e2e7eb;
  --footer-bg: #14222c;
  --footer-text: #a9b6c0;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(31, 42, 51, 0.08);
  --container: 1200px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--teal); }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head p { font-size: 1.05rem; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 8px; font-weight: 600; font-size: 0.98rem;
  border: 2px solid transparent; cursor: pointer; transition: all 0.2s ease; font-family: inherit;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: #168990; color: #fff; }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: var(--bg-tint); color: var(--primary-dark); }
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }

/* Top bar + header */
.topbar { background: var(--primary-dark); color: #d5e1e8; font-size: 0.82rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar a { color: #fff; }
.topbar-items { display: flex; gap: 22px; align-items: center; }
.topbar-items span { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 14px; height: 14px; opacity: 0.85; }

.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s ease;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(31, 42, 51, 0.08); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--heading); font-weight: 500; font-size: 0.95rem; padding: 8px 14px; border-radius: 6px; position: relative;
}
.nav a:hover, .nav a.active { color: var(--primary); }
.nav a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--teal); border-radius: 2px;
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--heading);
}
.menu-toggle svg { width: 28px; height: 28px; }

/* Hero */
.hero { position: relative; padding: 88px 0 96px; overflow: hidden; background: linear-gradient(180deg, #fff 0%, var(--bg-tint) 100%); }
.hero::before {
  content: ""; position: absolute; right: -140px; top: -60px; width: 620px; height: 470px;
  background: url("../img/emblem-dark.png") no-repeat center / contain; opacity: 0.04; pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; position: relative; }
.hero-lead { font-size: 1.15rem; max-width: 560px; margin-bottom: 30px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 600; color: var(--primary);
  background: #fff; border: 1px solid var(--border); padding: 6px 12px; border-radius: 999px;
}
.badge svg { width: 14px; height: 14px; color: var(--teal); }

.coa-card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 28px; position: relative;
}
.coa-card-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); padding-bottom: 16px; margin-bottom: 18px; }
.coa-card-head img { height: 30px; width: auto; }
.coa-tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); background: var(--bg-tint); padding: 4px 10px; border-radius: 999px; }
.coa-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; font-size: 0.85rem; margin-bottom: 18px; }
.coa-meta dt { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }
.coa-meta dd { margin: 0; color: var(--heading); font-weight: 600; }
.coa-rows { list-style: none; margin: 0; padding: 0; }
.coa-rows li { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-top: 1px dashed var(--border); font-size: 0.92rem; }
.coa-rows strong { color: var(--heading); }
.pass { color: #1e8a5a; font-weight: 700; font-size: 0.82rem; display: inline-flex; align-items: center; gap: 4px; }
.coa-note { margin: 14px 0 0; font-size: 0.75rem; color: var(--muted); text-align: center; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 64px; background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.stat { padding: 22px 24px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; color: var(--heading); font-size: 1.15rem; }
.stat span { font-size: 0.86rem; color: var(--muted); }

/* Services */
.service-group + .service-group { margin-top: 56px; }
.group-title { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.group-title h3 { margin: 0; font-size: 1.3rem; }
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfe3e5; }
.card-icon {
  width: 48px; height: 48px; border-radius: 10px; background: var(--bg-tint); color: var(--teal);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card-icon svg { width: 24px; height: 24px; }
.card h4 { font-size: 1.08rem; margin-bottom: 8px; }
.card p { font-size: 0.94rem; margin: 0; }
.method { font-size: 0.75rem; font-weight: 700; color: var(--teal); letter-spacing: 0.06em; text-transform: uppercase; margin-left: 6px; }
.tag-request { display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; background: #fff4e0; color: #9a6a12; padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }
.ruo-note { margin-top: 36px; text-align: center; font-size: 0.9rem; color: var(--muted); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: start; }
.price-feature {
  background: var(--primary); color: #d9e5ec; border-radius: 14px; padding: 36px; position: relative; overflow: hidden;
}
.price-feature::after {
  content: ""; position: absolute; right: -60px; bottom: -50px; width: 260px; height: 200px;
  background: url("../img/emblem-white.png") no-repeat center / contain; opacity: 0.08;
}
.price-feature h3 { color: #fff; font-size: 1.5rem; }
.price-feature .price { color: #fff; }
.price { font-size: 2.6rem; font-weight: 700; color: var(--heading); line-height: 1; }
.price small { font-size: 0.95rem; font-weight: 600; opacity: 0.75; margin-left: 4px; }
.price-feature ul { list-style: none; padding: 0; margin: 24px 0; }
.price-feature li { padding: 6px 0 6px 28px; position: relative; }
.price-feature li::before {
  content: ""; position: absolute; left: 0; top: 12px; width: 16px; height: 9px; border-left: 2px solid var(--teal-light); border-bottom: 2px solid var(--teal-light); transform: rotate(-45deg);
}
.addon-box { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 10px; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 26px; }
.addon-box strong { color: #fff; }
.addon-box .addon-price { color: var(--teal-light); font-weight: 700; font-size: 1.3rem; white-space: nowrap; }
.price-table { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.price-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--border); }
.price-row:last-child { border-bottom: 0; }
.price-row h4 { margin: 0; font-size: 1rem; }
.price-row p { margin: 2px 0 0; font-size: 0.85rem; color: var(--muted); }
.price-row .amount { font-weight: 700; color: var(--primary); font-size: 1.2rem; white-space: nowrap; }
.price-row .amount small { font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.price-notes { margin-top: 22px; font-size: 0.85rem; color: var(--muted); }
.price-notes p { margin: 0 0 4px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; }
.step-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700;
  display: grid; place-items: center; margin-bottom: 18px;
}
.step p { font-size: 0.94rem; margin: 0; }

/* Why / about */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature-list { display: grid; gap: 22px; }
.feature { display: grid; grid-template-columns: 48px 1fr; gap: 16px; }
.feature .card-icon { margin: 0; }
.feature h4 { margin: 0 0 4px; font-size: 1.05rem; }
.feature p { margin: 0; font-size: 0.94rem; }
.about-panel {
  background: var(--footer-bg); border-radius: 16px; padding: 48px; color: var(--footer-text); position: relative; overflow: hidden;
}
.about-panel img.emblem { width: 120px; margin-bottom: 26px; }
.about-panel h3 { color: #fff; font-size: 1.5rem; }
.about-panel .loc { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; margin-top: 8px; }
.about-panel .loc svg { width: 18px; height: 18px; color: var(--teal-light); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-weight: 600; color: var(--heading); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--teal); font-weight: 400;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 24px 20px; margin: 0; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--primary) 0%, #2a6f80 60%, var(--teal) 100%); color: #e4f1f4; padding: 72px 0; }
.cta-band .container { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.contact-info .info-item { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-info .info-item h4 { margin: 0 0 2px; font-size: 1rem; }
.contact-info .info-item p { margin: 0; }
.form { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 36px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label, .field legend { display: block; font-weight: 600; color: var(--heading); font-size: 0.9rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #cfd7dd; border-radius: 8px; font: inherit; color: var(--heading); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(28, 159, 167, 0.15); }
.field textarea { min-height: 130px; resize: vertical; }
fieldset.field { border: 0; padding: 0; margin: 0 0 18px; }
.checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 14px; }
.checks label { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: 0.9rem; color: var(--text); margin: 0; cursor: pointer; }
.checks input { width: auto; accent-color: var(--teal); }
.hp { position: absolute; left: -9999px; }
.form-consent { font-size: 0.8rem; color: var(--muted); margin: 4px 0 18px; }
.form-status { margin-top: 14px; font-size: 0.92rem; padding: 12px 14px; border-radius: 8px; display: none; }
.form-status.ok { display: block; background: #e7f6ef; color: #1e6e4a; }
.form-status.err { display: block; background: #fdecec; color: #a3282d; }

/* Footer: layout modelled on janoshik.com (dark, brand column + link columns + bottom bar) */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 72px 0 0; font-size: 0.93rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 52px; }
.footer-brand img { height: 46px; width: auto; margin-bottom: 20px; }
.footer-brand p { max-width: 340px; }
.site-footer h5 { color: #fff; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--footer-text); }
.site-footer a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; margin-top: 4px; color: var(--teal-light); flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 22px 0; font-size: 0.82rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Legal pages */
.page-hero { background: var(--bg-tint); padding: 64px 0 48px; border-bottom: 1px solid var(--border); }
.page-hero p { margin: 0; color: var(--muted); }
.legal { max-width: 820px; margin: 0 auto; padding: 56px 24px 96px; }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 0.4em; }
.legal .callout { background: var(--bg-soft); border-left: 4px solid var(--teal); padding: 16px 20px; border-radius: 6px; margin: 1.5em 0; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 1080px) {
  .nav a { padding: 8px 10px; }
  .header-actions .btn-outline { display: none; }
}
@media (max-width: 960px) {
  .hero-grid, .pricing-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch;
    padding: 12px 16px 20px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav a.active::after { display: none; }
  .header-actions .btn-teal { display: none; }
}
@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .container { padding: 0 16px; }
  .topbar-items .hide-sm { display: none; }
  .brand img { height: 36px; }
  .steps, .form-row, .checks, .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: 0; }
  .form, .about-panel, .price-feature { padding: 26px; }
  .price-row { padding: 16px 18px; }
}

/* COA verification */
.verify-lookup { background: linear-gradient(180deg, #fff 0%, var(--bg-tint) 100%); padding: 72px 0 88px; border-bottom: 1px solid var(--border); }
.verify-narrow { max-width: 720px; }
.verify-lookup h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.verify-form { display: flex; gap: 10px; margin: 28px 0 10px; }
.verify-form input {
  flex: 1; min-width: 0; font: inherit; font-size: 1.05rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 13px 16px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--heading);
}
.verify-form input::placeholder { text-transform: none; letter-spacing: 0; color: var(--muted); }
.verify-form input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(28, 159, 167, 0.15); }
.verify-hint { font-size: 0.85rem; color: var(--muted); }
.verify-msg { margin-top: 14px; padding: 12px 14px; border-radius: 8px; background: #fdecec; color: #a3282d; font-size: 0.92rem; }

.verify-result { padding: 40px 0 72px; background: var(--bg-soft); }
.verified-banner {
  display: grid; grid-template-columns: auto 1fr; gap: 18px 22px; align-items: start;
  background: #fff; border: 1px solid var(--border); border-top: 4px solid #1e8a5a; border-radius: 14px; padding: 26px 28px; box-shadow: var(--shadow);
}
.verified-badge { width: 56px; height: 56px; border-radius: 50%; background: #e7f4ee; color: #1e8a5a; display: flex; align-items: center; justify-content: center; }
.verified-badge svg { width: 30px; height: 30px; }
.verified-kicker { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #1e8a5a; }
.verified-main h1 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin: 4px 0 6px; }
.verified-main p { margin: 0; }
.verified-meta {
  grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px 20px; margin: 4px 0 0;
  padding-top: 18px; border-top: 1px solid var(--border);
}
.verified-meta dt { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.verified-meta dd { margin: 0; color: var(--heading); font-weight: 600; overflow-wrap: anywhere; }
.verified-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.verified-again { margin-left: auto; font-size: 0.9rem; font-weight: 600; }
.coa-frame { margin-top: 24px; background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.coa-frame { min-height: 300px; }
.coa-frame canvas { display: block; width: 100%; height: auto; }
.coa-frame canvas + canvas { border-top: 1px solid var(--border); }
.coa-frame iframe { display: block; width: 100%; height: min(1300px, 130vw); border: 0; }

@media (max-width: 760px) {
  .verify-form { flex-direction: column; }
  .verified-banner { grid-template-columns: 1fr; padding: 22px 20px; }
  .verified-meta { grid-template-columns: 1fr 1fr; }
  .verified-again { margin-left: 0; }
}

/* Hero: single centred column (example COA card removed) */
.hero-grid { grid-template-columns: 1fr; }
.hero-copy { max-width: 780px; margin: 0 auto; text-align: center; }
.hero-copy .hero-lead { margin-left: auto; margin-right: auto; }
.hero-copy .hero-ctas, .hero-copy .badges { justify-content: center; }
