/* Chutag — feuille de style. Consumer, chaleureux, lisible sur mobile d'abord
   (la page de scan est lue par quelqu'un pressé, sur un trottoir). */
:root {
  --cream: #faf6ee; --ink: #172033; --muted: #5a6273; --line: #e6e0d2;
  --coral: #f06048; --coral-dark: #d94c35; --sage: #4a8f7b; --card: #ffffff;
  --radius: 16px; --max: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: Nunito, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.55; }
a { color: var(--coral-dark); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); }
h3 { font-size: 1.15rem; }
h1 em { font-style: normal; color: var(--coral); }
p { margin: 0 0 1em; }
.muted { color: var(--muted); } .small { font-size: .9rem; } .center { text-align: center; }
.kicker { font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--sage); margin-bottom: .6em; }
.lead { font-size: 1.15rem; }
code { font-family: ui-monospace, Menlo, monospace; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: .05em .4em; font-size: .95em; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; max-width: var(--max); margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.wordmark { font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; } .wordmark span { color: var(--coral); }
.beta { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--sage); border: 1.5px solid var(--sage); border-radius: 999px; padding: 1px 8px; }
.top nav { display: flex; align-items: center; gap: 18px; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.scan-page .top nav a:not(.langs a) { display: none; }
.langs { display: inline-flex; gap: 4px; margin-left: 6px; }
.langs a { font-size: .78rem; font-weight: 800; color: var(--muted); text-decoration: none; padding: 3px 7px; border-radius: 999px; border: 1.5px solid transparent; }
.langs a.on { color: var(--ink); border-color: var(--line); background: #fff; }

/* Boutons */
.btn { display: inline-block; background: var(--coral); color: #fff; text-decoration: none; font-weight: 800; border: 0; border-radius: 12px; padding: 12px 20px; font-size: 1rem; cursor: pointer; font-family: inherit; transition: transform .08s, background .15s; }
.btn:hover { background: var(--coral-dark); } .btn:active { transform: translateY(1px); }
.btn.big { padding: 16px 26px; font-size: 1.1rem; }
.btn.small { padding: 8px 14px; font-size: .95rem; }
.btn.ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
button.link, .link { background: none; border: 0; padding: 0; font: inherit; color: var(--coral-dark); text-decoration: underline; cursor: pointer; }

/* Sections */
main { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 48px 0; }
.narrow { max-width: 620px; }
.page { padding-top: 24px; }
.page-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px; }

.hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; padding-top: 24px; }
.cta-row { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin: 24px 0; }
.proof { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; color: var(--muted); }
.proof li::before { content: "✓ "; color: var(--sage); font-weight: 800; }
.hero-art { display: flex; justify-content: center; }
.phone { width: min(280px, 70vw); filter: drop-shadow(0 20px 40px rgba(23,32,51,.18)); }

.steps ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; margin-bottom: 12px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding: 0 0 20px; }
.card .illus { width: 100%; height: auto; display: block; }
.card h3, .card p { padding: 0 20px; } .card h3 { margin-top: 16px; } .card p { margin-bottom: 0; color: var(--muted); font-size: .98rem; }

.why .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 40px; }
.why p { color: var(--muted); margin: 0; }

.final-cta { text-align: center; background: var(--ink); color: #fff; border-radius: 24px; padding: 56px 24px; margin-bottom: 40px; }
.final-cta p { color: #c9cfdb; }

/* Formulaires */
.form { display: grid; gap: 16px; margin: 20px 0; }
.form label { display: grid; gap: 6px; font-weight: 700; }
.form label.check { grid-template-columns: auto 1fr; align-items: start; gap: 10px; font-weight: 600; }
.form label.check input { margin-top: 5px; }
.opt { font-weight: 400; color: var(--muted); font-size: .9rem; }
.form input[type=text], .form input[type=email], .form textarea, .form select { font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); width: 100%; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 3px solid rgba(240,96,72,.25); border-color: var(--coral); }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.alert { background: #fdeceb; border: 1px solid #f5b8ae; color: #a03a2b; border-radius: 12px; padding: 12px 14px; }
.ok { background: #e8f1ec; border: 1px solid #b8d6c8; color: #2f6b58; border-radius: 12px; padding: 10px 14px; }
.danger { margin-top: 24px; } .danger .link { color: #a03a2b; }

/* Page de scan */
.scan { max-width: 560px; margin: 0 auto; padding-top: 12px; }
.scan h1 { font-size: clamp(1.7rem, 6vw, 2.4rem); }
.owner-note { margin: 20px 0; background: #fff; border-left: 5px solid var(--coral); border-radius: 0 12px 12px 0; padding: 14px 16px; font-size: 1.05rem; }
.owner-note .who { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; margin-bottom: 4px; }
.reward { font-weight: 700; }
.privacy { background: #e8f1ec; border-radius: 12px; padding: 12px 14px; font-size: .95rem; color: #2f6b58; }
.thread-link { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; word-break: break-all; }

/* Espace propriétaire */
.tags { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 20px 0 40px; }
.tag-card { display: grid; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--ink); min-height: 120px; transition: box-shadow .15s; }
.tag-card:hover { box-shadow: 0 8px 24px rgba(23,32,51,.08); }
.tag-card strong { font-size: 1.2rem; }
.tag-card .kind { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--sage); font-weight: 800; }
.tag-card .meta { color: var(--muted); font-size: .9rem; }
.tag-card code { justify-self: start; }
.tag-card.inactive { opacity: .6; }
.tag-card.new { place-items: center; border-style: dashed; color: var(--coral-dark); font-weight: 800; }
.tag-card.new.dim { color: var(--muted); font-weight: 600; text-align: center; }
.badge { color: var(--coral-dark); }
.empty { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; text-align: center; }
.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; }
.qr-side { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; align-self: start; }
.qr-side .qr { width: 220px; height: 220px; image-rendering: pixelated; }
.qr-side .dl { display: grid; gap: 10px; margin: 16px 0; }
.threads { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.threads a { display: grid; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; text-decoration: none; color: var(--ink); }
.threads li.unread a { border-left: 5px solid var(--coral); }
.threads .excerpt { color: var(--muted); } .threads time { font-size: .8rem; color: var(--muted); }

/* Conversation */
.messages { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; }
.msg { max-width: 85%; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.msg.me { justify-self: end; background: var(--ink); color: #fff; border-color: var(--ink); }
.msg .who { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; opacity: .7; }
.msg p { margin: 4px 0; white-space: pre-wrap; } .msg time { font-size: .75rem; opacity: .7; }
.geo { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }

/* Tarifs */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 24px 0; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.plan.premium { border-color: var(--ink); }
.plan .price { float: right; color: var(--coral); } .plan .price small { font-size: .6em; color: var(--muted); }
.plan ul { padding-left: 20px; color: var(--muted); }
.soon { position: absolute; top: -12px; right: 16px; background: var(--sage); color: #fff; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 3px 10px; border-radius: 999px; margin: 0; }

/* Footer */
.foot { border-top: 1px solid var(--line); margin-top: 40px; }
.foot-inner { max-width: var(--max); margin: 0 auto; padding: 24px 20px; font-size: .92rem; }
.foot p { margin: 0 0 .4em; }

@media (max-width: 820px) {
  .hero, .two-col, .why .grid, .plans { grid-template-columns: 1fr; }
  .steps ol, .cards { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .top nav a:not(.btn):not(.langs a) { display: none; }
  section { padding: 32px 0; }
}
