/* CEMarque public surface. One stylesheet, no framework, no webfont: the checker must render
   usefully on a slow connection and the facts corpus must be trivially crawlable.
   The CE marking symbol never appears in CEMarque branding (TRD §2.5). */

:root {
  --ink: #10141a;
  --ink-2: #39414d;
  --muted: #5b6472;
  --paper: #fbfbf8;
  --card: #ffffff;
  --rule: #e4e2da;
  --accent: #1d4ed8;
  --accent-soft: #eef2ff;
  --warn: #b45309;
  --warn-soft: #fff7ed;
  --good: #15803d;
  --good-soft: #f0fdf4;
  --stop: #b91c1c;
  --stop-soft: #fef2f2;
  --radius: 10px;
  --measure: 34rem;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f3f5;
    --ink-2: #cbd2dc;
    --muted: #98a2b3;
    --paper: #0f1216;
    --card: #161b22;
    --rule: #262d38;
    --accent: #7ea2ff;
    --accent-soft: #16203a;
    --warn: #f0a868;
    --warn-soft: #2a1d10;
    --good: #6ee7a8;
    --good-soft: #10231a;
    --stop: #fca5a5;
    --stop-soft: #2a1416;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}

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

.skip {
  position: absolute; left: -9999px;
  background: var(--card); color: var(--ink); padding: .6rem 1rem; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

.wrap { max-width: 62rem; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 44rem; }
.wrap.wide { max-width: 78rem; }

header.site {
  border-bottom: 1px solid var(--rule);
  background: var(--card);
  position: sticky; top: 0; z-index: 5;
}
header.site .wrap { display: flex; align-items: center; gap: 1.25rem; height: 60px; }
.brand { font-weight: 700; letter-spacing: -.02em; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand span { color: var(--accent); }
header.site nav { margin-left: auto; display: flex; gap: 1.1rem; font-size: .95rem; }
header.site nav a { color: var(--ink-2); text-decoration: none; }
header.site nav a:hover, header.site nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; }

main { padding: 2.5rem 0 4rem; }

h1 { font-size: 2rem; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 1rem; }
h2 { font-size: 1.3rem; line-height: 1.3; margin: 2.2rem 0 .7rem; }
h3 { font-size: 1.05rem; margin: 1.6rem 0 .4rem; }
p, li { max-width: var(--measure); }
main > .wrap > p:first-of-type { font-size: 1.1rem; color: var(--ink-2); }

.lede { font-size: 1.15rem; color: var(--ink-2); max-width: var(--measure); }

.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  margin: 1.25rem 0;
}

.btn {
  display: inline-block;
  /* Text on the accent is the paper colour, not white: in dark mode the accent is a light blue,
     and white on it fails contrast. */
  background: var(--accent); color: var(--paper);
  border: 1px solid transparent; border-radius: 8px;
  padding: .7rem 1.3rem; font: inherit; font-weight: 600;
  cursor: pointer; text-decoration: none;
}
.btn:hover { filter: brightness(1.08); }
.btn.secondary { background: transparent; color: var(--accent); border-color: var(--rule); }
.btn.small { padding: .4rem .8rem; font-size: .9rem; }

/* Checker ---------------------------------------------------------------- */

.progress { display: flex; gap: .3rem; margin: 0 0 1.6rem; list-style: none; padding: 0; }
.progress li { height: 4px; flex: 1; background: var(--rule); border-radius: 2px; }
.progress li.done { background: var(--accent); }
.progress li.now { background: var(--accent); opacity: .55; }

.step-of { font-size: .85rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin: 0 0 .5rem; }

fieldset { border: 0; margin: 0; padding: 0; }
legend { font-size: 1.45rem; font-weight: 650; line-height: 1.3; letter-spacing: -.01em; padding: 0; margin-bottom: .4rem; max-width: var(--measure); }

.help { color: var(--muted); max-width: var(--measure); margin: 0 0 1.2rem; }

.options { display: grid; gap: .55rem; margin: 0 0 1.5rem; max-width: var(--measure); }
.option {
  display: flex; gap: .75rem; align-items: flex-start;
  border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--card); padding: .85rem 1rem; cursor: pointer;
}
.option:hover { border-color: var(--accent); }
.option input { margin: .35rem 0 0; flex: none; accent-color: var(--accent); }
.option .label { font-weight: 500; }
.option .note { display: block; color: var(--muted); font-size: .9rem; font-weight: 400; }
.option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

.actions { display: flex; gap: .75rem; align-items: center; margin-top: .5rem; }
.actions .back { color: var(--muted); text-decoration: none; font-size: .95rem; }

.footnote { font-size: .85rem; color: var(--muted); margin-top: 1.6rem; }
.footnote code { font-family: var(--mono); font-size: .85em; }

/* Verdict ---------------------------------------------------------------- */

.verdict-head { border-left: 5px solid var(--accent); padding-left: 1.1rem; margin-bottom: 1.5rem; }
.verdict-head.in { border-color: var(--accent); }
.verdict-head.out { border-color: var(--good); }
.verdict-head.conditional { border-color: var(--warn); }
.verdict-head.light { border-color: var(--good); }
.eyebrow { text-transform: uppercase; letter-spacing: .09em; font-size: .78rem; color: var(--accent); font-weight: 650; margin: 0 0 .35rem; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .9rem; margin: 1.5rem 0; align-items: start; }
.fact { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: .9rem 1rem; }
.fact dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0 0 .25rem; }
.fact dd { margin: 0; font-weight: 600; font-size: 1.02rem; }
.fact dd .when { display: block; font-weight: 400; font-size: .9rem; color: var(--muted); }

.callout { border-radius: var(--radius); padding: 1rem 1.15rem; margin: 1.25rem 0; border: 1px solid; max-width: var(--measure); }
.callout h2, .callout h3 { margin-top: 0; }
.callout.info { background: var(--accent-soft); border-color: color-mix(in oklab, var(--accent) 35%, transparent); }
.callout.warn { background: var(--warn-soft); border-color: color-mix(in oklab, var(--warn) 40%, transparent); }
.callout.good { background: var(--good-soft); border-color: color-mix(in oklab, var(--good) 40%, transparent); }
.callout.stop { background: var(--stop-soft); border-color: color-mix(in oklab, var(--stop) 40%, transparent); }

ul.obligations { padding-left: 1.15rem; }
ul.obligations li { margin: .5rem 0; }
ul.obligations .cite { display: block; font-size: .85rem; color: var(--muted); }

.share { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: 1.25rem 0; }
.share input {
  flex: 1 1 18rem; font: inherit; font-family: var(--mono); font-size: .9rem;
  padding: .55rem .7rem; border: 1px solid var(--rule); border-radius: 8px;
  background: var(--card); color: var(--ink);
}

.disclaimer { font-size: .9rem; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 1rem; margin-top: 2.5rem; max-width: 46rem; }

/* Facts corpus ----------------------------------------------------------- */

article.fact-page { max-width: 42rem; }
article.fact-page h2 { border-bottom: 1px solid var(--rule); padding-bottom: .3rem; }
article.fact-page ol, article.fact-page ul { padding-left: 1.25rem; }
.answer-first { font-size: 1.15rem; font-weight: 500; color: var(--ink); }
.applies { background: var(--accent-soft); border-radius: var(--radius); padding: 1rem 1.15rem; margin: 1.5rem 0; }
.applies h2 { margin: 0 0 .4rem; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); border: 0; padding: 0; }
.applies ul { margin: 0; }

sup.fn a { text-decoration: none; font-weight: 600; font-size: .75em; padding: 0 .1em; }
.footnotes { border-top: 1px solid var(--rule); margin-top: 2.5rem; padding-top: 1rem; font-size: .92rem; }
.footnotes ol { padding-left: 1.2rem; }
.footnotes li { margin: .45rem 0; color: var(--ink-2); max-width: 46rem; }
.footnotes .cite { color: var(--muted); }
.footnotes li:target { background: var(--accent-soft); border-radius: 6px; }

.meta { font-size: .88rem; color: var(--muted); margin: 0 0 1.5rem; }
.meta a { color: var(--muted); }

.index { list-style: none; padding: 0; }
.index li { border-bottom: 1px solid var(--rule); padding: .85rem 0; max-width: 46rem; }
.index a { font-weight: 600; text-decoration: none; font-size: 1.05rem; }
.index a:hover { text-decoration: underline; }
.index .summary { color: var(--muted); font-size: .95rem; margin: .2rem 0 0; max-width: none; }

table.status { border-collapse: collapse; width: 100%; max-width: 52rem; font-size: .95rem; }
table.status th, table.status td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.status th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.scroll-x { overflow-x: auto; }

footer.site { border-top: 1px solid var(--rule); padding: 2rem 0 3rem; color: var(--muted); font-size: .9rem; background: var(--card); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; }
footer.site a { color: var(--muted); }
footer.site .spacer { margin-left: auto; }

@media (max-width: 40rem) {
  body { font-size: 16px; }
  h1 { font-size: 1.6rem; }
  legend { font-size: 1.25rem; }
  header.site .wrap { height: auto; padding-top: .6rem; padding-bottom: .6rem; flex-wrap: wrap; }
  header.site nav { width: 100%; margin-left: 0; }
}

@media print {
  header.site, footer.site, .share, .actions, .skip { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .card, .callout, .fact { border: 1px solid #ccc; }
  a { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; color: #444; }
}

/* Landing, pricing and waitlist ------------------------------------------ */

.hero { padding: 3.5rem 0 2.5rem; border-bottom: 1px solid var(--rule); background: linear-gradient(180deg, var(--card), var(--paper)); }
.hero .kicker { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 650; color: var(--accent); margin: 0 0 .8rem; max-width: none; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.08; letter-spacing: -.03em; max-width: 20ch; margin: 0 0 1rem; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { font-size: clamp(1.05rem, 2vw, 1.28rem); max-width: 40rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.8rem 0 .8rem; max-width: none; }
.hero-note { color: var(--muted); font-size: .95rem; }

.btn.big { padding: .9rem 1.7rem; font-size: 1.05rem; }

main > section { padding: 2.6rem 0; }
main > section:first-child { padding-top: 0; }
section.band { background: var(--card); border-block: 1px solid var(--rule); }
section.closing { text-align: left; }

.clocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1.1rem; align-items: start; }
.clock { border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.3rem 1.4rem; background: var(--card); border-top: 4px solid var(--rule); }
.clock.now { border-top-color: var(--warn); }
.clock.later { border-top-color: var(--accent); }
.clock h2 { margin: 0 0 .5rem; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.clock-when { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; margin: 0 0 .1rem; max-width: none; }
.clock p { max-width: none; }
.clock-count { font-size: .9rem; color: var(--muted); margin: .8rem 0 0; font-variant-numeric: tabular-nums; }
.clock.now .clock-count { color: var(--warn); font-weight: 600; }
.clock-warning { max-width: 46rem; margin-top: 1.4rem; padding: 1rem 1.15rem; border-left: 4px solid var(--warn); background: var(--warn-soft); border-radius: 0 var(--radius) var(--radius) 0; }

.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.6rem; align-items: start; }
.cols h3, .grid-2 h3 { margin-top: 0; }
.cols p, .grid-2 p { max-width: none; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1.4rem 2.2rem; align-items: start; margin-top: 1.2rem; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.1rem; align-items: stretch; margin: 1.6rem 0; }
.plan { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--card); padding: 1.3rem 1.4rem; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan .badge { background: var(--accent); color: var(--paper); font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 650; padding: .2rem .55rem; border-radius: 99px; display: inline-block; margin: 0 0 .6rem; max-width: none; }
.plan h2, .plan h3 { margin: 0 0 .3rem; font-size: 1.15rem; }
.plan .price { font-size: 1.9rem; font-weight: 700; letter-spacing: -.03em; margin: 0 0 .1rem; max-width: none; }
.plan .price span { font-size: .82rem; font-weight: 400; color: var(--muted); letter-spacing: 0; display: block; }
.plan .tagline { color: var(--ink-2); margin: .5rem 0 .9rem; max-width: none; }
.plan ul { padding-left: 1.1rem; margin: 0 0 1.2rem; font-size: .95rem; }
.plan li { margin: .4rem 0; max-width: none; }
/* Full-width inside the card: at four columns the labels wrap, and a ragged set of
   content-sized buttons reads as a mistake rather than a choice. */
.plan .btn { align-self: stretch; text-align: center; margin-top: auto; }
.plan .soon { display: block; font-size: .85rem; color: var(--muted); margin-top: .5rem; text-align: center; }
.plans.compact .plan ul { display: none; }
.plans.compact .plan .soon { margin-top: .4rem; }
.plan ul.tiers { list-style: none; padding: 0; margin: 0 0 .9rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.plan ul.tiers li { display: flex; justify-content: space-between; gap: .6rem; margin: 0; padding: .45rem 0; font-size: .85rem; }
.plan ul.tiers li:not(:last-child) { border-bottom: 1px dashed var(--rule); }
.plan ul.tiers li span:first-child { color: var(--ink-2); }
.plan ul.tiers li span:last-child { font-weight: 650; }

.faq { max-width: 46rem; margin: 1rem 0 2rem; }
.faq details { border-bottom: 1px solid var(--rule); padding: .2rem 0; }
.faq summary { cursor: pointer; padding: .85rem 0; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; color: var(--accent); font-weight: 700; margin-right: .6rem; }
.faq details[open] summary::before { content: "−"; }
.faq details p { margin: 0 0 1rem; color: var(--ink-2); max-width: none; }

form label { font-weight: 500; }
form label .note { font-weight: 400; color: var(--muted); }
input[type="email"], input[type="text"], input[type="date"], textarea {
  font: inherit; width: 100%; max-width: 26rem;
  padding: .6rem .7rem; margin-top: .35rem;
  border: 1px solid var(--rule); border-radius: 8px;
  background: var(--paper); color: var(--ink);
}
input:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible, .option:has(input:focus-visible) {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
textarea { max-width: 32rem; resize: vertical; }
/* Honeypot: off-screen rather than display:none, which some bots detect. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 40rem) {
  .hero { padding: 2.2rem 0 1.8rem; }
  .hero h1 { max-width: none; }
  .hero-cta .btn { width: 100%; text-align: center; }
  .plan .price { font-size: 1.6rem; }
}
