:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f8faff;
  --ink: #0f1f35;
  --muted: #64748b;
  --line: #dfe6f0;
  --line-soft: #edf1f7;
  --navy: #0b2447;
  --navy-2: #123b72;
  --blue: #2563eb;
  --blue-2: #1d4ed8;
  --blue-soft: #edf4ff;
  --cyan: #0891b2;
  --ok: #087a55;
  --ok-soft: #eaf8f2;
  --warn: #b45309;
  --warn-soft: #fff7e8;
  --danger: #b42318;
  --danger-soft: #fff1f1;
  --shadow: 0 14px 38px rgba(15, 31, 53, 0.07);
  --shadow-lg: 0 26px 70px rgba(11, 36, 71, 0.15);
  --radius: 18px;
  --radius-lg: 26px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  display: block;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 3px;
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.content-narrow,
.narrow-container {
  width: min(100%, 900px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 14px;
  z-index: 1000;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 9px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.16s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(223, 230, 240, 0.92);
  background: rgba(245, 247, 251, 0.96);
  backdrop-filter: blur(16px);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}

.brand img {
  width: 152px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
}

.nav-links a {
  padding: 9px 10px;
  border-radius: 9px;
  color: #506176;
  font-size: 13px;
  font-weight: 680;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: #fff;
  color: var(--blue);
}

.nav-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.nav-mobile-download {
  display: none !important;
}

.menu-toggle {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.18);
}

.button-primary:hover {
  background: var(--blue-2);
}

.button-secondary {
  border-color: #cfd9e7;
  background: #fff;
  color: var(--ink);
}

.button-secondary:hover {
  border-color: #b8c7db;
  color: var(--blue);
}

.button-light {
  background: #fff;
  color: var(--navy);
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.button-lg {
  min-height: 48px;
  padding: 12px 18px;
}

.btn-icon {
  width: 17px;
  height: 17px;
}

/* Typography and shared sections */
.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  padding: 7px 10px;
  border: 1px solid #ccdcfb;
  border-radius: 999px;
  background: var(--blue-soft);
}

.kicker-light {
  color: #8ec3ff;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.section {
  padding: 76px 0;
}

.section-topless {
  padding-top: 32px;
}

.section-soft {
  border-block: 1px solid var(--line-soft);
  background: #fff;
}

.section-head {
  max-width: 780px;
  margin-bottom: 34px;
}

.section h2,
.legal-card h2,
.content-main h2,
.doc-content h2 {
  margin: 9px 0 12px;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 760;
}

.light-link {
  color: #7dd3fc;
}

/* Home hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 60px;
  background:
    radial-gradient(circle at 86% 8%, rgba(37, 99, 235, 0.14), transparent 30%),
    radial-gradient(circle at 63% 0%, rgba(8, 145, 178, 0.07), transparent 23%),
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 52px;
  align-items: center;
}

.hero h1,
.page-hero h1,
.donate-hero h1 {
  margin: 18px 0;
  color: var(--ink);
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.gradient-text,
.donate-hero h1 span {
  background: linear-gradient(100deg, #123b72 5%, #2563eb 56%, #0891b2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 25px;
  color: #53677f;
  font-size: 12px;
  font-weight: 670;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
}

.trust-item svg {
  width: 17px;
  height: 17px;
  color: var(--ok);
}

.hero-shot {
  min-width: 0;
  padding: 14px;
  border-radius: 24px;
  background: linear-gradient(145deg, var(--navy), #12386a);
  box-shadow: var(--shadow-lg);
}

.hero-shot-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: #fff;
}

.hero-shot-main img {
  width: 100%;
}

.hero-shot-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 4px 2px;
  color: #cbd8e9;
}

.hero-shot-meta strong {
  color: #fff;
  font-size: 13px;
}

.hero-shot-meta span {
  color: #aebfd2;
  font-size: 11px;
  text-align: right;
}

.compat-strip {
  border-block: 1px solid var(--line);
  background: #fff;
}

.compat-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 60px;
  color: #5d6f84;
  font-size: 12px;
  font-weight: 730;
}

.compat-inner i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #a9b7c7;
}

/* Cards and grids */
.features,
.features-3x3,
.ui-grid,
.intent-grid,
.law-summary,
.fact-grid,
.compare-grid,
.field-grid,
.principle-grid,
.project-facts,
.law-grid,
.source-cards,
.legal-link-grid {
  display: grid;
  gap: 16px;
}

.features,
.features-3x3,
.ui-grid,
.intent-grid,
.law-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 26px 0 34px;
}

.compare-grid,
.field-grid,
.principle-grid,
.project-facts,
.law-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.source-cards,
.legal-link-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature,
.ui-card,
.intent-card,
.compare-card,
.principle,
.law-card,
.source-card,
.aside-card,
.support-card,
.legal-aside,
.download-card,
.legal-card,
.brand-logo-card,
.palette,
.project-facts > div,
.fact-grid > div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.feature,
.ui-card,
.intent-card,
.compare-card,
.principle,
.law-card,
.source-card,
.aside-card,
.support-card {
  padding: 24px;
}

.feature h3,
.ui-card h3,
.intent-card h3,
.compare-card h3,
.principle h3,
.law-card h3,
.source-card h3,
.aside-card h3 {
  margin: 12px 0 7px;
  font-size: 18px;
  line-height: 1.25;
}

.feature p,
.ui-card p,
.intent-card p,
.compare-card p,
.principle p,
.law-card p,
.source-card p,
.aside-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.icon-box,
.security-mark,
.support-icon,
.donate-symbol {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--blue-soft);
  color: var(--blue);
}

.icon-box svg,
.security-mark svg,
.support-icon svg,
.donate-symbol svg {
  width: 23px;
  height: 23px;
}

.ui-number,
.compare-label,
.date-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 9px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 10px;
  font-weight: 820;
}

.fact-grid > div,
.project-facts > div {
  padding: 18px 20px;
}

.fact-grid span,
.project-facts span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fact-grid strong,
.project-facts strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 20px;
}

/* Split layouts */
.split,
.seo-split,
.project-grid,
.donate-principles,
.logo-text-grid,
.feature-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  align-items: center;
}

.split-wide {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.dark-panel {
  padding: 34px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 86% 16%, rgba(61, 141, 255, 0.26), transparent 31%),
    linear-gradient(145deg, var(--navy), #12386a);
  color: #fff;
  box-shadow: 0 20px 46px rgba(11, 36, 71, 0.18);
}

.dark-panel h2 {
  margin: 8px 0 12px;
  color: #fff;
  font-size: clamp(30px, 4vw, 45px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.dark-panel p {
  color: #cbd8e9;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.mini-stat {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.mini-stat span {
  display: block;
  color: #9fb4ce;
  font-size: 10px;
  text-transform: uppercase;
}

.mini-stat strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 20px;
}

/* Steps and checklists */
.steps,
.check-list,
.faq-stack,
.principles {
  display: grid;
  gap: 12px;
}

.step {
  display: flex;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.step-num {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11px;
  font-weight: 820;
}

.step h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.check-list {
  margin-top: 22px;
}

.check-list > div,
.principles > div {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #506176;
}

.check-list svg,
.principles svg {
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  margin-top: 2px;
  color: var(--ok);
}

.check-list strong {
  color: var(--ink);
}

.check-list.compact {
  gap: 9px;
  margin-top: 16px;
}

/* Public table */
.price-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line-soft);
}

.table-toolbar strong,
.table-toolbar small {
  display: block;
}

.table-toolbar small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.searchbox {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(100%, 340px);
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f9fbfd;
  color: #718096;
}

.searchbox svg {
  width: 18px;
  height: 18px;
}

.searchbox span {
  font-size: 13px;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.public-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.public-table th,
.public-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  font-size: 13px;
}

.public-table th {
  background: #f7f9fc;
  color: #66768a;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.public-table tbody tr:last-child td {
  border-bottom: 0;
}

.public-table tbody tr:hover td {
  background: #fbfcff;
}

.price {
  font-weight: 800;
}

.anchor-price {
  color: var(--muted);
}

.badge {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.badge-ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.badge-blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.badge-warn {
  background: var(--warn-soft);
  color: var(--warn);
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.faq-grid details,
.faq-stack details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.faq-grid details {
  padding: 0 20px;
}

.faq-stack details {
  padding: 0 18px;
}

.faq-grid summary,
.faq-stack summary {
  cursor: pointer;
  padding: 17px 0;
  color: var(--ink);
  font-weight: 760;
}

.faq-grid p,
.faq-stack p {
  margin: -2px 0 17px;
  color: var(--muted);
  font-size: 14px;
}

/* CTA */
.donate-band {
  padding: 54px 0;
}

.donate-band-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 28px 30px;
  border: 1px solid #ccdafa;
  border-radius: 22px;
  background: linear-gradient(145deg, #fff, #f6f9ff);
  box-shadow: var(--shadow);
}

.donate-symbol {
  width: 58px;
  height: 58px;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22);
}

.donate-band h2 {
  margin: 2px 0 5px;
  font-size: 29px;
}

.donate-band p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.final-cta {
  padding-top: 36px;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 38px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 85% 10%, rgba(45, 231, 223, 0.15), transparent 28%),
    linear-gradient(145deg, #0c2d5a, #174f93);
  color: #fff;
  box-shadow: 0 20px 50px rgba(11, 36, 71, 0.18);
}

.cta h2 {
  margin: 6px 0 8px;
  color: #fff;
}

.cta p {
  max-width: 690px;
  margin: 0;
  color: #cbd8e9;
}

/* Page heroes */
.page-hero {
  padding: 60px 0 44px;
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(circle at 86% 0%, rgba(37, 99, 235, 0.1), transparent 29%),
    linear-gradient(180deg, #fbfdff, var(--bg));
}

.page-hero h1 {
  max-width: 930px;
  margin-top: 16px;
  font-size: clamp(40px, 5.5vw, 64px);
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 12px;
}

.breadcrumbs a {
  color: var(--blue);
}

/* SEO/article layouts */
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 34px;
  align-items: start;
}

.content-main {
  min-width: 0;
}

.content-main > h2 {
  margin-top: 44px;
  font-size: clamp(28px, 3vw, 38px);
}

.content-main > h2:first-of-type {
  margin-top: 8px;
}

.content-main h3 {
  margin: 28px 0 8px;
  font-size: 21px;
}

.content-main p,
.content-main li {
  color: #506176;
}

.content-main a:not(.button) {
  color: var(--blue);
  font-weight: 680;
}

.content-main ul,
.content-main ol {
  padding-left: 1.3rem;
}

.content-aside {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 96px;
}

.aside-card a {
  display: block;
  margin-top: 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 30px 0;
  padding: 20px;
  border: 1px solid #cfe0fb;
  border-radius: 15px;
  background: #f8fbff;
}

.inline-cta strong,
.inline-cta span {
  display: block;
}

.inline-cta span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

/* Documentation */
.doc-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.doc-nav {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow);
}

.doc-nav strong {
  padding: 5px 9px 10px;
  color: var(--ink);
  font-size: 13px;
}

.doc-nav a {
  padding: 8px 9px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.doc-nav a:hover {
  background: var(--blue-soft);
  color: var(--blue);
}

.doc-content {
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.doc-content > h2 {
  margin-top: 42px;
  font-size: 30px;
}

.doc-content > h2:first-of-type {
  margin-top: 0;
}

.doc-content h3 {
  margin: 26px 0 8px;
  font-size: 19px;
}

.doc-content p,
.doc-content li {
  color: #506176;
}

.doc-intro {
  margin-bottom: 26px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.info-grid > div {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f9fbfd;
}

.info-grid span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.info-grid strong {
  display: block;
  margin-top: 4px;
}

.code-block {
  overflow-x: auto;
  margin: 18px 0;
  padding: 18px;
  border-radius: 14px;
  background: #071f37;
  color: #d7e8f6;
  font: 13px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre;
}

.notice {
  padding: 16px 18px;
  border: 1px solid #cfe0fb;
  border-radius: 13px;
  background: #f8fbff;
  color: #405a76;
}

.doc-end-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

/* Legal */
.legal-hero {
  padding-bottom: 36px;
}

.legal-updated {
  display: inline-flex;
  margin-top: 18px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.legal-layout,
.legal-layout-v2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.legal-card,
.legal-document {
  padding: 32px;
}

.legal-section {
  margin: 0 0 28px;
  padding: 0 0 28px;
  border-bottom: 1px solid var(--line-soft);
}

.legal-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.legal-section h2 {
  margin: 0 0 10px;
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.legal-section h3 {
  margin: 22px 0 8px;
  font-size: 18px;
}

.legal-section p,
.legal-section li,
.legal-card p,
.legal-card li {
  color: #506176;
}

.legal-section a,
.legal-card a:not(.button) {
  color: var(--blue);
  font-weight: 700;
}

.legal-section code {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f9fc;
  font-size: 0.9em;
}

.legal-aside,
.privacy-aside {
  position: sticky;
  top: 96px;
}

.legal-aside > strong {
  display: block;
  margin-bottom: 12px;
  font-size: 16px;
}

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

.legal-aside li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
}

.legal-aside li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

.legal-link-grid a {
  display: block;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f9fbfd;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.legal-link-grid a:hover {
  transform: translateY(-1px);
  border-color: #b9cceb;
}

.legal-link-grid strong,
.legal-link-grid span {
  display: block;
}

.legal-link-grid span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

/* Law page */
.law-alert {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border: 1px solid #cfe0fb;
  border-radius: 15px;
  background: #f8fbff;
}

.law-alert svg {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  color: var(--blue);
}

.law-alert p {
  margin: 2px 0 0;
  color: var(--muted);
}

.timeline {
  display: grid;
  margin-top: 28px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 26px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.timeline-item:last-child {
  border-bottom: 1px solid var(--line);
}

.timeline-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
}

.timeline-item.active .timeline-date {
  background: var(--blue);
  color: #fff;
}

.timeline-item h2 {
  margin: 0 0 6px;
  font-size: 23px;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
}

.source-card span {
  color: var(--blue);
  font-size: 10px;
  font-weight: 830;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.source-card strong {
  display: block;
  margin: 9px 0 6px;
}

.source-card em {
  color: var(--blue);
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
}

/* Project and branding */
.project-grid-media {
  align-items: start;
}

.project-story h2 {
  font-size: 36px;
}

.brand-showcase {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr 1fr;
  gap: 16px;
}

.brand-logo-card,
.palette {
  padding: 22px;
}

.brand-logo-card img {
  width: 130px;
  margin-bottom: 20px;
}

.brand-logo-card.horizontal img {
  width: 270px;
  margin-top: 18px;
}

.brand-logo-card strong,
.brand-logo-card span {
  display: block;
}

.brand-logo-card span {
  color: var(--muted);
  font-size: 12px;
}

.palette {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.palette span {
  display: block;
  padding: 10px;
  border-radius: 12px;
  background: #f8fafc;
}

.palette i {
  display: block;
  height: 38px;
  border: 1px solid rgba(15, 31, 53, 0.07);
  border-radius: 9px;
}

.swatch-navy i { background: #0b2447; }
.swatch-blue i { background: #2563eb; }
.swatch-cyan i { background: #0891b2; }
.swatch-bg i { background: #f5f7fb; }

.palette b,
.palette small {
  display: block;
}

.palette b {
  margin-top: 6px;
  font-size: 11px;
}

.palette small {
  color: var(--muted);
  font-size: 10px;
}

.project-shot-stack {
  display: grid;
  gap: 14px;
}

.screenshot-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.screenshot-card figcaption {
  padding: 16px 18px;
}

.screenshot-card figcaption strong,
.screenshot-card figcaption span {
  display: block;
}

.screenshot-card figcaption span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

/* Donate */
.donate-hero {
  padding: 70px 0;
  background:
    radial-gradient(circle at 80% 15%, rgba(45, 231, 223, 0.16), transparent 26%),
    radial-gradient(circle at 64% 86%, rgba(37, 99, 235, 0.2), transparent 30%),
    linear-gradient(145deg, #061e38, #0b3b70);
  color: #fff;
}

.donate-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}

.donate-hero .eyebrow,
.donate-eyebrow {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #7dd3fc;
}

.donate-hero h1 {
  color: #fff;
}

.donate-hero h1 span {
  background: linear-gradient(100deg, #fff 5%, #7dd3fc 55%, #2de7df 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.donate-hero p {
  max-width: 680px;
  color: #c7d8e8;
  font-size: 17px;
}

.donate-fine {
  margin-top: 15px !important;
  color: #8fa9c0 !important;
  font-size: 11px !important;
}

.donate-visual {
  display: grid;
  place-items: center;
  gap: 16px;
}

.donate-heart {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 300px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 62px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 26px 60px rgba(0, 17, 35, 0.3);
}

.donate-heart img {
  width: 190px;
}

.donate-heart span {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: #fff;
  color: var(--blue);
}

.donate-heart span svg {
  width: 30px;
  height: 30px;
}

.donate-card {
  width: min(100%, 360px);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 15px;
  background: rgba(6, 30, 56, 0.8);
}

.donate-card strong {
  display: block;
  color: #fff;
}

.donate-card p {
  margin: 5px 0 0;
  color: #afc4d7;
  font-size: 12px;
}

.support-card-primary {
  border-color: #cddcf5;
  background: linear-gradient(145deg, #fff, #f4f8ff);
}

/* Download and newsletter */
.download-hero {
  padding-bottom: 38px;
}

.download-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
  max-width: 1040px;
  margin-inline: auto;
}

.download-card {
  padding: 30px;
}

.download-card h2 {
  margin: 8px 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.download-aside {
  position: sticky;
  top: 96px;
}

.security-panel {
  padding: 26px;
  border: 1px solid #d6e3f4;
  border-radius: 20px;
  background: linear-gradient(145deg, #fff, #f5f9ff);
  box-shadow: var(--shadow);
}

.security-panel .security-mark {
  margin-bottom: 16px;
  background: linear-gradient(145deg, #0c2d5a, #174f93);
  color: #fff;
}

.security-panel h3 {
  margin: 6px 0 8px;
  font-size: 25px;
  line-height: 1.15;
}

.newsletter-form {
  display: grid;
  gap: 17px;
  margin-top: 24px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field > span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.form-field input[type="email"],
.form-field input[type="text"] {
  width: 100%;
  min-height: 50px;
  padding: 11px 14px;
  border: 1px solid #cfd9e7;
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
}

.form-field input:focus {
  border-color: #9bbaf4;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
  outline: none;
}

.consent-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: #506176;
  font-size: 13px;
}

.consent-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--blue);
}

.form-submit {
  width: fit-content;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.form-note a {
  color: var(--blue);
  font-weight: 700;
}

.form-alert {
  margin-top: 18px;
  padding: 13px 15px;
  border-radius: 11px;
  font-size: 13px;
}

.form-alert-error {
  border: 1px solid #f0c2c2;
  background: var(--danger-soft);
  color: #8f1f1f;
}

.form-alert-success {
  border: 1px solid #bde1cf;
  background: var(--ok-soft);
  color: var(--ok);
}

.form-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.download-success-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding: 19px;
  border: 1px solid #cfe0fb;
  border-radius: 15px;
  background: #f7faff;
}

.download-success-box span,
.download-success-box strong {
  display: block;
}

.download-success-box span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.download-success-box strong {
  margin-top: 4px;
  font-size: 22px;
}

/* Footer */
.site-footer {
  margin-top: 0;
  padding: 54px 0 24px;
  background: #071d34;
  color: #d7e4f2;
}

.footer-grid,
.footer-grid-v2 {
  display: grid;
  grid-template-columns: minmax(260px, 1.45fr) repeat(3, minmax(150px, 0.75fr));
  gap: 34px;
  align-items: start;
}

.footer-brand img {
  width: 150px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  max-width: 380px;
  margin: 17px 0 10px;
  color: #aebfd2;
  font-size: 13px;
}

.footer-domain {
  color: #7dd3fc;
  font-size: 12px;
  font-weight: 760;
}

.footer-title {
  margin-bottom: 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: #aebfd2;
  font-size: 12.5px;
  line-height: 1.45;
}

.footer-links a:hover {
  color: #fff;
}

.footer-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 30px;
  padding: 17px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #9fb4ce;
  font-size: 12px;
}

.footer-contact strong {
  color: #fff;
}

.footer-contact a {
  color: #7dd3fc;
  font-weight: 760;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  color: #8198ae;
  font-size: 11px;
}

/* Responsive */
@media (max-width: 1120px) {
  .nav-links a {
    padding-inline: 7px;
    font-size: 12px;
  }

  .hero-grid {
    gap: 36px;
  }

  .footer-grid,
  .footer-grid-v2 {
    grid-template-columns: 1.25fr repeat(2, minmax(150px, 0.75fr));
  }

  .footer-grid .footer-col:last-child,
  .footer-grid-v2 .footer-col:last-child {
    grid-column: 2 / 4;
  }
}

@media (max-width: 980px) {
  .header-download {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 120;
    display: none;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open {
    display: grid;
  }

  .nav-links a {
    width: 100%;
    padding: 11px 12px;
    font-size: 13px;
  }

  .nav-mobile-download {
    display: block !important;
    margin-top: 4px;
    background: var(--blue-soft) !important;
    color: var(--blue) !important;
    font-weight: 800 !important;
  }

  .hero-grid,
  .donate-hero-grid,
  .split,
  .seo-split,
  .project-grid,
  .donate-principles,
  .logo-text-grid,
  .feature-row,
  .content-grid,
  .doc-layout,
  .legal-layout,
  .legal-layout-v2,
  .download-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy-wrap {
    max-width: 760px;
  }

  .hero-shot {
    max-width: 820px;
  }

  .content-aside,
  .doc-nav,
  .legal-aside,
  .privacy-aside,
  .download-aside {
    position: static;
  }

  .doc-nav {
    display: flex;
    overflow-x: auto;
    gap: 4px;
  }

  .doc-nav strong {
    display: none;
  }

  .doc-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .features,
  .features-3x3,
  .ui-grid,
  .intent-grid,
  .law-summary,
  .source-cards,
  .legal-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .palette {
    grid-column: 1 / -1;
  }

  .footer-grid,
  .footer-grid-v2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-grid .footer-col:last-child,
  .footer-grid-v2 .footer-col:last-child {
    grid-column: auto;
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 78px;
  }

  .container {
    width: min(calc(100% - 24px), var(--max));
  }

  .nav {
    min-height: 68px;
  }

  .brand img {
    width: 132px;
  }

  .hero,
  .page-hero,
  .donate-hero {
    padding: 44px 0 36px;
  }

  .hero h1,
  .page-hero h1,
  .donate-hero h1 {
    font-size: clamp(38px, 12vw, 48px);
  }

  .hero-copy,
  .page-hero p,
  .donate-hero p,
  .section-head p,
  .lead {
    font-size: 15.5px;
  }

  .hero-actions .button,
  .page-actions .button {
    width: 100%;
  }

  .hero-shot {
    padding: 8px;
    border-radius: 18px;
  }

  .hero-shot-meta {
    display: block;
    padding: 10px 2px 2px;
  }

  .hero-shot-meta span {
    margin-top: 2px;
    text-align: left;
  }

  .compat-inner {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
  }

  .compat-inner i {
    flex: 0 0 4px;
  }

  .section {
    padding: 54px 0;
  }

  .section-topless {
    padding-top: 24px;
  }

  .section h2,
  .legal-card h2,
  .content-main h2,
  .doc-content h2 {
    font-size: 31px;
  }

  .features,
  .features-3x3,
  .ui-grid,
  .intent-grid,
  .law-summary,
  .fact-grid,
  .compare-grid,
  .field-grid,
  .principle-grid,
  .project-facts,
  .law-grid,
  .source-cards,
  .legal-link-grid,
  .faq-grid,
  .brand-showcase,
  .palette,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .palette {
    grid-column: auto;
  }

  .mini-stats {
    grid-template-columns: 1fr;
  }

  .table-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .searchbox {
    width: 100%;
  }

  .inline-cta,
  .cta,
  .download-success-box,
  .footer-contact,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .donate-band-inner {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .donate-visual {
    padding-top: 10px;
  }

  .donate-heart {
    width: 220px;
    border-radius: 48px;
  }

  .donate-heart img {
    width: 150px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .timeline-date {
    justify-self: start;
  }

  .doc-content,
  .legal-card,
  .legal-document,
  .download-card {
    padding: 21px;
  }

  .form-submit,
  .download-success-box .button {
    width: 100%;
  }

  .footer-grid,
  .footer-grid-v2 {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-contact {
    gap: 6px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Menu icon is pure CSS so navigation does not depend on the SVG sprite. */
.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.menu-icon {
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-icon::before {
  top: -6px;
}

.menu-icon::after {
  top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-icon {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Explicit page and component hooks used by content templates. */
.intent-section,
.seo-hero,
.law-hero,
.project-hero {
  position: relative;
}

.law-summary-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.law-summary-card.emphasis {
  border-color: #bfd1f4;
  background: linear-gradient(145deg, #fff, #f3f7ff);
}

.law-summary-card h3 {
  margin: 13px 0 7px;
  font-size: 18px;
  line-height: 1.25;
}

.law-summary-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.product-shot {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.product-shot img {
  width: 100%;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.screenshot-card-large,
.screenshot-card-banner {
  min-width: 0;
}

.swatch {
  min-width: 0;
}

/* Breadcrumbs and release integrity — v6 */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: #718096;
  font-size: 12px;
  font-weight: 700;
}

.breadcrumbs a {
  color: var(--blue);
}

.breadcrumbs a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumbs > span:last-child {
  color: #506176;
}

.release-integrity {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.release-integrity span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.release-integrity code {
  overflow-wrap: anywhere;
  color: #30465d;
  font: 11px/1.55 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

@media (max-width: 680px) {
  .breadcrumbs {
    margin-bottom: 14px;
  }
}
