/* Palette and fonts mirror the light theme of mobile/src/theme/themes.ts.
   Light only, on purpose (2026-10-03): the site does not follow the OS theme. */
:root {
  --bg: #FAF6F0;
  --canvas: #EDE6DA;
  --card: #FFFFFF;
  --soft: #F0E9DD;
  --border: #E5DACB;
  --text: #1F1B16;
  --text-2: #3A342B;
  --muted: #6B6153;
  --accent: #C1622D;
  --night: #2F4858;
  --on-accent: #FFFFFF;
  --display: "Fraunces", Georgia, serif;
  --body: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 4.5vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 600 1.2rem var(--display); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.site-nav { display: flex; gap: 18px; font-size: .95rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .hero .wrap { grid-template-columns: 1fr 1.05fr; } }
.eyebrow { font: 600 .8rem var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.lead { font-size: 1.15rem; color: var(--text-2); max-width: 34em; }

/* Store badges */
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 8px 18px; border-radius: 12px;
  background: var(--text); color: var(--bg); text-decoration: none;
  line-height: 1.2;
}
.badge svg { width: 24px; height: 24px; flex: none; fill: currentColor; }
.badge small { display: block; font-size: .7rem; opacity: .8; }
.badge strong { font-size: 1.05rem; font-weight: 600; }
.badge.soon { background: transparent; color: var(--muted); border: 1px dashed var(--border); cursor: default; }

/* Phone mock-ups */
.phones { display: flex; justify-content: center; gap: 14px; }
.phone {
  width: 32%; max-width: 220px; padding: 0; font: inherit; cursor: zoom-in;
  transition: transform .2s ease; aspect-ratio: 600 / 1176; /* site/img/screen-*.jpg, status + nav bars cropped */
  border-radius: 26px; border: 6px solid var(--text);
  background: var(--soft); overflow: hidden; position: relative;
}
.phone:nth-child(2) { transform: translateY(-18px); }
.phone:hover, .phone:focus-visible { transform: translateY(-6px); }
.phone:nth-child(2):hover, .phone:nth-child(2):focus-visible { transform: translateY(-24px); }
.phone:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.phone.missing { cursor: default; }
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone.missing::after {
  content: attr(data-label); position: absolute; inset: 0;
  display: grid; place-items: center; padding: 10px; text-align: center;
  font-size: .75rem; color: var(--muted);
}

/* Screenshot viewer */
.viewer {
  border: 0; padding: 0; margin: auto; background: transparent;
  max-width: 100vw; max-height: 100vh; overflow: visible;
}
.viewer::backdrop { background: rgba(10, 10, 12, .88); }
.viewer img {
  display: block; height: min(86vh, 900px); width: auto; max-width: 92vw;
  object-fit: contain; border-radius: 22px;
}
.viewer-btn {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.6rem; line-height: 1;
  cursor: pointer;
}
.viewer-btn:hover, .viewer-btn:focus-visible { background: rgba(255, 255, 255, .28); }
.viewer-prev { left: 16px; }
.viewer-next { right: 16px; }
.viewer-close { top: 16px; right: 16px; transform: none; font-size: 1.3rem; }
.viewer-count { position: fixed; bottom: 16px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .7); font-size: .85rem; }
@media (max-width: 600px) { .viewer-prev, .viewer-next { display: none; } }

/* Sample push notification (partner page) */
.notif-stage {
  margin: 0; padding: 48px 24px 20px; border-radius: 28px;
  background: var(--soft);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.notif {
  width: 100%; max-width: 380px; padding: 14px 16px;
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 10px 30px rgba(31, 27, 22, .10);
}
.notif-head { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.notif-head img { width: 18px; height: 18px; border-radius: 5px; }
.notif-time { margin-left: auto; }
.notif-title { margin: 0; font-weight: 600; }
.notif-body { margin: 0; color: var(--text-2); }
.notif-stage figcaption { font-size: .8rem; color: var(--muted); }

/* "Sous le capot" — dark in both themes, on purpose */
.engine {
  --e-bg: #0F1014; --e-card: #1B1D23; --e-border: #2C2F37;
  --e-text: #F2F3F5; --e-muted: #A3A8B4; --e-hot: #E8A33D; --e-warm: #C1622D;
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(193, 98, 45, .28), transparent 70%),
    radial-gradient(50% 40% at 10% 90%, rgba(92, 127, 166, .22), transparent 70%),
    var(--e-bg);
  color: var(--e-text);
  padding: 72px 0;
  overflow: hidden;
}
.engine .eyebrow { color: var(--e-hot); }
.engine h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); max-width: 18em; }
.engine .lead { color: var(--e-muted); }

.chaos {
  margin: 40px 0 0; display: grid; gap: 24px; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) { .chaos { grid-template-columns: 1.2fr 120px 1fr; } }
.fragments { position: relative; height: 280px; }
.fragment {
  position: absolute; padding: 10px 14px; border-radius: 10px;
  background: var(--e-card); border: 1px solid var(--e-border);
  color: var(--e-text); font-size: .85rem; white-space: nowrap;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
  animation: float 6s ease-in-out infinite;
}
.f1 { top: 2%; left: 0; transform: rotate(-4deg); font-family: "Courier New", monospace; letter-spacing: .04em; }
.f2 { top: 54%; left: 0; transform: rotate(3deg); font-style: italic; animation-delay: -1.5s; }
.f3 { top: 20%; right: 0; width: 140px; padding: 0; transform: rotate(6deg); animation-delay: -3s; }
.f4 { bottom: 2%; left: 30%; transform: rotate(-2deg); font-family: var(--display); animation-delay: -4.5s; }
@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}
@media (max-width: 520px) {
  .fragment { font-size: .75rem; }
  .f3 { width: 110px; }
}

.flow { height: 4px; border-radius: 4px; background: var(--e-border); position: relative; overflow: hidden; }
.flow span {
  position: absolute; inset: 0; width: 40%;
  background: linear-gradient(90deg, transparent, var(--e-hot), var(--e-warm), transparent);
  animation: flow 1.8s linear infinite;
}
@keyframes flow { from { left: -40%; } to { left: 100%; } }
@media (max-width: 859px) { .flow { width: 4px; height: 56px; margin: 0 auto; } .flow span { width: 100%; height: 40%; background: linear-gradient(180deg, transparent, var(--e-hot), var(--e-warm), transparent); animation-name: flow-v; } }
@keyframes flow-v { from { top: -40%; } to { top: 100%; } }

.clean {
  display: grid; gap: 6px; padding: 22px; border-radius: 18px;
  background: #FAF6F0; color: #1F1B16;
  box-shadow: 0 0 0 1px rgba(232, 163, 61, .5), 0 20px 60px rgba(193, 98, 45, .35);
}
.clean strong { font: 600 1.3rem var(--display); }
.clean span { color: #6B6153; font-size: .95rem; }
.clean .venue { color: #C1622D; text-decoration: underline; text-underline-offset: 3px; }
.clean .pill {
  justify-self: start; padding: 3px 12px; border-radius: 99px;
  border: 1.5px solid #2F4858; color: #2F4858; font-weight: 600; font-size: .75rem;
  letter-spacing: .08em; text-transform: uppercase;
}
.chaos figcaption { grid-column: 1 / -1; font-size: .8rem; color: var(--e-muted); }

.steps {
  list-style: none; margin: 56px 0 0; padding: 0;
  display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  counter-reset: none;
}
.steps li {
  position: relative; padding: 22px; border-radius: 16px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--e-border);
}
.steps h3 { margin-top: 12px; }
.steps p { color: var(--e-muted); margin: 0; font-size: .95rem; }
.step-n {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--e-hot), var(--e-warm)); color: #0F1014;
  font-weight: 700;
}

.engine-notif {
  margin-top: 56px; display: grid; gap: 28px; align-items: center;
}
@media (min-width: 860px) { .engine-notif { grid-template-columns: 1fr 1.2fr; } }
.engine-notif .notif {
  justify-self: center;
  --card: #FAF6F0; --border: rgba(232, 163, 61, .5); --muted: #6B6153; --text-2: #3A342B;
  color: #1F1B16;
  box-shadow: 0 20px 60px rgba(193, 98, 45, .35);
}
.engine-notif > div:last-child p { color: var(--e-muted); margin: 0; }
.engine-notif h3 { font-size: 1.4rem; }

@media (prefers-reduced-motion: reduce) {
  .fragment, .flow span { animation: none; }
}

/* Sections */
section { padding: 48px 0; }
.alt { background: var(--canvas); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 22px; }
.card p:last-child { margin-bottom: 0; }
.card .tag { display: inline-block; font: 600 .75rem var(--body); text-transform: uppercase; letter-spacing: .08em; padding: 3px 10px; border-radius: 99px; background: var(--soft); color: var(--accent); margin-bottom: 10px; }
.night .tag { color: var(--night); }

.cta {
  display: inline-block; padding: 12px 22px; border-radius: 12px;
  background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none;
}

/* Long-form pages (privacy, support) */
.doc { padding: 40px 0 56px; }
.doc h2 { margin-top: 1.6em; font-size: 1.4rem; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: .4em; }
.meta { color: var(--muted); font-size: .9rem; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 0 0 1.2em; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-weight: 600; }
.table-scroll { overflow-x: auto; }
details { border-bottom: 1px solid var(--border); padding: 14px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--text-2); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--muted); }
