/*
 * RAVAS website — shared chrome.
 *
 * Every page's own <style> block used to carry its own full copy of this (tokens,
 * reset, header/nav/logo, .btn, .eyebrow, footer) and they drifted: two different
 * token-naming generations existed side by side (--panel2/--blueSoft on the older
 * how-it-works/support pages vs --panel-2/--blue/--accent everywhere else, with
 * --blue even meaning a *different colour* between the two), the logo markup had
 * three different variants, and a missing-base-rule bug (licensing.html's
 * `.enterprise` card, 2026-10-10) shipped to production before anyone caught it.
 * This file is the one copy; pages link it and keep only page-specific CSS inline.
 *
 * See website/README.md for the regen step — this file is copied unchanged into
 * both dist/site/ and dist/payment/ (two separate origins, so each needs its own
 * copy; the content is identical).
 */

:root{
  --bg:#080b0f;
  --bg-soft:#0d1218;
  --panel:#111820;
  --panel-2:#151d25;
  --text:#f4f6f8;
  --muted:#a5afb8;
  --dim:#6e7983;
  --line:rgba(255,255,255,.09);
  --blue:#7eb2d7;
  --blue-strong:#3f83b5;
  --accent:#38B8F2;
  --max:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;color:var(--text);background:var(--bg);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  line-height:1.6;
}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
.serif{font-family:Georgia,"Times New Roman",serif;font-weight:400}
h1,h2,h3{font-family:Georgia,"Times New Roman",serif;font-weight:400}

/* A discounted price's original value, shown struck through right next to the new
   one (added 2026-10-12 for the Early Adopter Offer) — a small badge alone wasn't
   enough for people to notice the discounted price wasn't just the normal price. */
.strike{color:var(--dim);text-decoration:line-through;font-weight:400;margin-right:.35em}

/* Default content width. A page that needs something narrower (e.g. the single-token
   payment page) overrides .container locally rather than touching this. */
.container{width:min(calc(100% - 48px),var(--max));margin:auto}

header{
  background:rgba(8,11,15,.92);
  border-bottom:1px solid var(--line);
}
nav{
  height:78px;display:flex;align-items:center;justify-content:space-between;
  gap:24px;position:relative;z-index:20;
}
.logo{
  font-family:Georgia,"Times New Roman",serif;font-size:21px;letter-spacing:.27em;
  font-weight:400;white-space:nowrap;
}
.logo .lambda{display:inline-block}
.logo .v{color:var(--accent)}
.logo:after{content:"";display:block;width:14px;height:1px;background:var(--accent);margin-top:2px;opacity:.7}

.nav-right{display:flex;align-items:center;gap:22px}
.navlinks{display:flex;align-items:center;gap:28px;color:#d0d5da;font-size:14px}
.navlinks a:hover{color:var(--blue)}
.navlinks a:focus-visible{color:var(--blue);outline:1px solid var(--blue);outline-offset:6px}
.navlinks .active{color:#fff}
.nav-action{
  min-height:38px;padding:0 15px;display:inline-flex;align-items:center;justify-content:center;
  border:1px solid rgba(126,178,215,.42);border-radius:7px;color:#e6edf2;
  transition:.2s ease;
}
.nav-action:hover{background:rgba(126,178,215,.08);border-color:rgba(126,178,215,.7)}
.nav-action.active{color:#fff;background:rgba(126,178,215,.06)}

/* Language switcher (added 2026-10-11, same day the KB content on /support shipped
   in all 10 app languages too). Pure CSS :hover/:focus-within — no JS, matching this
   site's existing minimal-JS stance for anything that isn't the contact form. Every
   page in every language links the full set, including itself (marked .active), so
   switching language never requires finding your way back to the home page first. */
.lang-switch{position:relative}
.lang-switch-btn{
  background:transparent;border:1px solid var(--line);border-radius:7px;
  color:var(--text);font:inherit;font-size:13px;padding:7px 10px;cursor:pointer;
  display:inline-flex;align-items:center;gap:5px;
}
.lang-switch-btn:hover{border-color:rgba(56,184,242,.45)}
.lang-caret{font-size:10px;color:var(--muted)}
.lang-switch-menu{
  /* top:100% (flush against the button) on purpose, not a calc()'d gap below it —
     a real gap there is dead space for :hover/:focus-within (neither the button nor
     the menu covers it), so moving the cursor down slowly lost hover mid-gap and the
     whole menu closed before you reached it. The same visual breathing room is done
     with padding-top instead, which IS part of the menu's own hoverable box. */
  position:absolute;top:100%;right:0;min-width:168px;
  background:linear-gradient(180deg,var(--panel-2),var(--panel));
  border:1px solid var(--line);border-radius:10px;padding:14px 6px 6px;
  display:none;flex-direction:column;gap:2px;z-index:30;
  box-shadow:0 12px 28px rgba(0,0,0,.35);
}
.lang-switch:hover .lang-switch-menu,
.lang-switch:focus-within .lang-switch-menu{display:flex}
.lang-switch-menu a{
  padding:8px 10px;border-radius:6px;color:var(--muted);font-size:13.5px;
}
.lang-switch-menu a:hover{background:rgba(255,255,255,.06);color:var(--text)}
.lang-switch-menu a.active{color:var(--accent);font-weight:650}

.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  min-height:46px;padding:0 22px;border-radius:8px;
  background:linear-gradient(135deg,#3f83b5,#32749f);
  color:#fff;font-size:14px;font-weight:650;
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 12px 30px rgba(0,0,0,.18);transition:.2s ease;cursor:pointer;
}
.btn:hover{transform:translateY(-2px);background:linear-gradient(135deg,#4d9aca,#3b82ad)}
.btn .arrow{font-size:18px;line-height:0}
.btn.secondary{background:transparent;box-shadow:none;border-color:rgba(255,255,255,.16)}
.btn.disabled{
  background:rgba(255,255,255,.05);color:#8a939b;box-shadow:none;
  border-color:rgba(255,255,255,.1);cursor:default;pointer-events:none;
}
.btn.disabled:hover{transform:none}

.eyebrow{
  color:var(--blue);font-size:10px;letter-spacing:.38em;
  text-transform:uppercase;margin-bottom:18px;
}

footer{padding:42px 0;color:#68747e;font-size:12px;border-top:1px solid var(--line)}
.footer-row{display:flex;justify-content:space-between;gap:30px}
.footer-links{display:flex;gap:22px}
.footer-links a:hover{color:#b7c1c9}

@media(max-width:900px){
  /* .navlinks itself stays display:flex (was display:none) -- every link
     inside it is hidden individually instead, except Download. A mobile
     visitor reported Download was impossible to find: with the whole nav
     gone and no hamburger menu (this site deliberately has none -- see
     the lang-switch comment above on the no-JS stance), the only way back
     to it was scrolling to a small footer link. [href$="/download"]
     matches every language's copy (/download, /de/download, /fr/download,
     ...) regardless of the link text's own translation, so this needed no
     per-page, per-language HTML changes -- same reasoning as the
     lang-switch-menu being untouched by this selector (it's a different
     container, not .navlinks). Styled to match .nav-action, which the
     payment.ravas.app pages already use for an always-visible action
     button next to the lang switcher. */
  .navlinks{display:flex}
  .navlinks a{display:none}
  .navlinks a[href$="/download"]{
    display:inline-flex;align-items:center;justify-content:center;
    min-height:38px;padding:0 15px;
    border:1px solid rgba(126,178,215,.42);border-radius:7px;color:#e6edf2;
  }
  .navlinks a[href$="/download"]:hover{background:rgba(126,178,215,.08);border-color:rgba(126,178,215,.7)}
}
@media(max-width:620px){
  .container{width:min(calc(100% - 30px),var(--max))}
  nav{height:68px}
  .logo{font-size:18px}
  .nav-right .btn{min-height:42px;padding:0 15px}
  .footer-row{flex-direction:column}
  .footer-links{flex-wrap:wrap}
}
