/* Galacia design system: tokens, type, base elements, header, footer and the
   components shared by every page (including the account portal).
   Concept: a glacier cross-section. Firn above, strata below, one Beacon accent.
   Shape rule: 6px radius for interactive and small elements, 10px for figures,
   video and panels. No pills, no drop shadows. */

/* Archivo (wdth 62-125, wght 100-900) and IBM Plex Mono, SIL Open Font License.
   Files and licences are copied from the pinned npm packages into /fonts/. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/fonts/archivo-latin-wdth-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;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  /* Palette: light (firn) */
  --bg: #f1f5f6; /* Firn */
  --surface: #fafcfc;
  --text: #0f2433; /* Crevasse */
  --muted: #5e6b70; /* Moraine: on --bg and --surface only */
  --line: #bfd9e2; /* Serac: rules and strata */
  --line-strong: #6f8188; /* form borders and 3:1 boundaries */
  --accent: #c94a1c; /* Beacon: primary action and the moving file only */
  --on-accent: #ffffff;
  --accent-hover: #b0400f;
  --stratum-1: #e3eef2;
  --stratum-2: #d5e6ec;
  --stratum-3: #c7dfe7;
  --stratum-4: #bfd9e2;
  --deep-text: #2e4757; /* text on strata */
  --focus: #0f2433;

  /* Type */
  --font-sans: "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono:
    "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --text-sm: 0.875rem;
  --text-base: 1.0625rem;
  --text-lg: 1.1875rem;
  --h1: clamp(2.125rem, 1.35rem + 3.1vw, 3.375rem);
  --h2: clamp(1.625rem, 1.25rem + 1.5vw, 2.25rem);
  --h3: 1.1875rem;
  --wide: 118%;

  /* Space and layout */
  --gutter: clamp(1rem, 0.4rem + 2.6vw, 2.5rem);
  --content: 72rem;
  --measure: 66ch;
  --section: clamp(3.5rem, 2.2rem + 5.4vw, 6.5rem);
  --radius: 6px;
  --radius-lg: 10px;
  --header-h: 4rem;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}
@media (min-width: 64rem) {
  :root {
    --text-base: 1.125rem;
  }
}
@media (prefers-color-scheme: dark) {
  :root {
    /* Palette: dark (polar night) */
    --bg: #0b1a25;
    --surface: #10222f;
    --text: #e6eef1;
    --muted: #93a4ab;
    --line: #23394a;
    --line-strong: #6c8592;
    --accent: #f06a33;
    --on-accent: #0b1a25;
    --accent-hover: #f5824f;
    --stratum-1: #122634;
    --stratum-2: #18303f;
    --stratum-3: #1d3546;
    --stratum-4: #23394a;
    --deep-text: #b4c4cb;
    --focus: #e6eef1;
  }
}

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-stretch: 100%;
  font-weight: 400;
  line-height: 1.55;
  font-kerning: normal;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 650;
  font-stretch: var(--wide);
  letter-spacing: -0.02em;
  line-height: 1.06;
  text-wrap: balance;
}
h1 {
  font-size: var(--h1);
}
h2 {
  font-size: var(--h2);
  font-weight: 620;
}
h3 {
  font-size: var(--h3);
  font-weight: 620;
  font-stretch: 108%;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
h1 em,
h2 em,
h3 em {
  font-style: normal;
}
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}
p,
dd,
.prose li {
  max-width: var(--measure);
  text-wrap: pretty;
}
strong,
b {
  font-weight: 620;
}
small,
.small {
  font-size: var(--text-sm);
  color: var(--muted);
}
code,
kbd,
samp,
.mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
  font-stretch: normal;
  letter-spacing: 0;
}
::selection {
  background: var(--stratum-4);
  color: var(--text);
}
a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  text-underline-offset: 0.2em;
}
a:hover {
  text-decoration-thickness: 2px;
  text-decoration-color: currentColor;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}
main:focus {
  outline: none;
}
[hidden] {
  display: none !important;
}
.sr-only,
.sr-note {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Page frame: every child of main sits in the content column; .full-bleed spans
   the viewport. */
main {
  display: grid;
  grid-template-columns:
    [full-start] minmax(var(--gutter), 1fr)
    [content-start] minmax(0, var(--content))
    [content-end] minmax(var(--gutter), 1fr)
    [full-end];
  padding-bottom: var(--section);
}
main > * {
  grid-column: content;
  min-width: 0;
}
main > .full-bleed {
  grid-column: full;
}

/* Skip link */
.skip-link {
  position: absolute;
  z-index: 30;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius);
  background: var(--text);
  color: var(--bg);
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: none;
}

/* Header: one row on desktop, a menu drawer below 960px. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.25rem);
  min-height: var(--header-h);
  padding-inline: max(var(--gutter), (100% - var(--content)) / 2);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  font-size: 1.25rem;
  font-weight: 680;
  font-stretch: 112%;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand img {
  width: 28px;
  height: 28px;
  margin-right: 0.55rem;
}
.brand-point {
  color: var(--muted);
}
#main-nav {
  display: flex;
  flex: 1;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.25rem);
  min-width: 0;
}
.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.8vw, 1.6rem);
}
.nav-actions {
  margin-left: auto;
}
#main-nav a:not(.button) {
  padding-block: 0.4rem;
  font-size: 0.97rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
#main-nav a:not(.button):hover,
#main-nav a[aria-current]:not(.button) {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.45em;
}
#main-nav a[aria-current]:not(.button) {
  text-decoration-color: var(--text);
}
.nav-demo {
  min-height: 2.5rem;
  padding: 0.45rem 1rem;
  font-size: 0.95rem;
}
.nav-toggle,
.motion-toggle {
  flex: none;
  min-height: 2.5rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 550;
  cursor: pointer;
}
.nav-toggle {
  padding: 0.4rem 0.9rem;
}
.motion-toggle {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  min-height: 2.25rem;
  padding: 0;
  border-color: var(--line);
}
.motion-toggle:hover {
  border-color: var(--line-strong);
}
.motion-toggle:disabled {
  opacity: 0.55;
  cursor: default;
}
.motion-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
/* Pause bars; a play triangle once motion is paused. */
.motion-icon {
  width: 10px;
  height: 12px;
  border-inline: 3px solid currentColor;
}
.motion-toggle[aria-pressed="true"] .motion-icon {
  width: 0;
  height: 0;
  border-block: 6px solid transparent;
  border-inline: 10px solid currentColor;
  border-inline-end-width: 0;
  margin-left: 3px;
}
@media (max-width: 960px) {
  .site-header {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .brand {
    margin-right: auto;
  }
  .motion-toggle {
    order: 2;
  }
  .nav-toggle {
    order: 3;
  }
  /* Without JavaScript the navigation stays in the page flow, fully expanded. */
  #main-nav {
    order: 4;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 0.75rem;
  }
  .nav-links,
  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
  }
  #main-nav a:not(.button) {
    padding-block: 0.7rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }
  .nav-demo {
    margin-top: 1rem;
    min-height: 3rem;
  }
  /* With JavaScript it becomes a drawer directly under the header bar. */
  .nav-ready #main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 0.25rem var(--gutter) 1.25rem;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
  }
}

/* At desktop widths the layout, not script timing, decides: the menu button is
   never shown and the navigation is never collapsed, even mid-resize. */
@media (min-width: 961px) {
  .nav-toggle {
    display: none !important;
  }
  #main-nav[hidden] {
    display: flex !important;
  }
}

/* Vault section navigation (second row on Vault pages only). */
.product-nav {
  display: flex;
  gap: 1.4rem;
  overflow-x: auto;
  padding: 0.7rem max(var(--gutter), (100% - var(--content)) / 2);
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
  font-size: 0.93rem;
}
.product-nav a {
  flex: none;
  padding-block: 0.25rem;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.product-nav a:hover,
.product-nav a[aria-current] {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.5em;
}

/* Breadcrumbs */
.breadcrumbs {
  padding-top: 1.5rem;
  font-size: var(--text-sm);
  color: var(--muted);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.55rem;
  padding: 0;
  list-style: none;
}
.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.55rem;
  color: var(--line-strong);
}
.breadcrumbs a {
  text-decoration-color: transparent;
}
.breadcrumbs a:hover {
  text-decoration-color: currentColor;
}

/* Buttons and links */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.35rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.15s,
    transform 0.15s var(--ease-out);
}
.button:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  text-decoration: none;
}
.button:active {
  transform: translateY(1px);
}
.button:focus-visible {
  outline-offset: 3px;
}
/* Secondary: text with a heavier underline. Used for every non-primary action. */
.text-link {
  font-weight: 600;
  text-decoration-thickness: 1.5px;
  text-decoration-color: var(--line-strong);
}
.text-link:hover {
  text-decoration-color: currentColor;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.6rem;
  margin-top: 1.75rem;
}

/* Page intro */
.page-intro {
  display: grid;
  gap: 1.1rem;
  padding-block: clamp(2rem, 1rem + 3vw, 3.5rem) clamp(2rem, 1rem + 3vw, 3rem);
}
.page-intro h1 {
  max-width: 22ch;
}
.lead {
  max-width: 58ch;
  font-size: clamp(1.125rem, 1.02rem + 0.4vw, 1.3rem);
  line-height: 1.5;
  color: var(--text);
}
.page-intro .actions {
  margin-top: 0.4rem;
}

/* Sections */
.section {
  padding-block: calc(var(--section) / 2) calc(var(--section) / 2);
}
.section + .section {
  border-top: 1px solid var(--line);
}
.section-heading {
  display: grid;
  gap: 0.8rem;
  margin-bottom: clamp(1.75rem, 1rem + 2vw, 2.75rem);
}
.section-heading p {
  color: var(--muted);
}
.section > h2:first-child {
  margin-bottom: 1rem;
}

/* Long-form prose */
.prose > * {
  max-width: 46rem;
}
.prose > * + * {
  margin-top: 1rem;
}
.prose h2 {
  margin-top: 2.75rem;
  font-size: clamp(1.4rem, 1.15rem + 0.9vw, 1.75rem);
}
.prose h3 {
  margin-top: 1.75rem;
}
.prose > h2:first-child,
.prose > header + * {
  margin-top: 0;
}
.prose ul,
.prose ol {
  display: grid;
  gap: 0.55rem;
  padding-left: 1.3rem;
}
.prose li::marker {
  color: var(--muted);
}
.prose .button {
  margin-top: 1.75rem;
}

/* Status labels: a real state, written out. */
.status-chip,
.status-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 550;
  line-height: 1.4;
  white-space: nowrap;
}
.status-chip i {
  display: none;
}

/* Small label kept for the account portal's existing markup. Sentence case. */
.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 550;
}

/* Notices */
.notice {
  display: grid;
  gap: 0.6rem;
  max-width: 50rem;
  margin-block: 2rem;
  padding: 1.25rem 1.4rem;
  border-left: 3px solid var(--line-strong);
  background: var(--surface);
}

/* In-page jump links */
.page-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  padding-block: 0.25rem 1rem;
  font-size: 0.95rem;
}
.page-jumps a {
  color: var(--muted);
}
.page-jumps a:hover {
  color: var(--text);
}

/* Disclosures (FAQ and checklists) */
.faq-list {
  border-top: 1px solid var(--line);
}
.faq-list details,
.v-faq details {
  border-bottom: 1px solid var(--line);
}
.faq-list summary,
.v-faq summary {
  position: relative;
  padding: 1.1rem 2.5rem 1.1rem 0;
  font-weight: 600;
  font-stretch: 104%;
  list-style: none;
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker,
.v-faq summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after,
.v-faq summary::after {
  content: "";
  position: absolute;
  top: 1.45rem;
  right: 0.35rem;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease-out);
}
.faq-list details[open] > summary::after,
.v-faq details[open] > summary::after {
  transform: translateY(0.25rem) rotate(-135deg);
}
.faq-list details > p,
.v-faq-body {
  padding-bottom: 1.25rem;
  color: var(--text);
}
.v-faq-body > * + * {
  margin-top: 0.8rem;
}

/* Closing call to action: a band on the first stratum tint. */
.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.5rem 3rem;
  margin-top: calc(var(--section) / 2);
  padding: clamp(1.75rem, 1rem + 3vw, 3rem);
  border-radius: var(--radius-lg);
  background: var(--stratum-1);
}
.cta-copy {
  display: grid;
  gap: 0.75rem;
}
.cta-copy p {
  color: var(--deep-text);
}
.cta-band .actions {
  margin-top: 0;
}
@media (max-width: 760px) {
  .cta-band {
    grid-template-columns: 1fr;
  }
}

/* Tables */
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}
caption {
  padding-bottom: 0.75rem;
  color: var(--muted);
  font-size: var(--text-sm);
  text-align: left;
}
th,
td {
  padding: 0.85rem 1rem 0.85rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
thead th {
  border-bottom-color: var(--line-strong);
  font-size: var(--text-sm);
  font-weight: 600;
}
tbody th {
  font-weight: 600;
}

/* Form controls */
label {
  font-weight: 550;
}
input:not([type="checkbox"], [type="radio"]),
select,
textarea {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}
textarea {
  min-height: 6rem;
  resize: vertical;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

/* Footer */
.site-footer {
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) 3fr;
  gap: 2.5rem 3rem;
  padding: clamp(2.5rem, 1.5rem + 3vw, 4rem)
    max(var(--gutter), (100% - var(--content)) / 2) 2.5rem;
  border-top: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.95rem;
}
.footer-intro {
  display: grid;
  align-content: start;
  gap: 0.75rem;
}
.footer-intro p {
  color: var(--muted);
}
.footer-intro .brand {
  font-size: 1.15rem;
}
.site-footer nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}
.footer-group {
  display: grid;
  align-content: start;
  gap: 0.55rem;
}
.footer-group h2 {
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
  font-stretch: 108%;
  letter-spacing: 0;
}
.footer-group a {
  width: fit-content;
  color: var(--muted);
  text-decoration-color: transparent;
}
.footer-group a:hover {
  color: var(--text);
  text-decoration-color: currentColor;
}
.footer-note {
  grid-column: 1 / -1;
  max-width: none;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--text-sm);
}
@media (max-width: 960px) {
  .site-footer {
    grid-template-columns: 1fr;
  }
  .site-footer nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Motion: the pause control and reduced motion stop every animation. */
html[data-motion="off"] *,
html[data-motion="off"] *::before,
html[data-motion="off"] *::after {
  animation: none !important;
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Print */
@media print {
  .site-header,
  .product-nav,
  .site-footer,
  .skip-link,
  .actions,
  .cta-band {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}
