/* Polylex AI website. Plain CSS, no JavaScript, no third-party resources. */

/* ---------- Font (self-hosted Source Serif 4, SIL Open Font License; see /LICENSES.txt) ---------- */

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-serif-4-latin-opsz-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Local fallback resized to the web font's metrics, so text doesn't jump when it loads. */
@font-face {
  font-family: "Serif Fallback";
  src: local("Georgia");
  size-adjust: 100.86%;
  ascent-override: 102.72%;
  descent-override: 33.22%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */

:root {
  --ink: #0E1B2C;
  --navy: #16304F;
  --navy-deep: #0C2139;
  --paper: #F8F6F1;
  --paper-2: #EFEBE2;
  --sheet: #FBFAF7;
  --card: #FFFFFF;
  --rule: #DDD7CB;
  --rule-strong: #C9C0AF;
  --muted: #4A5566;
  --body-2: #2A3545;
  --green: #1E6B4F;
  --green-tint: #E6F0EA;
  --brass: #A7864B;
  --brass-text: #765B2A;
  --red: #8B2E2E;
  --red-tint: #F5E8E5;

  /* Dark band */
  --d-text: #F3EFE6;
  --d-muted: #B8C0CC;
  --d-accent: #C9A86A;
  --d-rule: rgba(243, 239, 230, 0.14);

  --serif: "Source Serif 4", "Serif Fallback", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1200px;
  --gutter: clamp(20px, 4.5vw, 40px);
  --section: clamp(72px, 9vw, 128px);
  --shadow: 0 1px 0 rgba(14, 27, 44, 0.04), 0 22px 48px -26px rgba(14, 27, 44, 0.26);
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
}

h1,
h2 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  letter-spacing: -0.014em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 1.5rem + 4.3vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.022em;
}

h2 {
  font-size: clamp(2rem, 1.42rem + 2.2vw, 3.05rem);
  line-height: 1.08;
}

h3 {
  font-size: 1.0625rem;
  line-height: 1.35;
  letter-spacing: -0.005em;
}

p {
  margin: 0;
  text-wrap: pretty;
}

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

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 2px;
}

img,
svg {
  display: block;
}

.wrap {
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Grid children may shrink below their content's width; long rows wrap instead of widening the page. */
.hero-grid > *,
.split > *,
.verify-foot > *,
.about-grid > *,
.faq-grid > *,
.cta-card > * {
  min-width: 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
  color: #fff;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7em;
  margin-bottom: 1.15rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow .numeral {
  padding-right: 0.75em;
  border-right: 1px solid var(--rule-strong);
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  line-height: 1;
}

.eyebrow .sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brass);
}

.lead {
  max-width: 36em;
  color: var(--muted);
  font-size: clamp(1.125rem, 1.04rem + 0.34vw, 1.28rem);
  line-height: 1.55;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 48px;
  padding: 0.75rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font: 600 1rem/1.2 var(--serif);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}

.btn-primary:hover {
  background: var(--navy-deep);
  color: #fff;
}

.btn-ghost {
  border-color: var(--rule-strong);
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-sm {
  min-height: 40px;
  padding: 0.5rem 1rem;
  font-size: 0.92rem;
}

.btn-lg {
  min-height: 56px;
  padding: 0.9rem 1.5rem;
  font-size: 1.05rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.wordmark {
  display: inline;
  font-family: var(--serif);
  font-size: 1.36rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1;
}

.wordmark-ai {
  margin-left: 0.02em;
  color: var(--navy);
  letter-spacing: 0.01em;
}

.nav {
  margin-left: auto;
}

.nav ul {
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover {
  color: var(--navy);
  text-decoration: underline;
}

.header-cta {
  margin-left: 6px;
}

.brand + .header-cta {
  margin-left: auto;
}

.sm-only {
  display: none;
}

@media (max-width: 880px) {
  .nav {
    display: none;
  }

  .header-cta {
    margin-left: auto;
  }
}

@media (max-width: 480px) {
  .lg-only {
    display: none;
  }

  .sm-only {
    display: inline;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(52px, 7vw, 104px) clamp(64px, 8vw, 116px);
  border-bottom: 1px solid var(--rule);
}

.hero-grid {
  display: grid;
  gap: clamp(48px, 6vw, 72px);
  align-items: center;
}

@media (min-width: 1040px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  }
}

.hero h1 {
  max-width: 10.5em;
  margin-bottom: 1.5rem;
}

.hero .lead {
  margin-bottom: 1.9rem;
}

.proof {
  display: grid;
  gap: 0.7rem;
  margin: 0 0 2.3rem;
  padding: 0;
  list-style: none;
}

.proof li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-weight: 500;
  line-height: 1.45;
}

.proof .icon {
  margin-top: 0.12em;
  color: var(--green);
  stroke-width: 2;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 480px) {
  .actions .btn {
    width: 100%;
  }

  .hero .eyebrow {
    gap: 0.55em;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }
}

/* Specimen research card, with the guilloche rosette behind it */

.specimen {
  position: relative;
  isolation: isolate;
  margin: 0;
}

/* The rosette frames the card only in the two-column layout. On small screens it is hidden: painting it
   costs about a second of main-thread time on a throttled phone. */
@media (min-width: 1040px) {
  .specimen::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 50%;
    left: calc(50% + 40px);
    width: 820px;
    height: 820px;
    transform: translate(-50%, -50%);
    background: url("../img/guilloche.svg") center / contain no-repeat;
    opacity: 0.5;
    pointer-events: none;
  }
}

.specimen-card {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 1px 0 rgba(14, 27, 44, 0.04), 0 34px 70px -34px rgba(14, 27, 44, 0.32);
}

.specimen-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}

.specimen-app {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
}

.muted-sep {
  color: var(--rule-strong);
  font-weight: 400;
}

.chip {
  padding: 0.28rem 0.7rem;
  border: 1px solid #D3DCE7;
  border-radius: 999px;
  background: #EEF2F7;
  color: var(--navy);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.q {
  max-width: 88%;
  margin: 0 0 16px auto;
  padding: 10px 14px;
  border: 1px solid var(--rule);
  border-radius: 12px 12px 3px 12px;
  background: var(--paper);
  font-size: 0.93rem;
  line-height: 1.5;
}

.a {
  font-family: var(--serif);
  font-size: 1.04rem;
  line-height: 1.58;
}

.fn {
  display: inline-block;
  position: relative;
  top: -0.5em;
  min-width: 1.25em;
  margin-left: -0.12em;
  padding: 0.28em 0.1em;
  border-radius: 3px;
  color: var(--navy);
  font: 700 0.68rem/1 var(--serif);
  text-align: center;
  text-decoration: none;
}

.fn:hover {
  background: #EEF2F7;
}

.source {
  margin-top: 18px;
  padding: 14px 16px 14px;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--green);
  border-radius: 8px;
  background: var(--sheet);
}

.source-title {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}

.source-num {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: -0.05rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}

.act {
  font-family: var(--serif);
  font-weight: 700;
}

.source-quote {
  margin: 10px 0 14px;
  padding-left: 12px;
  border-left: 2px solid var(--rule-strong);
  color: var(--body-2);
  font-family: var(--serif);
  font-size: 0.9rem;
  line-height: 1.5;
}

.source-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 0 0 12px;
}

.source-meta dt {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.source-meta dd {
  margin: 3px 0 0;
  font-size: 0.8rem;
  line-height: 1.35;
}

.mono {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: -0.01em;
}

.source-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.86rem;
  font-weight: 600;
}

.attribution {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

.attribution a {
  color: var(--muted);
}

.overprint {
  position: absolute;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-24deg);
  color: rgba(167, 134, 75, 0.04);
  -webkit-text-stroke: 1px rgba(167, 134, 75, 0.27);
  font-family: var(--serif);
  font-size: clamp(2.5rem, 7.2vw, 4.5rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.specimen figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

@media (max-width: 560px) {
  .source-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .q {
    max-width: 100%;
  }
}

/* ---------- Pills and statuses ---------- */

.pill,
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.42em;
  padding: 0.3rem 0.6rem;
  border: 1px solid;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.pill {
  border-radius: 999px;
}

.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status {
  border-radius: 4px;
}

.pill-in-force,
.s-approved {
  border-color: #BCD5C7;
  background: var(--green-tint);
  color: var(--green);
}

.pill-amended,
.s-verify {
  border-color: #C8D3E1;
  background: #EBF0F6;
  color: var(--navy);
}

.pill-repealed {
  border-color: #D3D0C9;
  background: #EEEDEA;
  color: #4F5560;
}

.s-licence {
  border-color: #E0D0B1;
  background: #F6EFE2;
  color: var(--brass-text);
}

.s-prohibited {
  border-color: #E2C3BD;
  background: var(--red-tint);
  color: var(--red);
}

/* ---------- What we're building ---------- */

.building {
  padding-block: clamp(56px, 6.5vw, 92px);
  border-bottom: 1px solid var(--rule);
}

.building-head {
  display: grid;
  gap: 0;
}

.building h2 {
  max-width: 18em;
  font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem);
}

.building-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 32px;
  margin: clamp(32px, 4vw, 48px) 0 0;
  padding: 0;
  list-style: none;
}

.building-grid li {
  padding: 22px 0 24px;
  border-top: 1px solid var(--rule-strong);
}

.building-grid h3 {
  margin: 14px 0 6px;
}

.building-grid p {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.5;
}

.icon-lg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--brass);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 640px) {
  .building-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .building-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* ---------- Sections ---------- */

.section {
  padding-block: var(--section);
  border-bottom: 1px solid var(--rule);
}

.section-alt {
  background: var(--paper-2);
}

.section-head {
  max-width: 780px;
  margin-bottom: clamp(44px, 5.5vw, 72px);
}

.section-head h2 {
  margin-bottom: 1.15rem;
}

/* I. Sources */

.split {
  display: grid;
  gap: clamp(44px, 6vw, 80px);
  align-items: start;
}

@media (min-width: 1040px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  }

  .split .ledger {
    margin-top: 44px;
  }
}

.split-copy h2 {
  margin-bottom: 1.15rem;
}

.points {
  display: grid;
  gap: 1.5rem;
  margin: 2.2rem 0 0;
}

.points > div {
  padding-left: 20px;
  border-left: 2px solid var(--brass);
}

.points dt {
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.points dd {
  margin: 0;
  color: var(--muted);
}

.ledger {
  margin: 0;
}

.ledger-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.ledger-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-bottom: 1px solid var(--rule);
  background: var(--sheet);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tag {
  padding: 0.22rem 0.5rem;
  border: 1px solid var(--brass);
  border-radius: 4px;
  color: var(--brass-text);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
}

.ledger-cols {
  display: none;
}

.ledger-rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ledger-row {
  padding: 15px 20px;
  border-bottom: 1px solid var(--rule);
}

.ledger-row dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 0;
}

.ledger-row dt {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ledger-row dd {
  margin: 2px 0 0;
  font-size: 0.88rem;
  line-height: 1.4;
}

.ledger-row .src {
  font-weight: 600;
}

.is-prohibited .src {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(139, 46, 46, 0.55);
}

@media (min-width: 640px) {
  .ledger-cols,
  .ledger-row dl {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1.05fr;
    gap: 14px;
    align-items: center;
  }

  .ledger-cols {
    padding: 10px 20px;
    border-bottom: 1px solid var(--rule);
    color: var(--muted);
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .ledger-row dt {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .ledger-row dd {
    margin: 0;
  }
}

.lifecycle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 14px 20px;
  background: var(--sheet);
  color: var(--muted);
  font-size: 0.8rem;
}

.lifecycle .icon {
  width: 14px;
  height: 14px;
  color: var(--brass);
  stroke-width: 2;
}

.ledger figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.84rem;
}

/* II. Verification */

.steps {
  display: grid;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  padding-top: 30px;
  border-top: 1px solid var(--rule-strong);
}

.step-num {
  position: absolute;
  top: -16px;
  left: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
}

.steps h3 {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 1.32rem;
  letter-spacing: -0.01em;
}

.steps p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 32px;
  }
}

@media (min-width: 1040px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
  }
}

.verify-foot {
  display: grid;
  gap: 28px;
  margin-top: clamp(52px, 6vw, 76px);
}

@media (min-width: 1040px) {
  .verify-foot {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
  }
}

.definitions,
.legend {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--card);
}

.definitions h3,
.legend h3 {
  margin-bottom: 0.5rem;
  font-family: var(--serif);
  font-size: 1.36rem;
  letter-spacing: -0.01em;
}

.defs-intro {
  margin-bottom: 0.6rem;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.02rem;
}

.definitions dl {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.55;
}

.definitions dl > div {
  padding: 0.6rem 0;
  border-top: 1px dotted var(--rule-strong);
}

.definitions dt,
.definitions dd {
  display: inline;
  margin: 0;
}

.definitions dt {
  font-weight: 700;
}

.legend ul {
  display: grid;
  gap: 12px;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.legend li {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}

.legend .pill {
  justify-self: start;
}

.legend-note {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.95rem;
}

/* III. Privacy (dark band) */

.section-dark {
  border-bottom: 0;
  background: var(--ink);
  color: var(--d-text);
}

.section-dark .eyebrow {
  color: var(--d-muted);
}

.section-dark .eyebrow .numeral {
  border-color: var(--d-rule);
  color: var(--d-accent);
}

.section-dark .lead {
  color: var(--d-muted);
}

.section-dark a {
  color: var(--d-text);
}

.section-dark a:hover {
  color: #fff;
}

.section-dark :focus-visible {
  outline-color: var(--d-text);
}

.lock {
  display: inline-block;
  width: 0.78em;
  height: 0.78em;
  margin-right: 0.28em;
  vertical-align: -0.04em;
  fill: none;
  stroke: var(--d-accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.commitments {
  display: grid;
  column-gap: 44px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--d-rule);
}

.commitments li {
  padding: 26px 0 28px;
  border-bottom: 1px solid var(--d-rule);
}

.commitments h3 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.5rem;
  color: var(--d-text);
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.commitments h3::before {
  content: "";
  flex: none;
  width: 18px;
  height: 2px;
  background: var(--d-accent);
}

.commitments p {
  max-width: 34em;
  color: var(--d-muted);
}

@media (min-width: 720px) {
  .commitments {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .commitments .wide {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1040px) {
  .commitments {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .commitments .wide p {
    max-width: 52em;
  }
}

.band-note {
  margin-top: 30px;
  color: var(--d-muted);
  font-size: 0.95rem;
}

/* IV. Country by country */

.method {
  display: grid;
  column-gap: 44px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.method li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: start;
  column-gap: 18px;
  padding: 26px 0;
  border-top: 1px solid var(--rule-strong);
}

.method-num {
  grid-row: span 2;
  color: var(--brass);
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1;
}

.method h3 {
  margin-bottom: 6px;
}

.method p {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.5;
}

@media (min-width: 720px) {
  .method {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .method {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Who we are */

.about-grid {
  display: grid;
  gap: 20px 72px;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    align-items: start;
  }
}

.about-copy p {
  font-size: clamp(1.1rem, 1.04rem + 0.3vw, 1.24rem);
  line-height: 1.6;
}

.about-copy p + p {
  margin-top: 1.1rem;
  color: var(--muted);
}

/* FAQ */

.faq-grid {
  display: grid;
  gap: 36px 72px;
}

@media (min-width: 1040px) {
  .faq-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.85fr);
    align-items: start;
  }

  .faq-head {
    position: sticky;
    top: 110px;
  }
}

.faq-more {
  margin-top: 1.1rem;
  color: var(--muted);
}

.faq-list {
  border-top: 1px solid var(--rule-strong);
}

.faq-list details {
  border-bottom: 1px solid var(--rule-strong);
}

.faq-list summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 21px 0;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 0.36em;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 1.6px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.6px 14px no-repeat;
  color: var(--navy);
}

.faq-list details[open] summary::after {
  background: linear-gradient(currentColor, currentColor) center / 14px 1.6px no-repeat;
}

.faq-list summary:hover {
  color: var(--navy);
}

.faq-a {
  max-width: 44em;
  padding: 0 0 24px;
  color: var(--muted);
}

.faq-a p + p {
  margin-top: 0.8rem;
}

/* Call to action */

.cta {
  border-bottom: 0;
}

.cta-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
}

@media (min-width: 960px) {
  .cta-card {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  }
}

.cta-main,
.cta-side {
  padding: clamp(28px, 5vw, 60px);
}

.cta-main h2 {
  margin-bottom: 1rem;
}

.cta-text {
  max-width: 32em;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1.06rem, 1rem + 0.25vw, 1.16rem);
}

.small {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.cta-side {
  border-top: 1px solid var(--rule);
  background: var(--sheet);
}

@media (min-width: 960px) {
  .cta-side {
    border-top: 0;
    border-left: 1px solid var(--rule);
  }
}

.cta-side h3 {
  margin-bottom: 0.7rem;
  font-family: var(--serif);
  font-size: 1.55rem;
  letter-spacing: -0.01em;
}

.cta-side p {
  margin-bottom: 1.3rem;
  color: var(--muted);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-weight: 600;
  text-decoration: none;
}

.link-arrow:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .cta-main,
  .cta-side {
    padding: 30px 22px;
  }

  .btn-lg {
    padding-inline: 1rem;
    font-size: 0.98rem;
    white-space: normal;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 56px 36px;
  border-top: 1px solid var(--rule);
  background: var(--paper-2);
  font-size: 0.92rem;
}

.footer-top {
  display: grid;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--rule-strong);
}

@media (min-width: 900px) {
  .footer-top {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
  }
}

.footer-brand p {
  margin-top: 14px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.08rem;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 28px;
}

.footer-h {
  margin-bottom: 12px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-nav ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  color: var(--ink);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--navy);
  text-decoration: underline;
}

.footer-bottom {
  display: grid;
  gap: 10px;
  padding-top: 24px;
  color: var(--muted);
  font-size: 0.84rem;
}

@media (min-width: 900px) {
  .footer-bottom {
    grid-template-columns: 1fr auto;
  }

  .footer-bottom .nocookies {
    grid-column: 1 / -1;
  }
}

.nocookies {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nocookies .icon {
  color: var(--green);
  stroke-width: 2;
}

/* ---------- Legal pages and 404 ---------- */

.legal {
  padding-block: clamp(48px, 7vw, 96px) var(--section);
}

.legal-wrap {
  max-width: 760px;
}

.legal h1 {
  margin-bottom: 0.9rem;
  font-size: clamp(2.4rem, 1.7rem + 2.6vw, 3.5rem);
}

.legal .meta {
  margin-bottom: 2.2rem;
  color: var(--muted);
}

.legal h2 {
  margin: 2.8rem 0 0.9rem;
  font-size: clamp(1.45rem, 1.3rem + 0.6vw, 1.75rem);
  scroll-margin-top: 100px;
}

.legal p,
.legal li {
  color: var(--body-2);
}

.legal p + p {
  margin-top: 0.9rem;
}

.legal ul,
.legal ol {
  margin: 0.9rem 0 0;
  padding-left: 1.25rem;
}

.legal li + li {
  margin-top: 0.45rem;
}

.legal ul + p,
.legal ol + p {
  margin-top: 1rem;
}

.draft-note {
  margin-bottom: 2.2rem;
  padding: 14px 18px;
  border: 1px solid #E0D0B1;
  border-radius: 8px;
  background: #F6EFE2;
  color: #5C4520;
  font-size: 0.92rem;
}

.not-found {
  padding-block: clamp(80px, 14vw, 180px);
  text-align: center;
}

.not-found h1 {
  margin-bottom: 1rem;
}

.eyebrow-center {
  justify-content: center;
}

.not-found p {
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 1.15rem;
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
