/* ==========================================================================
   OwnTime.lu — shared stylesheet
   Self-hosted fonts, no external requests, no inline styles (strict CSP).

   Identity: "Arco editorial" — graphite #141821 + accent blue #3564e3,
   Jost for display, Inter for body, SOFT corner radii. These are the exact
   values lib/branding.ts and lib/admin-theme.ts define in the product, so
   the marketing site and the thing it sells never drift apart.
   ========================================================================== */

/* ---------- Fonts (self-hosted, GDPR-safe) ----------
   Two families carry the site: Jost (display) and Inter (body).
   The six extra faces below exist only for the theme switcher in the
   "Personnalisation" section, where each vertical preset renders in its own
   real typeface. A browser only downloads a face it actually paints, so
   declaring them costs nothing until a visitor clicks a preset. */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 200 500;
  font-display: swap;
  src: url('/fonts/jost-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 200 500;
  font-display: swap;
  src: url('/fonts/jost-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/playfair-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('/fonts/oswald-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC;
}
@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/anton-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/sourceserif-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/ibmplex-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC;
}

/* ---------- Tokens ----------
   Mirrors lib/admin-theme.ts LIGHT + the brand handoff, value for value.
   Contrast figures in the comments are measured, not estimated. */
:root {
  --ink: #141821;          /* brand graphite: ring of the mark, dark bands */
  --ink-2: #1c222e;        /* one step up, for the darkest band's cards */
  --accent: #3564e3;       /* brand blue: pointer of the mark, links, CTAs */
  --accent-hover: #2b55c6;
  --accent-text: #2a51bd;  /* 5.4:1 on --accent-surface */
  --accent-lift: #6c8cff;  /* the dark-ground variant of the accent */
  --accent-surface: #e8eefc;
  --accent-line: #cbd9f7;

  --bg: #f6f7f9;
  --bg-alt: #eef1f5;
  --surface: #ffffff;
  --line: #e2e6ec;
  --line-2: #d4dae3;
  --line-strong: #8693a6;  /* 3.1:1 on white — WCAG 1.4.11 control outline */

  --text: #141821;
  --text-2: #57606f;       /* 6.4:1 on --bg */
  --text-3: #666f7e;       /* 4.7:1 on --bg, 5.1:1 on a card */

  /* Dark bands. Same ramp as the admin panel's dark theme. */
  --d-bg: #101319;
  --d-surface: #171b23;
  --d-surface-2: #1e2431;
  --d-line: #28303d;
  --d-text: #e7eaf0;
  --d-text-2: #a4aebd;
  --d-text-3: #8b95a5;

  /* SOFT scale — the preset the platform now ships as its default. */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;

  --shadow-sm: 0 2px 8px -4px rgba(20, 24, 33, 0.18);
  --shadow: 0 20px 44px -32px rgba(20, 24, 33, 0.42);
  --shadow-lg: 0 36px 74px -42px rgba(20, 24, 33, 0.48);

  --font-display: 'Jost', Futura, 'Century Gothic', system-ui, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;

  --header-h: 66px;
  --wrap: 1160px;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

::selection {
  background: var(--accent-surface);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 var(--r-md) 0;
  font-size: 14px;
}
.skip:focus {
  left: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Icon <symbol> sprite: takes no space, paints nothing on its own. */
.sprite {
  position: absolute;
}

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 92px 0;
}
.section--tight {
  padding: 68px 0;
}
.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section--dark {
  background: var(--ink);
  color: var(--d-text-2);
}
.anchor {
  scroll-margin-top: calc(var(--header-h) + 8px);
}

/* ---------- Type scale ---------- */
.eyebrow {
  display: block;
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.section--dark .eyebrow {
  color: var(--accent-lift);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--text);
  letter-spacing: -0.018em;
  margin: 0;
}

.h1 {
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 500;
  line-height: 1.06;
}
.h1 span:last-of-type {
  color: var(--accent);
}

.h2 {
  font-size: clamp(29px, 3.4vw, 42px);
  font-weight: 500;
  line-height: 1.14;
}
.section--dark .h2 {
  color: #fff;
}

.h3 {
  font-size: 19px;
  font-weight: 500;
  line-height: 1.3;
}
.section--dark .h3 {
  color: #fff;
}

.lede {
  font-size: 17px;
  line-height: 1.62;
  color: var(--text-2);
  margin: 14px 0 0;
  max-width: 60ch;
}
.section--dark .lede {
  color: var(--d-text-2);
}

.head {
  max-width: 680px;
}
.head--center {
  margin: 0 auto;
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 26px;
  border: 1.5px solid transparent;
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s, background 0.18s, border-color 0.18s, color 0.18s;
}
.btn:hover {
  transform: translateY(-1.5px);
}
.btn--sm {
  padding: 10px 18px;
  font-size: 13.5px;
}

.btn--primary {
  background: var(--ink);
  color: #fff;
}
.btn--primary:hover {
  background: #000;
}

.btn--accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 16px 30px -18px rgba(53, 100, 227, 0.9);
}
.btn--accent:hover {
  background: var(--accent-hover);
}

.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-2);
}
.btn--ghost:hover {
  border-color: var(--line-strong);
}

.section--dark .btn--ghost {
  background: transparent;
  color: var(--d-text);
  border-color: #3a4453;
}
.section--dark .btn--ghost:hover {
  border-color: var(--d-text-3);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  background: rgba(246, 247, 249, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* The lockup: mark + wordmark. Gap is 0.4x the mark height and the wordmark
   is Jost Light in caps at 0.26em — the minimums the brand handoff sets for
   a lockup under 20px. Do not tighten the tracking below 0.2em. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex: none;
}
.brand__mark {
  width: 23px;
  height: 23px;
  flex: none;
}
.brand__word {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
}
.brand__word i {
  font-style: normal;
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14.5px;
  color: var(--text-2);
}
.nav a {
  text-decoration: none;
  transition: color 0.18s;
}
.nav a:hover {
  color: var(--accent);
}

.header__end {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Language menu */
.lang {
  position: relative;
}
.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text-2);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}
.lang__btn svg {
  width: 11px;
  height: 11px;
  opacity: 0.6;
}
.lang__menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 190px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.lang__menu.is-open {
  display: block;
}
.lang__menu a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  font-size: 14px;
  text-decoration: none;
  color: var(--text-2);
}
.lang__menu a:hover {
  background: var(--bg-alt);
}
.lang__menu a.is-active {
  color: var(--accent-text);
  background: var(--accent-surface);
}

/* Burger */
.burger {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--surface);
  cursor: pointer;
  padding: 0;
}
.burger span {
  display: block;
  width: 17px;
  height: 1.6px;
  background: var(--text);
  border-radius: 2px;
  position: relative;
}
.burger span::before,
.burger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 17px;
  height: 1.6px;
  background: var(--text);
  border-radius: 2px;
}
.burger span::before {
  top: -5.5px;
}
.burger span::after {
  top: 5.5px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(246, 247, 249, 0.98);
  padding: 10px 24px 18px;
}
.mobile-nav.is-open {
  display: block;
}
.mobile-nav a {
  display: block;
  padding: 12px 4px;
  font-size: 15.5px;
  color: var(--text-2);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:last-child {
  border-bottom: 0;
  color: var(--accent-text);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 68px) 0 88px;
}
/* One soft wash, no blobs: the neutral preset ships heroDecor NONE and the
   marketing site follows it. */
.hero::before {
  content: '';
  position: absolute;
  top: -280px;
  right: -220px;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 38%, #e4eaf6, rgba(228, 234, 246, 0) 70%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 56px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--accent-surface);
  color: var(--accent-text);
  font-size: 12.5px;
  font-weight: 600;
}
.badge svg {
  width: 13px;
  height: 13px;
  flex: none;
}

.hero h1 {
  margin: 22px 0 0;
}
.hero .lede {
  margin-top: 20px;
  font-size: 18px;
  max-width: 520px;
}
.hero .lede strong {
  color: var(--text);
  font-weight: 600;
}

.ticks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
  font-size: 14.5px;
  color: var(--text-3);
}
.ticks span {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ticks span::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* Browser + phone frames — the same chrome is reused by the tour and the
   theme switcher, so a screenshot always reads as "a real page". */
.hero__visual {
  position: relative;
}
.frame {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.frame__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.frame__bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-2);
  flex: none;
}
.frame__url {
  margin-left: 10px;
  font-size: 11.5px;
  color: var(--text-3);
  font-style: normal;
}
.frame--dark {
  background: #0e121a;
  border-color: var(--d-line);
}
.frame--dark .frame__bar {
  background: var(--d-surface-2);
  border-bottom-color: var(--d-line);
}
.frame--dark .frame__bar i {
  background: #3a424f;
}
.frame--dark .frame__url {
  color: var(--d-text-3);
}

.phone {
  position: absolute;
  right: -14px;
  bottom: -38px;
  width: 150px;
  border-radius: 20px;
  overflow: hidden;
  border: 5px solid var(--ink);
  box-shadow: 0 26px 50px -22px rgba(20, 24, 33, 0.55);
}

/* ---------- Stats band ---------- */
.stats {
  background: var(--ink);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 46px 0;
}
.stat {
  text-align: center;
}
.stat + .stat {
  border-left: 1px solid #2a313f;
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 300;
  color: var(--accent-lift);
  line-height: 1;
  letter-spacing: -0.01em;
}
.stat span {
  display: block;
  font-size: 13px;
  color: var(--d-text-3);
  margin-top: 9px;
}

/* ---------- Niches ---------- */
.niches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 40px;
}
.niche {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color 0.2s, transform 0.2s;
}
.niche:hover {
  border-color: var(--accent-line);
  transform: translateY(-2px);
}
.niche b {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-3);
  flex: none;
  width: 22px;
}
.niche strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.niche em {
  display: block;
  font-style: normal;
  font-size: 13px;
  color: var(--text-3);
  margin-top: 1px;
}
.note {
  margin: 22px 0 0;
  font-size: 14.5px;
  color: var(--text-3);
}

/* ==========================================================================
   Personnalisation — live theme switcher
   The preview is not a screenshot: it is a real mock of a tenant page whose
   colours, typeface and corner radius come from CSS custom properties that
   site.js recomputes with the same tint/shade math the product uses.
   ========================================================================== */
.perso {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 30px;
  margin-top: 44px;
  align-items: start;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.panel__label {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.presets {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}
.preset {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}
.preset:hover {
  border-color: var(--line-strong);
}
.preset[aria-pressed='true'] {
  border-color: var(--accent);
  background: var(--accent-surface);
}
.preset__sw {
  display: flex;
  flex: none;
}
.preset__sw i {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.preset__sw i + i {
  margin-left: -7px;
}

/* The two swatches per preset. These live in CSS rather than in a style
   attribute because the CSP is style-src 'self' — and as classes they still
   paint with JavaScript disabled, which a JS-assigned colour would not. */
.sw--141821 { background: #141821; }
.sw--3564e3 { background: #3564e3; }
.sw--c8a96e { background: #c8a96e; }
.sw--e8b4b8 { background: #e8b4b8; }
.sw--a8332a { background: #a8332a; }
.sw--c9a227 { background: #c9a227; }
.sw--d5341f { background: #d5341f; }
.sw--4a4a4a { background: #4a4a4a; }
.sw--35618f { background: #35618f; }
.sw--a9c4dd { background: #a9c4dd; }
.sw--f0632b { background: #f0632b; }
.sw--ffb27a { background: #ffb27a; }
.sw--111111 { background: #111111; }
.sw--6e6e6e { background: #6e6e6e; }
.preset__name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.panel__note {
  margin: 20px 0 0;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--accent-surface);
  border: 1px solid var(--accent-line);
  font-size: 13px;
  line-height: 1.55;
  color: var(--accent-text);
}
.panel__note strong {
  font-weight: 600;
}

/* --- the mock tenant page --- */
.preview {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

/* Every declaration below reads from --t-* variables that site.js writes on
   .mock. Nothing here hardcodes a preset colour.

   The defaults are the NEUTRAL preset, run through the same maths by hand, so
   the preview is already correct on first paint and stays correct with
   JavaScript disabled — where it simply shows the platform default theme. */
.mock {
  --t-primary: #141821;
  --t-on-primary: #ffffff;
  --t-deep: #2a50b6;
  --t-surface: #dcdcde;
  --t-bg: #f7f7f7;
  --t-card: #ffffff;
  --t-line: #e8e8e9;
  --t-border: #757577;
  --t-text: #1a1a1a;
  --t-sec: #6b6b6b;
  --t-muted: #707070;
  --t-display: 'Jost', Futura, 'Century Gothic', system-ui, sans-serif;
  --t-body: 'Inter', system-ui, sans-serif;
  --t-sm: 6px;
  --t-md: 10px;
  --t-lg: 14px;
  --t-pill: 10px;

  background: var(--t-bg);
  font-family: var(--t-body);
  transition: background 0.3s;
}
.mock__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 24px;
  background: var(--t-card);
  border-bottom: 1px solid var(--t-line);
}
.mock__brand {
  display: flex;
  align-items: center;
  gap: 9px;
}
.mock__brand svg {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--t-primary);
}
.mock__brand b {
  font-family: var(--t-display);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--t-text);
  letter-spacing: -0.01em;
}
.mock__nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12.5px;
  color: var(--t-muted);
}
.mock__cta {
  padding: 8px 15px;
  border-radius: var(--t-pill);
  background: var(--t-primary);
  color: var(--t-on-primary);
  font-weight: 600;
  font-size: 12px;
}

.mock__hero {
  position: relative;
  overflow: hidden;
  padding: 34px 24px 30px;
}

/* Hero decoration shapes — ported from the application's own CSS and driven
   by the data-hero-decor attribute that site.js sets on .mock__hero when
   a preset is selected. NONE (and any absent attribute) intentionally has
   no rule: the pseudo-elements default to content:none and paint nothing. */
.mock__hero[data-hero-decor="BLOBS"]::before,
.mock__hero[data-hero-decor="BLOBS"]::after,
.mock__hero[data-hero-decor="STRIPE"]::before,
.mock__hero[data-hero-decor="SLAB"]::before,
.mock__hero[data-hero-decor="WASH"]::before,
.mock__hero[data-hero-decor="RULE"]::before,
.mock__hero[data-hero-decor="GRAIN"]::before {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
}
.mock__hero > * { position: relative; z-index: 1; }

/* BLOBS — two soft circles, top-right and bottom-left. */
.mock__hero[data-hero-decor="BLOBS"]::before {
  top: 0; right: 0;
  width: 260px; height: 260px;
  border-radius: 9999px;
  background: var(--t-surface);
  opacity: 0.6;
  transform: translate(33%, -25%);
}
.mock__hero[data-hero-decor="BLOBS"]::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  bottom: 0; left: 0;
  width: 180px; height: 180px;
  border-radius: 9999px;
  background: var(--t-primary);
  opacity: 0.1;
  transform: translate(-33%, 25%);
}

/* STRIPE — diagonal hairline hatch. */
.mock__hero[data-hero-decor="STRIPE"]::before {
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    var(--t-primary) 0 5px,
    transparent 5px 16px
  );
  opacity: 0.12;
}

/* SLAB — a wide low-opacity band tilted at the bottom-left. */
.mock__hero[data-hero-decor="SLAB"]::before {
  left: 0; bottom: 0;
  width: 150%; height: 36px;
  background: var(--t-primary);
  opacity: 0.17;
  transform: rotate(-13deg);
  transform-origin: bottom left;
}

/* WASH — soft directional tint from the top-left. */
.mock__hero[data-hero-decor="WASH"]::before {
  inset: 0;
  background: linear-gradient(160deg, var(--t-surface) 0%, transparent 62%);
}

/* RULE — single inset hairline at the top. */
.mock__hero[data-hero-decor="RULE"]::before {
  top: 0; left: 8%; right: 8%;
  height: 3px;
  background: var(--t-primary);
}

/* GRAIN — soft speckle of light, upper-right. */
.mock__hero[data-hero-decor="GRAIN"]::before {
  inset: 0;
  background: radial-gradient(
    circle at 78% 22%,
    color-mix(in srgb, var(--t-text) 12%, transparent) 0%,
    transparent 45%
  );
  opacity: 0.5;
}
.mock__pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: var(--t-pill);
  background: var(--t-surface);
  color: var(--t-deep);
  font-size: 11.5px;
  font-weight: 600;
}
.mock__pill svg {
  width: 12px;
  height: 12px;
}
.mock__title {
  font-family: var(--t-display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  color: var(--t-text);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 15px 0 0;
}
.mock__title span:last-of-type {
  color: var(--t-primary);
}
.mock__sub {
  font-size: 14px;
  color: var(--t-sec);
  margin: 13px 0 0;
  max-width: 420px;
  line-height: 1.55;
}
.mock__btns {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.mock__btn {
  padding: 11px 20px;
  border-radius: var(--t-md);
  background: var(--t-primary);
  color: var(--t-on-primary);
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--t-display);
}
.mock__btn--ghost {
  background: transparent;
  color: var(--t-text);
  border: 1.5px solid var(--t-border);
}

.mock__services {
  padding: 24px;
  background: var(--t-card);
  border-top: 1px solid var(--t-line);
}
.mock__services h4 {
  margin: 0;
  font-family: var(--t-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--t-text);
}
.mock__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.mock__card {
  padding: 14px;
  border: 1px solid var(--t-line);
  border-radius: var(--t-md);
  background: var(--t-bg);
}
.mock__cat {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--t-deep);
}
.mock__name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--t-text);
  margin-top: 5px;
}
.mock__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 9px;
  font-size: 11.5px;
  color: var(--t-muted);
}
.mock__meta b {
  font-size: 13px;
  color: var(--t-deep);
}
.mock__book {
  margin-top: 10px;
  padding: 7px 0;
  border-radius: var(--t-pill);
  background: var(--t-surface);
  color: var(--t-deep);
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
}

.perso__foot {
  margin: 16px 0 0;
  font-size: 13.5px;
  color: var(--text-3);
  text-align: center;
}

/* ---------- Tour (screenshot tabs) ---------- */
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.tab {
  padding: 9px 17px;
  border: 1.5px solid #3a4453;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--d-text-2);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.tab:hover {
  border-color: var(--d-text-3);
  color: #fff;
}
.tab[aria-selected='true'] {
  background: var(--accent-lift);
  border-color: var(--accent-lift);
  color: var(--ink);
}

.tour__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* Light / dark switch for the admin screenshots. The admin panel really does
   ship both, so the toggle shows the product rather than describing it. */
.modes {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--d-line);
  border-radius: var(--r-md);
  background: var(--d-surface);
}
.mode {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--d-text-3);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.mode svg {
  width: 14px;
  height: 14px;
}
.mode[aria-pressed='true'] {
  background: var(--d-surface-2);
  color: #fff;
}

.panel-slide[hidden] {
  display: none;
}
.tour__figure {
  margin: 16px 0 0;
}
/* The phone shot is portrait; without a cap it would tower over the page. */
#panel-7 .frame {
  max-width: 380px;
}
.tour__figure img {
  width: 100%;
  cursor: zoom-in;
}
.tour__cap {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--d-text-2);
  max-width: 76ch;
}
.tour__note {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--d-text-3);
}

/* ---------- Feature cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.card {
  display: flex;
  gap: 20px;
  padding: 25px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  transition: transform 0.22s, box-shadow 0.22s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.card__n {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  flex: none;
  width: 34px;
}
.card p {
  margin: 8px 0 0;
  font-size: 14.5px;
  color: var(--text-2);
}
.card ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.card li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--text-3);
}
.card li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-line);
}

/* ---------- Agenda modes ---------- */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.duo__box {
  padding: 30px 28px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
}
.duo__box--dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--d-text-2);
}
.duo__box--dark h3 {
  color: #fff;
}
.duo__box--dark p {
  color: var(--d-text-2);
}
.tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-surface);
  color: var(--accent-text);
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.duo__box--dark .tag {
  background: rgba(108, 140, 255, 0.16);
  color: var(--accent-lift);
}
.duo__box h3 {
  margin: 16px 0 0;
  font-size: 23px;
}
.duo__box p {
  margin: 11px 0 0;
  font-size: 14.5px;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-top: 44px;
}
.step__n {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  box-shadow: 0 12px 24px -12px rgba(53, 100, 227, 0.9);
}
.step h3 {
  margin: 18px 0 0;
  font-size: 18px;
}
.step p {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--text-3);
}

/* ---------- Security ---------- */
.sec {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.sec__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sec__list--gap {
  margin-top: 26px;
}
.sec__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.sec__item svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 2px;
  color: var(--accent);
}
.sec__item strong {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
}
.sec__item span {
  display: block;
  font-size: 13.5px;
  color: var(--text-3);
  margin-top: 2px;
  line-height: 1.5;
}

/* ---------- Languages ---------- */
.langs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
  flex-wrap: wrap;
}
.langs__text {
  max-width: 480px;
}
.langs__cards {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.langs__card {
  min-width: 106px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  text-align: center;
}
.langs__card b {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.langs__card span {
  display: block;
  font-size: 12.5px;
  color: var(--text-3);
  margin-top: 5px;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 820px;
  margin: 36px auto 0;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  margin-bottom: 10px;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  width: 9px;
  height: 9px;
  flex: none;
  border-right: 1.6px solid var(--text-3);
  border-bottom: 1.6px solid var(--text-3);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}
.faq p {
  margin: 0;
  padding: 0 22px 20px;
  font-size: 15px;
  color: var(--text-2);
}

/* ---------- Final CTA ---------- */
.cta {
  text-align: center;
  padding: 92px 0;
}
.cta svg {
  width: 38px;
  height: 38px;
  margin: 0 auto;
}
.cta h2 {
  margin: 22px 0 0;
  font-size: clamp(32px, 4.2vw, 50px);
  font-weight: 400;
  color: #fff;
  line-height: 1.08;
}
.cta h2 span:last-of-type {
  color: var(--accent-lift);
}
.cta p {
  margin: 18px auto 0;
  max-width: 520px;
  font-size: 17px;
  color: var(--d-text-2);
}
.cta .btn-row {
  justify-content: center;
  margin-top: 34px;
}

/* ---------- Footer ---------- */
.footer {
  background: #0b0e14;
  color: var(--d-text-3);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  padding: 34px 0;
  font-size: 13.5px;
}
.footer .brand__word {
  color: var(--d-text-2);
  font-size: 13px;
}
.footer a {
  text-decoration: none;
}
.footer a:hover {
  color: var(--d-text);
}
.footer__links {
  display: flex;
  gap: 20px;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(9, 11, 15, 0.97);
  display: flex;
  flex-direction: column;
}
.lightbox[hidden] {
  display: none;
}
.lightbox__top {
  background: var(--d-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--d-line);
}
.lightbox__tools {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lightbox__btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--d-line);
  border-radius: var(--r-md);
  background: var(--d-surface);
  color: var(--d-text);
  cursor: pointer;
  padding: 0;
}
.lightbox__btn:hover {
  background: var(--d-surface-2);
}
.lightbox__btn svg {
  width: 17px;
  height: 17px;
}
.lightbox__level {
  min-width: 54px;
  text-align: center;
  font-size: 13px;
  color: var(--d-text-3);
}
.lightbox__hint {
  font-size: 12.5px;
  color: var(--d-text-3);
}
.lightbox__stage {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: none;
}
.lightbox__stage.is-panning {
  cursor: grabbing;
}
.lightbox__img {
  max-width: none;
  max-height: 100%;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox__img.is-zoomed {
  max-height: none;
}

/* A framed screenshot opens the viewer; make that obvious and reachable. */
.is-zoomable {
  cursor: zoom-in;
}
.is-lightbox-open,
.is-lightbox-open body {
  overflow: hidden;
}
.lightbox__caption {
  background: var(--d-bg);
  margin: 0;
  padding: 12px 18px 18px;
  font-size: 13.5px;
  color: var(--d-text-2);
  text-align: center;
}

/* ==========================================================================
   Inner pages (contact, privacy)
   ========================================================================== */
.page {
  padding: calc(var(--header-h) + 56px) 0 20px;
}
.page h1 {
  margin: 18px 0 0;
  font-size: clamp(34px, 4.4vw, 50px);
  font-weight: 500;
  line-height: 1.06;
}


.form-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: start;
  padding-bottom: 92px;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 30px 28px;
  box-shadow: var(--shadow);
}
.form-card h2 {
  font-size: 22px;
  margin: 0 0 20px;
}
.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 7px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--bg);
  font: inherit;
  font-size: 15px;
  color: var(--text);
}
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}
.field textarea {
  min-height: 130px;
  resize: vertical;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 6px 0 20px;
  font-size: 13.5px;
  color: var(--text-3);
}
.consent input {
  margin-top: 4px;
  accent-color: var(--accent);
  flex: none;
}
/* contact.js rewrites this element's whole className, so the modifier has to
   stay a BEM suffix on .form-msg rather than a separate state class. */
.form-msg {
  margin: 14px 0 0;
  font-size: 14px;
  min-height: 20px;
}
.form-msg--error {
  color: #c02626;
}
.form-msg--ok {
  color: #12734a;
}

/* Honeypot: out of view for people, still fillable by a bot. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field__req {
  color: var(--accent-text);
}

.aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.aside__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 24px;
}
.aside__card h3 {
  font-size: 17px;
  margin: 0 0 8px;
}
.aside__card p,
.aside__card a {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-2);
}
.aside__card a {
  color: var(--accent-text);
}

.prose {
  max-width: 800px;
  padding-bottom: 92px;
}
.prose h2 {
  font-size: 24px;
  margin: 40px 0 12px;
}
.prose h3 {
  font-size: 18px;
  margin: 26px 0 8px;
}
.prose p,
.prose li {
  font-size: 15.5px;
  color: var(--text-2);
}
.prose ul {
  padding-left: 20px;
}
.prose li {
  margin-bottom: 6px;
}
.prose a {
  color: var(--accent-text);
}
.prose__meta {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--text-3);
}
.prose .note {
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--accent-surface);
  border: 1px solid var(--accent-line);
  font-size: 14px;
  color: var(--accent-text);
}

/* Data-category chips in the privacy policy. */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 20px;
}
.chip {
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-2);
}

/* The GDPR rights grid. */
.rights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0 24px;
}
.rights__card {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.rights__card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.rights__card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-3);
}

.page h1 .accent {
  color: var(--accent);
}

/* ==========================================================================
   Responsive — 1000px drops the desktop nav, 760px goes single column
   ========================================================================== */
@media (max-width: 1000px) {
  .nav {
    display: none;
  }
  .burger {
    display: flex;
  }
  .hero__grid,
  .perso,
  .sec,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .hero__visual {
    max-width: 620px;
  }
  .phone {
    width: 138px;
    right: 0;
    bottom: -24px;
  }
  .niches,
  .cards,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .section {
    padding: 72px 0;
  }
}

@media (max-width: 760px) {
  .niches,
  .cards,
  .steps,
  .duo,
  .mock__grid {
    grid-template-columns: 1fr;
  }
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 12px;
  }
  .stat:nth-child(odd) {
    border-left: 0;
  }
  .hero {
    padding-top: calc(var(--header-h) + 40px);
  }
  .hero::before {
    width: 380px;
    height: 380px;
    top: -150px;
    right: -120px;
  }
  .phone,
  .mock__nav,
  .header .btn,
  .lightbox__hint {
    display: none;
  }
  .card {
    flex-direction: column;
    gap: 10px;
  }
  .card__n {
    width: auto;
  }
  .mock__head {
    padding: 13px 16px;
  }
  .mock__hero,
  .mock__services {
    padding: 24px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
