/* AI Atlas — coming-soon, design variant «Pro» (proposal, EN).
   A second design language for the launch page: Swiss-institutional rather than
   consumer-tech. Ink slate + cartographic paper, ONE accent (a Swiss red used only
   as a mark, never as a surface), inverted solid buttons instead of gradients,
   hairlines and registration ticks as the signature detail. Self-contained:
   Inter self-hosted, zero external requests. Dark-first with automatic light
   mode; manual toggle (same 'ai-theme' key as the atlas). */

@font-face {
  font-family: 'Inter';
  src: url('../fonts/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens: dark (default) ---------- */
:root {
  --bg: #0f1419;          /* ink slate — graphite, not purple-black */
  --surface: #161c23;
  --surface-2: #1b232c;
  --edge: #2a343f;
  --edge-soft: #222b34;
  --text: #eceff1;
  --muted: #9aa6b2;
  --faint: #6b7783;
  --mark: #e3242b;        /* Swiss red — marks and dots only */
  --link: #8cbbe0;        /* glacier */
  --btn-bg: #eceff1;      /* inverted solid button */
  --btn-fg: #0f1419;
  --ok: #5ccb8e;
  --ok-strong: #5ccb8e; --ok-bg: rgba(92, 203, 142, .14); --ok-edge: rgba(92, 203, 142, .5);
  --warn: #e9b44c;
  --shadow: 0 18px 48px rgba(0, 0, 0, .45);
  --r: 6px;               /* deliberately sharper than the atlas' 16px */
  --r-l: 10px;
  --maxw: 72rem;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4f5f2;        /* cartographic paper, cool grey-green bias */
    --surface: #ffffff;
    --surface-2: #ebeee9;
    --edge: #d3d9d8;
    --edge-soft: #e2e6e4;
    --ok-strong: #1e7f52; --ok-bg: #e6f5ec; --ok-edge: #8fd1ad;
    --text: #12181e;
    --muted: #55616c;
    --faint: #8a959f;
    --mark: #d8232a;
    --link: #2c5f8a;
    --btn-bg: #12181e;
    --btn-fg: #ffffff;
    --shadow: 0 18px 48px rgba(18, 24, 30, .10);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f4f5f2; --surface: #ffffff; --surface-2: #ebeee9; --edge: #d3d9d8; --edge-soft: #e2e6e4; --ok-strong: #1e7f52; --ok-bg: #e6f5ec; --ok-edge: #8fd1ad;
  --text: #12181e; --muted: #55616c; --faint: #8a959f; --mark: #d8232a; --link: #2c5f8a;
  --btn-bg: #12181e; --btn-fg: #ffffff; --shadow: 0 18px 48px rgba(18, 24, 30, .10);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0f1419; --surface: #161c23; --surface-2: #1b232c; --edge: #2a343f; --edge-soft: #222b34;
  --text: #eceff1; --muted: #9aa6b2; --faint: #6b7783; --mark: #e3242b; --link: #8cbbe0;
  --btn-bg: #eceff1; --btn-fg: #0f1419; --shadow: 0 18px 48px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-feature-settings: 'cv11', 'ss01', 'ss03'; /* Inter: single-storey a, open digits */
}
img, svg { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .15em; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.1rem, 3vw, 2rem); }

/* small uppercase label — the page's metadata voice */
.label {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace; letter-spacing: 0; }

/* ---------- header ---------- */
.top { border-bottom: 1px solid var(--edge-soft); }
.top__row { display: flex; align-items: center; gap: 1.2rem; min-height: 3.6rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--text); font-weight: 600; font-size: 1.02rem; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 18px; height: 18px; flex: none; image-rendering: pixelated; image-rendering: crisp-edges; } /* 18 = the grid: 1:1 on 1×, 2:1 on 2×, 3:1 on 3× — any other size makes the 1-px strokes uneven */
.brand__tag { margin-left: .35rem; padding-left: .8rem; border-left: 1px solid var(--edge); color: var(--faint); font-size: .78rem; font-weight: 500; }
.top__right { margin-left: auto; display: flex; align-items: center; gap: .9rem; }
.lang-nav { display: flex; align-items: center; gap: .1rem; }
.lang-nav button {
  font: inherit; font-size: .72rem; font-weight: 600; letter-spacing: .08em;
  padding: .28rem .42rem; border: 0; border-radius: 4px; background: transparent;
  color: var(--faint); cursor: pointer;
}
.lang-nav button:hover { color: var(--text); }
.lang-nav button[aria-pressed="true"] { color: var(--text); font-weight: 800; } /* active language: bold only, no underline (Sandro 2026-08-22) */
.theme-toggle {
  width: 2rem; height: 2rem; border-radius: 50%;
  border: 1px solid var(--edge); background: transparent; color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.theme-toggle:hover { color: var(--text); border-color: var(--muted); }
.theme-toggle svg { display: none; }
.theme-toggle[data-mode="auto"] .tt-auto,
.theme-toggle[data-mode="light"] .tt-sun,
.theme-toggle[data-mode="dark"] .tt-moon { display: block; }

/* ---------- hero: full-bleed photo, Pro treatment ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(2.2rem, 5vh, 3.4rem) 0 clamp(3rem, 6vh, 4rem);
  background: #0f1419 url('../img/hero/matterhorn-night-1920.jpg') center 80% / cover no-repeat;
  background-image: image-set(
    url('../img/hero/matterhorn-night-1280.webp') type('image/webp'),
    url('../img/hero/matterhorn-night-1920.jpg') type('image/jpeg'));
  border-bottom: 1px solid var(--edge-soft);
}
@media (min-width: 1400px) {
  .hero { background-image: image-set(
    url('../img/hero/matterhorn-night-1920.webp') type('image/webp'),
    url('../img/hero/matterhorn-night-1920.jpg') type('image/jpeg')); }
}
@media (max-width: 640px) {
  .hero { background-image: image-set(
    url('../img/hero/matterhorn-night-640.webp') type('image/webp'),
    url('../img/hero/matterhorn-night-1920.jpg') type('image/jpeg')); }
}
/* ink wash: left-weighted so the type sits on the darker, calmer side of the sky,
   and a bottom band that meets the page ground in BOTH themes */
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(15, 20, 25, .66) 0%, rgba(15, 20, 25, .42) 45%, rgba(15, 20, 25, .12) 100%),
    linear-gradient(180deg, rgba(15, 20, 25, .18) 0%, rgba(15, 20, 25, 0) 35%, rgba(15, 20, 25, .55) 100%);
}
.hero__inner { position: relative; z-index: 2; }
.hero__inner > * { max-width: 44rem; }

/* the launch bubble — on its own, top-left, so the H1 stands alone */
.launch {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .42rem .85rem .42rem .7rem;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px;
  background: rgba(15, 20, 25, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .78);
  margin-bottom: clamp(1.4rem, 3vh, 2.2rem);
}
.launch b { color: #fff; font-weight: 600; }
.launch__dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--mark); position: relative; flex: none; }
.launch__dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--mark); opacity: .55; animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }

.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.3rem);
  font-weight: 650; letter-spacing: -.035em; line-height: 1.02;
  text-wrap: balance; max-width: 12ch;
  color: #fff; text-shadow: 0 2px 24px rgba(15, 20, 25, .55);
}
.hero h1 .dot { color: var(--mark); }
.hero .lead {
  margin-top: 1.4rem; max-width: 38ch;
  font-size: clamp(1.02rem, 1.4vw, 1.2rem); line-height: 1.55;
  color: rgba(255, 255, 255, .84); text-shadow: 0 1px 12px rgba(15, 20, 25, .6);
}
.hero__cta { margin-top: 1.9rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem; }

.hero__meta { position: absolute; left: 0; right: 0; bottom: .85rem; z-index: 2; }
.hero__meta-row { display: grid; justify-content: end; justify-items: start; gap: .3rem; } /* one right-placed column as wide as the coordinate line; both lines left-aligned to where «Matterhorn» starts (Sandro 2026-08-22) */
.hero__coord, .hero__credit {
  font-size: .68rem; letter-spacing: .06em;
  color: rgba(255, 255, 255, .6); text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}
.hero__coord { text-transform: uppercase; }
.hero__coord b { color: rgba(255, 255, 255, .85); font-weight: 600; }
.hero__credit { margin-left: 0; }
.hero__credit:hover { color: #fff; text-decoration: underline; }

/* ---------- buttons ---------- */
/* CTA = the one place the Swiss red becomes a surface (Sandro, round 3) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 1px solid var(--mark); border-radius: var(--r); cursor: pointer;
  background: var(--mark); color: #fff;
  font: inherit; font-weight: 600; font-size: .95rem; letter-spacing: -.005em;
  padding: .72rem 1.25rem; text-decoration: none; transition: transform .12s ease, opacity .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); filter: brightness(.94); }
.btn:active { transform: none; }
.btn:disabled { opacity: .55; cursor: wait; }
.btn--block { width: 100%; }

/* ---------- two-column: expectations + signup ---------- */
.twin { padding: clamp(1.3rem, 2.6vh, 1.7rem) 0 clamp(1.6rem, 3.5vh, 2.6rem); }
.twin__grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
@media (min-width: 56em) { .twin__grid { grid-template-columns: 1fr 1fr; gap: 1.4rem; } }
.panel {
  background: var(--surface); border: 1px solid var(--edge); border-radius: var(--r-l);
  padding: clamp(1.3rem, 2.2vw, 1.7rem);
  display: flex; flex-direction: column;
}
.panel .label { margin-bottom: 1rem; }
.panel h2 { font-size: 1.35rem; margin-bottom: .45rem; }

.expect-list { list-style: none; margin: 0; padding: 0; }
.expect-list li {
  display: grid; grid-template-columns: 1.1rem 1fr; gap: .7rem; align-items: start;
  padding: .55rem 0; border-top: 1px solid var(--edge-soft);
  font-size: .98rem; line-height: 1.45;
}
.expect-list li:last-child { border-bottom: 1px solid var(--edge-soft); }
.expect-list li::before {
  content: ''; width: .42rem; height: .42rem; margin-top: .5rem; justify-self: center;
  background: var(--faint); border-radius: 1px;
}
.specs { display: flex; flex-wrap: wrap; gap: .45rem .6rem; margin-top: 1.1rem; }
.specs span {
  font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  padding: .28rem .6rem; border: 1px solid var(--edge); border-radius: 999px;
}

.signup p.copy { color: var(--muted); font-size: .95rem; margin-bottom: 1.2rem; max-width: 36ch; }
.nl-form { display: flex; flex-direction: column; gap: .6rem; margin: 0; }
.nl-form input[type="email"] {
  width: 100%; background: var(--bg);
  border: 1px solid var(--edge); border-radius: var(--r); padding: .72rem .95rem;
  color: var(--text); font: inherit; font-size: .95rem;
}
.nl-form input[type="email"]::placeholder { color: var(--faint); }
/* hero CTA «ping»: on tall screens the signup panel is already in view, so the click
   needs visible feedback — a red ring pulses twice out of the email field and the
   panel edge flashes once (desktop only; reduced-motion users get focus only). */
@keyframes nl-ping { 0% { box-shadow: 0 0 0 0 rgba(227, 36, 43, .55); border-color: var(--mark); } 70% { box-shadow: 0 0 0 12px rgba(227, 36, 43, 0); border-color: var(--mark); } 100% { box-shadow: 0 0 0 0 rgba(227, 36, 43, 0); } }
@keyframes panel-ping { 0%, 100% { border-color: var(--edge); } 30% { border-color: var(--mark); } }
@media (hover: hover) and (pointer: fine) and (min-width: 56em) {
  .nl-form input[type="email"].is-pinged { animation: nl-ping .7s ease-out 2; }
  .signup.is-pinged { animation: panel-ping 1.4s ease-out 1; }
}
.nl-form input[type="email"]:focus { outline: 0; border-color: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 12%, transparent); }
.nl-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); border: 0; padding: 0; margin: -1px; }
/* Infomaniak web form inside our panel: their classes, our look */
.inf-content { display: flex; flex-direction: column; gap: 0; } /* no flex gap: the floating altcha host and the empty rgpd div are items too */
.inf-rgpd:empty { display: none; }
.inf-submit { margin-top: .6rem; }
.inf-input { display: flex; flex-direction: column; gap: .35rem; }
.inf-input input[type="email"] { width: 100%; box-sizing: border-box; }
.inf-input.inf-error input[type="email"] { border-color: var(--mark); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mark) 14%, transparent); }
.inf-message { font-size: .82rem; font-weight: 600; color: var(--mark); }
.inf-submit input.btn { width: 100%; -webkit-appearance: none; appearance: none; }
.inf-submit input.btn.disabled { opacity: .55; cursor: wait; }
/* success state: clearly visible green panel (contrasty, not dark), check mark, our text */
.nl-done { display: flex; gap: .7rem; align-items: flex-start; padding: .9rem 1rem; border: 1px solid var(--ok-edge); border-radius: var(--r); background: var(--ok-bg); }
.nl-done::before { content: ''; flex: none; width: 22px; height: 22px; margin-top: .1rem; border-radius: 50%; background: var(--ok-strong) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.nl-done p { margin: 0; font-size: .95rem; line-height: 1.55; color: var(--text); }
.nl-done b { color: var(--ok-strong); font-weight: 700; }
altcha-widget { --altcha-border-width: 1px; --altcha-border-radius: 6px; --altcha-color-base: var(--surface); --altcha-color-border: var(--edge); --altcha-color-text: var(--text); --altcha-color-border-focus: var(--text); --altcha-color-error-text: var(--mark); --altcha-max-width: 100%; font: inherit; font-size: .85rem; }
.nl-note { margin-top: auto; padding-top: 1.1rem; font-size: .8rem; line-height: 1.5; color: var(--faint); }
.nl-note b { color: var(--muted); font-weight: 600; }

/* ---------- footer ---------- */
.foot { margin-top: auto; background: var(--surface-2); border-top: 1px solid var(--edge-soft); }
.foot__grid { display: grid; grid-template-columns: 1fr; gap: 1.6rem; padding: 2.2rem 0 1.6rem; }
@media (min-width: 56em) { .foot__grid { grid-template-columns: 1.3fr 1fr 1.4fr; gap: 2.5rem; } }
.foot .label { margin-bottom: .6rem; color: var(--faint); }
.foot p, .foot address { font-style: normal; font-size: .86rem; line-height: 1.6; color: var(--muted); }
.foot a { color: var(--text); }
.foot__brand .brand { margin-bottom: .55rem; }
.foot__bottom {
  display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center;
  padding: 1rem 0 1.4rem; border-top: 1px solid var(--edge-soft);
  font-size: .74rem; color: var(--faint);
}
.foot__bottom span + span::before { content: '·'; margin-right: 1rem; color: var(--faint); }
.foot__bottom .mono { letter-spacing: .02em; }

@media (max-width: 40em) {
  .hero h1 { max-width: none; }
  .hero__coord { display: none; }
  .brand__tag { display: none; }
}

/* ---------- endpoint pages (newsletter.php: confirm / unsubscribe / error) ---------- */
.nlp-main { flex: 1; display: grid; place-items: center; padding: 3rem 0; }
.nlp-card { max-width: 34rem; background: var(--surface); border: 1px solid var(--edge); border-radius: var(--r-l); padding: 2rem 1.8rem; text-align: center; }
.nlp-card h1 { font-size: 1.45rem; margin-bottom: .6rem; letter-spacing: -.02em; }
.nlp-card p { color: var(--muted); margin-bottom: 1.4rem; }
