:root {
  --bg: #100905;
  --bg-card: #1e120a;
  --text: #f6ecdf;
  --text-dim: #b39e85;
  --accent: #d4a056;
  --accent-soft: rgba(212,160,86,0.14);
  --border: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 60; padding: 0.5rem 0.9rem; border-radius: 8px; background: var(--accent); color: var(--bg); }

.container { max-width: 880px; margin: 0 auto; padding: 6vh 1.5rem 0; }
.container--footer { padding-top: 0; padding-bottom: 2rem; }
.page-legal .container { padding-top: 2rem; }

/* Landing page */
header.hero { text-align: center; margin-bottom: 3rem; }
.badge {
  display: inline-block; padding: 0.35rem 0.85rem; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.app-icon { display: block; margin: 0 auto 1.25rem; width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.6); }
h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); letter-spacing: -0.02em; font-weight: 300; margin: 0 0 0.75rem; text-wrap: balance; }
.tagline { font-size: clamp(1rem, 2.4vw, 1.25rem); color: var(--text-dim); margin: 0; }
.intro { max-width: 640px; margin: 0 auto 3rem; text-align: center; color: var(--text); font-size: 1.02rem; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 4rem; }
.feature { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 1.5rem; }
.feature-icon { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); border-radius: 10px; color: var(--accent); margin-bottom: 1rem; }
.feature h3 { font-size: 1.05rem; font-weight: 500; margin: 0 0 0.4rem; }
.feature p { font-size: 0.92rem; color: var(--text-dim); margin: 0; }
.status { text-align: center; padding: 2rem; border: 1px solid var(--border); border-radius: 14px; background: linear-gradient(180deg, var(--bg-card), transparent); }
.status h2 { font-weight: 400; font-size: 1.3rem; margin: 0 0 0.5rem; }
.status p { color: var(--text-dim); margin: 0; }
.platform { color: var(--accent); font-weight: 500; }

/* Legal pages */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font-weight: 500; }
.brand img { border-radius: 8px; }
.lang-switch { color: var(--text-dim); text-decoration: none; border: 1px solid var(--border); border-radius: 999px; padding: 0.3rem 0.85rem; font-size: 0.85rem; }
.lang-switch:hover { color: var(--text); }
.prose { font-size: 0.98rem; overflow-wrap: anywhere; }
.prose h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 0.25rem; }
.prose h2 { font-size: 1.35rem; font-weight: 500; margin: 2.5rem 0 0.75rem; }
.prose h3 { font-size: 1.08rem; font-weight: 500; margin: 1.75rem 0 0.5rem; }
.prose h4 { font-size: 1rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 1.3rem; }
.prose li + li { margin-top: 0.3rem; }
.prose code { font-size: 0.9em; background: var(--bg-card); padding: 0.1rem 0.35rem; border-radius: 5px; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0 1.5rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.9rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--border); }
.prose th { color: var(--text-dim); font-weight: 500; }
.last-updated { color: var(--text-dim); font-size: 0.88rem; margin: 0 0 2rem; }

/* Footer */
.site-footer { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--text-dim); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.footer-title { color: var(--text); font-weight: 500; margin: 0 0 0.75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 0.4rem; }
.site-footer p { margin: 0 0 0.75rem; }
.site-footer address { font-style: normal; margin-bottom: 0.75rem; }
.site-footer a, .link-button { color: var(--text-dim); text-decoration: none; border-bottom: 1px dotted var(--text-dim); }
.site-footer a:hover, .link-button:hover { color: var(--text); }
.link-button { background: none; border-top: 0; border-left: 0; border-right: 0; padding: 0; font: inherit; cursor: pointer; }
.footer-copy { margin-top: 2rem !important; }

/* Cookie banner: Accept and Decline share one style on purpose (equal prominence). */
.cookie-consent {
  position: fixed; z-index: 50; right: 1rem; bottom: 1rem; left: 1rem;
  max-width: 420px; margin-left: auto;
  background: var(--bg-card); color: var(--text);
  border: 1px solid var(--border); border-radius: 16px;
  padding: 1.1rem 1.2rem; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  font-size: 0.88rem;
}
.cookie-consent[hidden] { display: none; }
.cookie-consent__heading { margin: 0 0 0.4rem; font-weight: 600; }
.cookie-consent__body { margin: 0; color: var(--text-dim); }
.cookie-consent__actions { display: flex; gap: 0.75rem; margin-top: 1rem; }
.consent-button {
  flex: 1; padding: 0.55rem 1rem; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--text);
  background: transparent; border: 1px solid var(--accent);
}
.consent-button:hover { background: var(--accent-soft); }
