/* Fonts and colours follow cnxion.io and the CNXION app: DM Sans for headings, Inter for text, teal #187f67 as accent.
   The fonts are self-hosted (SIL Open Font License), so no visitor data goes to a font service. */
@font-face { font-family: "DM Sans"; font-weight: 600; font-display: swap; src: url("fonts/dm-sans-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; font-weight: 700; font-display: swap; src: url("fonts/dm-sans-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; font-weight: 600; font-display: swap; src: url("fonts/dm-sans-latin-ext-600.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-weight: 700; font-display: swap; src: url("fonts/dm-sans-latin-ext-700.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/inter-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/inter-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-ext-400.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-ext-600.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* cnxion.io tokens */
  --accent: #187f67;
  --teal-light: #2ea388;
  --teal-ink: #1a3d35;
  --teal-ghost: #f0faf8;
  --grey-pale: #f1f7f6;
  --teal-fog: #b6f0e2;
  --text: #050706;
  --text-muted: #545454;
  --text-inverse: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f5f5f5;
  --surface-inverse: #222222;
  --border-color: #dadada;
  --callout-error: #b42318;
  --radius: 2px;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-heading: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

/* The footer stays at the bottom of the window when the content is short, instead of jumping up under it. */
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
}

h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: var(--accent); }
a:hover { color: var(--teal-ink); }
[hidden] { display: none !important; }
main { flex: 1 0 auto; }

:focus-visible { outline: 3px solid var(--teal-light); outline-offset: 2px; }

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

.site-header { border-bottom: 1px solid var(--border-color); background: var(--surface); }
.header-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 72px; }
.logo-link { display: inline-flex; }
.logo { height: auto; max-width: 100%; display: block; }
.header-label { font-weight: 600; font-size: 14px; color: var(--accent); }

.hero { background: var(--grey-pale); }
.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
  align-items: center;
  padding-block: 64px 72px;
}
.hero-text { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--accent); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.date-chip { background: var(--accent); color: var(--text-inverse); padding: 3px 8px; border-radius: var(--radius); }
.hero h1 { font-size: clamp(32px, 4.6vw, 44px); }
.lead { font-size: 18px; color: var(--text-muted); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.hint { color: var(--text-muted); font-size: 15px; }

.hero-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.hero-points li { background: var(--surface); border-left: 3px solid var(--accent); padding: 16px 20px; color: var(--text-muted); }
.hero-points strong { display: block; color: var(--text); font-family: var(--font-heading); font-size: 18px; margin-bottom: 2px; }

.button {
  font: 600 16px var(--font-body);
  border-radius: var(--radius);
  padding: 13px 24px;
  min-height: 48px;
  cursor: pointer;
  border: 1px solid transparent;
}
.button.primary { background: var(--accent); color: var(--text-inverse); }
.button.primary:hover { background: var(--teal-ink); }
.button.ghost { background: var(--surface); color: var(--accent); border-color: var(--border-color); }
.button.ghost:hover { border-color: var(--accent); }
.button:disabled { opacity: 0.6; cursor: wait; }
.button.text { background: none; color: var(--text-muted); padding-inline: 8px; text-decoration: underline; text-underline-offset: 3px; }
.button.text:hover { color: var(--accent); }
.result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.quiz, .result { padding-block: 40px 72px; }
.quiz.wrap { max-width: 1480px; }
.quiz { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.chain-card { padding: 24px; }

/* The diagram stays in view while the visitor scrolls through long questions. Its height is capped by the window,
   so the whole diagram always fits on screen; the SVG keeps its proportions inside that box. */
.quiz .chain-card { position: sticky; top: 16px; }
.quiz .chain-svg { max-height: calc(100vh - 170px); }
@media (max-width: 980px) {
  .quiz { grid-template-columns: minmax(0, 1fr); }
  .quiz .chain-card { position: static; }
  .quiz .chain-svg { max-height: none; }
}

/* Supply chain diagram */
.chain-card { display: flex; flex-direction: column; gap: 8px; }
.chain-title { font-size: 20px; }
.chain { width: 100%; }
.chain-svg { width: 100%; height: auto; display: block; touch-action: none; }
/* The EU border has to read at a glance: a clearly grey "outside", a clearly green EU, and a strong dashed border line. */
.chain-zone.outside { fill: #ebebeb; }
.chain-zone.eu { fill: #d6f0e8; }
.chain-border { stroke: var(--accent); stroke-width: 3; stroke-dasharray: 8 6; }
.chain-zone-label { font: 600 13px var(--font-body); fill: #3f3f3f; letter-spacing: 0.04em; text-transform: uppercase; }
.chain-zone-label.eu { fill: var(--accent); }
.chain-link { stroke: #9aa5a3; stroke-width: 2; }
.chain-link.statement { stroke: var(--accent); stroke-dasharray: 5 4; }
.chain-arrow-head { fill: #9aa5a3; }
.chain-node { cursor: grab; }
.chain-node:active { cursor: grabbing; }
.chain-node circle { fill: var(--surface); stroke: var(--border-color); stroke-width: 2; }
.chain-node.you circle { fill: var(--accent); stroke: var(--accent); }
.chain-node.you text { fill: var(--text-inverse); }
.chain-node.operator circle { stroke: var(--accent); stroke-width: 3; }
.chain-node.traces circle { fill: var(--teal-ink); stroke: var(--teal-ink); }
.chain-node.traces text { fill: var(--text-inverse); }
.chain-node.risk-low circle { stroke: var(--teal-light); fill: var(--teal-ghost); }
.chain-node.risk-standard circle { stroke: #dca014; fill: #fdf6e3; }
.chain-node.risk-high circle { stroke: #bc3d31; fill: #fbeceb; }
.chain-node.export circle { stroke-dasharray: 4 3; }
.chain-label { font: 600 14px var(--font-body); fill: var(--text); text-anchor: middle; dominant-baseline: middle; pointer-events: none; user-select: none; }
.chain-sub { font-weight: 400; font-size: 12px; fill: var(--text-muted); }
.chain-node.you .chain-sub, .chain-node.traces .chain-sub { fill: var(--teal-fog); }
.chain-badge rect { fill: var(--accent); }
.chain-badge text { font: 600 11px var(--font-body); fill: var(--text-inverse); text-anchor: middle; text-transform: uppercase; letter-spacing: 0.06em; pointer-events: none; }
.chain-node.you.operator .chain-badge rect { fill: var(--teal-ink); }
.chain-legend { font-size: 13px; color: var(--text-muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.legend-operator { background: var(--accent); color: var(--text-inverse); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; padding: 2px 6px; border-radius: var(--radius); }
.legend-risk { display: inline-flex; align-items: center; gap: 4px; }
.legend-risk::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid; }
.legend-risk.low::before { border-color: var(--teal-light); background: var(--teal-ghost); }
.legend-risk.standard::before { border-color: #dca014; background: #fdf6e3; }
.legend-risk.high::before { border-color: #bc3d31; background: #fbeceb; }
.result-chain { grid-column: 1 / -1; }
.card { background: var(--surface); border: 1px solid var(--border-color); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); }

.steps { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; row-gap: 8px; }
.steps li { display: flex; align-items: center; }
.steps li:not(:last-child)::after { content: ""; width: 6px; height: 2px; margin-inline: 2px; background: var(--border-color); }
.steps li.step-done::after { background: var(--accent); }
.steps button {
  display: grid;
  place-items: center;
  flex: none;
  line-height: 1;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background: var(--surface);
  color: var(--text-muted);
  font: 600 12px var(--font-body);
  cursor: pointer;
  padding: 0;
}
.steps .step-done button { border-color: var(--accent); background: var(--teal-ghost); color: var(--accent); }
.steps .step-current button { border-color: var(--accent); background: var(--accent); color: var(--text-inverse); cursor: default; }
.steps .step-done button:hover { background: var(--teal-fog); }
.steps button:disabled:not([aria-current]) { cursor: not-allowed; opacity: 0.55; }
.step-count { font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-family: var(--font-heading); font-weight: 700; font-size: clamp(22px, 3.2vw, 30px); line-height: 1.2; padding: 0; margin-bottom: 8px; }
.question-help { color: var(--text-muted); margin-bottom: 20px; }

.option-group { margin-bottom: 20px; }
.option-group h3 { font-size: 16px; margin-bottom: 10px; color: var(--accent); }

.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; }
.options.compact { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  cursor: pointer;
  min-height: 48px;
}
.option:hover { border-color: var(--teal-light); }
.option:has(input:checked) { border-color: var(--accent); background: var(--teal-ghost); box-shadow: inset 3px 0 0 var(--accent); }
.option input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex-shrink: 0; }
.option-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.option-label { font-weight: 600; }
.option-hint { font-size: 14px; color: var(--text-muted); }

.quiz-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.quiz-actions .primary { margin-left: auto; }

.error { color: var(--callout-error); font-weight: 600; margin-top: 14px; }

.result { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
@media (max-width: 760px) { .result { grid-template-columns: minmax(0, 1fr); } }
.result-card { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.result-card h2 { font-size: clamp(24px, 3.2vw, 30px); color: var(--accent); }
.result-card h3 { font-size: 18px; margin-top: 8px; }
.timing { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; background: var(--teal-ghost); border-left: 3px solid var(--accent); padding: 10px 14px; align-self: stretch; }
.timing span { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); }
.preview { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; font-weight: 600; }

.form-card { display: flex; flex-direction: column; gap: 14px; }
.form-card h2 { font-size: 24px; }
#contact-form { display: flex; flex-direction: column; gap: 14px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
#contact-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; min-width: 0; }
.optional { font-weight: 400; color: var(--text-muted); }
input:not([type="checkbox"]):not([type="radio"]), select {
  font: 400 16px var(--font-body);
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  width: 100%;
  min-height: 46px;
}
input:focus, select:focus { border-color: var(--accent); }
#contact-form label.consent { flex-direction: row; align-items: flex-start; gap: 12px; font-weight: 400; }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex-shrink: 0; }
.notice { font-size: 14px; color: var(--text-muted); }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { min-height: 65px; }

.sent-card h2 { font-size: 28px; margin-bottom: 12px; }

.faq { background: var(--grey-pale); padding-block: 64px; }
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px 56px; align-items: start; }
.faq-intro { display: flex; flex-direction: column; gap: 12px; }
.faq-intro h2 { font-size: clamp(26px, 3.4vw, 34px); }
.faq-list { grid-column: span 2; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.faq-list details { background: var(--surface); border: 1px solid var(--border-color); border-radius: var(--radius); }
.faq-list summary { cursor: pointer; padding: 16px 20px; font-family: var(--font-heading); font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list .answer { padding: 0 20px 14px; color: var(--text-muted); max-width: 70ch; display: flex; flex-direction: column; gap: 10px; }
.faq-list .answer ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.faq-list .answer strong { color: var(--text); font-weight: 600; }
.faq-list .source { padding: 12px 20px 18px; margin-inline: 20px; padding-inline: 0; border-top: 1px solid var(--border-color); font-size: 14px; color: var(--text-muted); }
.official-sources { background: var(--surface); border: 1px solid var(--border-color); border-left: 3px solid var(--accent); padding: 18px 20px; margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.official-sources h3 { font-size: 17px; }
.official-sources ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text-muted); }

@media (max-width: 720px) {
  .faq-list { grid-column: auto; }
}

.site-footer { background: var(--surface-inverse); color: #d9d9d9; padding-block: 36px; font-size: 14px; }
.footer-grid { display: flex; flex-direction: column; gap: 14px; }
.site-footer a { color: var(--text-inverse); }

.legal { max-width: 760px; padding-block: 48px 72px; display: flex; flex-direction: column; gap: 14px; }
.legal h1 { font-size: clamp(30px, 4vw, 40px); }
.legal h2 { font-size: 22px; margin-top: 18px; }
.legal ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }


