/* ============================================================
   Supafy — site supafy.app
   Palette « Warm Graphite » alignée sur l'app (DESIGN.md §1)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg:            #121110;
  --bg-deep:       #0D0C0B;
  --surface:       #1C1A18;
  --surface-2:     #232019;
  --border:        rgba(242, 239, 234, 0.09);
  --border-strong: rgba(242, 239, 234, 0.16);
  --text:          #F2EFEA;
  --text-dim:      #B7AE9F;
  --text-faint:    #877F71;
  --copper:        #C79E68;
  --copper-bright: #E6C08A;
  --copper-deep:   #9C7847;
  --positive:      #4FB286;
  --negative:      #D98C7E;
  --on-copper:     #241B12;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body:    "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius:    18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --maxw: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg:            #F1F0EC;
    --bg-deep:       #E9E7E1;
    --surface:       #FBFAF7;
    --surface-2:     #FFFFFF;
    --border:        rgba(28, 26, 24, 0.10);
    --border-strong: rgba(28, 26, 24, 0.18);
    --text:          #1C1A18;
    --text-dim:      #5C564D;
    --text-faint:    #8A8175;
    --copper:        #B5854E;
    --copper-bright: #9C6F3C;
    --copper-deep:   #8A6536;
    --on-copper:     #FBFAF7;
  }
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Grain + glow atmosphere */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(700px 480px at 78% -8%, rgba(199, 158, 104, 0.16), transparent 60%),
    radial-gradient(620px 520px at -10% 12%, rgba(199, 158, 104, 0.07), transparent 55%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
section { position: relative; z-index: 1; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--copper);
  opacity: 0.7;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 460; line-height: 1.08; letter-spacing: -0.025em; }
.display {
  font-size: clamp(2.6rem, 6.4vw, 4.7rem);
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
}
h2.section-title { font-size: clamp(1.9rem, 4vw, 3rem); font-variation-settings: "opsz" 80, "SOFT" 20; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--text-dim); max-width: 56ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 14px 24px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(180deg, var(--copper-bright), var(--copper));
  color: var(--on-copper);
  box-shadow: 0 10px 30px -12px rgba(199, 158, 104, 0.65);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -12px rgba(199, 158, 104, 0.8); }
.btn-primary[aria-disabled="true"] { cursor: default; opacity: 0.92; }
.btn-primary[aria-disabled="true"]:hover { transform: none; }
.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--copper); color: var(--copper); transform: translateY(-2px); }

.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 20px 11px 18px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border-strong);
  color: var(--text);
}
.store-badge svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.store-badge .sb-top { font-size: 11px; color: var(--text-faint); letter-spacing: 0.04em; }
.store-badge .sb-main { font-family: var(--font-display); font-size: 18px; line-height: 1.1; }
.store-badge .sb-soon {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--copper); margin-left: 4px; align-self: flex-start;
}

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(199, 158, 104, 0.12);
  border: 1px solid rgba(199, 158, 104, 0.28);
  color: var(--copper);
}

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--border);
}
header.site .bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.brand { display: inline-flex; align-items: center; gap: 0; color: var(--text); }
.brand svg { height: 26px; width: auto; color: var(--text); }
.brand .bolt { color: var(--copper); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14.5px; color: var(--text-dim); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding: clamp(64px, 11vw, 132px) 0 clamp(48px, 8vw, 96px); position: relative; }
.hero .spiral {
  position: absolute; z-index: 0; pointer-events: none;
  top: clamp(-40px, -2vw, 0px); right: -8%;
  width: clamp(420px, 52vw, 760px); aspect-ratio: 1;
  color: var(--copper); opacity: 0.10;
  animation: drift 32s linear infinite;
}
.hero .spiral svg { width: 100%; height: 100%; }
@keyframes drift { to { transform: rotate(360deg); } }

.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-copy > * + * { margin-top: 26px; }
.hero h1 { margin-top: 22px; }
.hero h1 em { font-style: italic; color: var(--copper); font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 1; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 34px; }
.hero-note { font-size: 13px; color: var(--text-faint); margin-top: 22px; max-width: 48ch; }

/* Faux app card mockup */
.device {
  position: relative; z-index: 2;
  justify-self: center;
  width: min(360px, 100%);
}
.device .glasscard {
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong);
  border-radius: 30px;
  padding: 24px;
  box-shadow: 0 40px 90px -40px rgba(0,0,0,0.7), inset 0 1px 0 rgba(242,239,234,0.05);
}
.device .row { display: flex; align-items: center; justify-content: space-between; }
.device .label { font-size: 12px; color: var(--text-faint); letter-spacing: 0.04em; }
.device .net {
  font-family: var(--font-display); font-size: 38px; line-height: 1.1; margin-top: 4px;
  font-variation-settings: "opsz" 80;
}
.device .delta { color: var(--positive); font-weight: 600; font-size: 14px; }
.device .spark { margin: 18px 0 20px; }
.device .spark svg { width: 100%; height: 60px; }
.device .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.device .chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--text-dim);
  padding: 6px 11px; border-radius: 999px; border: 1px solid var(--border);
  background: rgba(242,239,234,0.02);
}
.device .dot { width: 8px; height: 8px; border-radius: 50%; }
.device .alert {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border-radius: var(--radius-sm);
  background: rgba(199,158,104,0.08); border: 1px solid rgba(199,158,104,0.2);
}
.device .alert .ic {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  display: grid; place-items: center; background: rgba(199,158,104,0.16); color: var(--copper);
}
.device .alert .t1 { font-size: 13.5px; font-weight: 600; }
.device .alert .t2 { font-size: 12px; color: var(--text-faint); }

/* ---------- Logos strip ---------- */
.chains-strip { padding: 14px 0 6px; }
.chains-strip .inner {
  display: flex; align-items: center; gap: 14px 30px; flex-wrap: wrap; justify-content: center;
  font-size: 13px; color: var(--text-faint); letter-spacing: 0.02em;
}
.chains-strip b { color: var(--text-dim); font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 116px) 0; }
.section-head { max-width: 640px; }
.section-head .lede { margin-top: 18px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lede { margin-inline: auto; }

/* Feature grid */
.features { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.card .ic {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(199,158,104,0.12); color: var(--copper); margin-bottom: 18px;
}
.card .ic svg { width: 23px; height: 23px; }
.card h3 { font-size: 1.32rem; font-variation-settings: "opsz" 40, "SOFT" 10; }
.card p { margin-top: 9px; color: var(--text-dim); font-size: 15px; }

/* "n'est pas" band */
.band { background: var(--bg-deep); border-block: 1px solid var(--border); }
.notlist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.notlist .item { display: flex; gap: 14px; align-items: flex-start; }
.notlist .x {
  flex: none; width: 26px; height: 26px; border-radius: 8px; margin-top: 2px;
  display: grid; place-items: center; color: var(--negative);
  background: color-mix(in srgb, var(--negative) 14%, transparent);
  font-weight: 700;
}
.notlist .item p { color: var(--text-dim); font-size: 15px; }
.notlist .item b { color: var(--text); font-weight: 600; }

/* Premium */
.premium-card {
  margin-top: 48px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
  background: linear-gradient(150deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px); overflow: hidden; position: relative;
}
.premium-card .glow {
  position: absolute; inset: auto -10% -60% auto; width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(199,158,104,0.22), transparent 65%);
  pointer-events: none;
}
.price-row { display: flex; align-items: baseline; gap: 8px; }
.price-row .big { font-family: var(--font-display); font-size: 3rem; font-variation-settings:"opsz" 90; line-height: 1; }
.price-row .per { color: var(--text-faint); font-size: 15px; }
.price-alt { color: var(--text-dim); font-size: 14.5px; margin-top: 10px; }
.checklist { list-style: none; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; color: var(--text-dim); }
.checklist .ck { color: var(--copper); flex: none; margin-top: 3px; }
.checklist b { color: var(--text); font-weight: 600; }

/* Compliance strip */
.disclaimer {
  border: 1px solid var(--border); border-left: 3px solid var(--copper);
  border-radius: var(--radius-sm); background: var(--surface);
  padding: 20px 22px; color: var(--text-dim); font-size: 14px; line-height: 1.7;
}
.disclaimer strong { color: var(--text); font-weight: 600; }

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--border); background: var(--bg-deep);
  padding: 64px 0 40px; position: relative; z-index: 1; margin-top: 40px;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
footer .brand svg { height: 24px; }
footer .tag { color: var(--text-faint); font-size: 14px; margin-top: 16px; max-width: 34ch; }
.foot-col h4 { font-family: var(--font-body); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); font-weight: 700; margin-bottom: 16px; }
.foot-col a { display: block; color: var(--text-dim); font-size: 14.5px; padding: 5px 0; transition: color 0.2s; }
.foot-col a:hover { color: var(--copper); }
.foot-bottom {
  margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
  color: var(--text-faint); font-size: 13px;
}
.foot-bottom .mini { max-width: 62ch; }

/* ---------- Prose (legal/support pages) ---------- */
.page-hero { padding: clamp(56px, 9vw, 96px) 0 8px; }
.page-hero .updated { color: var(--text-faint); font-size: 13.5px; margin-top: 16px; }
.prose { padding: 36px 0 24px; max-width: 760px; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: 1.55rem; margin-top: 46px; font-variation-settings:"opsz" 50,"SOFT" 14; scroll-margin-top: 90px; }
.prose h3 { font-size: 1.18rem; margin-top: 30px; font-family: var(--font-body); font-weight: 700; letter-spacing: -0.01em; }
.prose p, .prose li { color: var(--text-dim); font-size: 16px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--copper); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(199,158,104,0.4); }
.prose a:hover { text-decoration-color: var(--copper); }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 9px; }
.prose li::marker { color: var(--copper); }
code, .qa .a code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.88em;
  background: rgba(199,158,104,0.12); color: var(--copper);
  padding: 1px 6px; border-radius: 6px;
}
.prose .toc {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 24px; margin: 28px 0 8px;
}
.prose .toc h4 { font-family: var(--font-body); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 12px; }
.prose .toc ol { columns: 2; gap: 26px; }
.prose .toc a { text-decoration: none; color: var(--text-dim); }
.prose .toc a:hover { color: var(--copper); }

.datatable {
  width: 100%; border-collapse: collapse; margin-top: 8px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden;
  font-size: 14.5px;
}
.datatable th, .datatable td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.datatable th { background: var(--surface); color: var(--text); font-weight: 600; font-size: 13px; }
.datatable td { color: var(--text-dim); }
.datatable tr:last-child td { border-bottom: none; }

/* FAQ */
.faq { display: grid; gap: 12px; margin-top: 32px; max-width: 820px; }
details.qa {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 4px 22px; transition: border-color 0.2s;
}
details.qa[open] { border-color: var(--border-strong); }
details.qa summary {
  cursor: pointer; list-style: none; padding: 18px 0;
  font-weight: 600; font-size: 16.5px; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: "+"; color: var(--copper); font-size: 22px; transition: transform 0.25s; }
details.qa[open] summary::after { transform: rotate(45deg); }
details.qa .a { padding: 0 0 20px; color: var(--text-dim); font-size: 15.5px; }
details.qa .a a { color: var(--copper); text-decoration: underline; text-underline-offset: 3px; }

.contact-card {
  margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: 26px 28px;
}
.contact-card .em { font-family: var(--font-display); font-size: 1.45rem; color: var(--copper); }

.backlink { display: inline-flex; align-items: center; gap: 8px; color: var(--text-dim); font-size: 14px; }
.backlink:hover { color: var(--copper); }

/* ---------- Motion (page load) ---------- */
.reveal { opacity: 0; transform: translateY(16px); animation: rise 0.85s var(--ease) forwards; }
.d1 { animation-delay: 0.05s; } .d2 { animation-delay: 0.16s; } .d3 { animation-delay: 0.27s; }
.d4 { animation-delay: 0.38s; } .d5 { animation-delay: 0.5s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .device { grid-row: 1; margin-bottom: 8px; }
  .features, .notlist { grid-template-columns: repeat(2, 1fr); }
  .premium-card, .foot-grid { grid-template-columns: 1fr; }
  .prose .toc ol { columns: 1; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .features, .notlist { grid-template-columns: 1fr; }
  .foot-grid { gap: 32px; }
  .hero-actions { gap: 12px; }
  .hero-actions .btn, .hero-actions .store-badge { width: 100%; justify-content: center; }
}
