/*
 * Pharma-ETA website. One stylesheet, mobile first: base rules are for a phone, and
 * min-width queries add the layout for wider screens (640, 900, 1100 px).
 *
 * The visual idea is the GMP record itself: section labels look like warehouse status labels
 * (RELEASED, QUARANTINE, REFUSED), document numbers are set in a monospace, and the hero
 * shows a signed batch record. Colours are the brand's (marketing/tools/content.mjs).
 *
 * No inline styles anywhere in the HTML: the Content-Security-Policy forbids them.
 */

/* ------------------------------------------------------------------ fonts */
@font-face {
  font-family: "Jakarta";
  src: url("../fonts/plus-jakarta-sans-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
/* A fallback sized to match, so the text does not jump when the web font arrives. */
@font-face {
  font-family: "Jakarta Fallback";
  src: local("Segoe UI"), local("Arial");
  size-adjust: 103%;
  ascent-override: 98%;
  descent-override: 24%;
}

/* ------------------------------------------------------------------ tokens */
:root {
  --navy: #0b2540;
  --navy-2: #123358;
  --navy-3: #08192d;
  --ink: #0f2236;
  --text: #33475b;
  --muted: #586a7c;
  --line: #d9e2e7;
  --line-2: #e8eef1;
  --paper: #ffffff;
  --paper-2: #f4f7f8;
  --ice: #e8f5f4;
  --teal: #0e7c86;
  --teal-d: #09626b;
  --mint: #2bb3a3;
  --mint-l: #8fe0d5;
  --amber: #f2a541;
  --amber-bg: #fdf3e2;
  --amber-ink: #7d5208;
  --green: #1d7f4b;
  --green-bg: #e7f5ec;
  --red: #b93445;
  --red-bg: #fbecee;

  --f-sans: "Jakarta", "Jakarta Fallback", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, "Nirmala UI", "Noto Sans Devanagari", sans-serif;
  --f-mono: "Plex Mono", ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --r: 10px;
  --r-lg: 16px;
  --shadow: 0 1px 2px rgba(11, 37, 64, .06), 0 10px 30px -14px rgba(11, 37, 64, .22);
  --shadow-lg: 0 2px 4px rgba(11, 37, 64, .05), 0 24px 60px -24px rgba(11, 37, 64, .35);
  --wrap: 1200px;
  --gut: 16px;
  --header: 64px;
}
@media (min-width: 640px) { :root { --gut: 24px; } }
@media (min-width: 1100px) { :root { --gut: 32px; --header: 72px; } }

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: clamp(1rem, .97rem + .15vw, 1.0625rem);
  line-height: 1.65;
  font-weight: 440;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--teal-d); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 720; letter-spacing: -.02em; }
h1 { font-size: clamp(2.05rem, 1.3rem + 3.3vw, 3.65rem); line-height: 1.06; letter-spacing: -.03em; font-weight: 760; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.45rem); }
h3 { font-size: clamp(1.08rem, 1.02rem + .3vw, 1.22rem); letter-spacing: -.01em; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
strong { color: var(--ink); font-weight: 700; }
code, .mono { font-family: var(--f-mono); font-size: .88em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--mint-l); color: var(--navy); }

.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: calc(780px + 2 * var(--gut)); }

/* ------------------------------------------------------------------ labels and chips */
.kicker {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--f-mono); font-size: .76rem; font-weight: 500;
  letter-spacing: .09em; text-transform: uppercase; color: var(--teal-d);
  margin: 0 0 1rem;
}
.kicker::before { content: ""; width: .62em; height: .62em; background: currentColor; border-radius: 1px; }
.kicker--light { color: var(--mint-l); }
.chip {
  display: inline-flex; align-items: center; gap: .4em;
  font-family: var(--f-mono); font-size: .7rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase;
  padding: .28em .6em; border-radius: 4px; border: 1px solid currentColor; line-height: 1.2; white-space: nowrap;
}
.chip--ok { color: var(--green); background: var(--green-bg); }
.chip--hold { color: var(--amber-ink); background: var(--amber-bg); }
.chip--no { color: var(--red); background: var(--red-bg); }
.chip--info { color: var(--teal-d); background: var(--ice); }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.2em; border-radius: 9px; border: 1.5px solid transparent;
  font: inherit; font-weight: 680; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  background: var(--teal); color: #fff; transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 1px 2px rgba(11, 37, 64, .12), 0 8px 18px -10px rgba(14, 124, 134, .7);
}
.btn:hover { background: var(--teal-d); color: #fff; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn .i { width: 18px; height: 18px; }
.btn--ghost { background: #fff; color: var(--navy); border-color: var(--line); box-shadow: 0 1px 2px rgba(11, 37, 64, .06); }
.btn--ghost:hover { background: var(--paper-2); color: var(--navy); border-color: #c4d0d7; }
.btn--light { background: #fff; color: var(--navy); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .5); }
.btn--light:hover { background: var(--ice); color: var(--navy); }
.btn--line-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); box-shadow: none; }
.btn--line-light:hover { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn--sm { min-height: 40px; padding: .5em .95em; font-size: .94rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: .35em; font-weight: 650; text-decoration: none; }
.link-arrow .i { width: 18px; height: 18px; transition: transform .15s ease; }
.link-arrow:hover .i { transform: translateX(3px); }

/* ------------------------------------------------------------------ header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: var(--header); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); margin-right: auto; }
.brand svg { width: 36px; height: 36px; border-radius: 9px; }
.brand-name { font-weight: 800; font-size: 1.22rem; letter-spacing: -.02em; line-height: 1; }
.brand-name span { color: var(--teal); }
.brand-by { display: block; font-family: var(--f-mono); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.header-cta { display: none; }
.menu-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px;
  border: 1.5px solid var(--line); border-radius: 9px; background: #fff; color: var(--navy);
  font: inherit; font-weight: 650; font-size: .95rem; text-decoration: none; cursor: pointer;
}
.menu-toggle .i { width: 20px; height: 20px; }
.menu-toggle .i-close { display: none; }
.nav-open .menu-toggle .i-menu { display: none; }
.nav-open .menu-toggle .i-close { display: block; }

.nav { display: none; }
.nav-open .nav {
  display: block; position: absolute; left: 0; right: 0; top: var(--header);
  max-height: calc(100vh - var(--header)); max-height: calc(100dvh - var(--header)); overflow-y: auto;
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
  padding: 8px var(--gut) 24px;
}
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav-list > li { border-bottom: 1px solid var(--line-2); }
.nav-list > li > a { display: flex; align-items: center; justify-content: space-between; padding: 14px 2px; color: var(--ink); font-weight: 650; text-decoration: none; font-size: 1.05rem; }
.nav-list > li > a[aria-current="page"] { color: var(--teal-d); }
.panel { padding: 0 0 14px; }
.panel-group { margin-top: 10px; }
.panel-title { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 6px 0 4px; font-weight: 500; }
.panel-group a { display: flex; align-items: center; gap: 10px; padding: 8px 2px; color: var(--text); text-decoration: none; font-size: .96rem; }
.panel-group a .i { width: 18px; height: 18px; color: var(--teal); }
.panel-group a:hover { color: var(--navy); }
.panel-all { display: none; }
.nav-mobile-cta { display: grid; gap: 10px; margin-top: 18px; }

@media (min-width: 1100px) {
  .menu-toggle, .nav-mobile-cta { display: none; }
  .header-cta { display: flex; align-items: center; gap: 10px; }
  .nav, .nav-open .nav { display: block; position: static; box-shadow: none; border: 0; padding: 0; max-height: none; overflow: visible; background: transparent; }
  .nav-list { display: flex; align-items: center; gap: 4px; }
  .nav-list > li { border: 0; position: relative; }
  .nav-list > li > a { padding: 8px 12px; font-size: .96rem; border-radius: 8px; color: var(--text); }
  .nav-list > li > a:hover { color: var(--navy); background: var(--paper-2); }
  .nav-list > li > a .i { width: 16px; height: 16px; margin-left: 4px; }
  .has-panel .panel {
    display: none; position: absolute; top: calc(100% + 10px); left: -16px; width: min(940px, 86vw);
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
    padding: 22px 24px; grid-template-columns: repeat(4, 1fr); gap: 4px 22px;
  }
  .has-panel .panel::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
  .has-panel:hover .panel, .has-panel:focus-within .panel { display: grid; }
  .panel-group { margin: 0; }
  .panel-group a { padding: 7px 0; font-size: .9rem; line-height: 1.35; }
  .panel-all { display: flex; grid-column: 1 / -1; border-top: 1px solid var(--line-2); margin-top: 12px; padding-top: 14px; }
}

/* ------------------------------------------------------------------ sections */
.section { padding: clamp(56px, 7vw, 104px) 0; }
.section--tint { background: var(--paper-2); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.section--dark { background: radial-gradient(900px 420px at 100% 0%, rgba(43, 179, 163, .14), transparent 70%), var(--navy); color: #c9d6e2; }
.section--dark h2, .section--dark h3, .section--dark strong { color: #fff; }
.section--dark a { color: var(--mint-l); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p:not(.kicker) { font-size: clamp(1.03rem, .98rem + .3vw, 1.15rem); color: var(--text); }
.section--dark .section-head p:not(.kicker) { color: #c9d6e2; }
.section-head--split { max-width: none; display: grid; gap: 16px; align-items: end; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1.2fr 1fr; gap: 48px; } .section-head--split > p { margin: 0; } }
.lede { font-size: clamp(1.08rem, 1rem + .45vw, 1.28rem); color: var(--text); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* ------------------------------------------------------------------ announcement bar */
.topbar { background: var(--navy-3); color: #b9c9d7; font-size: .86rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 12px; min-height: 40px; padding-top: 7px; padding-bottom: 7px; text-align: center; }
.topbar .live { display: inline-flex; align-items: center; gap: 8px; }
.topbar .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px rgba(43, 179, 163, .25); }
.topbar a { color: #fff; font-weight: 650; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.topbar a:hover { color: var(--mint-l); }
.topbar .i { width: 16px; height: 16px; }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(36px, 6vw, 84px) 0 clamp(64px, 8vw, 112px);
  background:
    radial-gradient(900px 560px at 88% -12%, rgba(43, 179, 163, .17), transparent 64%),
    radial-gradient(700px 520px at -8% 112%, rgba(14, 124, 134, .09), transparent 70%),
    #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 28px 28px; background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .5) 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .5) 55%, transparent 100%);
}
.hero-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: .9fr 1.1fr; gap: 48px; } }
.pill {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  padding: 5px 14px 5px 5px; margin: 0 0 24px; border-radius: 999px;
  background: #fff; border: 1px solid #cfe7e4; box-shadow: 0 1px 2px rgba(11, 37, 64, .05);
  color: var(--ink); font-size: .88rem; font-weight: 600; text-decoration: none;
}
.pill:hover { border-color: var(--mint); color: var(--teal-d); }
.pill .tag { background: var(--teal); color: #fff; font-family: var(--f-mono); font-size: .66rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; }
.pill .i { width: 16px; height: 16px; color: var(--teal); }
.hero h1 { font-size: clamp(2.35rem, 1.3rem + 4.2vw, 4.35rem); max-width: 12.5ch; margin-bottom: .4em; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero .lede { margin-bottom: 30px; max-width: 54ch; }
.hero-proof { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .9rem; color: var(--muted); font-weight: 550; }
.hero-proof li { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof .i { width: 18px; height: 18px; color: var(--green); }
.hero-note { margin-top: 18px; font-size: .92rem; color: var(--muted); }
.hero-note a { font-weight: 650; }

/* The product, layered: the real dashboard, a signed batch record and a refusal on top. */
.hero-visual { position: relative; }
.hero-shot .shot-frame { box-shadow: 0 2px 4px rgba(11, 37, 64, .06), 0 40px 80px -30px rgba(11, 37, 64, .45); }
.record { margin: 0; position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); font-size: .9rem; }
.record-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.record-id { font-family: var(--f-mono); font-size: .74rem; color: var(--muted); letter-spacing: .02em; }
.record-title { display: block; color: var(--ink); font-weight: 700; font-size: .95rem; margin-top: 2px; }
.record-steps { list-style: none; margin: 0; padding: 4px 16px; }
.record-steps li { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: start; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .88rem; }
.record-steps li:last-child { border-bottom: 0; }
.record-steps .i { width: 19px; height: 19px; color: var(--green); margin-top: 1px; }
.record-steps .who { display: block; font-size: .78rem; color: var(--muted); }
.record-steps .t { font-family: var(--f-mono); font-size: .72rem; color: var(--muted); white-space: nowrap; padding-top: 2px; }
.record-sig { margin: 2px 16px 16px; padding: 10px 12px; border-left: 3px solid var(--teal); background: var(--ice); border-radius: 0 8px 8px 0; }
.record-sig .label { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-d); }
.record-sig p { margin: 3px 0 0; color: var(--ink); font-size: .84rem; line-height: 1.45; }
.record-sig p b { font-weight: 700; }
.refusal {
  display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start;
  margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: #fff;
  border: 1px solid #f0c9cf; border-left: 4px solid var(--red); box-shadow: var(--shadow-lg);
  font-size: .86rem; color: var(--ink); line-height: 1.45;
}
.refusal .i { color: var(--red); width: 22px; height: 22px; }
.refusal strong { display: block; color: var(--red); font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.record--float { width: min(100% - 24px, 360px); margin: -56px 0 0 12px; }
@media (min-width: 1000px) {
  .hero-visual { padding-bottom: 96px; }
  .hero-shot { width: 112%; }
  .record--float { position: absolute; left: -20px; top: 150px; width: 300px; margin: 0; }
  .refusal--float { position: absolute; right: -12px; bottom: 0; width: 310px; margin: 0; }
}

/* Entrance: the record fills in step by step, then is signed, then the refusal appears. */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
/* Short and subtle: the card itself is there from the first paint; only its ticks and the
   refusal arrive, all within a second, so nothing ever looks empty. */
@keyframes tick-in { from { opacity: .25; transform: scale(.6); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .record--float .record-steps .i { animation: tick-in .35s both; }
  .record--float .record-steps li:nth-child(1) .i { animation-delay: .15s; }
  .record--float .record-steps li:nth-child(2) .i { animation-delay: .3s; }
  .record--float .record-steps li:nth-child(3) .i { animation-delay: .45s; }
  .record--float .record-steps li:nth-child(4) .i { animation-delay: .6s; }
  .refusal--float { animation: rise .45s .8s both; }
}

/* ------------------------------------------------------------------ standards strip */
.standards { background: #fff; border-bottom: 1px solid var(--line); }
.standards .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-top: 22px; padding-bottom: 22px; }
.standards .label { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.standards ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.standards li { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; font-size: .95rem; letter-spacing: -.01em; }
.standards .i { width: 18px; height: 18px; color: var(--teal); }
@media (min-width: 1100px) { .standards .wrap { justify-content: space-between; } }

/* ------------------------------------------------------------------ feature rows */
.features { display: grid; gap: clamp(64px, 9vw, 128px); }
/* Grid children may shrink below their content (a long screenshot URL), never widen the page. */
.hero-grid > *, .feature > *, .split > *, .page-hero-grid > *, .rules-split > * { min-width: 0; }
.feature { display: grid; gap: 34px; align-items: center; }
@media (min-width: 1000px) {
  .feature { grid-template-columns: .82fr 1.18fr; gap: 72px; }
  .feature--flip { grid-template-columns: 1.18fr .82fr; }
  .feature--flip .feature-copy { order: 2; }
}
.feature-copy h2 { font-size: clamp(1.55rem, 1.15rem + 1.6vw, 2.25rem); }
.feature-copy > p:not(.kicker) { font-size: clamp(1.02rem, .98rem + .2vw, 1.1rem); }
.feature-visual { position: relative; }
.feature-visual .shot-frame { box-shadow: 0 2px 4px rgba(11, 37, 64, .05), 0 30px 60px -30px rgba(11, 37, 64, .4); }
.shot-note {
  position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start;
  width: min(100% - 24px, 320px); margin: -30px 12px 0 auto; padding: 12px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
  font-size: .86rem; line-height: 1.45; color: var(--ink);
}
.shot-note .i { width: 21px; height: 21px; }
.shot-note b { display: block; font-family: var(--f-mono); font-size: .66rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; }
.shot-note--ok { border-left: 4px solid var(--green); } .shot-note--ok .i, .shot-note--ok b { color: var(--green); }
.shot-note--no { border-left: 4px solid var(--red); } .shot-note--no .i, .shot-note--no b { color: var(--red); }
.shot-note--sign { border-left: 4px solid var(--teal); } .shot-note--sign .i, .shot-note--sign b { color: var(--teal-d); }
@media (min-width: 1000px) {
  .shot-note { position: absolute; right: -20px; bottom: -28px; margin: 0; }
  .feature--flip .shot-note { right: auto; left: -20px; }
}

/* ------------------------------------------------------------------ refusal stack */
.rules-split { display: grid; gap: 36px; align-items: center; }
@media (min-width: 1000px) { .rules-split { grid-template-columns: .85fr 1.15fr; gap: 64px; } }
.toasts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.toast {
  display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start;
  padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red);
  border-radius: 0 12px 12px 0; box-shadow: var(--shadow);
}
.toast .i { color: var(--red); width: 22px; height: 22px; }
.toast b { display: block; font-family: var(--f-mono); font-size: .68rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.toast p { margin: 0; color: var(--ink); font-weight: 620; line-height: 1.45; }
.toast small { display: block; color: var(--muted); font-size: .85rem; margin-top: 3px; line-height: 1.45; }
@media (min-width: 1000px) { .toast:nth-child(even) { margin-left: 36px; margin-right: -36px; } }

/* ------------------------------------------------------------------ stats band */
.stats { background: var(--navy); color: #b9c9d7; position: relative; overflow: hidden; }
.stats::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 300px at 15% 0%, rgba(43, 179, 163, .16), transparent 70%); pointer-events: none; }
.stats .wrap { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .stats .wrap { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 34px 18px 34px 0; }
.stat + .stat { padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, .1); }
@media (max-width: 899px) { .stat:nth-child(3) { padding-left: 0; border-left: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .1); } }
.stat b { display: block; color: #fff; font-size: clamp(2.1rem, 1.6rem + 2vw, 3.1rem); font-weight: 780; letter-spacing: -.035em; line-height: 1; }
.stat b span { color: var(--mint); }
.stat > span { display: block; margin-top: 10px; font-size: .94rem; line-height: 1.45; max-width: 22ch; }

/* ------------------------------------------------------------------ screenshots */
.shot { margin: 0; }
.shot-frame { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-lg); }
.shot-bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--paper-2); border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot-bar .i { width: 14px; height: 14px; color: var(--green); }
.shot figcaption { font-size: .9rem; color: var(--muted); margin-top: 12px; }

/* ------------------------------------------------------------------ module map */
.groups { display: grid; gap: 18px; }
@media (min-width: 900px) { .groups { grid-template-columns: repeat(2, 1fr); gap: 22px; } }
.group { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--accent, var(--teal)); border-radius: var(--r-lg); padding: 22px; box-shadow: 0 1px 2px rgba(11, 37, 64, .04); }
.group--quality { --accent: var(--teal); }
.group--make { --accent: var(--amber); }
.group--supply { --accent: var(--navy-2); }
.group--business { --accent: var(--mint); }
.group--make .mod-icon { background: var(--amber-bg); color: var(--amber-ink); }
.group--supply .mod-icon { background: #e8eef5; color: var(--navy-2); }
.group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line-2); padding-bottom: 12px; margin-bottom: 6px; }
.group-head h3 { margin: 0; }
.group-head span { font-family: var(--f-mono); font-size: .72rem; color: var(--muted); }
.mod { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-2); text-decoration: none; color: inherit; }
.mod:last-child { border-bottom: 0; }
.mod-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--ice); color: var(--teal-d); display: grid; place-items: center; }
.mod-icon .i { width: 21px; height: 21px; }
.mod strong { display: flex; align-items: center; gap: 6px; font-size: 1rem; }
.mod strong .i { width: 16px; height: 16px; color: var(--teal); opacity: 0; transform: translateX(-4px); transition: all .15s ease; }
.mod:hover strong { color: var(--teal-d); }
.mod:hover strong .i { opacity: 1; transform: none; }
.mod span { display: block; color: var(--muted); font-size: .92rem; line-height: 1.5; margin-top: 2px; }

/* ------------------------------------------------------------------ cards and grids */
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } .grid { gap: 20px; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.card h3 { margin-bottom: .35em; }
.card p { margin: 0; font-size: .96rem; }
.card-icon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--ice); color: var(--teal-d); margin-bottom: 14px; }
.section--dark .card { background: var(--navy-2); border-color: rgba(255, 255, 255, .1); color: #c9d6e2; }
.section--dark .card-icon { background: rgba(43, 179, 163, .14); color: var(--mint-l); }
.card-link { text-decoration: none; color: inherit; display: block; transition: border-color .15s ease, box-shadow .15s ease; }
.card-link:hover { border-color: #b9c9d1; box-shadow: var(--shadow); color: inherit; }

/* ------------------------------------------------------------------ comparison */
.compare-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.compare { width: 100%; border-collapse: collapse; font-size: .94rem; }
.compare-note { font-size: .86rem; color: var(--muted); margin: 12px 0 0; }
.compare th, .compare td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.compare thead th { background: var(--paper-2); font-family: var(--f-mono); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.compare thead th.us { color: var(--teal-d); background: var(--ice); }
.compare tbody th { color: var(--ink); font-weight: 650; }
.compare td.us { background: #f6fbfb; color: var(--ink); font-weight: 600; }
.compare .yes, .compare .part, .compare .no { display: inline-flex; gap: 6px; align-items: flex-start; }
.compare .i { width: 18px; height: 18px; margin-top: 2px; }
.compare .yes .i { color: var(--green); }
.compare .part .i { color: var(--amber); }
.compare .no .i { color: #9aa8b5; }
@media (max-width: 899px) {
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tr { border-bottom: 1px solid var(--line); padding: 6px 0; }
  .compare tbody th { border: 0; padding-bottom: 4px; }
  .compare td { border: 0; padding: 4px 16px; display: grid; grid-template-columns: 9.5em 1fr; gap: 10px; }
  .compare td::before { content: attr(data-label); font-family: var(--f-mono); font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
  .compare td.us { background: transparent; }
  .compare td:last-child { padding-bottom: 12px; }
}

/* plain reference tables (compliance) */
.compare-plain { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); font-size: .94rem; margin-top: 8px; }
.compare-plain th, .compare-plain td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; line-height: 1.5; }
.compare-plain thead th { background: var(--paper-2); font-family: var(--f-mono); font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.compare-plain tbody th { color: var(--ink); font-weight: 650; min-width: 9em; }
.compare-plain td.mono { color: var(--teal-d); white-space: nowrap; font-size: .82rem; }
.h3 { font-size: clamp(1.08rem, 1.02rem + .3vw, 1.22rem); }

/* ------------------------------------------------------------------ regulations */
.regs { display: grid; gap: 14px; }
@media (min-width: 700px) { .regs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .regs { grid-template-columns: repeat(3, 1fr); } }
.reg { border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r); padding: 20px; background: rgba(255, 255, 255, .03); }
.reg-code { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .06em; color: var(--mint-l); text-transform: uppercase; }
.reg h3 { margin: 6px 0 8px; font-size: 1.08rem; }
.reg p { margin: 0; font-size: .93rem; }
.disclaimer { margin-top: 28px; font-size: .88rem; color: #9fb2c4; max-width: 80ch; }

/* ------------------------------------------------------------------ languages */
.langs { display: grid; gap: 12px; }
@media (min-width: 640px) { .langs { grid-template-columns: repeat(2, 1fr); } }
.lang { border: 1px solid var(--line); border-radius: var(--r); background: #fff; padding: 16px 18px; }
.lang .hi { display: block; font-size: 1.3rem; color: var(--ink); font-weight: 600; line-height: 1.4; }
.lang .en { display: block; font-family: var(--f-mono); font-size: .76rem; color: var(--muted); margin-top: 4px; }

/* ------------------------------------------------------------------ steps / timeline */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 26px 52px; }
.steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center;
  font-family: var(--f-mono); font-size: .78rem; color: var(--teal-d); background: var(--ice); border: 1px solid #cde9e6;
}
.steps li::after { content: ""; position: absolute; left: 18px; top: 40px; bottom: 4px; width: 1px; background: var(--line); }
.steps li:last-child { padding-bottom: 0; }
.steps + p { margin-top: 1.6em; }
.steps li:last-child::after { display: none; }
.steps h3 { margin: 6px 0 4px; font-size: 1.04rem; }
.steps p { margin: 0; color: var(--text); font-size: .96rem; }
@media (min-width: 1000px) {
  .steps--row { grid-template-columns: repeat(5, 1fr); gap: 18px; }
  .steps--row.steps--4 { grid-template-columns: repeat(4, 1fr); }
  .steps--row.steps--7 { grid-template-columns: repeat(7, 1fr); gap: 12px; }
  .steps--7 h3 { font-size: .98rem; }
  .steps--7 p { font-size: .88rem; }
  .steps--row li { padding: 52px 0 0; }
  .steps--row li::after { left: 44px; right: -14px; top: 18px; bottom: auto; width: auto; height: 1px; }
}

/* ------------------------------------------------------------------ refusal list (module pages) */
.refuses { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 900px) { .refuses { grid-template-columns: repeat(2, 1fr); } }
.refuses li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 0 var(--r) var(--r) 0; color: var(--ink); font-weight: 550; line-height: 1.5; }
.refuses .i { color: var(--red); }

/* ------------------------------------------------------------------ page hero (inner pages) */
.page-hero { padding: clamp(28px, 5vw, 64px) 0 clamp(36px, 5vw, 64px); position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line-2); background: radial-gradient(800px 420px at 92% -20%, rgba(43, 179, 163, .14), transparent 65%), #fff; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .8), transparent 85%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .8), transparent 85%);
}
.page-hero h1 { font-size: clamp(1.95rem, 1.35rem + 2.6vw, 3.1rem); max-width: 20ch; }
.page-hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 1000px) { .page-hero-grid { grid-template-columns: 1fr 1.05fr; gap: 56px; } }
.crumbs { font-size: .84rem; color: var(--muted); margin-bottom: 18px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #a9b6c1; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--navy); text-decoration: underline; }

/* ------------------------------------------------------------------ FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 2px; color: var(--ink); font-weight: 680; font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { width: 20px; height: 20px; color: var(--teal); transition: transform .2s ease; }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq details > div { padding: 0 2px 20px; max-width: 72ch; }
.faq details > div p:last-child { margin: 0; }

/* ------------------------------------------------------------------ CTA band */
.cta { background: radial-gradient(800px 400px at 0% 100%, rgba(14, 124, 134, .45), transparent 70%), radial-gradient(600px 360px at 100% 0%, rgba(43, 179, 163, .22), transparent 70%), var(--navy); color: #c9d6e2; position: relative; overflow: hidden; }
.cta::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  border: 64px solid rgba(43, 179, 163, .09); pointer-events: none;
}
.cta .wrap { position: relative; z-index: 1; display: grid; gap: 24px; padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); }
@media (min-width: 900px) { .cta .wrap { grid-template-columns: 1.3fr 1fr; align-items: center; } .cta .actions { justify-content: flex-end; } }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { margin: 0; max-width: 56ch; }

/* ------------------------------------------------------------------ prose (articles, legal) */
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.7rem); margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose li { margin-bottom: .45em; }
.prose blockquote { margin: 1.5em 0; padding: 14px 18px; border-left: 3px solid var(--teal); background: var(--ice); border-radius: 0 8px 8px 0; color: var(--ink); }
.prose blockquote p:last-child { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .94rem; }
.prose th, .prose td { text-align: left; border-bottom: 1px solid var(--line); padding: 10px 8px; vertical-align: top; }
.prose th { color: var(--ink); }
.table-scroll { overflow-x: auto; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: .88rem; color: var(--muted); margin-bottom: 8px; }
.callout { border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; background: var(--paper-2); margin: 2em 0; }
.callout p:last-child { margin: 0; }

/* ------------------------------------------------------------------ forms */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field label, .field legend { display: block; font-weight: 650; color: var(--ink); font-size: .94rem; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); font-size: .86rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid #c8d3da; border-radius: 9px;
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14, 124, 134, .18); }
.field [aria-invalid="true"] { border-color: var(--red); }
.field .err { display: flex; gap: 6px; align-items: center; color: var(--red); font-size: .86rem; margin-top: 6px; font-weight: 600; }
.field .err .i { width: 16px; height: 16px; }
.field .check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: .92rem; font-weight: 440; color: var(--text); margin: 0; }
.check input { width: 20px; height: 20px; min-height: 0; margin-top: 2px; accent-color: var(--teal); }
.form-alert { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 12px 14px; border-radius: 9px; background: var(--red-bg); color: var(--red); font-weight: 600; margin-bottom: 18px; font-size: .94rem; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-top: 6px; }
.form-foot p { margin: 0; font-size: .84rem; color: var(--muted); }

/* ------------------------------------------------------------------ misc blocks */
.split { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1000px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } .split--wide { grid-template-columns: .9fr 1.1fr; } }
.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.ticks .i { color: var(--green); width: 20px; height: 20px; margin-top: 3px; }
.section--dark .ticks .i { color: var(--mint); }
.facts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { background: #fff; padding: 18px 20px; }
.fact b { display: block; font-family: var(--f-mono); font-weight: 500; font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--teal-d); margin-bottom: 6px; }
.fact span { color: var(--ink); font-weight: 600; line-height: 1.45; display: block; }
.anchor-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.anchor-nav a { font-size: .88rem; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--text); background: #fff; }
.anchor-nav a:hover { border-color: var(--teal); color: var(--teal-d); }
.not-found { text-align: left; padding: clamp(56px, 10vw, 120px) 0; }
.not-found .code { font-family: var(--f-mono); color: var(--red); font-size: .85rem; letter-spacing: .08em; }

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--navy-3); color: #a9bccd; font-size: .93rem; }
.site-footer a { color: #d5e1eb; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-top { display: grid; gap: 32px; padding: 56px 0 36px; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; } }
.footer-brand .brand { color: #fff; margin: 0 0 14px; }
.footer-brand .brand svg { border-radius: 9px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .16); }
.footer-brand .brand-name span { color: var(--mint); }
.footer-brand .brand-by { color: #8aa1b5; }
.footer-brand p { max-width: 38ch; }
.site-footer h2 { font-family: var(--f-mono); font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: #8aa1b5; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0 28px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .84rem; }
.footer-bottom p { margin: 0; }

/* ------------------------------------------------------------------ scroll reveal */
/* Pure CSS (scroll-driven animation): no script, no layout shift, and browsers without it
   simply show everything. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  }
}

/* ------------------------------------------------------------------ motion and print */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .cta, .skip, .menu-toggle { display: none !important; }
  body { color: #000; }
  .section { padding: 24px 0; }
}
