:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --ink: #16202e;
  --muted: #586271;
  --line: #e7e1d6;
  --accent: #b4532a;
  --accent-strong: #973f1b;
  --on-accent: #ffffff;
  --band: #16202e;
  --on-band: #f3efe7;
  --band-muted: #b9c0ca;
  --soft: #f2ede4;
  --ok: #2f6b4f;
  --serif:
    "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia,
    serif;
  --sans:
    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10151c;
    --surface: #171e27;
    --ink: #eef1f5;
    --muted: #a5afbc;
    --line: #29323e;
    --accent: #e07a4f;
    --accent-strong: #f0956d;
    --on-accent: #1a0d06;
    --band: #0b1016;
    --on-band: #eef1f5;
    --band-muted: #9aa5b3;
    --soft: #1c2430;
    --ok: #7fc8a3;
    color-scheme: dark;
  }
}

/* One language at a time; site.js picks it, French without JavaScript. */
html[lang="fr"] [lang="en"],
html[lang="en"] [lang="fr"] {
  display: none !important;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-strong);
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.4rem);
}

h1,
h2 {
  text-wrap: balance;
}

/* A sentence of a headline stays on its own line when it fits. */
.line {
  display: inline-block;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.top .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
}

.brand:hover {
  color: var(--ink);
}

.brand svg {
  width: 30px;
  height: 30px;
  flex: none;
}

.dial-face {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
}

.dial-hand {
  stroke: var(--accent);
  stroke-width: 2.8;
  stroke-linecap: round;
}

.dial-tick {
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.top nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.top nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.top nav a:hover {
  color: var(--ink);
}

.langs {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  background: var(--surface);
}

.top nav + .langs {
  margin-left: 0;
}

.langs:first-child,
.brand + .langs {
  margin-left: auto;
}

.langs button {
  font: 600 0.8rem/1 var(--sans);
  letter-spacing: 0.04em;
  color: var(--muted);
  background: none;
  border: 0;
  border-radius: 999px;
  padding: 7px 11px;
  cursor: pointer;
}

.langs button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font: 600 1rem/1 var(--sans);
  text-decoration: none;
  border: 1.5px solid transparent;
}

.button.primary {
  background: var(--accent);
  color: var(--on-accent);
}

.button.primary:hover {
  background: var(--accent-strong);
  color: var(--on-accent);
}

.button.ghost {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
}

.button.ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* Hero */
.hero {
  padding: 72px 0 80px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 34em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* The illustration: a dictated note and what Cadran proposes. */
.mock {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 24px 60px -32px rgb(22 32 46 / 0.35);
}

.note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--soft);
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 0.98rem;
  font-style: italic;
}

.mic {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
}

.mic svg {
  width: 16px;
  height: 16px;
}

.mock-label {
  margin: 20px 0 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.mock ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.mock li {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}

.mock li div {
  flex: 1;
  min-width: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.4;
}

.mock li strong {
  display: block;
  color: var(--ink);
  font-size: 0.98rem;
}

.chip {
  flex: none;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ok);
  border: 1.5px solid currentColor;
  border-radius: 999px;
  padding: 5px 11px;
}

/* Sections */
section {
  padding: 84px 0;
}

.section-head {
  max-width: 40em;
  margin-bottom: 44px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.1rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--accent);
  font: 600 1.05rem/1 var(--serif);
  margin-bottom: 16px;
}

.steps p,
.grid p {
  color: var(--muted);
  margin: 0;
}

.alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 32px;
}

.grid article {
  border-top: 2px solid var(--ink);
  padding-top: 18px;
}

.band {
  background: var(--band);
  color: var(--on-band);
}

.band .section-head p,
.band .grid p {
  color: var(--band-muted);
}

.band .grid article {
  border-top-color: var(--accent);
}

.band .eyebrow {
  color: var(--accent);
}

.cta {
  text-align: center;
}

.cta .section-head {
  margin: 0 auto 28px;
}

.cta .actions {
  justify-content: center;
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
  color: var(--muted);
  font-size: 0.92rem;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-left: auto;
}

footer a {
  color: var(--muted);
}

/* Legal pages */
.doc {
  max-width: 760px;
  padding: 56px 20px 88px;
}

.doc h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
}

.doc h2 {
  font-size: 1.45rem;
  margin-top: 2.2em;
  scroll-margin-top: 84px;
}

.doc section {
  padding: 0;
  scroll-margin-top: 84px;
}

.doc .updated {
  color: var(--muted);
  margin-bottom: 2em;
}

.doc ul,
.doc ol {
  padding-left: 1.3em;
}

.doc li {
  margin-bottom: 0.5em;
}

.table {
  overflow-x: auto;
  margin: 0 0 1.4em;
  border: 1px solid var(--line);
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

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

tr:last-child td {
  border-bottom: 0;
}

th {
  background: var(--soft);
  font-weight: 600;
}

.notice {
  background: var(--soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 14px 18px;
  margin: 0 0 1.6em;
}

/* Phone */
@media (max-width: 880px) {
  .hero {
    padding: 44px 0 56px;
  }

  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .grid,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  section {
    padding: 60px 0;
  }

  .top nav {
    display: none;
  }

  .top .langs {
    margin-left: auto;
  }
}

@media (max-width: 520px) {
  .wrap,
  .doc {
    padding-left: 16px;
    padding-right: 16px;
  }

  .top .wrap {
    gap: 12px;
  }

  .top .button {
    display: none;
  }

  .actions .button {
    flex: 1 1 100%;
  }

  footer nav {
    margin-left: 0;
  }

  th,
  td {
    padding: 8px 10px;
    font-size: 0.88rem;
  }
}
