/* =============================================================
   Stagia — Product page template (shared)
   -------------------------------------------------------------
   One gabarit for the three product pages. The accent follows
   the product via [data-product] on <html> (--product-primary
   from colors_and_type.css): Live = amber, InBeat = teal,
   Editor = pink-red. Link AFTER colors_and_type.css.
   ============================================================= */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-app);
  color: var(--fg-1);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }

.eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--product-primary); margin: 0;
}
.eyebrow.muted { color: var(--fg-3); }

/* ---------------- NAV ---------------- */
nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg-app) 86%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand img { width: 44px; height: 44px; }
.brand .name { font-family: var(--font-display); font-weight: 900; font-size: 22px; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14px; font-weight: 600; color: var(--fg-2); transition: color 120ms ease; }
.nav-links a:hover, .nav-links a.active { color: var(--fg-1); }
.nav-cta {
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  background: var(--product-primary); color: var(--product-primary-fg);
  padding: 9px 18px; border-radius: var(--r-md);
  transition: filter 120ms ease, transform 80ms ease;
}
.nav-cta:hover { filter: brightness(1.07); }
.nav-cta:active { transform: scale(0.97); }

/* ---------------- BUTTONS ---------------- */
.btn-primary {
  font-family: var(--font-display); font-weight: 800; font-size: 16px;
  background: var(--product-primary); color: var(--product-primary-fg);
  padding: 14px 24px; border-radius: var(--r-md); border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  transition: filter 120ms ease, transform 80ms ease, box-shadow 160ms ease;
}
.btn-primary:hover { filter: brightness(1.07); box-shadow: var(--product-primary-glow); }
.btn-primary:active { transform: scale(0.97); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; pointer-events: none; }
.btn-secondary {
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  background: transparent; color: var(--fg-1);
  padding: 14px 22px; border-radius: var(--r-md);
  border: 1px solid var(--border-strong); cursor: pointer;
  display: inline-flex; align-items: center; gap: 9px;
  transition: background 120ms ease, border-color 120ms ease;
}
.btn-secondary:hover { background: var(--bg-surface-1); border-color: var(--fg-3); }
.btn-primary i, .btn-secondary i, .nav-cta i { width: 18px; height: 18px; }
.gp-glyph { display: inline-flex; align-items: center; }

/* ---------------- HERO ---------------- */
.hero { position: relative; padding: 92px 0 80px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; z-index: 0; top: -200px; right: -140px;
  width: 780px; height: 780px;
  background: radial-gradient(circle, color-mix(in srgb, var(--product-primary) 16%, transparent) 0%, transparent 66%);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1; display: grid;
  grid-template-columns: 1.04fr 0.96fr; gap: 56px; align-items: center;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(38px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -0.025em;
  margin: 20px 0 0; text-wrap: balance;
}
.hero h1 .accent { color: var(--product-primary); }
.hero .sub { font-size: 19px; line-height: 1.55; color: var(--fg-2); margin: 22px 0 0; max-width: 32em; }
.hero .adaptive { font-size: 14px; color: var(--fg-3); margin: 14px 0 0; font-style: italic; }
.hero-actions { display: flex; align-items: center; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.status-chips { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.chip {
  font-family: var(--font-mono); font-size: 12px; color: var(--fg-2);
  background: var(--bg-surface-1); border: 1px solid var(--border-subtle);
  padding: 7px 13px; border-radius: var(--r-pill); display: inline-flex; align-items: center; gap: 8px;
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-green); box-shadow: 0 0 8px var(--accent-green); }
.chip .dot.brand { background: var(--product-primary); box-shadow: 0 0 8px var(--product-primary); }

/* device frames */
.device-wrap { display: flex; justify-content: center; }
.phone {
  width: 300px; border-radius: 36px; padding: 11px;
  background: linear-gradient(160deg, #211D2F, #100D1B);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-lg), 0 0 70px color-mix(in srgb, var(--product-primary) 12%, transparent);
}
.phone .screen { border-radius: 26px; overflow: hidden; border: 1px solid rgba(0,0,0,0.5); }
.browser {
  width: 100%; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border-default); background: #100D1B;
  box-shadow: var(--shadow-lg), 0 0 70px color-mix(in srgb, var(--product-primary) 12%, transparent);
}
.browser .bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: var(--bg-surface-1); border-bottom: 1px solid var(--border-subtle); }
.browser .bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.browser .bar .addr { margin-left: 12px; font-family: var(--font-mono); font-size: 11px; color: var(--fg-4); }

/* ---------------- SECTION BASICS ---------------- */
section.block { padding: 72px 0; }
.block-head { max-width: 680px; }
.block-head h2 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(28px, 3.2vw, 38px); line-height: 1.1; letter-spacing: -0.02em; margin: 14px 0 0;
}
.block-head p { font-size: 17px; color: var(--fg-2); margin: 16px 0 0; line-height: 1.55; }

/* ---------------- KEY FEATURES (5) ---------------- */
.keys { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 44px; }
.key {
  background: var(--bg-surface-1); border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl); padding: 22px 20px; display: flex; flex-direction: column; gap: 12px;
}
.key .ic {
  width: 42px; height: 42px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  background: var(--product-tint); color: var(--product-primary);
}
.key .ic i { width: 22px; height: 22px; }
.key h4 { font-family: var(--font-display); font-weight: 800; font-size: 15px; margin: 0; line-height: 1.25; }
.key p { font-size: 13px; color: var(--fg-3); line-height: 1.5; margin: 0; }

/* ---------------- FREEMIUM BANNER ---------------- */
.freemium {
  margin-top: 36px; display: flex; align-items: center; gap: 14px; justify-content: center;
  background: var(--product-tint); border: 1px solid color-mix(in srgb, var(--product-primary) 30%, transparent);
  border-radius: var(--r-lg); padding: 16px 22px;
}
.freemium i { width: 20px; height: 20px; color: var(--product-primary); }
.freemium span { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--fg-1); }

/* ---------------- DETAIL FEATURES (alternating) ---------------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 56px 0; }
.feature + .feature { border-top: 1px solid var(--border-subtle); }
.feature.reverse .feat-media { order: -1; }
.feat-copy .eyebrow { margin-bottom: 12px; }
.feat-copy h3 { font-family: var(--font-display); font-weight: 900; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.12; letter-spacing: -0.015em; margin: 0; }
.feat-copy p { font-size: 16px; color: var(--fg-2); line-height: 1.6; margin: 16px 0 0; }
.feat-copy .more {
  font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--product-primary);
  display: inline-flex; align-items: center; gap: 7px; margin-top: 20px; transition: gap 140ms ease;
}
.feat-copy .more:hover { gap: 12px; }
.feat-list { margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 11px; }
.feat-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; color: var(--fg-2); line-height: 1.5; }
.feat-list li i { width: 18px; height: 18px; color: var(--product-primary); flex: none; margin-top: 2px; }
.feat-media { display: flex; justify-content: center; }

/* framed screenshot panel */
.framed {
  background: var(--bg-stage); border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl); padding: 22px; box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
}
.framed::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--product-strip); }
.framed img { border-radius: 10px; border: 1px solid var(--border-subtle); width: 100%; max-width: 300px; }
.framed.wide img { max-width: 100%; }

/* ---------------- CROSS-PROMO ---------------- */
.crosspromo { background: var(--bg-stage); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.cp-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 40px 0; }
.cp-shot { width: 120px; }
.cp-shot .phone { width: 120px; border-radius: 18px; padding: 5px; }
.cp-shot .phone .screen { border-radius: 14px; }
.cp-text .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-4); margin: 0 0 6px; }
.cp-text h3 { font-family: var(--font-display); font-weight: 900; font-size: 22px; margin: 0; letter-spacing: -0.01em; }
.cp-text p { font-size: 15px; color: var(--fg-2); margin: 8px 0 0; max-width: 46em; }

/* ---------------- FINAL CTA ---------------- */
.final { position: relative; text-align: center; padding: 100px 0; overflow: hidden; }
.final::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 120%, color-mix(in srgb, var(--product-primary) 14%, transparent), transparent 70%);
}
.final-inner { position: relative; z-index: 1; }
.final h2 { font-family: var(--font-display); font-weight: 900; font-size: clamp(32px, 4.2vw, 50px); line-height: 1.05; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
.final p { font-size: 18px; color: var(--fg-2); margin: 18px 0 0; }
.final .hero-actions { justify-content: center; }

/* ---------------- FOOTER ---------------- */
footer { border-top: 1px solid var(--border-subtle); padding: 60px 0 38px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand p { font-size: 14px; color: var(--fg-3); line-height: 1.6; max-width: 26em; margin: 16px 0 0; }
.foot-col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-4); margin: 0 0 18px; font-weight: 500; }
.foot-col a { display: block; font-size: 14px; color: var(--fg-2); margin-bottom: 12px; transition: color 120ms ease; }
.foot-col a:hover { color: var(--product-primary); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 54px; padding-top: 26px; border-top: 1px solid var(--border-subtle); flex-wrap: wrap; gap: 14px; }
.foot-bottom span { font-family: var(--font-mono); font-size: 12px; color: var(--fg-4); }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .device-wrap { order: -1; }
  .keys { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature.reverse .feat-media { order: 0; }
  .feat-media { justify-content: flex-start; }
  .cp-inner { grid-template-columns: 1fr; text-align: left; gap: 18px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
}
@media (max-width: 600px) {
  .wrap, .nav-inner { padding-left: 22px; padding-right: 22px; }
  .brand img { width: 32px; height: 32px; }
  .brand .name { font-size: 19px; }
  .nav-links { display: none; }
  .keys { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}


/* ---------------- LANGUAGE SWITCHER ---------------- */
.lang-switcher { position: relative; flex: none; }
.lang-btn {
  all: unset; cursor: pointer;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--fg-3); background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle); border-radius: var(--r-md);
  padding: 6px 10px; display: flex; align-items: center; gap: 5px;
  transition: border-color 120ms ease, color 120ms ease;
}
.lang-btn:hover { border-color: var(--fg-3); color: var(--fg-1); }
.lang-btn:focus-visible { outline: 2px solid var(--product-primary); outline-offset: 2px; }
.lang-btn i { width: 11px; height: 11px; }
.lang-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 200;
  background: color-mix(in srgb, var(--bg-app) 96%, transparent);
  backdrop-filter: blur(14px); border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg); padding: 5px;
  display: none; flex-direction: column; gap: 1px;
  box-shadow: var(--shadow-lg); min-width: 72px;
}
.lang-switcher:hover .lang-dropdown,
.lang-switcher:focus-within .lang-dropdown { display: flex; }
.lang-active {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  color: var(--product-primary); padding: 6px 12px;
  border-radius: var(--r-sm); display: block;
}
.lang-soon {
  font-family: var(--font-mono); font-size: 12px; color: var(--fg-4);
  padding: 6px 12px; border-radius: var(--r-sm); display: block; cursor: default;
}
/* Mobile lang row */
.lang-mobile {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 0; border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono); font-size: 11px;
}
.lang-label-m { color: var(--fg-4); letter-spacing: 0.1em; text-transform: uppercase; }
.lang-mobile-options { display: flex; gap: 8px; flex-wrap: wrap; }
.lang-active-m { color: var(--product-primary); font-weight: 700; }
.lang-soon-m { color: var(--fg-4); }

/* ---------------- NAV — menu hamburger mobile (toutes pages) ---------------- */
.nav-burger { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; flex: none; background: var(--bg-surface-1); border: 1px solid var(--border-subtle); border-radius: var(--r-md); color: var(--fg-1); cursor: pointer; }
.nav-burger:hover { border-color: var(--product-primary); }
.nav-burger .burger-icon { position: relative; width: 20px; height: 20px; }
.nav-burger .burger-icon > span { position: absolute; inset: 0; display: inline-flex; align-items: center; justify-content: center; transition: opacity 160ms ease, transform 160ms ease; }
.nav-burger .burger-icon i { width: 20px; height: 20px; }
.nav-burger .ic-x { opacity: 0; transform: rotate(-90deg); }
.nav-burger[aria-expanded="true"] .ic-menu { opacity: 0; transform: rotate(90deg); }
.nav-burger[aria-expanded="true"] .ic-x { opacity: 1; transform: rotate(0); }
.nav-mobile { display: none; }
@media (max-width: 600px) {
  .nav-burger { display: inline-flex; }
  .nav-cta { display: none; }
  .nav-mobile { display: block; position: absolute; top: 100%; left: 0; right: 0; background: color-mix(in srgb, var(--bg-app) 96%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border-subtle); overflow: hidden; max-height: 0; transition: max-height 280ms ease; }
  .nav-mobile.open { max-height: 380px; }
  .nav-mobile-inner { padding: 6px 22px 20px; display: flex; flex-direction: column; }
  .nav-mobile a { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--fg-2); padding: 13px 0; border-bottom: 1px solid var(--border-subtle); transition: color 120ms ease; }
  .nav-mobile a.active, .nav-mobile a:hover { color: var(--product-primary); }
  .nav-mobile .nav-mobile-cta { margin-top: 16px; border: 0; border-radius: var(--r-md); padding: 14px 18px; text-align: center; background: var(--product-primary); color: var(--product-primary-fg); font-weight: 700; }
  .nav-mobile .nav-mobile-cta:hover { color: var(--product-primary-fg); }
}

/* ---------------- ECOSYSTEM TILES ---------------- */
.ecosystem { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin-top: 28px; }
.eco { background: var(--bg-surface-1); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); padding: 18px 20px; display: flex; align-items: flex-start; gap: 13px; text-decoration: none; transition: border-color 140ms ease, transform 140ms ease; }
.eco:hover { transform: translateY(-2px); border-color: var(--border-default); }
.eco .d { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.eco b { font-family: var(--font-display); font-weight: 800; font-size: 15px; display: block; color: var(--fg-1); }
.eco small { font-size: 12.5px; color: var(--fg-3); }
@media (max-width: 600px) { .ecosystem { grid-template-columns: 1fr; } }
