/* Poppins font faces - self-hosted for RGPD compliance */
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: optional;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: optional;
}

:root {
  --lavender: #e6e6fa;
  --gold: #8B6914;
  --text: #333;
  --background: #ffffff;
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --lavender: #2a2140;
    --gold: #d4af6a;
    --text: #ece8f5;
    --background: #14101c;
  }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  background: var(--lavender);
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  z-index: 9999;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  line-height: 1.6;
  color: var(--text);
  background-color: var(--background);
  overflow-x: hidden;
}

a {
  color: var(--text);
}

a:hover,
a:focus-visible {
  color: var(--gold);
}

header {
  position: sticky;
  top: 0;
  background-color: var(--lavender);
  padding: 1.3rem 1.5rem;
  z-index: 10;
}

/* Three columns — brand | menu | spare — so the menu is centred on the bar itself while the
 * brand stays hard against the leading edge (the converse.com header pattern). The side columns
 * are implicitly minmax(auto, 1fr): they stay equal, and centred, until the brand needs more
 * than its half, at which point the menu slides over instead of colliding with the wordmark.
 * The 640px block below swaps this back to a wrapping flex row. */
header nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 1.5rem;
}

header nav .brand {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

header nav .brand img {
  width: 34px;
  height: 34px;
}

header nav ul {
  grid-column: 2;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

header nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

/* Right-hand cluster: the download CTA, kept out of the centred menu so the bar carries three
   links instead of seven. */
header nav .nav-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 1rem;
}

header nav .btn-nav {
  display: inline-block;
  padding: 0.5rem 1.3rem;
  background-color: var(--gold);
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

header nav .btn-nav:hover,
header nav .btn-nav:focus-visible {
  filter: brightness(1.2);
  color: #fff;
}

.nav-hamburger {
  grid-column: 3;
  justify-self: end;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin: 0;
  cursor: pointer;
  padding: 0;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* .nav-toggle-checkbox + <label class="nav-hamburger"> is a CSS-only checkbox hack: the menu
   opens/closes via the ~ sibling combinator below with zero JS required, so it still works if
   main.js never runs (blocked by a privacy extension / ad blocker). main.js still listens for
   the checkbox's change event to toggle the .open bar-flip animation and auto-close on link
   click, but that's a nice-to-have, not a requirement. */
.nav-toggle-checkbox {
  display: none;
}

.nav-hamburger.open span:nth-child(1),
.nav-toggle-checkbox:checked ~ .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2),
.nav-toggle-checkbox:checked ~ .nav-hamburger span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3),
.nav-toggle-checkbox:checked ~ .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Floating globe button: fixed bottom-right on every real page, links to the
   language hub (langue.html). Replaces the old per-page flag dropdown. */
.globe-lang-btn {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--lavender);
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  z-index: 60;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.globe-lang-btn:hover,
.globe-lang-btn:focus-visible {
  transform: translateY(-3px);
  filter: brightness(1.15);
}

.globe-lang-btn svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 480px) {
  .globe-lang-btn {
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    width: 44px;
    height: 44px;
  }

  .globe-lang-btn svg {
    width: 22px;
    height: 22px;
  }
}

.hero {
  min-height: 100vh;
  /* No background of its own — .ink-blob (fixed, behind everything, see main.js
     initAmbientBackground) needs to show through here too, same as every other section. */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.tagline {
  font-size: 1.4rem;
  color: var(--gold);
}

.hero-logo {
  width: 72px;
  height: 72px;
  margin-bottom: 2rem;
}

.error-page .hero-content p {
  max-width: 480px;
  margin: 0 auto;
}

/* Short standalone pages (telecharger.html/download.html/etc. — a couple of lines of content)
   otherwise sit pinned under the nav with a large dead gap above the footer on any screen taller
   than the content. Vertically center main in the space between nav and footer instead — opt-in
   via body class, not a global page default, since most pages have enough content to not need it. */
body.center-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.center-page main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.why, .features, .about, .download, .testimonials, .ecosystem {
  padding: 4rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.why-cards, .feature-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.card, .feat-card {
  background-color: var(--lavender);
  border-radius: 8px;
  padding: 1.5rem;
  flex: 1 1 250px;
  position: relative;
  transition: transform 0.3s ease;
}

.card:hover, .feat-card:hover {
  transform: translateY(-5px);
}

.sibling-products {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.sibling-card {
  display: block;
  text-align: center;
  text-decoration: none;
  color: var(--text);
}

.sibling-card p {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.brand-logo-frame {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border: 2px solid;
  overflow: hidden;
}

.brand-logo-frame img {
  width: 34px;
  height: 34px;
  display: block;
}

.brand-logo-frame--lara {
  border-color: #4A7DC4;
  background: radial-gradient(circle, rgba(10, 25, 49, 0.55), rgba(10, 25, 49, 0.15));
  box-shadow: 0 0 18px rgba(74, 125, 196, 0.35);
}

.brand-logo-frame--francia {
  border-color: #8F97A3;
  background: radial-gradient(circle, rgba(143, 151, 163, 0.35), rgba(143, 151, 163, 0.08));
  box-shadow: 0 0 18px rgba(143, 151, 163, 0.3);
}

.brand-logo-frame--larai {
  border-color: #6cdaa1;
  background: radial-gradient(circle, rgba(108, 218, 161, 0.3), rgba(108, 218, 161, 0.08));
  box-shadow: 0 0 18px rgba(108, 218, 161, 0.3);
}

.brand-logo-frame--screenguard {
  border-color: #2a78d6;
  background: radial-gradient(circle, rgba(42, 120, 214, 0.35), rgba(42, 120, 214, 0.08));
  box-shadow: 0 0 18px rgba(42, 120, 214, 0.3);
}

.brand-logo-frame--lifepath {
  border-color: #d63b2b;
  background: radial-gradient(circle, rgba(214, 59, 43, 0.35), rgba(214, 59, 43, 0.08));
  box-shadow: 0 0 18px rgba(214, 59, 43, 0.3);
}

.brand-logo-frame--laraivpn {
  border-color: #f2c14e;
  background: radial-gradient(circle, rgba(242, 193, 78, 0.35), rgba(242, 193, 78, 0.08));
  box-shadow: 0 0 18px rgba(242, 193, 78, 0.3);
}

.card .icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--gold);
}

.feat-card details {
  margin-top: 1rem;
}

.about img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.download .cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

/* Native HTML5 validation bubbles ignore the site theme, so contact forms use `novalidate`
   and this instead — see contact.js for the themed validation logic. */
.contact-form {
  max-width: 480px;
  margin: 2rem auto 0;
  text-align: left;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.form-field label {
  font-size: 0.82rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-field input,
.form-field textarea {
  background: var(--background);
  border: 1px solid var(--gold);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.35);
}

.form-field.is-invalid input,
.form-field.is-invalid textarea {
  border-color: #c0392b;
}

.form-status {
  min-height: 1.4em;
  font-size: 0.88rem;
  margin-top: 0.8rem;
}

.form-status.is-error { color: #c0392b; }
.form-status.is-ok { color: var(--gold); }

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--gold);
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
}

.btn:hover {
  filter: brightness(1.2);
}

.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: none;
}

.coming-soon {
  font-style: italic;
  color: #666;
  margin-top: 0.5rem;
}

/* Language hub page (langue.html) — reached via the floating globe button */
.lang-hub {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--lavender), var(--background));
  padding: 2rem 1rem;
}

.lang-hub-container {
  text-align: center;
  max-width: 420px;
}

.lang-hub-container h1 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.lang-hub-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lang-hub-list a {
  display: block;
  padding: 0.75rem 1.5rem;
  background-color: var(--gold);
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: filter 0.15s ease;
}

.lang-hub-list a:hover,
.lang-hub-list a:focus-visible {
  filter: brightness(1.15);
}

.lang-hub-back a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.lang-hub-back a:hover,
.lang-hub-back a:focus-visible {
  text-decoration: underline;
}

.testimonial-slider {
  position: relative;
  overflow: hidden;
  min-height: 150px;
}

.testimonial {
  position: absolute;
  opacity: 0;
  transition: opacity 0.5s ease;
  width: 100%;
  text-align: center;
}

.testimonial.active {
  opacity: 1;
}

footer {
  background-color: var(--lavender);
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  position: relative;
}

footer svg {
  width: 24px;
  height: 24px;
  fill: var(--gold);
  margin: 0 0.25rem;
}

/* ==== Page transition (rideau + logo) ====
   Full-screen curtain that covers the viewport on every internal link click and reopens with
   the brand mark on the page that arrives. Reuses Authentis's own tokens (--lavender for the
   curtain, --gold for the accent/glow) and the favicon's circle+letter mark, adapted as inline
   SVG. Driven by initPageTransition() in js/main.js. */
#page-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--lavender);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.65s cubic-bezier(0.77, 0, 0.18, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Default state must be hidden (not covering): the page has to stay usable and visible even if
   main.js never runs (blocked by a privacy extension, ad blocker, or network failure) — same
   reasoning as the .fade-in-ready opt-in below. */
#page-transition-overlay.is-covering {
  transform: scaleY(1);
}

#page-transition-overlay.is-instant {
  transition: none;
}

#page-transition-overlay.is-instant #page-transition-logo {
  transition: none;
}

#page-transition-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.6) rotate(-12deg);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#page-transition-logo svg {
  width: 4rem;
  height: 4rem;
  filter: drop-shadow(0 0 18px var(--gold));
}

#page-transition-logo .pt-disc {
  fill: var(--lavender);
  stroke: var(--gold);
  stroke-width: 3;
}

#page-transition-logo .pt-flower path {
  fill: var(--gold);
}

#page-transition-logo.is-visible {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.pt-ring {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  transform-origin: 65px 65px;
  animation: pt-ripple 2.4s ease-out infinite;
}

.pt-ring-2 { animation-delay: 0.8s; }
.pt-ring-3 { animation-delay: 1.6s; }

@keyframes pt-ripple {
  0%   { transform: scale(0.55); opacity: 0.55; }
  100% { transform: scale(1.5); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  #page-transition-overlay,
  #page-transition-logo {
    transition: none !important;
  }

  .pt-ring {
    animation: none !important;
    opacity: 0 !important;
  }
}

.fade-in {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Hidden pre-animation state is opt-in via JS only (.fade-in-ready), never the CSS default —
   otherwise content stays invisible forever if main.js is blocked (ad blocker / Brave Shields /
   NoScript). Same reasoning as the page-transition overlay's default-hidden state elsewhere. */
.fade-in.fade-in-ready {
  opacity: 0;
  transform: translateY(20px);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--lavender);
  color: var(--text);
  padding: 1rem;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  text-align: center;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  z-index: 50;
}

.cookie-banner button {
  margin-left: 1rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
}

.cookie-banner.hidden {
  display: none;
}

/* Accept and reject are given equal visual weight (both solid-filled, same size/radius) on
   purpose: a solid-vs-ghost pairing nudges visitors toward accepting, which is a GDPR/CNIL soft
   dark-pattern concern. Only "Learn more" (a tertiary, non-consent action) stays a ghost button. */
.cookie-banner #accept-cookies {
  background-color: var(--gold);
  color: #fff;
}

.cookie-banner #reject-cookies {
  background-color: var(--text);
  color: var(--background);
}

.cookie-banner #learn-more {
  background-color: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  font-weight: 400;
}

/* "Learn more" opens a small list of every relevant national data-protection authority instead
   of guessing one country from the page language — French/Dutch/German are each shared by 2-4 EU
   countries on this site, so a single guessed link would be wrong for some visitors. */
.cookie-learn-more {
  position: relative;
  display: inline-block;
}

.cookie-learn-menu {
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 0.5rem;
  background: var(--background);
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 0.4rem;
  min-width: 200px;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.12);
  z-index: 510;
}

.cookie-learn-menu.open {
  display: flex;
}

.cookie-learn-menu a {
  display: block;
  padding: 0.5rem 0.6rem;
  border-radius: 5px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  text-align: left;
  white-space: nowrap;
}

.cookie-learn-menu a:hover {
  background: var(--lavender);
}

@media (max-width: 480px) {
  .cookie-learn-menu {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
  }
}

.slider-controls {
  text-align: center;
  margin-top: 0.5rem;
}

.slider-pause {
  background: none;
  border: 1px solid var(--gold);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1rem;
  cursor: pointer;
  color: var(--gold);
  line-height: 1;
}

.slider-pause:hover {
  background-color: var(--lavender);
}

/* Privacy policy */
.privacy-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
  line-height: 1.8;
}

/* Widening .privacy-container (above) lets grid content (feature-cards, principles-grid,
   faq-list, sibling-products) use the extra desktop width, but plain running text stays
   capped at a comfortable reading measure instead of stretching edge to edge. */
.privacy-container > p,
.privacy-container > .highlight,
.privacy-container > .last-updated {
  max-width: 700px;
}
.privacy-container h1 {
  color: var(--gold);
  margin-bottom: 1rem;
  font-size: 2.5rem;
}
.privacy-container h2 {
  color: var(--text);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}
.privacy-container h3 {
  color: var(--text);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}
.privacy-container p, .privacy-container ul {
  margin-bottom: 1rem;
}
.privacy-container ul {
  padding-left: 2rem;
}
.privacy-container table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
.privacy-container th, .privacy-container td {
  border: 1px solid var(--lavender);
  padding: 0.75rem;
  text-align: left;
}
.privacy-container th {
  background-color: var(--lavender);
  font-weight: 600;
}
.privacy-container .highlight {
  background-color: var(--lavender);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}
.privacy-container .last-updated {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}
.privacy-container .final-back-link {
  margin-top: 3rem;
  text-align: center;
}
.privacy-container--center {
  text-align: center;
}
.privacy-container--flush {
  padding-top: 0;
}

/* produits.html nests the homepage's .download section inside .privacy-container so the CTA
   sits after the sibling-products grid; without this it'd inherit .download's wider 1200px/1rem
   sizing instead of the container's 900px/2rem, breaking the page's left alignment. */
.privacy-container .download {
  max-width: none;
  padding: 2.5rem 0 0;
  margin: 0;
}

/* Footer "Powered by Larai" credit line, shared by every page's footer. */
.powered-credit {
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

/* Contact page: mailto CTA and the privacy-policy note beneath it. */
.contact-cta {
  margin-top: 2rem;
}
.contact-note {
  margin-top: 2rem;
  font-size: 0.85rem;
}

/* Hero "Early Access" badge note on index.html. */
.hero-badge-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .why-cards, .feature-cards {
    flex-direction: column;
    align-items: center;
  }
}

/* ===== RESPONSIVE NAV COLLAPSE — collapses behind a hamburger instead of wrapping into a
   multi-row header. With three links in the centre and the download CTA on the right, the bar
   needs 788px in the widest locale (fr) — measured with Playwright across the 7 locales, so it
   collapses at 820px. ===== */
@media (max-width: 820px) {
  header {
    padding: 1rem 1.5rem;
  }

  header nav {
    /* Back to a wrapping flex row: brand + hamburger on the first line, the open menu as a full
       width block underneath. */
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .nav-hamburger {
    display: flex;
  }

  header nav ul {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin-top: 0.75rem;
  }

  header nav ul.open,
  .nav-toggle-checkbox:checked ~ ul {
    display: flex;
  }

  /* The CTA has nowhere to sit once the bar collapses, so it drops into the dropdown under the
     links rather than being duplicated there. */
  header nav .nav-actions {
    display: none;
    width: 100%;
    order: 4;
    padding-top: 0.85rem;
  }

  header nav ul.open ~ .nav-actions,
  .nav-toggle-checkbox:checked ~ .nav-actions {
    display: flex;
  }

  header nav .btn-nav {
    width: 100%;
    text-align: center;
    padding: 0.85rem 1rem;
  }

  header nav ul li {
    text-align: center;
    border-top: 1px solid rgba(51, 51, 51, 0.12);
  }

  header nav ul li a {
    display: block;
    padding: 0.85rem 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .fade-in {
    opacity: 1;
    transform: none;
  }
}

/* ==== Ambient background: ink diffusing in still water (blobs injected by main.js
   initAmbientBackground) — deliberately no particles/network/grid, see the comment there. ==== */
.ink-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
  background: var(--gold);
  will-change: transform, opacity;
}

.ink-1 {
  width: 480px;
  height: 480px;
  top: -140px;
  left: 10%;
  opacity: 0.15;
  animation: inkDriftA 42s infinite ease-in-out;
}

.ink-2 {
  width: 380px;
  height: 380px;
  bottom: -100px;
  right: 5%;
  opacity: 0.11;
  animation: inkDriftB 36s infinite ease-in-out;
  animation-delay: -9s;
}

.ink-3 {
  width: 300px;
  height: 300px;
  top: 40%;
  left: 60%;
  opacity: 0.09;
  animation: inkDriftA 50s infinite ease-in-out reverse;
  animation-delay: -18s;
}

@keyframes inkDriftA {
  0%   { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(60px, 40px) scale(1.08); }
  50%  { transform: translate(-30px, 80px) scale(0.94); }
  75%  { transform: translate(-60px, 10px) scale(1.05); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes inkDriftB {
  0%   { transform: translate(0, 0) scale(1); }
  30%  { transform: translate(-50px, 30px) scale(1.06); }
  60%  { transform: translate(30px, -50px) scale(0.96); }
  100% { transform: translate(0, 0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .ink-blob {
    animation: none !important;
  }
}

/* Light mode's near-white --background washes the blobs out almost entirely at their base
   opacity (tuned against the darker dark-mode --background) — boost it here so the animation
   reads clearly in light mode too, without touching dark mode's already-correct balance. */
@media (prefers-color-scheme: light) {
  .ink-1 { opacity: 0.28; }
  .ink-2 { opacity: 0.22; }
  .ink-3 { opacity: 0.18; }
}

/* FAQ accordion (used inside .privacy-container on faq.html) */
.faq-list {
  margin: 1rem 0 2rem;
}
.faq-item {
  background-color: var(--lavender);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin-bottom: 0.75rem;
}
.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
}
.faq-item[open] summary {
  margin-bottom: 0.5rem;
}
.faq-answer {
  margin-top: 0.5rem;
}
.faq-answer p {
  margin: 0;
}

/* Two columns of questions once the widened .privacy-container has room, instead of one long
   stacked list that left the right half of the page empty on desktop. */
@media (min-width: 900px) {
  .faq-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    align-items: start;
  }
  .faq-item {
    margin-bottom: 0;
  }
}

/* Charter's 8 numbered principles as cards in a grid, matching the .card/.feat-card visual
   language used elsewhere, instead of a single tall column of stacked headings. */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.principle-card {
  background-color: var(--lavender);
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
}
.principle-card h2 {
  margin-top: 0;
}

@media print {
  header, footer, #page-transition-overlay, #cookie-banner, .slider-controls {
    display: none;
  }
  .fade-in {
    opacity: 1;
    transform: none;
  }
  .privacy-container {
    padding-top: 1rem;
  }
  body {
    font-size: 12pt;
  }
}
