/* ============================================================
   Global Diagnostic Testing — shared styles
   Palette derived from the logo (navy / royal / teal / green)
   ============================================================ */

:root {
  /* Brand */
  --navy:        #0a2a43;
  --navy-deep:   #061d30;
  --royal:       #1763a6;
  --teal:        #28a9c9;
  --teal-soft:   #5ec6dd;
  --green:       #3aa935;
  --green-soft:  #6ec96a;

  /* Surfaces */
  --bg:          #ffffff;
  --bg-alt:      #f4f8fb;
  --bg-tint:     #eaf3f8;
  --line:        #d9e6ef;
  --line-soft:   #e9f0f6;

  /* Text */
  --ink:         #0a2a43;
  --ink-2:       #355068;
  --ink-3:       #6c8298;
  --on-dark:     #eaf4fb;
  --on-dark-2:   #a8c6dc;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(10,42,67,.06), 0 2px 6px rgba(10,42,67,.05);
  --shadow-md: 0 4px 14px rgba(10,42,67,.08), 0 12px 30px rgba(10,42,67,.07);
  --shadow-lg: 0 18px 50px rgba(10,42,67,.14);
  --radius:    16px;
  --radius-sm: 10px;
  --maxw:      1160px;

  --grad-brand: linear-gradient(120deg, var(--royal), var(--teal) 60%, var(--green));
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--royal); text-decoration: none; }
a:hover { color: var(--teal); }

h1, h2, h3, h4 {
  font-family: "Sora", system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; }

.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--teal);
  margin: 0 0 14px;
}
.lead { font-size: 1.18rem; color: var(--ink-2); max-width: 60ch; }
.center { text-align: center; }
.center .lead, .center .eyebrow { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: "Sora", sans-serif; font-weight: 600; font-size: .98rem;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  line-height: 1; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 8px 22px rgba(23,99,166,.32); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(23,99,166,.4); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { color: var(--royal); border-color: var(--teal); transform: translateY(-2px); }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); }
.btn-light:hover { color: #fff; background: rgba(255,255,255,.2); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 42px; width: auto; }
.brand-text { font-family: "Sora", sans-serif; font-weight: 700; color: var(--navy); line-height: 1; letter-spacing: -.01em; }
.brand-text small { display: block; font-size: .62rem; letter-spacing: .26em; font-weight: 500; color: var(--teal); margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: "Sora", sans-serif; font-weight: 500; font-size: .95rem; color: var(--ink-2);
  padding: 6px 0; position: relative;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--navy); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px;
  background: var(--grad-brand); border-radius: 2px;
}
.nav-cta { margin-left: 6px; }
.nav-cta a[aria-current="page"]::after { display: none; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 88px; background: var(--bg-alt); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 78% 12%, rgba(40,169,201,.20), transparent 60%),
    radial-gradient(50% 60% at 12% 90%, rgba(58,169,53,.14), transparent 60%),
    radial-gradient(70% 90% at 95% 95%, rgba(23,99,166,.16), transparent 55%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000, transparent 78%);
          mask-image: radial-gradient(circle at 50% 30%, #000, transparent 78%);
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-copy h1 span { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-trust { display: flex; gap: 26px; margin-top: 36px; flex-wrap: wrap; }
.hero-trust div { }
.hero-trust b { font-family: "Sora", sans-serif; font-size: 1.5rem; color: var(--navy); display: block; line-height: 1; }
.hero-trust small { color: var(--ink-3); font-size: .82rem; }
.hero-art { display: flex; justify-content: center; }
.hero-art .disc {
  position: relative; width: min(420px, 90%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #fff, var(--bg-tint));
  box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line);
  display: grid; place-items: center; padding: 12%;
}
.hero-art .disc::before {
  content: ""; position: absolute; inset: -2px; border-radius: 50%;
  background: conic-gradient(from 200deg, var(--teal), var(--green), var(--royal), var(--teal));
  filter: blur(2px); opacity: .55; z-index: -1;
}
.hero-art img { width: 100%; filter: drop-shadow(0 14px 26px rgba(10,42,67,.18)); }

/* ---------- Feature / trust cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line); }
.card .ico {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--bg-tint); color: var(--royal);
}
.card .ico svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: .35em; }
.card p { margin: 0; font-size: .97rem; color: var(--ink-2); }

/* numbered steps */
.steps { counter-reset: step; }
.step .num {
  font-family: "Sora", sans-serif; font-weight: 700; font-size: 1.1rem; color: #fff;
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--grad-brand); margin-bottom: 16px;
}

/* ---------- CTA band ---------- */
.band {
  background: linear-gradient(125deg, var(--navy-deep), var(--royal));
  color: var(--on-dark); border-radius: 24px; padding: 56px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.band::after {
  content:""; position:absolute; right:-60px; top:-60px; width:320px; height:320px; border-radius:50%;
  background: radial-gradient(circle, rgba(40,169,201,.5), transparent 70%);
}
.band h2 { color: #fff; position: relative; }
.band p { color: var(--on-dark-2); position: relative; max-width: 52ch; }
.band .hero-actions { position: relative; }

/* ---------- COA lookup ---------- */
.lookup-shell { max-width: 720px; margin: 0 auto; }
.search-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 34px;
}
.search-card label { font-family:"Sora",sans-serif; font-weight: 600; font-size: .9rem; color: var(--navy); display:block; margin-bottom: 10px; }
.search-row { display: flex; gap: 12px; flex-wrap: wrap; }
.search-row input {
  flex: 1 1 240px; min-width: 0; font-family: "IBM Plex Mono", monospace; font-size: 1.05rem;
  padding: 15px 18px; border: 1px solid var(--line); border-radius: 12px; color: var(--navy);
  background: var(--bg-alt); transition: border-color .15s, box-shadow .15s, background .15s;
}
.search-row input:focus { outline: none; border-color: var(--teal); background:#fff; box-shadow: 0 0 0 4px rgba(40,169,201,.16); }
.search-row .btn { flex: 0 0 auto; }
.search-hint { font-size: .85rem; color: var(--ink-3); margin: 14px 0 0; }

/* result */
.coa-result { margin-top: 28px; }
.coa-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-md); animation: rise .4s ease both;
}
.coa-head {
  background: linear-gradient(120deg, var(--navy), var(--royal)); color: #fff;
  padding: 22px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.coa-head .t { font-family:"Sora",sans-serif; font-weight: 700; font-size: 1.1rem; }
.coa-head .t small { display:block; font-family:"IBM Plex Mono",monospace; font-weight:400; color: var(--on-dark-2); letter-spacing:.05em; font-size:.78rem; margin-top:4px; }
.coa-head .badge {
  font-family:"IBM Plex Mono",monospace; font-size:.78rem; background: rgba(255,255,255,.15);
  border:1px solid rgba(255,255,255,.3); padding:7px 13px; border-radius:999px; letter-spacing:.05em;
}
.purity-banner {
  display:flex; align-items:baseline; gap:12px; padding: 20px 28px; background: var(--bg-tint);
  border-bottom: 1px solid var(--line-soft);
}
.purity-banner .val { font-family:"Sora",sans-serif; font-weight:700; font-size: 2.1rem; color: var(--green); line-height:1; }
.purity-banner .lab { color: var(--ink-3); font-size:.82rem; text-transform:uppercase; letter-spacing:.16em; }
.coa-grid { display:grid; grid-template-columns: repeat(2,1fr); gap:0; }
.coa-field { padding: 16px 28px; border-bottom:1px solid var(--line-soft); }
.coa-field:nth-child(odd) { border-right:1px solid var(--line-soft); }
.coa-field .k { font-size:.72rem; text-transform:uppercase; letter-spacing:.16em; color:var(--ink-3); margin-bottom:4px; }
.coa-field .v { font-family:"IBM Plex Mono",monospace; color:var(--navy); font-size:.98rem; word-break: break-word; }
.coa-foot { padding: 20px 28px; display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; }
.coa-foot .verified { display:flex; align-items:center; gap:9px; color: var(--green); font-weight:600; font-family:"Sora",sans-serif; font-size:.92rem; }
.coa-foot .verified svg { width:20px; height:20px; }

.coa-empty {
  margin-top: 28px; text-align:center; padding: 40px 28px; border:1px dashed var(--line);
  border-radius: var(--radius); background: var(--bg-alt); animation: rise .4s ease both;
}
.coa-empty .ico { width:54px;height:54px;border-radius:50%;display:grid;place-items:center;margin:0 auto 16px;background:#fff;color:var(--ink-3);border:1px solid var(--line);}
.coa-empty h3 { color: var(--navy); }
.coa-empty p { color: var(--ink-3); margin:0; }
.is-hidden { display: none !important; }
.spinner { width:18px;height:18px;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:spin .7s linear infinite;display:inline-block;}

/* ---------- generic two-col ---------- */
.split { display:grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items:center; }
.kv-list { list-style:none; margin:0; padding:0; }
.kv-list li { display:flex; gap:14px; padding:14px 0; border-bottom:1px solid var(--line-soft); }
.kv-list li:last-child { border-bottom:0; }
.kv-list .check { flex:0 0 auto; width:24px;height:24px;border-radius:50%;background:var(--bg-tint);color:var(--green);display:grid;place-items:center; }
.kv-list .check svg { width:14px;height:14px; }

.note {
  background: var(--bg-alt); border:1px solid var(--line-soft); border-left:4px solid var(--teal);
  border-radius: var(--radius-sm); padding: 18px 22px; font-size:.95rem;
}
.note strong { color: var(--navy); }

/* contact */
.contact-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:24px; }
.contact-grid .card .v { font-family:"IBM Plex Mono",monospace; color:var(--navy); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-dark-2); padding: 56px 0 30px; margin-top: 8px; }
.footer-top { display:grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 60px; margin-bottom: 16px; }
.footer-brand p { color: var(--on-dark-2); font-size:.92rem; max-width: 38ch; }
.footer-col h4 { color:#fff; font-size:.85rem; text-transform:uppercase; letter-spacing:.16em; margin-bottom:16px; }
.footer-col ul { list-style:none; margin:0; padding:0; }
.footer-col li { margin-bottom:10px; }
.footer-col a { color: var(--on-dark-2); font-size:.95rem; }
.footer-col a:hover { color: var(--teal-soft); }
.disclaimer {
  margin-top: 40px; padding-top: 24px; border-top:1px solid rgba(255,255,255,.12);
  font-size:.82rem; color:#7f9cb4; line-height:1.7;
}
.disclaimer strong { color: var(--on-dark); }
.footer-bottom { margin-top: 22px; display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; font-size:.82rem; color:#6f8aa3; }

/* ---------- Animations ---------- */
@keyframes rise { from { opacity:0; transform: translateY(14px);} to {opacity:1; transform:none;} }
@keyframes spin { to { transform: rotate(360deg);} }
html.js .reveal { opacity: 0; transform: translateY(18px); }
html.js .reveal.in { animation: rise .6s cubic-bezier(.2,.7,.2,1) forwards; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity:1; transform:none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { order: -1; }
  .hero-art .disc { width: min(320px, 70%); }
  .grid-3, .grid-4, .contact-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  section { padding: 60px 0; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    padding: 8px 24px 20px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line-soft); width:100%; }
  .nav-links .nav-cta { margin: 14px 0 0; }
  .nav-toggle { display: block; }
  .grid-3, .grid-4, .contact-grid { grid-template-columns: 1fr; }
  .band { padding: 36px 26px; }
  .coa-grid { grid-template-columns: 1fr; }
  .coa-field:nth-child(odd) { border-right: 0; }
  .footer-top { grid-template-columns: 1fr; }
  .brand-text { font-size: .95rem; }
}
