/* =========================================================
   Shield Labs — style.css
   Dark by design. No third-party requests: fonts are self-hosted.

   Contrast budget against --ink and --panel (both verified AA):
     --silver     ~15:1   body and headings
     --steel      ~6.7:1  secondary text
     --glow       ~6.7:1  links and focus
     --steel-dim  ~3.1:1  BORDERS AND DIVIDERS ONLY — never text
   ========================================================= */

/* ---------- Fonts (self-hosted, latin subset) ---------- */

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-400.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/poppins-500.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins-600.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/poppins-700.woff2") format("woff2");
}

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

:root {
  --ink:       #040E1E;
  --ink-2:     #0B2652;
  --panel:     #000C34;
  --silver:    #E8F0FA;
  --steel:     #7E9BBF;
  --steel-dim: #4A6282;
  --glow:      #3E9BFF;
  --green:     #009C3B;
  --yellow:    #FFDF00;

  --line:      rgba(126, 155, 191, .16);
  --line-firm: rgba(126, 155, 191, .28);

  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 40px;
  --s-6: 56px;
  --s-7: 72px;

  --header-h: 68px;
  --radius: 16px;
  --t: 180ms ease-out;

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.7;
  background: var(--ink);
  color: var(--silver);
  padding-top: var(--header-h);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.125rem, 1.5rem + 3.1vw, 3.625rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

h2 { font-size: clamp(1.6rem, 1.25rem + 1.75vw, 2.375rem); }
h3 { font-size: clamp(1.125rem, 1.06rem + .32vw, 1.3125rem); letter-spacing: -0.01em; }

p { max-width: 66ch; }

a { color: var(--glow); text-underline-offset: 3px; }
a:hover { color: var(--silver); }

strong { font-weight: 600; color: var(--silver); }

::selection { background: var(--glow); color: var(--ink); }

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

[id] { scroll-margin-top: calc(var(--header-h) + var(--s-3)); }

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--s-3);
}

.section { padding-block: clamp(72px, 9vw, 128px); }
.section + .section { padding-top: 0; }
.section-tight { padding-block: clamp(40px, 5vw, 64px); }
.center { text-align: center; }

.section-alt {
  background: linear-gradient(180deg, rgba(11, 38, 82, 0) 0%, rgba(11, 38, 82, .35) 50%, rgba(11, 38, 82, 0) 100%);
}

.section-head { margin-bottom: clamp(var(--s-5), 5vw, var(--s-7)); }
.section-head > * + * { margin-top: var(--s-2); }
.section-head .lead { margin-top: var(--s-3); }

.eyebrow {
  display: block;
  font-size: .8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--steel);
}

.lead {
  font-size: clamp(1.0625rem, 1rem + .6vw, 1.3125rem);
  line-height: 1.6;
  color: var(--steel);
  max-width: 60ch;
}

/* Brazilian flag stripe — the only place --green and --yellow appear */
.filete {
  width: 96px;
  height: 3px;
  border: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--green), var(--yellow));
}

.mt-1 { margin-top: var(--s-1); }
.mt-2 { margin-top: var(--s-2); }
.mt-3 { margin-top: var(--s-3); }

.skip-link {
  position: fixed;
  top: -100px;
  left: var(--s-3);
  z-index: 100;
  padding: var(--s-2) var(--s-3);
  background: var(--silver);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 12px 12px;
  transition: top var(--t);
}

.skip-link:focus { top: 0; color: var(--ink); }


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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-1);
  padding: 15px 32px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t), color var(--t), border-color var(--t);
}

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

/* --steel-dim, not --line-firm: the border is the button's only boundary, so it needs
   the 3:1 that WCAG 1.4.11 requires of a UI component. */
.btn-secondary { border-color: var(--steel-dim); color: var(--silver); }
.btn-secondary:hover { border-color: var(--steel); color: var(--silver); }

.btn[aria-disabled="true"] { cursor: default; }


.arrow-link {
  display: inline-block;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--line-firm);
  padding-bottom: 2px;
  transition: border-color var(--t), color var(--t);
}

.arrow-link:hover { border-color: var(--glow); }

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(4, 14, 30, .85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(74, 98, 130, .22);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--silver);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

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

.brand-mark {
  width: 26px;
  height: 26px;
  flex: none;
  color: var(--silver);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  list-style: none;
}

/* padding-block keeps the target at or above the 24px WCAG 2.5.8 minimum */
.nav-links a {
  display: inline-block;
  padding-block: 6px;
  color: var(--steel);
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--t);
}

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

.nav-toggle { display: none; }

@media (max-width: 819px) {
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    background: transparent;
    border: 0;
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--silver);
    transition: transform var(--t), opacity var(--t);
  }

  body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* backdrop-filter turns the header into a containing block for its fixed
     descendants, which clipped this panel to the 69px header instead of letting it
     cover the viewport. Drop the filter while the panel is open so `inset: 0`
     resolves against the viewport again. */
  body.menu-open .site-header {
    background: transparent;
    border-bottom-color: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  /* The panel lives inside the header, so the brand and the close button need to
     sit above it to stay reachable. */
  body.menu-open .brand,
  body.menu-open .nav-toggle { position: relative; z-index: 2; }

  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding: var(--header-h) var(--s-3) var(--s-6);
    background: rgba(4, 14, 30, .97);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }

  body.menu-open .nav-links { display: flex; }
  body.menu-open { overflow: hidden; }

  .nav-links a {
    display: block;
    padding: var(--s-2) var(--s-4);
    font-size: 1.375rem;
    font-weight: 500;
    color: var(--silver);
  }
}

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

.hero {
  position: relative;
  padding-block: clamp(56px, 8vw, 104px) clamp(64px, 8vw, 112px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  left: 50%;
  width: min(900px, 130vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(11, 38, 82, .85) 0%, rgba(11, 38, 82, 0) 62%);
  pointer-events: none;
}

.hero .container { position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 300px);
  align-items: center;
  gap: clamp(var(--s-5), 6vw, 88px);
}


.hero-tagline {
  margin-top: var(--s-4);
  padding-left: var(--s-3);
  border-left: 2px solid var(--steel-dim);
  color: var(--steel);
  font-size: clamp(.9375rem, .9rem + .3vw, 1.0625rem);
  line-height: 1.6;
  max-width: 52ch;
}

.hero h1 { margin-bottom: var(--s-3); }
.hero .lead { max-width: 54ch; }

/* The company positioning statement is a full sentence, not a product claim —
   it needs a smaller size than a product headline to stay readable. */
.hero h1.statement {
  font-size: clamp(1.625rem, 1.25rem + 1.9vw, 2.625rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 20ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-5);
}

.hero-art { justify-self: center; }

.hero-art img {
  width: 100%;
  max-width: 280px;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, .5));
}

@media (max-width: 819px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 156px; }
}

/* ---------- Steps ---------- */

/* Explicit breakpoints, not auto-fit: with four items auto-fit lands on a lopsided 3+1
   at intermediate widths. These keep the rows balanced (4 / 2x2 / 1). */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4) var(--s-5);
  counter-reset: step;
  list-style: none;
}

@media (max-width: 1023px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 559px) {
  .steps { grid-template-columns: 1fr; }
}

.step { position: relative; padding-top: var(--s-4); }

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--steel);
}

.step h3 { margin-bottom: var(--s-1); }
.step p { color: var(--steel); font-size: .9875rem; }

/* ---------- Cards ---------- */





/* ---------- Privacy block ---------- */

.privacy {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(var(--s-4), 5vw, var(--s-7));
}

.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--s-4), 5vw, var(--s-6));
  align-items: start;
}

@media (max-width: 819px) {
  .privacy-grid { grid-template-columns: 1fr; }
}

.privacy h2 { margin-bottom: var(--s-3); }
.privacy .filete { margin-bottom: var(--s-3); }

.claims {
  list-style: none;
  display: grid;
  gap: var(--s-2);
}

.claims li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: var(--s-2);
  align-items: start;
  color: var(--steel);
  font-size: .9875rem;
  line-height: 1.55;
}

.claims svg {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--glow);
  flex: none;
}

.claims strong { display: block; color: var(--silver); font-weight: 600; }

/* ---------- Limits ---------- */

.limits,
.principles {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3) var(--s-4);
}

@media (max-width: 1023px) {
  .limits,
  .principles { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 559px) {
  .limits,
  .principles { grid-template-columns: 1fr; }
}

.limits li,
.principles li {
  padding: var(--s-3) 0 0;
  border-top: 1px solid var(--line-firm);
}

.limits h3,
.principles h3 {
  font-size: 1.0625rem;
  margin-bottom: var(--s-1);
}

.limits p,
.principles p { color: var(--steel); font-size: .9375rem; }

/* ---------- Product showcase ----------
   Built to repeat: a second Shield Labs product drops in as another .product
   block without touching the homepage layout. */

.product {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr;
  align-items: center;
  gap: clamp(var(--s-4), 5vw, var(--s-6));
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(var(--s-4), 5vw, var(--s-7));
}

.product + .product { margin-top: var(--s-3); }

@media (max-width: 819px) {
  .product { grid-template-columns: 1fr; justify-items: start; }
}

.product-icon {
  width: 100%;
  max-width: 200px;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, .45));
}

@media (max-width: 819px) {
  .product-icon { max-width: 120px; }
}

.product-name {
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.25rem);
  margin-bottom: var(--s-2);
}

.product-claim {
  font-size: clamp(1.0625rem, 1rem + .5vw, 1.25rem);
  line-height: 1.5;
  color: var(--silver);
  font-weight: 500;
  margin-bottom: var(--s-3);
  max-width: 34ch;
}

.product-body > p { color: var(--steel); font-size: .9875rem; }
.product-body > p + p { margin-top: var(--s-2); }
.product-body .btn { margin-top: var(--s-4); }

/* ---------- Plans ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-3);
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(var(--s-3), 3vw, var(--s-4));
}

.plan-featured { border-color: var(--line-firm); }

/* No opacity here: it would composite the card's body text down to roughly 3:1.
   The "Em breve" tag carries the state instead. */
.plan-soon { background: transparent; }

.plan-name {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  margin-bottom: var(--s-1);
}

.plan-name h3 { margin: 0; }

.tag {
  padding: 3px 10px;
  border: 1px solid var(--line-firm);
  border-radius: 999px;
  font-size: .6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--steel);
  white-space: nowrap;
}

.plan > p { color: var(--steel); font-size: .9375rem; margin-bottom: var(--s-3); }

.plan ul {
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: .9375rem;
  color: var(--steel);
}

.plan li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  align-items: start;
  line-height: 1.5;
}

.plan li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 9px;
  margin-left: 5px;
  border-radius: 50%;
  background: var(--glow);
}

.plans-note {
  margin-top: var(--s-4);
  color: var(--steel);
  font-size: .9375rem;
}

/* ---------- Running prose ---------- */

.prose p { color: var(--steel); }
.prose p + p { margin-top: var(--s-2); }

/* ---------- Screenshots ---------- */

.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(var(--s-3), 4vw, var(--s-5));
  justify-items: center;
}

@media (max-width: 639px) {
  .shots { grid-template-columns: 1fr; }
}

.phone {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 9 / 16;
  display: grid;
  place-items: center;
  background: var(--panel);
  border: 8px solid var(--steel-dim);
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(0, 0, 0, .42);
}

.phone img { width: 100%; height: 100%; object-fit: cover; }

.phone > span {
  color: var(--steel);
  font-size: .8125rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* ---------- Launch / download ---------- */

.launch {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  align-items: center;
  gap: clamp(var(--s-4), 5vw, var(--s-6));
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(var(--s-4), 5vw, var(--s-7));
}

@media (max-width: 819px) {
  .launch { grid-template-columns: 1fr; justify-items: start; }
}

.launch-icon { width: 100%; max-width: 160px; }
.launch h2 { margin-bottom: var(--s-2); }
.launch p { color: var(--steel); font-size: .9875rem; }

/* Placeholder for the real Play badge. Deliberately not a link: there is no
   store URL yet, and a dead link would be worse than an honest disabled state. */
.store-badge {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  margin-top: var(--s-3);
  padding: 10px var(--s-3);
  min-height: 56px;
  border: 1px solid var(--steel-dim);
  border-radius: 12px;
  color: var(--steel);
  opacity: .75;
  cursor: default;
}

.store-badge-sub { font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; }
.store-badge-name { font-size: 1.125rem; font-weight: 600; color: var(--silver); line-height: 1.2; }

.ownership {
  margin-inline: auto;
  color: var(--steel);
  font-size: .9375rem;
}

/* ---------- Contact ---------- */

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-4);
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(var(--s-4), 4vw, var(--s-6));
}

.contact-email {
  display: inline-block;
  margin-top: var(--s-1);
  font-size: clamp(1.125rem, 1rem + 1.1vw, 1.625rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--silver);
  text-decoration: none;
  word-break: break-word;
  transition: color var(--t);
}

.contact-email:hover { color: var(--glow); }
.contact p { color: var(--steel); font-size: .9375rem; }

/* ---------- FAQ ---------- */

.faq { max-width: 68ch; }
.faq details { border-bottom: 1px solid var(--line-firm); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-2) 0;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  /* The plain declaration is the fallback: browsers without alt-text support would
     drop the whole rule and draw no indicator at all. */
  content: "+";
  content: "+" / "";
  flex: none;
  color: var(--glow);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  transition: transform var(--t);
}

.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: var(--s-2); color: var(--steel); font-size: .9375rem; }

/* ---------- Long-form documents ---------- */

.doc { max-width: 68ch; }

.doc-head { margin-bottom: var(--s-6); }
.doc-head h1 { font-size: clamp(1.875rem, 1.4rem + 2.2vw, 2.875rem); margin-bottom: var(--s-3); }
.doc-head .filete { margin-bottom: var(--s-3); }

.doc-org {
  margin-bottom: var(--s-2);
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--silver);
}

.doc-dates {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1) var(--s-3);
  font-size: .875rem;
  color: var(--steel);
}

.toc {
  margin-bottom: var(--s-6);
  padding: var(--s-3) var(--s-4);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.toc h2 {
  font-size: .8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--steel);
  margin-bottom: var(--s-2);
}

.toc ol {
  display: grid;
  padding-left: var(--s-2);
  font-size: .9375rem;
}

.toc li { color: var(--steel); }

.toc a {
  display: inline-block;
  padding-block: 5px;
  color: var(--steel);
  text-decoration: none;
  transition: color var(--t);
}
.toc a:hover { color: var(--glow); }

.doc-section + .doc-section { margin-top: var(--s-6); }

.doc-section h2 {
  font-size: clamp(1.25rem, 1.1rem + .7vw, 1.5rem);
  margin-bottom: var(--s-2);
  padding-top: var(--s-2);
}

.doc-section h3 {
  font-size: 1.0625rem;
  margin: var(--s-4) 0 var(--s-1);
}

.doc-section p { color: var(--steel); }
.doc-section > * + * { margin-top: var(--s-2); }

.doc-list {
  display: grid;
  gap: 10px;
  padding-left: var(--s-3);
  color: var(--steel);
}

.doc-list li { padding-left: 4px; }
.doc-list li::marker { color: var(--steel); }

.doc-callout {
  padding: var(--s-3) var(--s-4);
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--glow);
  border-radius: 4px var(--radius) var(--radius) 4px;
}

.doc-callout > * + * { margin-top: var(--s-2); }
.doc-callout p { color: var(--silver); }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.doc-table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: .9375rem;
}

.doc-table th,
.doc-table td {
  padding: 12px var(--s-2);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.doc-table thead th {
  background: var(--panel);
  color: var(--silver);
  font-weight: 600;
  white-space: nowrap;
}

.doc-table tbody td { color: var(--steel); }
.doc-table tbody tr:last-child td { border-bottom: 0; }

/* A link that is a cell's only content is not "inline in a sentence", so it needs
   its own height to clear the 24px WCAG 2.5.8 minimum. */
.doc-table td a { display: inline-block; padding-block: 3px; }

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

.site-footer {
  margin-top: clamp(var(--s-6), 8vw, 112px);
  border-top: 1px solid var(--line);
  padding-block: var(--s-6) var(--s-5);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: var(--s-5);
  align-items: start;
}

@media (max-width: 639px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-about { color: var(--steel); font-size: .875rem; }
.footer-about .brand { margin-bottom: var(--s-2); }
.footer-about p { max-width: 42ch; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--s-4);
  list-style: none;
}

/* padding-block keeps the target at or above the 24px WCAG 2.5.8 minimum */
.footer-nav a {
  display: inline-block;
  padding-block: 6px;
  color: var(--steel);
  font-size: .9375rem;
  text-decoration: none;
  transition: color var(--t);
}

.footer-nav a:hover { color: var(--silver); }

.footer-legal {
  margin-top: var(--s-5);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1) var(--s-3);
  justify-content: space-between;
  color: var(--steel);
  font-size: .8125rem;
}

.footer-legal a { color: var(--steel); }
.footer-legal a:hover { color: var(--silver); }

/* ---------- 404 ---------- */

.error-page {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--s-6) var(--s-3);
}

.error-page .filete { margin: var(--s-3) auto; }
.error-page p { margin: 0 auto var(--s-5); color: var(--steel); }
.error-page .brand-mark { width: 64px; height: 64px; margin: 0 auto var(--s-4); }

/* ---------- Reveal (the only animation) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 500ms ease-out, transform 500ms ease-out;
}

.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */

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

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal { opacity: 1; transform: none; }
}
