/* Shared by the home page and the legal pages: tokens, base, buttons, the dark
   top nav and the dark footer. Page-specific rules stay with their page. */

/* Set by i18n.js, never by the markup: if that file fails to load nothing
   is hidden and the page still reads. */
html[data-i18n-pending] [data-i18n],
html[data-i18n-pending] [data-i18n-rich] { visibility: hidden; }

/* ========== TOKENS ==========
   The sticker's teal and mint, with the contrast turned up: near-black on
   white for reading, a darker teal ground for the dark bands, and white (not
   grey) for text on them. Every text pair below is 7:1 or better. */
:root {
  --deep:      #002A22;
  --deep-2:    #0B3F34;
  --teal:      #00604F;
  --teal-press:#004A3D;
  --mint:      #5ADBC0;
  --mint-lit:  #8CF5DE;
  --white:     #FFFFFF;
  --tint:      #E2F4EE;
  --ink:       #06100D;
  --ink-2:     #22302B;
  --line:      rgba(6, 16, 13, 0.2);
  --amber-ink: #6B4A00;

  --display: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* The paper note is somebody's handwriting, so it uses whatever hand the
     device has rather than a shipped face. */
  --hand: 'Bradley Hand', 'Segoe Print', 'Marker Felt', 'Chalkboard SE', 'Comic Sans MS', cursive;

  /* The lockup's tokens (logo.css) and the names lang-menu.css falls back to. */
  --logo-call: #006B5A;
  --logo-plate: #0C1614;
  --logo-mark: #006B5A;
  --logo-dot: #5ADBC0;
  --text: var(--ink);
  --text-dim: var(--ink-2);
  --surface: #FFFFFF;
  --border: var(--line);

  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* Anything on the deep ground swaps the lockup and the language menu to light. */
.on-dark {
  --logo-call: #FFFFFF;
  --logo-plate: var(--mint);
  --logo-mark: #FFFFFF;
  --text: #FFFFFF;
  --text-dim: rgba(255, 255, 255, 0.92);
  --surface: var(--deep-2);
  --border: rgba(255, 255, 255, 0.4);
  --brand: var(--mint);
  --hover-tint: rgba(255, 255, 255, 0.1);
  --pop-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  --flag-ring: rgba(255, 255, 255, 0.4);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  background: var(--white);
  color: var(--ink);
  font: 400 1.125rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}
.on-dark a:focus-visible, .on-dark button:focus-visible { outline-color: var(--mint-lit); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
}

/* ========== SHARED ========== */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.band { padding: 112px 0; }
.band-dark { background: var(--deep); color: #FFFFFF; }
.band-tint { background: var(--tint); }

.h2 {
  font: 800 clamp(2rem, 3.8vw, 3.1rem)/1.06 var(--display);
  letter-spacing: -.03em;
  text-wrap: balance;
  max-width: 22ch;
}
.lede { color: var(--ink-2); max-width: 40rem; margin-top: 22px; font-size: 1.2rem; }
.band-dark .lede { color: #FFFFFF; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 72px;
  align-items: start;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 12px;
  font: 700 1rem/1.2 var(--display);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-mint { background: var(--mint); color: var(--deep); border: 0; box-shadow: 0 6px 0 rgba(0, 0, 0, .28); }
.btn-mint:hover { background: var(--mint-lit); box-shadow: 0 9px 0 rgba(0, 0, 0, .28); }
.btn-mint:active { box-shadow: 0 2px 0 rgba(0, 0, 0, .28); }
.btn-text {
  color: #FFFFFF;
  padding: 0 6px;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
  text-decoration-color: var(--mint);
}
.btn-text:hover { text-decoration-color: #FFFFFF; transform: none; }

/* ========== NAV ========== */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 68px;
  background: rgba(0, 42, 34, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.nav-in {
  height: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { font-size: 19px; }
.nav-right { display: flex; align-items: center; gap: 26px; }
.nav-link {
  font-size: .95rem;
  font-weight: 600;
  color: #FFFFFF;
  text-decoration: none;
  background: linear-gradient(var(--mint), var(--mint)) 0 100% / 0 2px no-repeat;
  padding-bottom: 4px;
  transition: background-size .25s var(--ease);
}
.nav-link:hover { background-size: 100% 2px; }
.nav-pill {
  font: 700 .9rem/1.2 var(--display);
  color: var(--deep);
  background: var(--mint);
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color .15s, transform .2s var(--ease);
}
.nav-pill:hover { background: var(--mint-lit); transform: translateY(-2px); }

.site-foot { background: var(--deep); padding: 104px 0 56px; }
.foot {
  padding-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  font-size: 1rem;
  color: #FFFFFF;
}
.foot-logo { font-size: 17px; }
.foot a { color: #FFFFFF; text-decoration: none; }
.foot a:hover { color: var(--mint-lit); text-decoration: underline; text-underline-offset: 4px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }

@media (max-width: 1000px) {
  .band { padding: 84px 0; }
}

@media (max-width: 760px) {
  .nav-link { display: none; }
  .nav-right { gap: 14px; }
}

@media (max-width: 560px) {
  .wrap, .nav-in { padding: 0 20px; }
  .nav-pill { font-size: .8rem; padding: 8px 12px; max-width: 150px; text-align: center; }
  .btn { width: 100%; }
}
