/* Olivo — design system */
@import url("./fonts.css");
/* Phosphor, vendored out of node_modules at build time and served from our own
   domain. Only the weights the site actually renders: `ph` everywhere, and
   `ph-bold` for the confirmation-card ticks. */
@import url("./icons/phosphor.css");

/* Phosphor icon defaults */
i[class*="ph-"] { display: inline-block; line-height: 1; vertical-align: -0.125em; }
.chev { width: 12px; height: 12px; opacity: 0.6; transition: transform var(--dur-base) var(--ease-out); }
.icon-tile i { font-size: 30px; }
.ico i { font-size: 22px; }
.feature .ico i { font-size: 22px; }
.cap .ico i { font-size: 22px; }
.pill i { font-size: 16px; }
/* Inline list/sidebar icons */
.pf-side .item i { font-size: 16px; opacity: 0.8; }
.pf-list .search i { font-size: 14px; }
.pf-list .row .lock i { font-size: 11px; }
.pf-reading .e2ee i { font-size: 16px; }
/* Drive file thumbs */
.file .thumb i { font-size: 32px; }
.file.folder .thumb i { font-size: 40px; }
.file .thumb .lock-stamp i { font-size: 12px; }
/* Cal toolbar */
.cal-toolbar .nav i { font-size: 14px; }
/* Comparison ticks */
.compare i.ph { font-size: 16px; }
/* Auth lock */
.auth-card .lock-row i { font-size: 16px; }

:root {
  /* Light theme */
  --bg: #fafaf7;
  --surface: #ffffff;
  --surface-2: #f3f4ee;
  --text: #1a1f1a;
  --text-soft: #3d4a3a;
  --muted: #6b7268;
  --border: #e5e7df;
  --border-strong: #d3d7c9;

  /* Brand green — single anchor sampled directly from the logo / product
     screenshots. All other greens are derived from this. */
  --primary: #55C25E;        /* anchor — same value on light & dark */
  --primary-soft: #E8F5E8;   /* very light wash for tinted backgrounds */
  --primary-strong: #2F8A3A; /* darkened for buttons & text on light bg */
  --primary-strong-hover: #246E2E;
  --primary-fg: #ffffff;
  --on-primary-soft: #1A4920;

  --accent-warm: #c98a5c;   /* terracotta accent for warmth */

  --shadow-sm: 0 1px 2px rgba(20, 30, 18, 0.04), 0 1px 1px rgba(20, 30, 18, 0.03);
  --shadow-md: 0 4px 16px rgba(20, 30, 18, 0.06), 0 1px 2px rgba(20, 30, 18, 0.04);
  --shadow-lg: 0 24px 60px rgba(20, 30, 18, 0.10), 0 4px 12px rgba(20, 30, 18, 0.06);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 999px;

  /* ---- Spacing scale ----------------------------------------------------
     A 4px grid expressed in rem, so the whole layout grows with the reader's
     browser font-size setting instead of pinning itself to 16px. Page
     stylesheets should reach for these rather than inventing 7px / 13px / 26px
     one-offs. */
  --space-1: 0.25rem;   /*  4px */
  --space-2: 0.5rem;    /*  8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */

  /* ---- Type scale -------------------------------------------------------
     Also rem, for the same reason. The half-pixel sizes this replaces
     (11.5 / 12.5 / 13.5 / 14.5 / 15.5) rendered inconsistently anyway once the
     browser rounded them. */
  --text-2xs: 0.6875rem; /* 11px */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.8125rem;  /* 13px */
  --text-base: 0.875rem; /* 14px */
  --text-md: 0.9375rem;  /* 15px */
  --text-lg: 1rem;       /* 16px */
  --text-xl: 1.125rem;   /* 18px */
  --text-2xl: 1.375rem;  /* 22px */
  --text-3xl: 1.75rem;   /* 28px */

  /* ---- Motion -----------------------------------------------------------
     Three durations, and easings that are asymmetric on purpose: UI that
     leaves fast and arrives slow reads as physical, where a symmetric `ease`
     reads as sluggish. --ease-in is the mirror of --ease-out so a reversible
     transition retraces its own path. */
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 320ms;
  --ease-out: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-in: cubic-bezier(1, 0, 0.68, 0.28);
  --ease-spring: cubic-bezier(0.34, 1.26, 0.64, 1); /* slight overshoot — momentum only */

  /* 1200 was sized for 1366x768 laptops. At 1360 the page stops reading as a
     narrow strip on a 1920+ display without pushing any text past its measure. */
  --container: 1360px;
  --container-narrow: 920px;

  /* The 30px brand mark is large relative to the bar, so clearance has to be
     generous before it reads as deliberate space rather than a tight fit:
     52px gave 11px above and below, 64px only 17px, which was not visible.
     80px gives 25px. The bar is sticky, so this is charged on every screen —
     it is the most expensive token on the site. Drops to 64 below 900px,
     where vertical space is scarcer. */
  --header-h: 80px;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-display: "Source Sans Pro", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

[data-theme="dark"] {
  --bg: #000000;
  --surface: #1d1d1f;
  --surface-2: #161617;
  --text: #f5f5f7;
  --text-soft: #d2d2d7;
  --muted: #86868b;
  --border: #2a2a2c;
  --border-strong: #3a3a3c;

  --primary: #55C25E;
  --primary-soft: #14241A;
  --primary-strong: #55C25E;
  --primary-strong-hover: #6FD076;
  --primary-fg: #051405;
  --on-primary-soft: #88D88E;

  --accent-warm: #86868b;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.6);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
html {
  scroll-behavior: smooth;
  /* Every in-page jump has to clear the sticky header, or it lands with the
     target tucked underneath it — which is what "See the suite" on the
     homepage and the legal-page anchors were doing. Derived from the token, so
     it stays correct at both header heights. */
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
}
body {
  /* Flex column so `main { flex: 1 0 auto }` below pins the footer to the
     bottom on short pages. */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-sans);
  /* rem, not px: a reader who raises their browser's default text size gets a
     larger site instead of no change at all. */
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}
main { flex: 1 0 auto; }
img, svg { display: block; max-width: 100%; }
input, select, textarea { font: inherit; color: inherit; }

/* <picture> must not introduce a box of its own — the hero and suite-card
   screenshots are absolutely positioned against their frame. */
picture { display: contents; }

/* Theme change is a full-page brightness shift, so ease every surface that
   participates in it, not just <body>. Transitioning `background-color` alone
   on <body> made the page change in two visible stages: the backdrop faded
   while every card and border snapped. */
body,
.site-header,
.site-footer,
.card,
.feature,
.megamenu-inner,
.theme-toggle,
.lang-switcher {
  transition:
    background-color var(--dur-slow) var(--ease-out),
    border-color var(--dur-slow) var(--ease-out),
    color var(--dur-slow) var(--ease-out);
}

/* These resets are unlayered, so they would otherwise beat theme.css's
   @layer base rules on the legacy sign-in page. Excluding that subtree lets it
   keep its own typography and link colours. */
/* :where() so the exclusion costs nothing. Written as `:not(.legacy-theme a)`
   these resets computed to (0,1,2) — the :not() takes its argument's
   specificity — which beat every single-class rule on the site. `.nav-item`
   (0,1,0) lost, so the Products *button* rendered at the inherited 16px/400
   while the Pricing and About us *anchors* got 14px/500; `.filter-pill`,
   `.chip`, `.billing-toggle button` and `.theme-toggle` lost their sizes the
   same way, and `.footer-col a` lost its colour. Wrapped in :where() the
   resets are (0,0,1): still the default, no longer unbeatable. */
a:not(:where(.legacy-theme a)) { color: inherit; text-decoration: none; }
button:not(:where(.legacy-theme button)) { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* One focus ring for the whole site. Nothing here defined a focus style at
   all, which left keyboard users with whatever the browser happened to draw
   over a custom background — often nothing legible. */
:focus-visible {
  outline: 2px solid var(--primary-strong);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
[data-theme="dark"] :focus-visible { outline-color: var(--primary); }
/* Suppress the ring for pointer users without losing it for the keyboard. */
:focus:not(:focus-visible) { outline: none; }

/* Type ------------------------------------------------------------------
   Tracking is size-specific. One letter-spacing value across h1-h4 is wrong at
   one end or the other: display sizes need letters pulled together as they
   grow, and small UI text needs them opened up slightly to stay legible. */
:is(h1, h2, h3, h4):not(.legacy-theme *) {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
  color: var(--text);
  text-wrap: balance;
  font-optical-sizing: auto;
}
h1:not(.legacy-theme *) { font-size: clamp(2.5rem, 6vw, 4.75rem); letter-spacing: -0.03em; }
h2:not(.legacy-theme *) { font-size: clamp(2rem, 4.4vw, 3.25rem); letter-spacing: -0.022em; }
h3:not(.legacy-theme *) {
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.2;
}
h4:not(.legacy-theme *) {
  font-size: var(--text-xl);
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.004em;
  line-height: 1.3;
}

p { margin: 0; text-wrap: pretty; }
.lede {
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text-soft);
  max-width: 60ch;
}

/* Layout */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-8); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--space-8); }
.section { padding: var(--space-16) 0; }
.section-sm { padding: var(--space-10) 0; }
.section-lg { padding: var(--space-24) 0; }

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  /* No permanent rule underneath: the divider is a scroll edge effect, applied
     by .is-scrolled below only once content actually passes beneath the bar. */
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  border-bottom-color: color-mix(in oklab, var(--border) 70%, transparent);
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
}
.site-header .header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-8);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-8);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: "Source Sans 3", var(--font-sans);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--primary-strong);
  text-decoration: none;
}
.brand img {
  height: 24px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
/* The inline mark is sized here rather than per-instance, so the SVG partial
   stays presentation-free. */
.brand-mark {
  height: 30px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.site-footer .brand-mark { height: 26px; }
.brand span {
  display: inline-block;
  line-height: 1;
  /* optical centering: nudge wordmark down a hair so cap-height visually aligns with the canopy */
  transform: translateY(1px);
}
[data-theme="dark"] .brand { color: var(--primary); }
/* Footer logo is 26px (vs 30px in header) — scale the wordmark to keep the
   same logo:title ratio as the brand mark on olivotek.com (~1.24). */
.site-footer .brand { font-size: 1.3125rem; gap: 7px; }

.nav { display: flex; align-items: center; gap: var(--space-1); }
.nav-item {
  position: relative;
  line-height: 1;
  /* match brand wordmark optical-center nudge so labels level with "Olivo" */
  transform: translateY(1px);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: 0.002em;
  color: var(--text-soft);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
/* The visual chip stays compact; the touch target does not. Without this the
   nav items are ~31px tall against a 44px minimum. */
.nav-item::after {
  content: "";
  position: absolute;
  inset: -7px -2px;
}
.nav-item:hover { color: var(--text); background: color-mix(in oklab, var(--text) 5%, transparent); }
.nav-item[aria-current="page"] { color: var(--text); }
.nav-item .chev {
  width: 10px; height: 10px; opacity: 0.6;
  transition: transform var(--dur-base) var(--ease-out);
}
.nav-item[aria-expanded="true"] .chev { transform: rotate(180deg); }
i.chev { font-size: 11px !important; }

.nav-spacer { flex: 1; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: 10px;
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition:
    background var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}
/* Feedback lands on pointer-down, not on release. */
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary-strong); color: var(--primary-fg); }
.btn-primary:hover { background: var(--primary-strong-hover); }
.btn-ghost { color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: color-mix(in oklab, var(--text) 5%, transparent); }
.btn-soft { background: var(--primary-soft); color: var(--on-primary-soft); }
.btn-soft:hover { background: color-mix(in oklab, var(--primary-soft) 80%, var(--text) 8%); }
.btn-lg { padding: var(--space-3) var(--space-6); font-size: var(--text-md); }

/* Header buttons: match the brand mark's height (30px) */
.site-header .btn {
  height: 30px;
  padding: 0 var(--space-3);
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
}
/* Expand the hit area to 44px without changing the 30px chip. */
.site-header .btn::after {
  content: "";
  position: absolute;
  inset: -7px -2px;
}

.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 var(--space-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-soft);
  font-size: var(--text-xs);
  line-height: 1;
  cursor: pointer;
}
.theme-toggle::after {
  content: "";
  position: absolute;
  inset: -10px;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle i { font-size: 13px; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* MOBILE NAV -------------------------------------------------------------
   Below 900px the desktop nav is hidden, and before this existed nothing
   replaced it: the header was a logo and one button, with Pricing, About and
   all three product pages reachable only from the footer. */
.menu-toggle {
  position: relative;
  display: none;            /* shown at the breakpoint below */
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 30px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: none;
}
/* 44px target without growing the 30px chip. */
.menu-toggle::after { content: ""; position: absolute; inset: -7px; }
.menu-toggle i { font-size: 18px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: inline-block; }

.mobile-nav-scrim {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 98;
  background: color-mix(in oklab, var(--bg) 60%, transparent);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}
.mobile-nav-scrim.open { opacity: 1; }

.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 99;
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out),
    visibility 0s linear var(--dur-base);
}
.mobile-nav.open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out),
    visibility 0s;
}
.mobile-nav-inner {
  padding: var(--space-4) var(--space-5) var(--space-6);
  /* Bottom inset so the last button clears a phone's home indicator. */
  padding-bottom: calc(var(--space-6) + env(safe-area-inset-bottom, 0px));
  display: grid;
  gap: var(--space-4);
}
.mn-group { display: grid; gap: 2px; }
.mn-group + .mn-group { border-top: 1px solid var(--border); padding-top: var(--space-4); }

.mn-product {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-2);
  border-radius: var(--radius);
  min-height: 44px;
  transition: background var(--dur-fast) var(--ease-out);
}
.mn-product:hover, .mn-product:active { background: var(--surface-2); }
.mn-product .icon-tile {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--primary-soft);
  color: var(--on-primary-soft);
  flex-shrink: 0;
}
.mn-product .icon-tile i { font-size: 20px; }
[data-theme="dark"] .mn-product .icon-tile {
  background: color-mix(in oklab, var(--primary) 18%, var(--surface));
  color: var(--primary);
}
.mn-text { display: grid; gap: 1px; min-width: 0; }
.mn-title { font-weight: 600; font-size: var(--text-md); color: var(--text); }
.mn-desc { font-size: var(--text-sm); line-height: 1.35; color: var(--muted); }

.mn-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: var(--space-2);
  border-radius: var(--radius);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--text-soft);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.mn-link:hover, .mn-link:active { background: var(--surface-2); color: var(--text); }
.mn-link[aria-current="page"] { color: var(--primary-strong); font-weight: 600; }
[data-theme="dark"] .mn-link[aria-current="page"] { color: var(--primary); }

.mn-actions {
  display: grid;
  gap: var(--space-2);
  border-top: 1px solid var(--border);
  padding-top: var(--space-4);
}
.mn-actions .btn { width: 100%; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
}
/* Above the breakpoint the panel can never be open, so keep it fully inert. */
@media (min-width: 901px) {
  .mobile-nav, .mobile-nav-scrim { display: none; }
}

/* MEGA MENU */
.megamenu-overlay {
  position: fixed;
  top: calc(var(--header-h) + 4px);
  left: 0;
  background: transparent;
  z-index: 99;
  opacity: 0;
  /* visibility, not opacity alone: with only `opacity: 0` the three product
     links stayed in the tab order while invisible, and the panel's
     aria-hidden="true" then covered focusable content. */
  visibility: hidden;
  pointer-events: none;
  /* Anchored to the trigger, so the panel grows out of the button that opened
     it rather than out of its own centre. */
  transform-origin: top left;
  transform: translateY(-8px) scale(0.98);
  transition:
    opacity var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out),
    visibility 0s linear var(--dur-base);
}
.megamenu-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition:
    opacity var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out),
    visibility 0s;
}
.megamenu-inner {
  /* One column, not three: each row now carries a line saying what's there,
     which three 200px columns had no room for. */
  width: 380px;
  max-width: calc(100vw - var(--space-8));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.10), 0 4px 12px rgba(0, 0, 0, 0.06);
  padding: var(--space-2);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}
[data-theme="dark"] .megamenu-inner {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.product-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius);
  text-align: left;
  transition: background var(--dur-fast) var(--ease-out);
}
.product-card:hover { background: var(--surface-2); }
.product-card .icon-tile {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--primary-soft);
  color: var(--on-primary-soft);
  flex-shrink: 0;
}
.product-card .icon-tile i { font-size: 20px !important; }
.product-card .icon-tile svg { width: 20px; height: 20px; }
[data-theme="dark"] .product-card .icon-tile {
  background: color-mix(in oklab, var(--primary) 18%, var(--surface));
  color: var(--primary);
}
.product-card .pc-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.product-card .pc-title {
  font-weight: 600;
  font-size: var(--text-md);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text);
}
/* Wayfinding: the row says what's behind the link, not just its name. */
.product-card .pc-desc {
  font-size: var(--text-sm);
  line-height: 1.35;
  letter-spacing: 0.005em;
  color: var(--muted);
}
.product-card .pc-arrow {
  font-size: 14px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.product-card:hover .pc-arrow { opacity: 0.6; transform: translateX(0); }

/* HERO */
.hero { padding: var(--space-16) 0 var(--space-10); }
.hero h1 { line-height: 1.08; padding-bottom: 0.08em; }
.hero h1 .accent { color: var(--primary-strong); font-style: italic; }
[data-theme="dark"] .hero h1 .accent { color: var(--primary); }
.hero .lede { margin-top: var(--space-8); }
.hero .cta-row { margin-top: var(--space-8); display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* The "EU stamp" small pill */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3) var(--space-1) var(--space-2);
  border-radius: var(--radius-full);
  background: var(--primary-soft);
  color: var(--on-primary-soft);
  font-size: var(--text-xs);
  font-weight: 600;
  /* Small text: tracking opens up rather than tightening. */
  letter-spacing: 0.012em;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--primary-strong);
}
[data-theme="dark"] .eyebrow .dot { background: var(--primary); }
.eyebrow .eu-flag {
  width: 18px; height: 14px;
  background: #003399;
  border-radius: 2px;
  display: grid; place-items: center;
  color: #FFCC00;
  font-size: 8px;
  letter-spacing: -1px;
  font-weight: 700;
}

/* Section header */
.section-header { display: grid; gap: var(--space-4); max-width: 720px; margin-bottom: var(--space-12); }
/* An index page whose title lives in a section-header rather than a hero (see
   /products) still needs an h1 for the outline — but at the section scale, not
   the 76px hero scale. */
.section-header h1 {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  letter-spacing: -0.022em;
}
.kicker {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-strong);
}
[data-theme="dark"] .kicker { color: var(--primary); }

/* Title line inside the fake UI illustrations on the product pages. Carries
   what those elements used to inherit from <h4>, minus the heading semantics
   they should never have had. Shared by all three product pages. */
.mock-title {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.004em;
  line-height: 1.3;
  color: var(--text);
}

/* Cards / generic */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.feature {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}
.feature .ico {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--primary-soft);
  color: var(--on-primary-soft);
  margin-bottom: var(--space-4);
}
.feature .ico svg { width: 22px; height: 22px; }
.feature h4 { margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: var(--text-base); }

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  font-size: var(--text-sm);
  margin-top: var(--space-20);
  padding: var(--space-10) 0 var(--space-5);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-8);
}
/* Names the surrounding <nav> landmark via aria-labelledby. Deliberately not a
   heading: as <h5> these three labels put an h2/h3 -> h5 jump in the outline of
   every page on the site. */
.footer-col-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 var(--space-3);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.footer-col a { color: var(--text-soft); font-size: var(--text-sm); }
.footer-col a.brand { color: var(--primary-strong); }
[data-theme="dark"] .footer-col a.brand { color: var(--primary); }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--muted);
}
.lang-switcher {
  display: inline-flex;
  align-items: center;
  /* Anchors the off-screen .lang-measure ruler below. */
  position: relative;
  height: 24px;
  padding: 0 var(--space-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-soft);
  font-size: var(--text-xs);
  line-height: 1;
  cursor: pointer;
}
/* No ::after hit-target here: the <select> inside is the real control and
   receives the clicks, so padding the wrapper would do nothing. */
.lang-switcher:hover { border-color: var(--border-strong); }
.lang-switcher select { background: none; border: none; color: inherit; outline: none; cursor: pointer; padding: 0 var(--space-1) 0 0; width: auto; appearance: none; -webkit-appearance: none; font: inherit; }
/* Off-screen ruler used to size the select to its selected option. */
.lang-measure { position: absolute; visibility: hidden; white-space: pre; padding: 0; }

/* Utility */
.row { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.muted { color: var(--muted); }
.divider { height: 1px; background: var(--border); margin: var(--space-8) 0; }
/* Visible only to screen readers — used for the carousel's live region. */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Responsive */
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  /* The desktop nav gives way to .menu-toggle and the slide-down panel. */
  .nav-item.products-trigger ~ .nav-item { display: none; }
  .nav-item.products-trigger { display: none; }
  /* Sign in moves into the panel at the same breakpoint, so the bar is just
     brand + primary CTA + menu. It used to survive down to 600px and then
     vanish with nothing taking it over. */
  .btn-signin { display: none; }
  .megamenu-inner { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: var(--space-12) 0 var(--space-8); }
  .section { padding: var(--space-12) 0; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .container, .container-narrow { padding: 0 var(--space-5); }
  .site-header .header-inner { padding: 0 var(--space-5); gap: var(--space-3); }
}

/* ===== Suite cards + final CTA =====
   Shared by the homepage and the /products index. */
/* Suite section */
.suite-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.suite-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* Carries the theme fade as well as the hover lift — declared together
     because a second `transition` on the same selector would replace this. */
  transition:
    transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    background-color var(--dur-slow) var(--ease-out),
    border-color var(--dur-slow) var(--ease-out),
    color var(--dur-slow) var(--ease-out);
}
.suite-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.suite-card .preview {
  aspect-ratio: 4/3;
  background: var(--primary-soft);
  border-bottom: 1px solid var(--border);
  position: relative;
  display: grid;
  place-items: center;
  color: var(--on-primary-soft);
}
.suite-card .preview svg { width: 56px; height: 56px; opacity: 0.85; }
/* Product preview — dark canvas with green glow, screenshot peeks from upper-left.
   In light theme the canvas, glow and screenshot all swap to light variants. */
.suite-card .preview-product {
  background:
    radial-gradient(ellipse 50% 45% at 22% 26%, rgba(85, 194, 94, 0.38), transparent 65%),
    radial-gradient(ellipse 80% 80% at 50% 50%, #0c1a13 0%, #06100a 70%);
  overflow: hidden;
  display: block;
}
[data-theme="light"] .suite-card .preview-product,
:root:not([data-theme="dark"]) .suite-card .preview-product {
  background:
    radial-gradient(ellipse 50% 45% at 22% 26%, rgba(85, 194, 94, 0.28), transparent 65%),
    radial-gradient(ellipse 80% 80% at 50% 50%, #F4F8EE 0%, #E8EEDD 70%);
}
/* Soft fade so the screenshot dissolves into the dark canvas at the right
   and bottom edges instead of being clipped on a hard line. */
.suite-card .preview-product::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, transparent 55%, #06100a 100%),
    linear-gradient(to bottom, transparent 55%, #06100a 100%);
}
[data-theme="light"] .suite-card .preview-product::after,
:root:not([data-theme="dark"]) .suite-card .preview-product::after {
  background:
    linear-gradient(to right, transparent 55%, #E8EEDD 100%),
    linear-gradient(to bottom, transparent 55%, #E8EEDD 100%);
}
.suite-card .preview-product img {
  position: absolute;
  top: 14%;
  left: 14%;
  width: 96%;
  height: auto;
  border-radius: var(--radius-sm) 0 0 0;
  box-shadow:
    0 0 0 1px rgba(85, 194, 94, 0.18),
    -10px -10px 40px rgba(85, 194, 94, 0.22),
    0 30px 60px rgba(0, 0, 0, 0.6);
  transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out);
}
[data-theme="light"] .suite-card .preview-product img,
:root:not([data-theme="dark"]) .suite-card .preview-product img {
  box-shadow:
    0 0 0 1px rgba(85, 194, 94, 0.22),
    -10px -10px 40px rgba(85, 194, 94, 0.18),
    0 24px 50px rgba(20, 40, 22, 0.18);
}
.suite-card:hover .preview-product img {
  transform: translate(-10px, -10px);
  box-shadow:
    0 0 0 1px rgba(85, 194, 94, 0.32),
    -16px -16px 64px rgba(85, 194, 94, 0.40),
    0 36px 70px rgba(0, 0, 0, 0.65);
}
.suite-card .body { padding: var(--space-6); }
.suite-card .name { font-weight: 600; font-size: var(--text-xl); margin-bottom: 6px; }
.suite-card .body p { color: var(--muted); font-size: var(--text-base); }
.suite-card .body .arrow {
  margin-top: var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--primary-strong);
}
[data-theme="dark"] .suite-card .body .arrow { color: var(--primary); }

/* The suite grid is shared by the homepage and /products, so its responsive
   rule belongs here rather than in a single page's stylesheet. */
@media (max-width: 900px) {
  .suite-grid { grid-template-columns: 1fr; }
}

/* Final CTA */
.final-cta {
  text-align: center;
  padding: var(--space-24) var(--space-8);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--primary-soft), color-mix(in oklab, var(--primary-soft) 50%, var(--bg)));
  border: 1px solid var(--border);
}
[data-theme="dark"] .final-cta { background: var(--surface-2); }

/* ===== Accessibility preferences =======================================
   Three independent signals, each handled on its own terms. */

/* Reduced motion: keep the feedback, drop the travel. Opacity and colour
   changes aid comprehension and stay; transforms, parallax and the smooth
   scroll jump do not. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: var(--dur-fast) !important;
    scroll-behavior: auto !important;
  }

  /* Anything whose whole point is travel simply stops travelling. */
  .btn:active,
  .suite-card:hover,
  .suite-card:hover .preview-product img,
  .hero-visual:hover img.is-active,
  .product-card:hover .pc-arrow {
    transform: none !important;
  }
  .megamenu-overlay { transform: none !important; }
  /* The panel cross-fades in place instead of sliding down. */
  .mobile-nav { transform: none !important; }
}

/* Reduced transparency: the translucent chrome becomes an opaque surface
   rather than a blurred one. */
@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .site-header.is-scrolled {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: var(--border);
  }
  .megamenu-inner { background: var(--surface); }
}

/* Increased contrast: solid backgrounds and a defined border on every
   floating surface. */
@media (prefers-contrast: more) {
  :root {
    --muted: #4a5147;
    --border: #b9beb0;
    --border-strong: #8d9385;
  }
  [data-theme="dark"] {
    --muted: #b8b8bd;
    --border: #58585c;
    --border-strong: #78787e;
  }
  .site-header,
  .site-header.is-scrolled {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: var(--border-strong);
  }
  .card, .feature, .suite-card, .megamenu-inner { border-color: var(--border-strong); }
  :focus-visible { outline-width: 3px; }
}
