:root {
  --ink: #0c2a3b;
  --ink-soft: #3d5a6b;
  --paper: #f7f9fa;
  --surface: #ffffff;
  --accent: #124f6b;
  --bright: #16a894;
  --warn: #c2410c;
  --line: #dde5e9;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(12, 42, 59, .06), 0 12px 32px rgba(12, 42, 59, .08);
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #eaf1f4;
    --ink-soft: #9fb4c0;
    --paper: #0b1a23;
    --surface: #10242f;
    --accent: #5fc8e8;
    --bright: #2cc9ae;
    --warn: #fb923c;
    --line: #1e3a48;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
  }
}

:root[data-theme="dark"] {
  --ink: #eaf1f4;
  --ink-soft: #9fb4c0;
  --paper: #0b1a23;
  --surface: #10242f;
  --accent: #5fc8e8;
  --bright: #2cc9ae;
  --warn: #fb923c;
  --line: #1e3a48;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 650; }
h3 { font-size: 1.08rem; font-weight: 640; }
p { margin: 0; }
a { color: var(--accent); }

/* ---------------------------------------------------------------- header */

header.site {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex; align-items: center; gap: 12px;
  height: 62px;
}
header.site img { width: 30px; height: 30px; border-radius: 7px; }
header.site .name { font-weight: 650; letter-spacing: -0.01em; }
header.site nav { margin-left: auto; display: flex; gap: 20px; font-size: .92rem; }
header.site nav a { color: var(--ink-soft); text-decoration: none; }
header.site nav a:hover { color: var(--ink); }
@media (max-width: 640px) { header.site nav { display: none; } }

/* ------------------------------------------------------- language switch */

/* Flags carry the choice visually; the language name is always present for
   anyone using a screen reader, because a flag is a country and not a
   language. The name is also the accessible name of the link, so the control
   is announced as "Français (Canada)" rather than as an unlabelled image. */
header.site .langs {
  margin-left: 14px;
  display: flex; align-items: center; gap: 4px;
}
/* The nav collapses on narrow screens; the switcher must not, so it takes
   over the job of pushing itself to the right. */
@media (max-width: 640px) { header.site .langs { margin-left: auto; } }

header.site .langs a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px;      /* a comfortable tap target */
  font-size: 1.15rem; line-height: 1;
  border-radius: 8px; text-decoration: none;
  border: 1px solid transparent;
  filter: saturate(0.25) opacity(0.55);
}
header.site .langs a:hover,
header.site .langs a:focus-visible { filter: none; }
header.site .langs a[aria-current="true"] {
  filter: none;
  border-color: var(--line);
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}

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

/* ------------------------------------------------------------------ hero */

.hero { padding: 68px 0 20px; }
.hero .grid {
  display: grid; gap: 44px;
  grid-template-columns: 1.05fr .95fr; align-items: center;
}
@media (max-width: 900px) {
  .hero { padding-top: 44px; }
  .hero .grid { grid-template-columns: 1fr; gap: 32px; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 600; letter-spacing: .02em;
  color: var(--bright);
  background: color-mix(in srgb, var(--bright) 14%, transparent);
  border-radius: 999px; padding: 6px 13px; margin-bottom: 20px;
}
.hero p.lede { font-size: 1.16rem; color: var(--ink-soft); margin-top: 20px; max-width: 48ch; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.button {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 12px 22px; border-radius: 12px;
  background: var(--accent); color: #fff; border: 1px solid transparent;
}
.button.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.button:hover { filter: brightness(1.08); }

.phone {
  width: 100%; max-width: 310px; margin: 0 auto; display: block;
  border-radius: 38px; border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* --------------------------------------------------------------- sections */

section { padding: 56px 0; }
section > .wrap > h2 + p.sub { color: var(--ink-soft); margin-top: 12px; max-width: 62ch; }

.cards { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); margin-top: 34px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.card .dot { font-size: 1.3rem; line-height: 1; }
.card h3 { margin: 12px 0 7px; }
.card p { color: var(--ink-soft); font-size: .94rem; }

/* ------------------------------------------------------------ screenshots */

.shots {
  display: grid; gap: 26px;
  grid-template-columns: repeat(3, 1fr); margin-top: 36px;
}
@media (max-width: 860px) { .shots { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .shots { grid-template-columns: 1fr; } }
.shot img {
  width: 100%; border-radius: 22px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  display: block;
}
.shot figcaption { margin-top: 12px; font-size: .9rem; color: var(--ink-soft); }
.shot figcaption b { color: var(--ink); font-weight: 620; display: block; }
figure { margin: 0; }

/* --------------------------------------------------------------- privacy */

.privacy {
  background: var(--ink);
  color: #eaf1f4;
  border-radius: 26px; padding: 44px;
  margin: 0 16px;
}
.privacy h2 { color: #fff; }
.privacy p.sub { color: #a8c1cf; }
.privacy .grid { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); margin-top: 28px; }
@media (max-width: 700px) { .privacy { padding: 30px 24px; } .privacy .grid { grid-template-columns: 1fr; } }
.privacy .item h3 { color: #fff; margin-bottom: 5px; }
.privacy .item p { color: #a8c1cf; font-size: .94rem; }
.privacy code {
  background: rgba(255,255,255,.1); padding: 2px 6px; border-radius: 5px;
  font-size: .86em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* --------------------------------------------------------------- insights */

.families { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); margin-top: 30px; }
@media (max-width: 700px) { .families { grid-template-columns: 1fr; } }
.family {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px;
}
.family .mark { font-size: 1.2rem; }
.family b { display: block; margin-bottom: 3px; }
.family span { color: var(--ink-soft); font-size: .92rem; }

/* ----------------------------------------------------------------- table */

.timeline { margin-top: 30px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.timeline div.row { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 16px 20px; border-top: 1px solid var(--line); }
.timeline div.row:first-child { border-top: 0; }
.timeline .when { font-weight: 640; color: var(--accent); font-size: .92rem; }
.timeline .what { color: var(--ink-soft); font-size: .94rem; }
@media (max-width: 560px) { .timeline div.row { grid-template-columns: 1fr; gap: 4px; } }

/* ---------------------------------------------------------------- footer */

footer.site {
  border-top: 1px solid var(--line); margin-top: 56px;
  padding: 32px 0 54px; color: var(--ink-soft); font-size: .9rem;
}
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
footer.site .spacer { margin-left: auto; }
