:root {
  --bg: #0e1b12; --bg2: #101d15; --card: #16241a; --line: rgba(234, 242, 230, 0.10);
  --forest: #14311d; --lime: #c6ef3c; --on-lime: #14311d; --ink: #eaf2e6; --muted: #93a596;
}
* { box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, "Helvetica Neue", Helvetica, Arial, "Noto Sans", sans-serif; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
/* Set pre-paint by js/analytics.js for a non-English visitor, removed by i18n/lang.js once the language is applied (WEB-13).
   opacity (not visibility) so the consent dialog can still take focus while the page is waiting. */
html.i18n-wait body { opacity: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
header { position: sticky; top: 0; z-index: 10; background: rgba(14, 27, 18, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 12px; }
.brand { display: flex; align-items: center; text-decoration: none; }
/* <picture> only picks the WebP/size variant (scripts/build-images.mjs); it must not add a box, so every "... img" rule lays out as before. */
picture { display: contents; }
.brand img { width: 54px; height: 54px; display: block; border-radius: 22%; }
.nav-blog { color: #ffffff; text-decoration: none; font-weight: 700; font-size: 15px; line-height: 1; padding: 10px 6px; margin-inline-start: 16px; margin-inline-end: auto; border-radius: 8px; transition: color .15s ease; }
.nav-blog:hover { color: var(--lime); }
.nav-blog:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--lime); color: var(--on-lime); font-weight: 800; font-size: 15px; text-decoration: none; white-space: nowrap; padding: 11px 20px; border-radius: 999px; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(198, 239, 60, 0.25); }
/* .btn sets display, which beats the UA [hidden] rule: without this the confirm page's "Back to Vacaylo" is never hidden (WEB-11). */
[hidden] { display: none !important; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

.doc { max-width: 760px; margin: 0 auto; padding: 36px 20px 0; overflow-wrap: break-word; }
.back { display: inline-block; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; margin-bottom: 20px; }
.back:hover { color: var(--lime); }
.doc h1 { font-size: clamp(28px, 6vw, 40px); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 14px; }
.doc .updated { display: inline-block; margin: 0 0 24px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--lime); font-size: 14px; font-weight: 600; }
.doc h2 { font-size: 22px; line-height: 1.3; font-weight: 700; margin: 2.2em 0 .6em; padding-top: 4px; scroll-margin-top: 90px; }
.doc h3 { font-size: 18px; font-weight: 700; margin: 1.6em 0 .4em; scroll-margin-top: 90px; }
.doc p, .doc li { font-size: 16.5px; line-height: 1.75; color: #d4dfd0; }
.doc p { margin: 0 0 1em; }
.doc ul, .doc ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.doc li { margin-bottom: .5em; padding-left: .2em; }
.doc li::marker { color: var(--lime); }
.doc strong { color: var(--ink); font-weight: 700; }
.doc a { color: var(--lime); text-underline-offset: 3px; }
/* A button inside page content (e.g. the waitlist confirm page): keep the button's dark text, not the lime link color. */
.doc a.btn { color: var(--on-lime); text-decoration: none; }
.doc code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9em; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.tablewrap { overflow-x: auto; margin: 0 0 1.2em; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; }
.doc th { background: var(--card); color: var(--ink); }
.toc { margin: 0 0 8px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.toc summary { cursor: pointer; padding: 14px 18px; font-weight: 700; font-size: 15px; }
.doc .toc ol { margin: 0; padding: 0 18px 14px 40px; columns: 2; column-gap: 24px; }
.doc .toc li { font-size: 14.5px; line-height: 1.5; margin-bottom: .35em; break-inside: avoid; }
.doc .toc a { color: var(--ink); text-decoration: none; }
.doc .toc a:hover { color: var(--lime); }

footer { margin-top: 88px; border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
@media (max-width: 600px) {
  .nav { gap: 8px; }
  .nav-blog { font-size: 14px; padding-inline: 4px; margin-inline-start: 10px; }
  .btn { padding: 10px 14px; font-size: 13.5px; }
  .doc { padding-top: 24px; }
  .doc h2 { font-size: 20px; }
  .doc p, .doc li { font-size: 16px; }
  .doc .toc ol { columns: 1; }
}
@media (max-width: 400px) {
  .wrap { padding: 0 14px; }
  .brand img { width: 40px; height: 40px; }
  .btn { padding: 10px 11px; font-size: 13px; }
}

/* Cookie consent banner + footer "Cookie settings" button (js/analytics.js). Same rules live in site.css and legal.css. */
.foot-link { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.foot-link:hover { color: var(--ink); }
.foot-link:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.consent { position: fixed; inset-block-end: 16px; inset-inline-start: 16px; z-index: 50; width: min(380px, calc(100vw - 32px)); background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45); font-size: 14px; line-height: 1.5; }
.consent-text { margin: 0 0 6px; color: #d4dfd0; }
.consent-link { display: inline-block; color: var(--lime); text-underline-offset: 3px; font-weight: 600; margin-bottom: 12px; }
.consent-actions { display: flex; gap: 10px; }
.consent-btn { flex: 1; font: inherit; font-weight: 800; font-size: 14px; border-radius: 999px; padding: 10px 14px; cursor: pointer; border: 1px solid transparent; }
.consent-accept { background: var(--lime); color: var(--on-lime); }
.consent-decline { background: transparent; color: var(--ink); border-color: rgba(234, 242, 230, 0.4); }
.consent-btn:hover { border-color: var(--lime); }
.consent-btn:focus-visible, .consent-link:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
@media (max-width: 600px) {
  .consent { inset-inline: 0; inset-block-end: 0; width: auto; border-radius: 18px 18px 0 0; border-inline-width: 0; border-block-end-width: 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
}

/* Skip link (first focusable element; target is <main id="main">). */
.skip-link { position: absolute; top: -100px; left: 12px; z-index: 100; background: var(--lime); color: var(--on-lime); font-weight: 800; font-size: 15px; text-decoration: none; padding: 10px 18px; border-radius: 999px; }
.skip-link:focus { top: 12px; }
[tabindex="-1"]:focus { outline: none; }

/* Consent dialog (js/analytics.js): modal over a dimmed backdrop until Accept or Decline (not on /privacy/). */
.consent-open { overflow: hidden; }
.consent-backdrop { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(4, 10, 6, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.consent-backdrop .consent { position: static; width: min(460px, 100%); padding: 28px 26px 24px; font-size: 16px; border-radius: 24px; border-color: rgba(198, 239, 60, 0.35); box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6); }
.consent-title { margin: 0 0 10px; font-size: 22px; font-weight: 800; line-height: 1.25; color: var(--ink); }
.consent-backdrop .consent-title { font-size: 26px; }
.consent-backdrop .consent-text { margin-bottom: 10px; }
.consent-backdrop .consent-link { margin-bottom: 20px; }
.consent-backdrop .consent-btn { font-size: 16px; padding: 14px 18px; }
@media (max-width: 600px) {
  .consent-backdrop { align-items: flex-end; padding: 0; }
  .consent-backdrop .consent { width: 100%; border-radius: 24px 24px 0 0; padding: 24px 20px calc(20px + env(safe-area-inset-bottom, 0px)); }
}

/* Referral invite page (/invite/): the friend's code, filled in by js/site.js from the URL fragment. */
.invite-code-wrap { margin: 8px 0 24px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); text-align: center; }
.invite-code-label { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.invite-code { margin: 0; font-size: clamp(28px, 8vw, 40px); font-weight: 800; letter-spacing: .18em; color: var(--lime); user-select: all; }
@media (max-width: 480px) { .doc h2, .doc h3 { scroll-margin-top: 112px; } }

/* Calculators nav (Cost Of Living Calculator, Minimum Wage Calculator), the same block on every page right after the header.
   Wide screens: a rail fixed in the empty gutter beside the 1120 px content column (inline-start side, so it mirrors in
   RTL). Narrower screens have no gutter, so it is a slim strip under the header instead. */
.side-nav { position: relative; padding: 8px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.side-nav__toggle { position: absolute; width: 1px; height: 1px; opacity: 0; }
.side-nav__btn { display: inline-flex; align-items: center; gap: 9px; padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font-weight: 800; font-size: 14px; line-height: 1.3; cursor: pointer; }
.side-nav__btn::after { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--lime); border-bottom: 2px solid var(--lime); transform: translateY(-2px) rotate(45deg); transition: transform .15s ease; }
.side-nav__toggle:checked + .side-nav__btn::after { transform: translateY(2px) rotate(-135deg); }
.side-nav__toggle:focus-visible + .side-nav__btn { outline: 2px solid var(--lime); outline-offset: 2px; }
.side-nav__links { display: none; flex-direction: column; gap: 2px; max-width: 420px; margin: 8px auto 2px; text-align: start; }
.side-nav__toggle:checked ~ .side-nav__links { display: flex; }
.side-nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; line-height: 1.3; padding: 11px 14px; border-radius: 12px; transition: color .15s ease, border-color .15s ease, transform .15s ease; }
.side-nav a:hover, .side-nav a[aria-current="page"] { color: var(--lime); }
.side-nav a:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.side-nav__group { margin: 12px 0 2px; padding: 0 14px; color: var(--muted); font-size: 11px; font-weight: 800; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; }
.side-nav__group:first-child { margin-top: 4px; }
@media (min-width: 1500px) {
  /* Twelve links and three group labels are taller than a short laptop screen: the rail scrolls on its own, as in site.css. */
  .side-nav { position: fixed; z-index: 5; top: 100px; inset-inline-end: calc(50% + 568px); width: 192px; max-height: calc(100vh - 112px); overflow-y: auto; padding: 4px; padding-inline-end: 14px; border: 0; text-align: start; }
  /* Slim lime pill scrollbar, as in site.css. */
  .side-nav::-webkit-scrollbar { width: 6px; }
  .side-nav::-webkit-scrollbar-track { margin: 6px 0; background: rgba(198, 239, 60, .08); border-radius: 999px; }
  .side-nav::-webkit-scrollbar-thumb { background: rgba(198, 239, 60, .75); border-radius: 999px; }
  .side-nav::-webkit-scrollbar-thumb:hover, .side-nav::-webkit-scrollbar-thumb:active { background: var(--lime); }
  @supports not selector(::-webkit-scrollbar) {
    .side-nav { scrollbar-width: thin; scrollbar-color: rgba(198, 239, 60, .75) rgba(198, 239, 60, .08); }
  }
  .side-nav__toggle, .side-nav__btn { display: none; }
  .side-nav__links { display: flex; gap: 9px; max-width: none; margin: 0; }
  .side-nav a { font-size: 14px; padding: 10px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
  .side-nav a:hover { border-color: rgba(198, 239, 60, 0.65); transform: translateY(-1px); }
  .side-nav a[aria-current="page"] { border-color: var(--lime); }
  .side-nav__group { margin: 12px 0 0; padding: 0 6px; }
  .side-nav__group:first-child { margin-top: 0; }
}

/* Load transitions (2026-11-16). They play once per visit: js/analytics.js, the first script in <head>, puts .intro on <html>
   before the first paint when the visitor arrives from outside the site, opens it directly or reloads; a click from one Vacaylo
   page to another gets no .intro and paints at once. Without JavaScript nothing is hidden or animated.
   Rules: only opacity and transform (compositor only, no layout, so no layout shift); everything is at rest within 0.7 s;
   "backwards" fill, so no transform is left behind (a leftover transform on <main> would capture position: fixed children);
   keyframes start at opacity .01, not 0, because Chrome skips fully transparent elements when it picks the Largest
   Contentful Paint and does not look again when an animation ends. Kept in step with the same block in css/site.css. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes intro-rise { from { opacity: .01; transform: translateY(16px); } }
  @keyframes intro-drop { from { opacity: .01; transform: translateY(-12px); } }
  @keyframes intro-side { from { opacity: .01; transform: translateX(var(--intro-x)); } }
  @keyframes intro-fade { from { opacity: .01; } }
  html.intro { --intro-x: -22px; --intro-ease: cubic-bezier(.22, 1, .36, 1); }
  html.intro[dir="rtl"] { --intro-x: 22px; }
  /* A non-English visitor's page is transparent until the language file is in (html.i18n-wait above): hold the show until then. */
  html.intro.i18n-wait * { animation-play-state: paused !important; }
  html.intro header > .nav { animation: intro-drop .42s var(--intro-ease) backwards; }
  /* Home: the hero lines come up one after another, then the first section. */
  html.intro .hero .wrap > * { animation: intro-rise .52s var(--intro-ease) backwards; }
  html.intro .hero .wrap > :nth-child(1) { animation-delay: .04s; }
  html.intro .hero .wrap > :nth-child(2) { animation-delay: .09s; }
  html.intro .hero .wrap > :nth-child(3) { animation-delay: .14s; }
  html.intro .hero .wrap > :nth-child(4) { animation-delay: .19s; }
  html.intro .hero .wrap > :nth-child(n+5) { animation-delay: .24s; }
  /* The waitlist button keeps its rotating border (wl-spin) next to the entrance. */
  html.intro .hero .wrap > .waitlist-btn { animation: wl-spin 7s linear infinite, intro-rise .52s var(--intro-ease) .19s backwards; }
  html.intro .hero + .wrap { animation: intro-rise .52s var(--intro-ease) .24s backwards; }
  /* Every other page: <main> has a class there (blog-main, doc, col ...), the home page's has none. */
  html.intro main[class] { animation: intro-rise .52s var(--intro-ease) .06s backwards; }
  /* Tools menu: the links slide in from the screen edge, top to bottom, 18 ms apart (the rail on wide screens; on narrower
     ones the Tools button drops in, and the links do the same cascade each time the menu is opened). */
  /* The rail itself fades in, so its lime scrollbar does not stand alone before the links arrive. */
  html.intro .side-nav { animation: intro-fade .4s ease-out backwards; }
  html.intro .side-nav__btn { animation: intro-drop .42s var(--intro-ease) .06s backwards; }
  html.intro .side-nav__links > * { animation: intro-side .44s var(--intro-ease) .26s backwards; }
  html.intro .side-nav__links > :nth-child(1) { animation-delay: .02s; }
  html.intro .side-nav__links > :nth-child(2) { animation-delay: .038s; }
  html.intro .side-nav__links > :nth-child(3) { animation-delay: .056s; }
  html.intro .side-nav__links > :nth-child(4) { animation-delay: .074s; }
  html.intro .side-nav__links > :nth-child(5) { animation-delay: .092s; }
  html.intro .side-nav__links > :nth-child(6) { animation-delay: .11s; }
  html.intro .side-nav__links > :nth-child(7) { animation-delay: .128s; }
  html.intro .side-nav__links > :nth-child(8) { animation-delay: .146s; }
  html.intro .side-nav__links > :nth-child(9) { animation-delay: .164s; }
  html.intro .side-nav__links > :nth-child(10) { animation-delay: .182s; }
  html.intro .side-nav__links > :nth-child(11) { animation-delay: .2s; }
  html.intro .side-nav__links > :nth-child(12) { animation-delay: .218s; }
  html.intro .side-nav__links > :nth-child(13) { animation-delay: .236s; }
  html.intro .side-nav__links > :nth-child(14) { animation-delay: .254s; }
}
