/* Musqle public website (musqle.app): landing, guides, free tools.
   Plain static CSS — no framework, no web font: these pages must load
   instantly on a phone (Core Web Vitals are a ranking factor). */

:root {
  color-scheme: dark;
  --bg: #09090b;
  --surface: #121215;
  --surface-2: #19191d;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #fafafa;
  --text-2: #c4c4cc;
  --muted: #8b8b94;
  --blue: #3b82f6;
  --blue-2: #60a5fa;
  --amber: #fbbf24;
  --green: #34d399;
  --radius: 16px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--blue-2); }
a:hover { color: #93c5fd; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Header ─────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(9, 9, 11, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.top .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 18px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand:hover { color: var(--text); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 10px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.top .cta { margin-left: 8px; }
@media (max-width: 760px) {
  .nav { display: none; }
  .top .cta { margin-left: auto; }
}

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 22px; border-radius: 14px; font-weight: 700; font-size: 16px;
  text-decoration: none; white-space: nowrap; transition: transform 0.15s, filter 0.15s; border: 0; cursor: pointer;
  font-family: inherit;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(0.98); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { color: #fff; }
.store-apple { background: #fff; color: #0b0b0f; }
.store-apple:hover { color: #0b0b0f; }
.store-google { background: rgba(255, 255, 255, 0.06); color: #fff; border: 1px solid var(--border-strong); }
.store-google:hover { color: #fff; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .stores .btn { padding: 0 18px; font-size: 15px; }
@media (max-width: 600px) { .stores .btn { flex: 1 1 100%; } }
.stores-note { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* ── Hero ───────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; padding: 64px 0 40px;
  background-image: radial-gradient(55% 60% at 70% 20%, rgba(59, 130, 246, 0.2), transparent 70%);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: rgba(59, 130, 246, 0.12); color: #93c5fd; font-size: 13px; font-weight: 600; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(36px, 6vw, 60px); font-weight: 850; }
.hero h1 em { font-style: normal; color: var(--blue-2); }
.hero .lead { margin-top: 18px; font-size: 19px; color: var(--text-2); max-width: 560px; }
.hero .stores { margin-top: 28px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; font-size: 14px; color: var(--muted); list-style: none; padding: 0; }
.trust li::before { content: "✓"; color: var(--green); font-weight: 800; margin-right: 6px; }
@media (max-width: 900px) {
  .hero { padding: 36px 0 24px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero .lead { font-size: 17px; }
}

/* Page hero for guides / tools (no visual) */
.page-hero { padding: 48px 0 8px; background-image: radial-gradient(50% 80% at 50% 0%, rgba(59, 130, 246, 0.16), transparent 70%); }
.page-hero h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 850; max-width: 820px; }
.page-hero .lead { margin-top: 14px; font-size: 18px; color: var(--text-2); max-width: 720px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text-2); }
.crumbs span { margin: 0 6px; }

/* ── Phone frame + floating chips ───────────────────── */
.visual { position: relative; display: flex; justify-content: center; min-height: 520px; }
.phone {
  position: relative; width: 300px; border-radius: 44px; padding: 12px;
  background: linear-gradient(160deg, #2a2a30, #121215); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
/* Holds a real app capture (1179×2556), the pill mimics the Dynamic Island */
.screen { border-radius: 34px; background: #1c1c1e; overflow: hidden; position: relative; }
.screen img { display: block; width: 100%; height: auto; }
.screen::before { content: ""; position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 84px; height: 24px; border-radius: 20px; background: #000; z-index: 1; }
.chip {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px;
  background: rgba(20, 20, 23, 0.96); border: 1px solid var(--border); box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.8);
}
.chip-ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(251, 191, 36, 0.15); color: var(--amber); font-size: 15px; }
.chip-k { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--amber); line-height: 1.2; }
.chip-v { font-size: 13px; font-weight: 700; line-height: 1.2; }
@media (max-width: 900px) {
  .visual { min-height: 0; transform: scale(0.92); margin: -20px 0; }
}
@media (max-width: 420px) {
  .chip.hide-sm { display: none; }
}

/* ── Sections ───────────────────────────────────────── */
section.block { padding: 72px 0; }
section.block.alt { background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0)); border-top: 1px solid var(--border); }
.sec-head { max-width: 720px; margin-bottom: 36px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { color: var(--blue-2); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.sec-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.sec-head p { margin-top: 14px; color: var(--text-2); font-size: 17px; }
@media (max-width: 760px) { section.block { padding: 52px 0; } }

.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.feature { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.feature .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 21px; background: rgba(59, 130, 246, 0.12); margin-bottom: 14px; }
.feature h3 { font-size: 18px; font-weight: 700; }
.feature p { margin-top: 8px; color: var(--text-2); font-size: 15px; }
.feature .tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px; font-size: 11px; font-weight: 700; vertical-align: 2px; background: rgba(251, 191, 36, 0.14); color: var(--amber); }
a.feature { text-decoration: none; color: inherit; transition: border-color 0.15s, transform 0.15s; display: block; }
a.feature:hover { border-color: rgba(96, 165, 250, 0.5); transform: translateY(-2px); color: inherit; }
a.feature .more { display: inline-block; margin-top: 12px; color: var(--blue-2); font-weight: 600; font-size: 14px; }

.steps { counter-reset: step; }
.step { position: relative; padding: 22px 22px 22px 70px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step::before {
  counter-increment: step; content: counter(step); position: absolute; left: 20px; top: 20px;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); font-weight: 800;
}
.step h3 { font-size: 17px; }
.step p { margin-top: 6px; color: var(--text-2); font-size: 15px; }

/* ── Long-form text (guides) ────────────────────────── */
.prose { max-width: 760px; }
.prose h2 { font-size: 28px; font-weight: 800; margin: 48px 0 14px; }
.prose h3 { font-size: 20px; font-weight: 700; margin: 30px 0 10px; }
.prose p, .prose li { color: var(--text-2); font-size: 17px; }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 22px; margin: 12px 0; }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--text); }
.prose .note { margin: 22px 0; padding: 16px 18px; border-radius: 12px; background: rgba(59, 130, 246, 0.08); border: 1px solid rgba(59, 130, 246, 0.25); font-size: 15px; color: var(--text-2); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.aside { position: sticky; top: 84px; }
@media (max-width: 960px) { .layout { grid-template-columns: 1fr; } .aside { position: static; } }
.toc { padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); font-size: 14px; }
.toc b { display: block; margin-bottom: 8px; }
.toc a { display: block; padding: 4px 0; color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--text); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 18px 0; border-radius: 12px; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); }
th { font-size: 13px; color: var(--muted); font-weight: 600; background: var(--surface); }
tr:last-child td { border-bottom: 0; }
td { color: var(--text-2); }
td strong { color: var(--text); }
.yes { color: var(--green); font-weight: 700; }
.no { color: #71717a; }

/* ── CTA box ────────────────────────────────────────── */
.cta-box {
  padding: 40px; border-radius: 24px; text-align: center;
  background: radial-gradient(70% 120% at 50% 0%, rgba(59, 130, 246, 0.28), rgba(59, 130, 246, 0.04) 70%), var(--surface);
  border: 1px solid rgba(96, 165, 250, 0.25);
}
.cta-box h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; }
.cta-box p { margin: 12px auto 0; color: var(--text-2); max-width: 560px; }
.cta-box .stores { justify-content: center; margin-top: 24px; }
.side-cta { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid rgba(96, 165, 250, 0.25); margin-top: 16px; }
.side-cta img { width: 44px; height: 44px; border-radius: 11px; }
.side-cta h3 { font-size: 17px; margin-top: 10px; }
.side-cta p { font-size: 14px; color: var(--text-2); margin-top: 6px; }
.side-cta .btn { width: 100%; margin-top: 14px; height: 46px; font-size: 15px; }

/* ── FAQ ────────────────────────────────────────────── */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative; font-weight: 650; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 24px; color: var(--muted); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 20px; color: var(--text-2); }
.faq .a p + p { margin-top: 10px; }

/* ── Tools (calculators) ────────────────────────────── */
.tool { padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border-strong);
  background: var(--bg); color: var(--text); font-size: 17px; font-family: inherit; outline: none;
}
.field input:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25); }
.seg { display: flex; padding: 4px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border-strong); height: 48px; }
.seg label { flex: 1; margin: 0; position: relative; }
.seg input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.seg span { display: grid; place-items: center; height: 100%; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.seg input:checked + span { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }
.seg input:focus-visible + span { outline: 2px solid var(--blue); }
.result { margin-top: 22px; padding: 22px; border-radius: 16px; background: rgba(59, 130, 246, 0.08); border: 1px solid rgba(59, 130, 246, 0.25); }
.result .big { font-size: 44px; font-weight: 850; letter-spacing: -0.02em; line-height: 1; }
.result .big small { font-size: 20px; color: var(--text-2); font-weight: 700; }
.result .sub { margin-top: 8px; color: var(--text-2); font-size: 14px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-top: 16px; }
.kpi { padding: 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); }
.kpi b { display: block; font-size: 22px; }
.kpi span { font-size: 12px; color: var(--muted); }
.plates { display: flex; align-items: center; justify-content: center; gap: 3px; margin: 18px 0 6px; min-height: 120px; overflow-x: auto; }
.plates .bar { height: 14px; width: 70px; background: linear-gradient(#a1a1aa, #52525b); border-radius: 3px; flex: none; }
.plates .sleeve { height: 22px; width: 18px; background: linear-gradient(#d4d4d8, #71717a); border-radius: 2px; flex: none; }
.plates .plate { width: 16px; border-radius: 4px; flex: none; display: grid; place-items: center; font-size: 9px; font-weight: 800; writing-mode: vertical-rl; color: rgba(0, 0, 0, 0.75); }

/* ── Referral code banner (/telecharger/?code=) ─────── */
.code-box { margin-top: 24px; padding: 16px; border-radius: 16px; background: rgba(251, 191, 36, 0.08); border: 1px solid rgba(251, 191, 36, 0.3); text-align: center; }

/* ── Footer ─────────────────────────────────────────── */
.foot { border-top: 1px solid var(--border); padding: 48px 0 32px; margin-top: 40px; font-size: 14px; }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot h4 { margin: 0 0 12px; font-size: 13px; color: var(--text); text-transform: uppercase; letter-spacing: 0.06em; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li + li { margin-top: 8px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot .about { color: var(--muted); margin-top: 12px; max-width: 300px; }
.foot .legal { margin-top: 36px; color: #5d5d66; font-size: 13px; }
@media (max-width: 760px) { .foot .cols { grid-template-columns: 1fr 1fr; } }
