/* Self-hosted Google Fonts, latin subset (covers French). */
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/atkinson-400i.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: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/atkinson-400.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: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/atkinson-700.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: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/bricolage-var.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: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/bricolage-var.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 {
  --milk: #f4f0e8;
  --paper: #fffdf9;
  --bistro: #1d4a3c;
  --bistro-deep: #133226;
  --crema: #c98a4b;
  --crema-soft: #ecd3b3;
  --espresso: #2b1b12;
  --ink-soft: #5b4a3e;
  --line: #e0d6c6;
  --live: #6fd49a;
  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-lg: 22px;
  --radius-sm: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--milk);
  color: var(--espresso);
  font: 400 1.0625rem/1.65 var(--body);
}
img, svg, iframe { max-width: 100%; }
a { color: var(--bistro); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--crema); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* Header */
.top { background: var(--bistro-deep); color: var(--milk); padding-top: env(safe-area-inset-top, 0px); }
.top-in {
  max-width: 1240px; margin: 0 auto; padding: 12px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--milk); text-decoration: none; font: 800 1.45rem/1 var(--display); letter-spacing: -.02em; }
.brand-cup { width: 34px; height: 34px; flex: none; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--milk); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 700; font-size: .95rem; }
.nav a:hover { background: rgba(255,255,255,.08); }
.nav a[aria-current="page"] { background: var(--crema); color: var(--espresso); }

/* Hero with chat */
.hero { background: var(--bistro); color: var(--milk); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -140px; bottom: -160px; width: 520px; height: 520px; pointer-events: none;
  background: radial-gradient(circle, rgba(201,138,75,.22) 0 38%, transparent 39% 46%, rgba(201,138,75,.12) 47% 60%, transparent 61%);
}
.hero-in {
  position: relative; z-index: 1;
  max-width: 1240px; margin: 0 auto; padding: clamp(24px, 4vw, 56px) var(--gutter) clamp(32px, 5vw, 64px);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: start;
}
.hero h1 {
  font: 800 clamp(2.4rem, 5.4vw, 4.6rem)/.95 var(--display);
  letter-spacing: -.035em; margin: 0 0 20px; text-wrap: balance;
}
.hero-lead { font-size: 1.15rem; max-width: 34ch; margin: 0 0 28px; color: #e6efe9; }
.hero-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 38ch; }
.hero-facts li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.hero-facts svg { width: 28px; height: 28px; }
.hero-facts strong { display: block; font-family: var(--display); font-weight: 800; font-size: 1.1rem; letter-spacing: -.01em; }
.hero-facts span { color: #c9dcd3; font-size: .98rem; }
.hero-cta { display: none; }

/* Chat block */
.chat { background: var(--bistro-deep); border-radius: var(--radius-lg); padding: 10px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.55); }
.chat-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 8px 10px; }
.chat-live { margin: 0; font-weight: 700; font-size: .95rem; display: flex; align-items: center; gap: 8px; color: var(--milk); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px rgba(111,212,154,.2); display: inline-block; }
.chat-full {
  font: 700 .9rem var(--body); color: var(--espresso); background: var(--crema-soft); border: 0;
  border-radius: 999px; padding: 7px 14px; cursor: pointer;
}
.chat-full:hover { background: var(--milk); }
.chat-frame { display: block; width: 100%; height: min(76vh, 720px); min-height: 520px; border: 0; border-radius: 14px; background: #0b0710; }
.chat-note { margin: 10px 8px 2px; font-size: .82rem; color: #b8cdc3; }
.chat-note a { color: var(--crema-soft); }
.chat.is-full { position: fixed; inset: 0; z-index: 100; border-radius: 0; padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px); display: flex; flex-direction: column; }
.chat.is-full .chat-bar { padding: 8px 12px; }
.chat.is-full .chat-frame { flex: 1; height: auto; min-height: 0; border-radius: 0; }
.chat.is-full .chat-note { display: none; }
body.chat-open { overflow: hidden; }

/* Content */
.page { max-width: 1240px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gutter); }
.prose { max-width: 68ch; }
.prose h2 { font: 800 clamp(1.6rem, 3vw, 2.2rem)/1.1 var(--display); letter-spacing: -.025em; margin: 2.2em 0 .6em; color: var(--bistro-deep); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font: 800 1.25rem/1.2 var(--display); margin: 1.8em 0 .4em; letter-spacing: -.01em; }
.prose p, .prose li { color: var(--espresso); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--crema); }

.split { display: grid; grid-template-columns: minmax(0, 68ch) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.aside { position: sticky; top: 24px; border-left: 3px solid var(--crema); padding: 4px 0 4px 20px; }
.aside p { margin: 0 0 10px; font-size: .95rem; color: var(--ink-soft); }
.aside .aside-h { font: 800 1.1rem var(--display); color: var(--espresso); margin-bottom: 8px; }
.aside a { display: block; padding: 4px 0; }

.steps { list-style: none; padding: 0; margin: 1.4em 0; display: grid; gap: 0; counter-reset: step; border-top: 1px solid var(--line); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); margin: 0; }
.steps li::before { content: counter(step); font: 800 2.2rem/1 var(--display); color: var(--crema); }
.steps strong { display: block; font-family: var(--display); font-size: 1.15rem; }

.faq { border-top: 1px solid var(--line); margin: 1em 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font: 800 1.12rem/1.3 var(--display); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font: 500 1.8rem/1 var(--display); color: var(--crema); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 18px; }
.faq details > div p { margin: 0 0 .7em; }

.band { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-line { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.cta-line p { margin: 0; font: 800 clamp(1.4rem, 3vw, 2rem)/1.15 var(--display); letter-spacing: -.02em; max-width: 26ch; }
.button {
  display: inline-flex; align-items: center; gap: 10px; background: var(--bistro); color: var(--milk);
  font: 700 1.05rem var(--body); text-decoration: none; border: 0; border-radius: 999px; padding: 14px 26px; cursor: pointer;
}
.button:hover { background: var(--bistro-deep); text-decoration: none; }

.crumbs { font-size: .9rem; color: #c9dcd3; margin: 0 0 14px; }
.crumbs a { color: var(--crema-soft); }
.page-head { background: var(--bistro); color: var(--milk); }
.page-head .hero-in { grid-template-columns: 1fr; padding-bottom: clamp(28px, 4vw, 48px); }
.page-head h1 { font: 800 clamp(2rem, 4.4vw, 3.4rem)/1 var(--display); letter-spacing: -.03em; margin: 0 0 12px; max-width: 22ch; }
.page-head p.lead { margin: 0; max-width: 60ch; color: #e6efe9; font-size: 1.1rem; }
.updated { color: var(--ink-soft); font-size: .92rem; }

/* Forms */
.form { display: grid; gap: 16px; max-width: 560px; }
.form label { display: grid; gap: 6px; font-weight: 700; }
.form input, .form select, .form textarea {
  font: 400 1rem var(--body); color: var(--espresso); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; width: 100%;
}
.form textarea { min-height: 170px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--bistro); outline: none; box-shadow: 0 0 0 3px rgba(29,74,60,.18); }
.form .hp { position: absolute; left: -9999px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form .check input { width: auto; margin-top: 5px; }
.notice { padding: 14px 16px; border-radius: var(--radius-sm); margin: 0 0 20px; max-width: 560px; }
.notice.ok { background: #e1f1e8; color: #134a2e; }
.notice.err { background: #f8e4dc; color: #7a2710; }

/* Footer */
.foot { background: var(--espresso); color: #d9cbbb; padding-bottom: env(safe-area-inset-bottom, 0px); }
.foot-in { max-width: 1240px; margin: 0 auto; padding: 48px var(--gutter) 28px; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-name { font: 800 1.6rem var(--display); color: var(--milk); margin: 0 0 8px; letter-spacing: -.02em; }
.foot-brand p { margin: 0 0 10px; max-width: 36ch; font-size: .95rem; }
.foot-online { display: flex; gap: 8px; align-items: center; font-weight: 700; color: var(--milk); }
.foot nav { display: grid; gap: 6px; align-content: start; }
.foot-h { font: 800 1.05rem var(--display); color: var(--milk); margin: 0 0 4px; }
.foot a { color: #d9cbbb; text-decoration: none; font-size: .95rem; }
.foot a:hover { color: var(--milk); text-decoration: underline; }
.foot-legal { max-width: 1240px; margin: 0 auto; padding: 18px var(--gutter) 28px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; color: #a8978a; }

@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-lead { max-width: 52ch; }
  .hero-facts { display: none; }
  .split { grid-template-columns: 1fr; }
  .aside { position: static; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .hero h1 { margin-bottom: 12px; }
  .hero-lead { font-size: 1.02rem; margin-bottom: 18px; }
  .chat { padding: 6px; border-radius: 16px; margin-inline: calc(var(--gutter) * -0.5); }
  .chat-frame { height: 78vh; height: 78dvh; min-height: 480px; border-radius: 10px; }
  .nav a { padding: 6px 10px; font-size: .9rem; }
  .foot-in { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1em 0; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: var(--display); font-weight: 800; }

/* Guides */
.cta-box { margin: 2em 0; padding: 20px 22px; border-radius: var(--radius-sm); background: var(--milk); border-left: 4px solid var(--crema); }
.cta-box p { margin: 0 0 12px; }
.cta-box p:last-child { margin: 0; }
.guide-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.guide-list li { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); }
.guide-list a { font: 800 1.15rem/1.25 var(--display); }
.guide-list p { margin: 6px 0 0; color: var(--ink-soft); }
