/* Marketing site shared styles — Real Product Origin / Product Origin Checker
   ─────────────────────────────────────────────────────────────────────────────
   Design direction: editorial transparency. Single typeface (Inter) across all
   sizes + weights for a consistent modern feel. Cream + ink palette with the
   concern-red accent reserved for callouts and high-China-confidence indicators.
*/

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
  --ink: #111827;
  --ink-2: #1f2937;
  --ink-3: #374151;
  --muted: #6b7280;
  --muted-2: #9ca3af;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --bg: #ffffff;
  --bg-soft: #f9fafb;
  --bg-cream: #faf6ed;       /* warm paper for editorial sections */
  --bg-cream-deep: #f4eddb;  /* slightly deeper for hero / pull quotes */
  --accent: #c0322b;         /* concern red — used sparingly */
  --accent-soft: #fef2f2;
  --green: #15803d;
  --link: #2563eb;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11"; /* Inter stylistic alts: better numerals + l */
}

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

img { max-width: 100%; height: auto; }

/* Layout */
.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ── Brand mark + logotype ────────────────────────────────────────────────── */

/* The full logo lockup: mark (SVG) + wordmark.
 * The wordmark uses Inter 800 with tight tracking. The final period is a
 * signature element — rendered as a small filled red dot that echoes the
 * pin's center, signing the brand the way a notary stamps a document.
 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.025em;
  line-height: 1;
}
.brand:hover { color: var(--ink); text-decoration: none; }
.brand .mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.brand .mark svg { display: block; width: 100%; height: 100%; }
.brand .wordmark { display: inline-block; }
/* The signature period — accent-red dot that echoes the pin's center. */
.brand .period {
  color: var(--accent);
  font-weight: 900;
  /* Slight kerning around the period gives it room to breathe */
  margin-left: 0.5px;
}

/* ── Top nav ──────────────────────────────────────────────────────────────── */

header.topnav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}
header.topnav .topnav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}
header.topnav nav { display: flex; gap: 22px; margin-left: auto; }
header.topnav nav a { color: var(--ink-3); text-decoration: none; font-weight: 500; }
header.topnav nav a:hover { color: var(--accent); }

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero {
  padding: 96px 0 80px;
  background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
/* Subtle radial decoration */
.hero::after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  right: -200px;
  top: -120px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.hero .kicker::before {
  content: "";
  width: 24px;
  height: 1.5px;
  background: var(--accent);
  display: inline-block;
}
.hero h1 {
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.05;
  font-weight: 900;
  margin: 0 0 20px;
  letter-spacing: -0.025em;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero .tagline {
  font-size: clamp(18px, 2vw, 22px);
  font-style: italic;
  color: var(--ink-3);
  margin: 0 0 28px;
  max-width: 600px;
  font-weight: 400;
}
.hero .sub {
  font-size: 17px;
  color: var(--ink-3);
  max-width: 620px;
  margin: 0 0 36px;
}
.hero .cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.hero .cta-note {
  font-size: 13px;
  color: var(--muted);
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 80ms ease, box-shadow 80ms ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 8px 24px -8px rgba(17,24,39,0.3);
}
.btn-primary:hover { color: #fff; background: #000; box-shadow: 0 2px 4px rgba(0,0,0,0.1), 0 12px 28px -10px rgba(17,24,39,0.4); }
.btn-secondary { background: #fff; color: var(--ink); border: 1px solid var(--border-strong); }
.btn-secondary:hover { color: var(--ink); border-color: var(--ink); }

/* ── Sections ─────────────────────────────────────────────────────────────── */

section { padding: 80px 0; border-bottom: 1px solid var(--border); }
section.tight { padding: 56px 0; }
section h2 {
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.15;
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
section .section-intro {
  font-size: 17px;
  color: var(--ink-3);
  max-width: 640px;
  margin: 0 0 40px;
}
section h3 { font-size: 22px; margin: 32px 0 12px; font-weight: 700; letter-spacing: -0.01em; }
section p { margin: 12px 0; color: var(--ink-2); }
section ul, section ol { color: var(--ink-2); padding-left: 22px; }
section li { margin: 8px 0; }
section.cream { background: var(--bg-cream); }
section.soft { background: var(--bg-soft); }

/* ── Eyebrow label ─────────────────────────────────────────────────────────── */

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 0 0 14px;
}

/* ── Three-indicators grid ────────────────────────────────────────────────── */

.indicators {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0;
}
.indicator-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.indicator-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -16px rgba(17, 24, 39, 0.18);
}
.indicator-card .num {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 12px;
  letter-spacing: 0.05em;
}
.indicator-card h3 { margin: 0 0 10px; font-size: 19px; letter-spacing: -0.01em; }
.indicator-card p { margin: 0; font-size: 14px; color: var(--ink-3); line-height: 1.55; }

/* ── How it works (3 steps) ──────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 32px 0;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 24px 0;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.step h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.step p { margin: 0; font-size: 14px; color: var(--ink-3); line-height: 1.55; }

/* ── FAQ ──────────────────────────────────────────────────────────────────── */

.faq details {
  border-top: 1px solid var(--border);
  padding: 18px 0;
}
.faq details[open] summary { color: var(--accent); }
.faq summary {
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 300; color: var(--muted); transition: transform 200ms ease; }
.faq details[open] summary::after { content: "−"; color: var(--accent); }
.faq details p { margin: 12px 0 4px; color: var(--ink-3); }

/* ── Pull quote ───────────────────────────────────────────────────────────── */

.pullquote {
  margin: 0;
  padding: 56px 32px;
  background: var(--bg-cream-deep);
  text-align: center;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.pullquote .cite {
  display: block;
  margin-top: 24px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ── Score-badge mockup (inline visual on landing) ────────────────────────── */

.badge-mockup-wrap {
  position: relative;
  margin: 40px auto;
  max-width: 460px;
}
.badge-mockup {
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 48px -24px rgba(17, 24, 39, 0.18);
}
.badge-mockup .badge-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.badge-mockup .logo-dot { width: 14px; height: 14px; background: var(--ink); border-radius: 50%; }
.badge-mockup .badge-title { font-size: 14px; font-weight: 700; }
.badge-mockup .badge-source {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--bg-soft);
  padding: 2px 8px;
  border-radius: 99px;
}
.badge-mockup .row { margin: 10px 0; }
.badge-mockup .row-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.badge-mockup .row-label { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.badge-mockup .row-pct { font-size: 14px; font-weight: 700; display: inline-flex; align-items: baseline; gap: 5px; }
.badge-mockup .row-flag { font-size: 18px; }
.badge-mockup .row-track { margin-top: 5px; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.badge-mockup .row-fill { height: 100%; border-radius: 3px; }
.badge-mockup .row-conf { margin-top: 4px; font-size: 11px; color: var(--muted); }

/* Decorative arrow / annotation around the badge */
.annotation {
  position: absolute;
  font-family: "Inter", sans-serif;
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
  max-width: 180px;
}
.annotation.left { left: -160px; top: 40%; text-align: right; }
.annotation.right { right: -180px; top: 70%; text-align: left; }
@media (max-width: 880px) {
  .annotation { display: none; }
}

/* ── Footer ───────────────────────────────────────────────────────────────── */

footer {
  padding: 64px 0 80px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}
footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
footer a:hover { color: #fff; }
footer .footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
footer .col h4 { margin: 0 0 14px; color: rgba(255, 255, 255, 0.5); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
footer .col a { display: block; padding: 5px 0; }
footer .brand-block .brand { color: #fff; margin-bottom: 12px; }
footer .brand-block .brand-tagline { color: rgba(255, 255, 255, 0.6); font-size: 13px; font-style: italic; max-width: 240px; }
footer .copy {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  width: 100%;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ── Article style (privacy/terms/methodology/contact) ────────────────────── */

article {
  padding: 80px 0 96px;
  background: var(--bg);
}
article h1 {
  font-size: clamp(34px, 4vw, 44px);
  margin: 0 0 8px;
  letter-spacing: -0.025em;
  font-weight: 800;
}
article .updated { font-size: 13px; color: var(--muted); margin: 0 0 40px; }
article h2 {
  margin: 44px 0 14px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.015em;
}
article h3 { margin: 28px 0 10px; font-size: 18px; font-weight: 700; }
article p, article ul, article ol { color: var(--ink-2); }
article p { margin: 12px 0; }
article ul, article ol { padding-left: 22px; }
article li { margin: 7px 0; color: var(--ink-2); }
article table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
article th, article td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
article th { background: var(--bg-soft); font-weight: 700; font-size: 13px; letter-spacing: 0.02em; }
article code { background: var(--bg-soft); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.draft-notice {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 14px;
  color: #78350f;
}
.draft-notice strong { font-weight: 700; }

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 880px) {
  .indicators { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  footer .footer-inner { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .hero { padding: 64px 0 56px; }
  header.topnav nav { gap: 14px; font-size: 13px; }
  header.topnav nav a:nth-child(4) { display: none; } /* hide Contact link on tiny screens */
}
