/* Kinda — light palette and type from apps/mobile/src/theme/tokens.ts.
   Accent #5838FA, accent2 #B800E0, bg #FAFAFA, ink #1E1B4B.
   Titles: Fraunces. Text: DM Sans. */

@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/fonts/fraunces-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: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/dm-sans-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;
}

:root {
  --bg: #fafafa;
  --bg2: #f0f0f3;
  --surface: #ffffff;
  --ink: #1e1b4b;
  --muted: #646b78;
  --line: #e0e7ff;
  --accent: #5838fa;
  --accent2: #b800e0;
  --field: #f5f7ff;
  --danger: #c41e5c;
  --on-accent: #ffffff;
  --footer: #1e1b4b;
  --footer-muted: #d9d6f0;
  --shadow: 0 18px 50px rgba(30, 27, 75, 0.08);
  --radius-card: 16px;
  --radius-button: 24px;
  --space: 16px;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(900px 480px at 110% -10%, rgba(184, 0, 224, 0.16), transparent 60%),
    radial-gradient(680px 420px at -20% -10%, rgba(88, 56, 250, 0.14), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: "DM Sans", "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

html[data-lang="fr"] [data-lang="en"],
html[data-lang="en"] [data-lang="fr"] { display: none; }

img, svg { max-width: 100%; }

a { color: var(--accent); text-underline-offset: 0.18em; }

a:hover { color: var(--accent2); }

h1, h2, h3 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-optical-sizing: auto;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 6vw, 3.5rem); margin: 0 0 0.4em; }

h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 0.4em; }

h3 { font-family: "DM Sans", "Segoe UI", sans-serif; font-weight: 700; font-size: 1.15rem; margin: 0 0 0.35em; }

p { margin: 0 0 0.8em; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--on-accent);
  padding: 12px 16px;
  border-radius: 12px;
  z-index: 20;
  text-decoration: none;
}

.skip:focus { transform: none; }

.wrap {
  width: min(1080px, calc(100% - 32px));
  margin-inline: auto;
}

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 8px 0;
  background: rgba(250, 250, 250, 0.92);
  border-bottom: 1px solid transparent;
}

.top .wrap { display: flex; align-items: center; justify-content: space-between; width: min(1080px, calc(100% - 32px)); }

.logo {
  color: var(--ink);
  font-family: Fraunces, Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.03em;
}

.logo span { color: var(--accent); }

.lang {
  display: flex;
  gap: 6px;
}

.lang button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: 600 0.95rem/1 "DM Sans", "Segoe UI", sans-serif;
  cursor: pointer;
}

html[data-lang="fr"] .lang button[data-set-lang="fr"],
html[data-lang="en"] .lang button[data-set-lang="en"],
html:not([data-lang]) .lang button[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

main { padding: 28px 0 64px; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead { font-size: 1.125rem; max-width: 40rem; }

.hero {
  display: grid;
  gap: 32px;
  align-items: center;
}

.stores {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0 8px;
}

.store {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 56px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  opacity: 1;
  cursor: not-allowed;
}

.store-kicker {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.store-name { font-size: 1.05rem; font-weight: 700; }

.age-line { color: var(--muted); font-size: 0.95rem; }

.section-title { margin: 48px 0 16px; }

.features {
  display: grid;
  gap: 12px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--shadow);
}

.card svg { display: block; margin-bottom: 12px; color: var(--accent); }

.preview { margin: 0; }

.phone {
  width: min(100%, 300px);
  margin-inline: auto;
  padding: 12px;
  border-radius: 36px;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.screen {
  background: var(--bg);
  border-radius: 26px;
  padding: 18px 14px 14px;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.who { display: flex; gap: 12px; align-items: center; }

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  color: var(--on-accent);
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: 1.3rem;
}

.who strong { display: block; font-size: 1rem; }

.who span { color: var(--muted); font-size: 0.85rem; }

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-radius: 999px;
  background: #4cd964;
}

.bubble {
  max-width: 88%;
  margin: 0;
  padding: 10px 12px;
  border-radius: 16px;
  background: #e9e9eb;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.35;
}

.bubble.me {
  margin-left: auto;
  background: var(--accent);
  color: var(--on-accent);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 600;
}

.composer {
  margin-top: auto;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 18px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

figcaption { margin-top: 12px; text-align: center; color: var(--muted); font-size: 0.9rem; }

.prose { max-width: 72ch; }

.prose h2 { margin-top: 1.6em; }

.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.2em; }

.prose li { margin: 0.25em 0; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1em;
  font-size: 0.95rem;
}

.prose th, .prose td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}

.prose th { font-weight: 600; }

.toc { padding-left: 1.2em; }

.form-panel {
  max-width: 40rem;
  margin-top: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px;
}

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }

.field label { font-weight: 600; }

input, textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--field);
  color: var(--ink);
  font: 400 1rem/1.4 "DM Sans", "Segoe UI", sans-serif;
}

textarea { min-height: 140px; resize: vertical; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius-button);
  background: var(--accent);
  color: var(--on-accent);
  font: 600 1rem/1 "DM Sans", "Segoe UI", sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.button:hover { background: #4728e6; color: var(--on-accent); }

form .button { width: 100%; }

.note { color: var(--muted); font-size: 0.95rem; }

.warn {
  background: #fff5f8;
  border: 1px solid #f3c3d4;
  border-radius: var(--radius-card);
  padding: 12px 14px;
}

.lost { padding: 48px 0 24px; }

.site-footer {
  background: var(--footer);
  color: var(--footer-muted);
  padding: 36px 0 28px;
}

.site-footer a { color: var(--on-accent); }

.site-footer :focus-visible { outline-color: var(--on-accent); }

.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 18px; }

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

.site-footer address { font-style: normal; margin-bottom: 12px; }

.site-footer .age-line { color: var(--on-accent); }

.lang-banner { display: none; margin: 0 0 8px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

html:not([data-lang]) .lang-banner { display: block; }

@media (min-width: 720px) {
  .stores { flex-direction: row; }
  .store { min-width: 210px; }
  .features { grid-template-columns: repeat(3, 1fr); }
  form .button { width: auto; }
}

@media (min-width: 880px) {
  main { padding-top: 48px; }
  .hero { grid-template-columns: 1.15fr 0.85fr; gap: 48px; }
  .phone { margin-inline: 0 0 auto; }
}

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