/* assets/lds.css — Lux Deal Sign · v3 fintech-modern reset
   Bone + midnight + electric jade + coral. Inter + Instrument Serif italic accent.
   Modern fintech sensibility (Mercury × Linear × Stripe), built for a trade tool
   that happens to handle luxury items. Real imagery, soft shadows, generous space,
   numerical confidence, motion where it earns its keep. */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;600&family=Inter+Tight:wght@400;500;600;700&family=Nunito:wght@700;800;900&family=Inter:wght@400;500;600&family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400;500&display=swap');

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

:root {
  /* ── Surfaces ── */
  --bg:        #F5F1E8;     /* bone cream — warm, expensive */
  --bg-alt:    #EBE5D5;     /* warm beige — secondary surfaces */
  --bg-warm:   #FAF6EB;     /* lighter cream — soft callout bg */
  --surface:   #FFFFFF;     /* paper white — cards, modals */
  --surface-2: #F9F6EE;     /* off-white card alt */

  /* ── Ink ── */
  --ink:       #13182A;     /* deep midnight, slightly blue */
  --ink-soft:  #3A4252;     /* secondary copy */
  --ink-mute:  #7A8090;     /* tertiary, captions */
  --ink-faint: #B5BAC4;     /* placeholders, disabled */

  /* ── Brand accents ── */
  --mint:      #1FB17A;     /* electric jade — primary CTA & "live" */
  --mint-deep: #0E6F4D;     /* pressed / accessibility on light */
  --mint-soft: #D9F0E5;     /* tinted bg for success/info */
  --coral:     #FF6B5C;     /* warm coral — energy, errors, highlights */
  --coral-deep:#D04A3E;     /* pressed */
  --coral-soft:#FFE0DA;     /* tinted bg for error states */
  --amber:     #E89B30;     /* warning / status */
  --amber-soft:#FBE8C9;
  --indigo:    #5654E1;     /* tertiary accent — used rarely */
  --brand-navy: #1E3A5F;    /* lockd.it brand mark navy */

  /* ── Lines ── */
  --rule:      #E0DAC8;     /* hairlines, dividers */
  --rule-soft: #ECE6D5;
  --rule-strong: #D6CFBC;

  /* ── Type ── */
  --brand:   'Nunito', 'Inter Tight', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --display: 'Inter Tight', -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --sans:    'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --serif:   'Instrument Serif', Georgia, serif;
  --mono:    'JetBrains Mono', ui-monospace, "SF Mono", Menlo, monospace;

  /* ── Layout ── */
  --gutter:       clamp(20px, 4vw, 48px);
  --max-w:        1280px;
  --max-w-narrow: 880px;

  /* ── Radius ── */
  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  18px;
  --r-xl:  28px;

  /* ── Shadow (soft, modern fintech) ── */
  --shadow-sm: 0 1px 2px rgba(19, 24, 42, 0.04), 0 1px 3px rgba(19, 24, 42, 0.06);
  --shadow-md: 0 4px 6px rgba(19, 24, 42, 0.04), 0 12px 32px -8px rgba(19, 24, 42, 0.10);
  --shadow-lg: 0 8px 16px rgba(19, 24, 42, 0.06), 0 32px 64px -16px rgba(19, 24, 42, 0.14);
  --shadow-glow: 0 0 0 4px rgba(31, 177, 122, 0.18);

  /* ── Motion ── */
  --ease-out:   cubic-bezier(.2, .8, .2, 1);
  --ease-in:    cubic-bezier(.4, 0, .8, 0.2);
  --ease-spring: cubic-bezier(.5, 1.6, .4, 1);
}

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }
img, svg { display: block; max-width: 100%; }

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

[hidden] { display: none !important; }

/* ════════════════════════════════════════════════
   GATE
   ════════════════════════════════════════════════ */
.gate {
  position: fixed; inset: 0; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute);
  z-index: 100; transition: opacity 0.25s var(--ease-out);
}
.gate.gone { opacity: 0; pointer-events: none; }
.gate.error { color: var(--coral-deep); padding: 0 24px; text-align: center; }
.gate::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint); margin-right: 12px;
  animation: pulse 1.4s var(--ease-out) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.6); }
}

/* ════════════════════════════════════════════════
   TOPNAV — clean sticky, no border boxes
   ════════════════════════════════════════════════ */
.topnav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(245, 241, 232, 0.84);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.topnav-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 64px;
}
.brand {
  display: flex; align-items: baseline; gap: 18px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none; line-height: 1;
  color: var(--ink);
  font-family: var(--brand);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.025em;
  text-transform: lowercase;
  font-feature-settings: normal;
}
.wordmark .mark {
  width: 30px; height: 30px; flex-shrink: 0;
  display: block;
}
.wordmark .word {
  display: inline-flex; align-items: baseline;
}
/* Generic dot+tld coloring for ".LOCKD.IT" — works in .wordmark and .brand */
.brand-dot, .brand-tld {
  color: var(--mint);
}
/* legacy <em> support — older pages may still emit <em>Deal</em>; keep tinted */
.wordmark em {
  font-style: italic; font-weight: 400;
  font-family: var(--serif); font-size: 1.1em;
  color: var(--brand-navy); margin-left: -2px;
}
.crumb {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute);
  position: relative; padding-left: 18px;
}
.crumb::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 10px; height: 1px; background: var(--ink-mute);
}

.user-pod { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-alt); border: 1px solid var(--rule);
  object-fit: cover;
}
.user-pod .meta { text-align: right; line-height: 1.2; }
.user-pod .meta .name { font-size: 13px; font-weight: 500; color: var(--ink); }
.user-pod .meta .email { font-family: var(--mono); font-size: 10px; color: var(--ink-mute); letter-spacing: 0.02em; }

/* ════════════════════════════════════════════════
   TYPE
   ════════════════════════════════════════════════ */
.eyebrow {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--mint-deep); font-weight: 500;
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--mint);
}

h1, .h1 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(40px, 6.5vw, 84px);
  line-height: 1.0; letter-spacing: -0.035em;
  color: var(--ink);
}
h1 em, .h1 em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 mark, .h1 mark {
  background: linear-gradient(180deg, transparent 60%, rgba(31,177,122,0.30) 60%);
  color: inherit; padding: 0 2px;
}

h2, .h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.05; letter-spacing: -0.025em;
}
h2 em, .h2 em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  letter-spacing: -0.015em;
}

h3, .h3 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.2; letter-spacing: -0.015em;
}

.lede {
  font-size: 18px; line-height: 1.5;
  color: var(--ink-soft); max-width: 580px;
}

.kicker {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mute);
}

.section-label {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-mute);
  padding-bottom: 10px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}

/* ════════════════════════════════════════════════
   FIELDS — clean, modern, soft borders
   ════════════════════════════════════════════════ */
.field { position: relative; }
.field input,
.field textarea,
.field select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  color: var(--ink);
  padding: 14px 14px 14px 14px;
  font-family: var(--sans); font-size: 15px;
  outline: none;
  transition: border-color 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
  appearance: none;
}
.field input:hover,
.field textarea:hover,
.field select:hover { border-color: var(--rule-strong); }
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--mint);
  box-shadow: var(--shadow-glow);
}
.field textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
.field select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%237A8090' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

/* Floating label */
.field label {
  position: absolute;
  left: 14px; top: 14px;
  font-family: var(--sans); font-size: 14px;
  color: var(--ink-mute);
  background: var(--surface); padding: 0 4px;
  pointer-events: none;
  transform-origin: left center;
  transition: transform 0.18s var(--ease-out), color 0.18s var(--ease-out);
}
.field input:focus + label,
.field textarea:focus + label,
.field select:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:not(:placeholder-shown) + label,
.field select:valid + label,
.field.filled label {
  transform: translateY(-22px) scale(0.82);
  color: var(--mint-deep);
  font-weight: 500;
}

.field .hint {
  font-size: 12px; color: var(--ink-mute);
  margin-top: 6px; line-height: 1.45;
}

.field-group { display: grid; gap: 18px; }
.field-group.row-2 { grid-template-columns: 1fr 1fr; }

/* ════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: var(--r-sm);
  cursor: pointer; border: 1px solid transparent;
  transition: transform 0.15s var(--ease-out), background-color 0.15s, color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.btn:focus-visible { outline: none; box-shadow: var(--shadow-glow); }

.btn-primary {
  background: var(--ink); color: var(--bg);
}
.btn-primary:hover:not(:disabled) {
  background: var(--mint-deep); transform: translateY(-1px);
}
.btn-primary:disabled {
  background: var(--ink-faint); color: var(--bg);
  cursor: not-allowed;
}
.btn-mint {
  background: var(--mint); color: var(--ink);
}
.btn-mint:hover:not(:disabled) { background: var(--mint-deep); color: var(--bg); transform: translateY(-1px); }

.btn-coral {
  background: var(--coral); color: var(--surface);
}
.btn-coral:hover:not(:disabled) { background: var(--coral-deep); transform: translateY(-1px); }

.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--rule-strong);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--ink); }

.btn-link {
  background: transparent; color: var(--ink-soft);
  padding: 6px 0;
  border-radius: 0;
  border-bottom: 1px solid var(--rule-strong);
}
.btn-link:hover { color: var(--mint-deep); border-bottom-color: var(--mint); }

.btn-lg { padding: 18px 28px; font-size: 15px; border-radius: var(--r-md); }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: var(--r-sm); }

.btn-arrow::after {
  content: "→"; transition: transform 0.18s var(--ease-out);
}
.btn-arrow:hover::after { transform: translateX(3px); }

/* ════════════════════════════════════════════════
   PILLS / TAGS / BADGES
   ════════════════════════════════════════════════ */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 100px;
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-mute);
  background: var(--bg-alt);
}
.pill-mint   { background: var(--mint-soft); color: var(--mint-deep); }
.pill-coral  { background: var(--coral-soft); color: var(--coral-deep); }
.pill-amber  { background: var(--amber-soft); color: #8B5A0F; }
.pill-ink    { background: var(--ink); color: var(--bg); }
.pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; opacity: 0.9;
}
.pill.live .dot { animation: pulse 1.4s var(--ease-out) infinite; background: var(--mint); }

/* ════════════════════════════════════════════════
   STATUS / TOAST
   ════════════════════════════════════════════════ */
.msg {
  padding: 14px 16px;
  border-radius: var(--r-sm);
  font-size: 13px; line-height: 1.55;
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--bg-alt);
  color: var(--ink-soft);
}
.msg::before {
  content: ""; flex-shrink: 0; width: 16px; height: 16px;
  border-radius: 50%; margin-top: 2px;
  background: var(--ink-mute);
}
.msg-error    { background: var(--coral-soft); color: var(--coral-deep); }
.msg-error::before { background: var(--coral); }
.msg-success  { background: var(--mint-soft); color: var(--mint-deep); }
.msg-success::before { background: var(--mint); }
.msg-info     { background: var(--bg-warm); color: var(--ink-soft); border: 1px solid var(--rule); }
.msg-info::before { background: var(--mint); }

/* ════════════════════════════════════════════════
   CARDS
   ════════════════════════════════════════════════ */
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 24px;
  transition: border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.card-hover:hover {
  border-color: var(--rule-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.card-soft {
  background: var(--surface-2);
  border: 1px solid var(--rule-soft);
}

/* ════════════════════════════════════════════════
   LAYOUT
   ════════════════════════════════════════════════ */
.container {
  max-width: var(--max-w); margin: 0 auto;
  padding-left: var(--gutter); padding-right: var(--gutter);
}
.container-narrow {
  max-width: var(--max-w-narrow); margin: 0 auto;
  padding-left: var(--gutter); padding-right: var(--gutter);
}

/* ════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════ */
.lds-footer {
  margin-top: 80px;
  padding: 24px var(--gutter);
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-mute);
  max-width: var(--max-w); margin-left: auto; margin-right: auto;
}
.lds-footer a {
  color: var(--ink-mute);
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.lds-footer a:hover { color: var(--ink); border-bottom-color: var(--mint); }

/* ════════════════════════════════════════════════
   MOTION HELPERS
   ════════════════════════════════════════════════ */
.fade-rise { opacity: 0; transform: translateY(12px); transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
.fade-rise.is-in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ════════════════════════════════════════════════
   MOBILE
   ════════════════════════════════════════════════ */
@media (max-width: 720px) {
  .topnav-inner { flex-direction: column; align-items: flex-start; gap: 12px; padding: 12px var(--gutter); }
  .user-pod { width: 100%; justify-content: flex-end; }
  .field-group.row-2 { grid-template-columns: 1fr; }
  .lds-footer { flex-direction: column; gap: 8px; }
}

@media print {
  body { background: white; }
  .topnav, .gate, .lds-footer, .no-print { display: none !important; }
}

/* ════════════════════════════════════════════════
   BACKWARDS-COMPAT ALIASES (legacy → v3)
   These let old inline styles in pages I haven't redesigned yet
   keep referencing --gold-* etc. without breaking.
   Will be removed once all pages are migrated.
   ════════════════════════════════════════════════ */
:root {
  --gold:       var(--mint);
  --gold-deep:  var(--mint-deep);
  --gold-soft:  var(--mint-soft);
  --hairline:   var(--rule);
  --border:     var(--rule-strong);
  --success:    var(--mint-deep);
  --error:      var(--coral-deep);
  --paper:      var(--surface);
  --paper-ink:  var(--ink);
  --ink-faint:  var(--ink-faint);
  /* old serif/sans/mono name compat */
  --hand:       'Caveat', cursive, serif;
}


/* ════════════════════════════════════════════════
   BRAND STACK + TAGLINE
   The brand mark sometimes needs a small subtitle ("Lock that Sh*t!")
   stacked under the wordmark. Used on the marketing landing's topnav
   and footer; inner-app pages use the wordmark alone with a crumb.
   ════════════════════════════════════════════════ */
.wordmark .word-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  line-height: 1;
}
.wordmark .tagline {
  font-family: var(--brand);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0;
  color: var(--mint-deep);
  text-transform: none;
  line-height: 1.1;
}
.wordmark.size-lg {
  font-size: 26px;
}
.wordmark.size-lg .mark { width: 36px; height: 36px; }
.wordmark.size-lg .tagline { font-size: 12px; }

/* ════════════════════════════════════════════════
   COOKIE / CONSENT BANNER
   Bottom-fixed, dismissible, persists choice in localStorage.
   ════════════════════════════════════════════════ */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 90;
  background: var(--ink); color: var(--bg);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 16px 20px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  max-width: 880px; margin: 0 auto;
  font-size: 13px; line-height: 1.5;
  transform: translateY(120%);
  transition: transform 0.35s var(--ease-out);
}
.cookie-banner.is-open { transform: translateY(0); }
.cookie-banner .text { flex: 1; min-width: 240px; }
.cookie-banner .text a {
  color: var(--mint);
  border-bottom: 1px solid var(--mint-deep);
}
.cookie-banner .text a:hover { color: var(--bg); border-bottom-color: var(--mint); }
.cookie-banner .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-banner .btn-cookie {
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  cursor: pointer; border: 1px solid transparent;
  transition: all 0.15s;
}
.cookie-banner .btn-cookie.primary {
  background: var(--mint); color: var(--ink);
}
.cookie-banner .btn-cookie.primary:hover { background: var(--bg); }
.cookie-banner .btn-cookie.ghost {
  background: transparent; color: var(--bg);
  border-color: rgba(245, 241, 232, 0.3);
}
.cookie-banner .btn-cookie.ghost:hover { border-color: var(--bg); background: rgba(245, 241, 232, 0.08); }

/* ════════════════════════════════════════════════
   LEGAL PAGES — clean centered prose layout
   ════════════════════════════════════════════════ */
.legal-page {
  max-width: 760px; margin: 0 auto;
  padding: 48px var(--gutter) 96px;
  font-size: 15px; line-height: 1.7;
  color: var(--ink-soft);
}
.legal-page .legal-meta {
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-mute); letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.legal-page h1 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.025em; line-height: 1.1;
  color: var(--ink); margin: 0 0 12px;
}
.legal-page h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--mint-deep); }
.legal-page .lede-legal {
  font-size: 17px; line-height: 1.55;
  color: var(--ink-soft); margin: 0 0 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.legal-page .template-note {
  background: var(--bg-warm);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  margin: 0 0 28px;
  font-size: 13px;
  color: var(--ink-mute);
  display: flex; gap: 10px; align-items: flex-start;
}
.legal-page .template-note::before {
  content: "i";
  flex-shrink: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--ink-faint);
  color: var(--bg);
  font-family: var(--serif); font-style: italic; font-size: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.legal-page h2 {
  font-family: var(--display); font-weight: 600;
  font-size: 22px; letter-spacing: -0.015em;
  color: var(--ink);
  margin: 36px 0 12px;
  padding-top: 8px;
}
.legal-page h3 {
  font-family: var(--display); font-weight: 600;
  font-size: 17px; color: var(--ink);
  margin: 24px 0 8px;
}
.legal-page p { margin: 0 0 14px; }
.legal-page ul, .legal-page ol { padding-left: 22px; margin: 0 0 18px; }
.legal-page li { margin-bottom: 6px; }
.legal-page a {
  color: var(--mint-deep); border-bottom: 1px solid var(--rule-strong);
  transition: border-color 0.15s;
}
.legal-page a:hover { border-bottom-color: var(--mint); }
.legal-page strong { color: var(--ink); font-weight: 600; }
.legal-page hr {
  margin: 36px 0;
  border: none; border-top: 1px solid var(--rule);
}
.legal-page .contact-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 20px 24px;
  margin: 24px 0;
}
.legal-page .contact-card .lab {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 6px;
}

/* ════════════════════════════════════════════════
   LANDING FOOTER — reorganized for legal links
   ════════════════════════════════════════════════ */
.land-footer {
  border-top: 1px solid var(--rule);
  padding: 48px var(--gutter) 64px;
  max-width: var(--max-w); margin: clamp(80px, 10vw, 140px) auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  font-family: var(--mono); font-size: 12px;
  color: var(--ink-mute);
}
.land-footer .legal-links {
  display: flex; flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.land-footer .legal-links .group {
  display: flex; gap: 18px; flex-wrap: wrap;
}
.land-footer .legal-links a {
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.land-footer .legal-links a:hover {
  color: var(--ink); border-bottom-color: var(--mint);
}
.land-footer .copyright {
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  margin-top: 8px;
}
@media (max-width: 720px) {
  .land-footer { grid-template-columns: 1fr; gap: 24px; padding: 36px var(--gutter) 56px; }
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; padding: 14px 16px; gap: 12px; }
}


/* ════════════════════════════════════════════════
   ACCESSIBILITY WIDGET
   Floating button bottom-left, opens a panel with user controls for
   text size, contrast, link underlines, and reduced motion. Settings
   persist in localStorage and are applied via classes on <html>.
   ════════════════════════════════════════════════ */
.a11y-launcher {
  position: fixed;
  left: 16px; bottom: 16px;
  z-index: 80;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  border: none; cursor: pointer;
  box-shadow: var(--shadow-md);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.18s var(--ease-out), background 0.15s, box-shadow 0.18s;
}
.a11y-launcher:hover { transform: translateY(-2px); background: var(--mint-deep); box-shadow: var(--shadow-lg); }
.a11y-launcher:focus-visible { outline: none; box-shadow: var(--shadow-glow), var(--shadow-md); }
.a11y-launcher svg { width: 22px; height: 22px; }

.a11y-panel {
  position: fixed;
  left: 16px; bottom: 76px;
  z-index: 81;
  width: 300px; max-width: calc(100vw - 32px);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 18px 20px 20px;
  font-size: 14px; color: var(--ink);
  transform: translateY(8px) scale(0.98);
  opacity: 0; pointer-events: none;
  transition: opacity 0.18s var(--ease-out), transform 0.18s var(--ease-out);
}
.a11y-panel.is-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.a11y-panel h3 {
  font-family: var(--display); font-weight: 600;
  font-size: 16px; letter-spacing: -0.015em;
  margin: 0 0 4px;
  display: flex; align-items: center; justify-content: space-between;
}
.a11y-panel h3 .close {
  background: transparent; border: none; cursor: pointer;
  width: 24px; height: 24px; border-radius: 50%;
  color: var(--ink-mute); font-size: 14px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.a11y-panel h3 .close:hover { background: var(--bg-alt); color: var(--ink); }
.a11y-panel .desc {
  font-size: 12px; color: var(--ink-mute);
  margin: 0 0 14px;
}
.a11y-panel .opt {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
}
.a11y-panel .opt:last-of-type { border-bottom: none; }
.a11y-panel .opt-label { color: var(--ink); }
.a11y-panel .opt-toggle {
  position: relative;
  width: 38px; height: 22px;
  background: var(--rule-strong);
  border-radius: 100px;
  cursor: pointer;
  border: none; padding: 0;
  transition: background 0.18s var(--ease-out);
  flex-shrink: 0;
}
.a11y-panel .opt-toggle::after {
  content: ""; position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  background: var(--surface);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: left 0.18s var(--ease-out);
}
.a11y-panel .opt-toggle[aria-pressed="true"] { background: var(--mint); }
.a11y-panel .opt-toggle[aria-pressed="true"]::after { left: 18px; }
.a11y-panel .size-grp {
  display: flex; gap: 4px; align-items: center;
}
.a11y-panel .size-btn {
  width: 28px; height: 28px;
  border: 1px solid var(--rule);
  background: var(--surface);
  border-radius: var(--r-sm);
  font-family: var(--display); font-weight: 600;
  cursor: pointer;
  color: var(--ink-soft);
  transition: all 0.15s;
}
.a11y-panel .size-btn:hover { border-color: var(--mint); color: var(--mint-deep); }
.a11y-panel .size-btn.active {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}
.a11y-panel .size-btn.s-a { font-size: 11px; }
.a11y-panel .size-btn.s-b { font-size: 13px; }
.a11y-panel .size-btn.s-c { font-size: 15px; }
.a11y-panel .reset {
  margin-top: 12px;
  width: 100%;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  font-size: 12px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s;
}
.a11y-panel .reset:hover { border-color: var(--ink); color: var(--ink); }
.a11y-panel a.policy {
  display: block;
  margin-top: 12px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  border-bottom: 1px solid transparent;
}
.a11y-panel a.policy:hover { color: var(--ink); }

/* Skip-to-main link — visible when focused */
.skip-to-main {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 1000;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: var(--r-sm);
  font-size: 13px; font-weight: 500;
  text-decoration: none;
}
.skip-to-main:focus {
  left: 8px;
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

/* ─── User preference classes applied to <html> via JS ─── */
html.a11y-text-lg  { font-size: 18px; }
html.a11y-text-xl  { font-size: 20px; }

html.a11y-contrast {
  --ink-soft: var(--ink);
  --ink-mute: #4A5060;
  --rule: #C0BAA8;
  --rule-strong: #9C9686;
}
html.a11y-contrast .pill { border: 1px solid var(--ink); }
html.a11y-contrast .btn-ghost { border-width: 2px; }

html.a11y-underline a:not(.btn):not(.wordmark):not(.lockd-link),
html.a11y-underline button.btn-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

@media (max-width: 720px) {
  .a11y-launcher { left: 12px; bottom: 80px; } /* lift above mobile cookie banner */
  .a11y-panel { left: 12px; bottom: 140px; }
}
