/* Product Compliance Pathfinder: Website. No external fonts, scripts or images: nothing is loaded from third parties. */

/* The same fonts as the tool, self-hosted (SIL Open Font License, see fonts/LICENSE-*.txt): Source Serif 4 for headings, IBM Plex Sans for text. */
@font-face {
  font-family: 'Source Serif 4';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('fonts/source-serif-4-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('fonts/source-serif-4-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2');
}

:root {
  --petrol: #16323a;
  --petrol-dark: #0f242a;
  --teal: #0f8f7a;
  --teal-dark: #0c7a69;
  --mint: #e1f5ee;
  --ink: #1c1a16;
  --muted: #54635b;
  --line: #cfdcd4;
  --bg: #edf5f0;
  --card: #ffffff;
  --border: #7e9189;
  --radius: 14px;
  --shadow: 0 2px 6px rgba(22, 50, 58, 0.15);
  --shadow-lg: 0 10px 30px rgba(22, 50, 58, 0.18);
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--teal-dark);
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--petrol);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 100;
}
.skip:focus {
  left: 8px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}
.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav a:not(.btn) {
  color: #3b4a43;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 10px;
}
.nav a:not(.btn):hover {
  background: #eef0ee;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  padding: 13px 26px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:focus-visible,
a:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}
.btn {
  white-space: nowrap;
}
.nav {
  flex-shrink: 0;
}
.btn-primary {
  background: var(--teal);
  color: #fff;
}
.btn-primary:hover {
  background: var(--teal-dark);
}
.btn-ghost {
  background: transparent;
  color: var(--petrol);
  border-color: var(--petrol);
}
.btn-ghost:hover {
  background: #fff;
}
.btn-sm {
  padding: 9px 18px;
  font-size: 15px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 84px;
  background: linear-gradient(180deg, #f7fbf9 0%, var(--bg) 100%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('background-worldmap.svg') center 30% / cover no-repeat;
  opacity: 0.55;
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  background: var(--mint);
  color: #085041;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
h1 {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 700;
  letter-spacing: -0.015em;
}
.lead {
  font-size: 20px;
  color: #2f3d37;
  margin: 22px 0 32px;
  max-width: 34em;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.fineprint {
  margin-top: 22px;
  font-size: 14.5px;
  color: var(--muted);
}

/* Example result card (drawn with HTML, no screenshot of real data) */
.mock {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 22px;
}
.mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.mock-title {
  font-weight: 700;
  font-size: 17px;
}
.mock-sub {
  font-size: 13.5px;
  color: var(--muted);
}
.tag-example {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}
.mock-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.fact {
  background: #f1f4f2;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  color: #2f3a36;
}
.mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: 8px;
  font-size: 15px;
}
.mock-row b {
  font-weight: 600;
}
.chip {
  font-size: 12.5px;
  font-weight: 600;
  padding: 3px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.chip.must {
  background: #f3d9d6;
  color: #8c2e23;
}
.chip.likely {
  background: #fbe6c8;
  color: #8a5518;
}
.chip.maybe {
  background: #f6efc3;
  color: #7a6a17;
}
.chip.none {
  background: #e3ebe6;
  color: #56645d;
}

/* ---------- Sections ---------- */
section {
  padding: 84px 0;
}
.section-head {
  max-width: 44em;
  margin-bottom: 44px;
}
h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
}
.section-head p {
  font-size: 18px;
  color: #2f3d37;
  margin: 16px 0 0;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 22px 24px;
}
.step-num {
  width: 38px;
  height: 38px;
  border-radius: 30%;
  background: var(--petrol);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.step h3 {
  font-size: 21px;
  margin-bottom: 10px;
}
.step p {
  margin: 0;
  font-size: 15.5px;
  color: #2f3d37;
}

/* Feature cards */
.alt {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature {
  padding: 4px 0;
}
.feature .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--mint);
  color: #085041;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
.feature p {
  margin: 0;
  font-size: 16px;
  color: #2f3d37;
}

/* Regulation chips */
.regs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.regs li {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 500;
  font-size: 15.5px;
  box-shadow: var(--shadow);
}
.regs-note {
  margin-top: 22px;
  color: var(--muted);
  font-size: 15.5px;
}

/* Notice */
.notice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.notice {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 10px;
  padding: 20px 22px;
}
.notice h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.notice p {
  margin: 0;
  font-size: 15.5px;
  color: #2f3d37;
}

/* Access */
.access {
  background: var(--petrol);
  color: #fff;
  text-align: center;
  padding: 84px 0;
}
.access h2 {
  color: #fff;
}
.access p {
  color: #d3e0e0;
  max-width: 36em;
  margin: 18px auto 32px;
  font-size: 18px;
}
.access .cta-row {
  justify-content: center;
}
.access .btn-ghost {
  color: #fff;
  border-color: #fff;
}
.access .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Footer */
.footer {
  padding: 36px 0;
  font-size: 15px;
  color: var(--muted);
}
.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
}
.footer nav {
  display: flex;
  gap: 22px;
}

/* Legal pages: the world map as background (like in the tool), the text on a white panel so it stays easy to read */
body.page-legal {
  background-image: url('background-worldmap.svg');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
}
.legal {
  max-width: 760px;
  width: calc(100% - 32px);
  padding: 48px 40px 56px;
  margin: 36px auto 64px;
  background: rgba(255, 255, 255, 0.94);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
@media (max-width: 640px) {
  .legal {
    padding: 28px 20px 36px;
    margin: 16px auto 40px;
  }
  .legal h1 {
    font-size: 30px;
  }
}
.legal h1 {
  font-size: 38px;
  margin-bottom: 8px;
}
.legal h2 {
  font-size: 24px;
  margin: 36px 0 10px;
}
.legal p,
.legal li {
  color: #26332e;
}
.todo {
  background: #fbe6c8;
  border: 1px solid #e4c48d;
  color: #6b4513;
  padding: 14px 18px;
  border-radius: 10px;
  margin: 22px 0;
  font-size: 15.5px;
}
.placeholder {
  background: #fbe6c8;
  padding: 0 6px;
  border-radius: 4px;
}

/* ---------- Small screens ---------- */
@media (max-width: 960px) {
  .nav a:not(.btn) {
    display: none;
  }
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .features,
  .notice-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  body {
    font-size: 16.5px;
  }
  .wrap {
    padding: 0 18px;
  }
  .brand {
    font-size: 17px;
    white-space: normal;
    line-height: 1.15;
  }
  .nav a:not(.btn) {
    display: none;
  }
  .hero {
    padding: 44px 0 56px;
  }
  .lead {
    font-size: 18px;
  }
  section,
  .access {
    padding: 56px 0;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .cta-row .btn {
    width: 100%;
  }
  .mock-row {
    font-size: 14.5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}
