:root {
  color-scheme: light;
  --paper: #f6f5f1;
  --surface: #ffffff;
  --ink: #14211e;
  --muted: #5b6864;
  --faint: #8a958f;
  --line: #e3e1da;
  --cedar: #1d5a4b;
  --cedar-soft: #e6efea;
  --alert: #ad3f1a;
  --alert-soft: #f8eae3;
  --star: #d99a00;
  --r: 14px;
  --r-in: 10px;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --read: 680px;
  --wide: 1040px;
  --gut: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 379px) { body { font-size: 16px; } }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--cedar); text-underline-offset: 3px; text-decoration-thickness: 1px; }
img, svg { display: block; max-width: 100%; }
sup { font-size: .6em; line-height: 0; vertical-align: .45em; }
:focus-visible { outline: 2px solid var(--cedar); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--wide) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.read { max-width: var(--read); }

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-width: 0;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: -.01em;
}
.brand-mark {
  width: 26px; height: 26px; border-radius: 8px; background: var(--cedar); color: #fff; flex: none;
  display: grid; place-items: center; font-size: 14px; font-weight: 600;
}
.brand span { white-space: nowrap; }
.tel { white-space: nowrap; }
.brand .full { display: none; }
@media (min-width: 640px) { .brand .full { display: inline; } .brand .short { display: none; } }
.tabs { display: flex; gap: 4px; font-size: 14px; flex: none; }
.tabs a {
  color: var(--muted); text-decoration: none; padding: 7px 12px; border-radius: 999px; white-space: nowrap;
}
.tabs a[aria-current="page"] { background: var(--ink); color: #fff; }
@media (max-width: 480px) {
  .tabs a[aria-current="page"] { display: none; }
  .tabs a { border: 1px solid var(--line); background: var(--surface); color: var(--cedar); font-weight: 500; }
}

/* Type */
.kicker { font-family: var(--mono); font-size: 12.5px; letter-spacing: .02em; color: var(--muted); }
h1 {
  font-size: clamp(2rem, 7vw, 3.4rem); line-height: 1.05; font-weight: 600; letter-spacing: -.032em;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.5rem, 4.6vw, 2.1rem); line-height: 1.15; font-weight: 600; letter-spacing: -.022em;
  text-wrap: balance;
}
h3 { font-size: 1.06rem; line-height: 1.35; font-weight: 600; letter-spacing: -.01em; }
.lede { font-size: 1.12em; color: var(--muted); max-width: 56ch; text-wrap: pretty; }
.lede strong { color: var(--ink); font-weight: 500; }
p { text-wrap: pretty; }
.cap { font-size: 13px; color: var(--faint); }

/* Sections */
.hero { padding: 44px 0 40px; }
.hero h1 { margin-top: 16px; max-width: 19ch; }
.hero .lede { margin-top: 18px; }
.sec { padding: 56px 0; border-top: 1px solid var(--line); }
.sec h2 { max-width: 24ch; }
.sec-sub { margin-top: 12px; color: var(--muted); max-width: 56ch; }
@media (min-width: 900px) {
  .hero { padding: 80px 0 64px; }
  .sec { padding: 88px 0; }
}

/* Stats */
.stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 36px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.stats div { background: var(--surface); padding: 18px 18px 16px; }
.stats dt { font-size: clamp(1.9rem, 6.4vw, 2.4rem); font-weight: 600; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats dd { margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.35; }
.stats .bad dt { color: var(--alert); }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats + .cap { margin-top: 10px; }

/* Listing mock */
.seen { display: grid; gap: 36px; margin-top: 32px; align-items: start; }
@media (min-width: 860px) { .seen { grid-template-columns: 380px 1fr; gap: 64px; } }
.phone {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 20px 18px 18px;
  box-shadow: 0 1px 2px rgba(20,33,30,.04), 0 8px 24px rgba(20,33,30,.06);
  max-width: 380px; width: 100%; font-size: 14.5px; line-height: 1.45;
}
.ph-name { font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
.ph-rate { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--muted); }
.ph-rate b { color: var(--ink); font-weight: 500; }
.stars { color: var(--star); letter-spacing: 1px; font-size: 13px; }
.stars i { color: #d9d6cc; font-style: normal; }
.ph-meta { color: var(--muted); margin-top: 2px; }
.ph-meta .open { color: var(--cedar); font-weight: 500; }
.ph-actions { display: flex; gap: 8px; margin-top: 14px; }
.ph-actions span {
  position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 9px 4px; border: 1px solid var(--line); border-radius: 12px; font-size: 12.5px; color: var(--cedar); font-weight: 500;
}
.ph-actions svg { width: 18px; height: 18px; }
.ph-desc {
  position: relative; margin-top: 14px; padding: 10px 12px; border-radius: var(--r-in);
  border: 1px dashed #d6d2c6; color: var(--faint); font-size: 13px;
}
.ph-rev { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.ph-rev-h { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; background: #c9c3b4; color: #fff; font-weight: 600; font-size: 13px;
  display: grid; place-items: center; flex: none;
}
.ph-rev-h small { display: block; color: var(--faint); font-size: 12px; }
.ph-rev p { margin-top: 8px; color: var(--ink); }
.ph-reply {
  position: relative; margin-top: 10px; padding: 9px 12px; border-radius: var(--r-in);
  background: var(--alert-soft); color: var(--alert); font-size: 13px; font-weight: 500;
}
.pin {
  position: absolute; top: -9px; right: -9px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--alert); color: #fff; font: 600 12px/22px var(--mono); text-align: center;
  box-shadow: 0 0 0 3px var(--surface);
}
.notes { display: grid; gap: 22px; }
.notes li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; }
.notes .n {
  width: 26px; height: 26px; border-radius: 50%; background: var(--alert-soft); color: var(--alert);
  font: 600 13px/26px var(--mono); text-align: center; margin-top: 1px;
}
.notes p { color: var(--muted); margin-top: 2px; }
.notes .good .n { background: var(--cedar-soft); color: var(--cedar); }

/* Steps */
.steps { margin-top: 36px; }
.steps li { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding-bottom: 34px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: ""; position: absolute; left: 26px; top: 46px; bottom: 6px; width: 1px; background: var(--line);
}
.steps li:last-child::before { display: none; }
.mark {
  width: 52px; height: 38px; border-radius: 999px; border: 1px solid var(--cedar); color: var(--cedar);
  display: grid; place-items: center; font: 500 12.5px/1 var(--mono); background: var(--surface);
}
.steps .when { font-family: var(--mono); font-size: 12.5px; color: var(--faint); margin-top: 1px; }
.steps h3 { margin-top: 2px; }
.steps p { margin-top: 6px; color: var(--muted); }
.steps .out { margin-top: 10px; color: var(--cedar); font-weight: 500; font-size: 15px; display: flex; gap: 8px; }
.steps .out svg { width: 16px; height: 16px; flex: none; margin-top: 4px; }

/* Duo */
.duo { display: grid; margin-top: 32px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.duo > div { padding: 22px 20px; }
.duo > div + div { border-top: 1px solid var(--line); }
@media (min-width: 720px) {
  .duo { grid-template-columns: 1fr 1fr; }
  .duo > div + div { border-top: 0; border-left: 1px solid var(--line); }
}
.duo h3 { font-family: var(--mono); font-weight: 500; font-size: 12.5px; letter-spacing: .02em; color: var(--muted); }
.duo ul { margin-top: 12px; display: grid; gap: 10px; }
.duo li { padding-left: 18px; position: relative; }
.duo li::before { content: ""; position: absolute; left: 2px; top: .68em; width: 6px; height: 6px; border-radius: 50%; background: var(--cedar); }
.ask { margin-top: 20px; font-weight: 500; max-width: 56ch; }

/* Rule band */
.band { margin-top: 28px; background: var(--cedar-soft); border-radius: var(--r); padding: 24px 20px; }
.band p { max-width: 60ch; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pills li { font-size: 14px; padding: 6px 12px; border-radius: 999px; background: var(--surface); color: var(--ink); border: 1px solid #d3e0d9; }
.band .after { margin-top: 16px; color: var(--muted); font-size: 15px; }

/* Closing */
.close { padding: 56px 0 72px; border-top: 1px solid var(--line); }
.close p { margin-top: 14px; max-width: 58ch; color: var(--muted); }
.close p strong { color: var(--ink); font-weight: 500; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; min-height: 48px; padding: 0 22px;
  background: var(--cedar); color: #fff; text-decoration: none; border-radius: 999px; font-weight: 500; font-size: 16px;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { background: #174a3e; }

.foot { padding: 24px 0 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); line-height: 1.55; }

/* Checklist (fiche page) */
.progress {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; padding: 9px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font: 500 13px/1 var(--mono); color: var(--muted);
}
.bar { width: 90px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--cedar); transition: width .25s ease; }
.check { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.check li + li { border-top: 1px solid var(--line); }
.check label { display: grid; grid-template-columns: 22px 1fr; gap: 14px; padding: 16px 18px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--cedar); cursor: pointer; }
.check b { font-weight: 600; display: block; }
.check .k { font-family: var(--mono); font-size: 12px; color: var(--faint); font-weight: 400; margin-right: 6px; }
.check .d { display: block; margin-top: 3px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.check input:checked + span b { color: var(--faint); text-decoration: line-through; text-decoration-color: var(--faint); }

/* Ready texts */
.texts { margin-top: 28px; display: grid; gap: 10px; }
.texts details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.texts summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px; font-weight: 600;
}
.texts summary::-webkit-details-marker { display: none; }
.texts summary::after {
  content: ""; width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg); flex: none; margin-top: -4px; transition: transform .2s ease;
}
.texts details[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.texts .body { padding: 0 18px 18px; }
.texts .hint { font-size: 14px; color: var(--muted); }
.texts blockquote {
  margin: 12px 0 0; padding: 14px 16px; border-radius: var(--r-in); background: var(--paper); white-space: pre-line;
  font-size: 15.5px; line-height: 1.6;
}
.copy {
  margin-top: 12px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--cedar);
  background: var(--surface); color: var(--cedar); font: 500 14px var(--sans); cursor: pointer;
}
.copy.ok { background: var(--cedar); color: #fff; }
.count { margin-left: 10px; font: 12.5px var(--mono); color: var(--faint); }
.svc { margin-top: 12px; display: grid; gap: 8px; }
.svc li { padding: 10px 14px; border-radius: var(--r-in); background: var(--paper); font-size: 15px; }
.svc li b { font-weight: 600; }

/* Don'ts */
.donts { margin-top: 24px; display: grid; gap: 10px; max-width: 60ch; }
.donts li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; }
.donts li::before { content: ""; width: 14px; height: 2px; background: var(--alert); margin-top: .8em; border-radius: 2px; }

/* Ranking table */
.table { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
th { font: 500 12px var(--mono); color: var(--faint); letter-spacing: .02em; }
tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.rk { font-family: var(--mono); color: var(--faint); width: 30px; padding-right: 0; }
tr.me td { background: var(--cedar-soft); font-weight: 600; }
tr.me td.rk { color: var(--cedar); }
@media (max-width: 420px) { th, td { padding: 10px 10px; font-size: 14px; } }
.table + .cap { margin-top: 10px; max-width: 62ch; }

.week { margin-top: 24px; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.week div { background: var(--surface); padding: 16px 18px; display: grid; grid-template-columns: 96px 1fr; gap: 12px; }
.week b { font: 500 13px/1.7 var(--mono); color: var(--cedar); }
@media (min-width: 720px) { .week { grid-template-columns: repeat(3, 1fr); } .week div { grid-template-columns: 1fr; gap: 4px; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
