/* PixelRep — site vitrine. Mêmes polices et couleurs que l'app. */

@font-face { font-family: "Pixelify"; src: url("fonts/PixelifySans.ttf") format("truetype"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Uncut"; src: url("fonts/UncutSans-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Uncut"; src: url("fonts/UncutSans-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Uncut"; src: url("fonts/UncutSans-Semibold.otf") format("opentype"); font-weight: 600 700; font-display: swap; }

:root {
  --bg: #f3eee5;
  --bg-2: #ebe4d7;
  --ink: #1c1a17;
  --ink-2: #5d574e;
  --ink-3: #8a8378;
  --line: #ddd5c6;
  --card: #fffdf8;
  --night: #161514;
  --night-2: #222120;
  --night-line: #34322f;
  --night-ink: #f4efe6;
  --night-ink-2: #a39d93;
  --orange: #ff8a1f;
  --orange-ink: #c85f00;
  --teal: #2cc3a5;
  --gold: #e9b43c;
  --pink: #e4487f;
  --red: #b0101e;
  --radius: 18px;
  --max: 1160px;
  --pixel: "Pixelify", ui-monospace, monospace;
  --sans: "Uncut", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12110f; --bg-2: #1b1a17; --ink: #f4efe6; --ink-2: #b9b2a6; --ink-3: #8a8378;
    --line: #2e2c28; --card: #1c1b18; --orange-ink: #ffa04a; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #12110f; --bg-2: #1b1a17; --ink: #f4efe6; --ink-2: #b9b2a6; --ink-3: #8a8378;
  --line: #2e2c28; --card: #1c1b18; --orange-ink: #ffa04a; color-scheme: dark;
}

/* Dark cards on a dark page need an edge */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .note, :root:not([data-theme="light"]) .tile.dark, :root:not([data-theme="light"]) .plan.pro, :root:not([data-theme="light"]) .mail-card { background: #201e1b; box-shadow: inset 0 0 0 2px #2f2c28; }
  :root:not([data-theme="light"]) .gary { background: #0c0b0a; }
}
:root[data-theme="dark"] .note, :root[data-theme="dark"] .tile.dark, :root[data-theme="dark"] .plan.pro, :root[data-theme="dark"] .mail-card { background: #201e1b; box-shadow: inset 0 0 0 2px #2f2c28; }
:root[data-theme="dark"] .gary { background: #0c0b0a; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--orange); color: #1c1a17; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

/* Pixel corners: stepped clip-path, like the app's PixelRect */
.px {
  clip-path: polygon(0 6px, 3px 6px, 3px 3px, 6px 3px, 6px 0, calc(100% - 6px) 0, calc(100% - 6px) 3px, calc(100% - 3px) 3px, calc(100% - 3px) 6px, 100% 6px,
    100% calc(100% - 6px), calc(100% - 3px) calc(100% - 6px), calc(100% - 3px) calc(100% - 3px), calc(100% - 6px) calc(100% - 3px), calc(100% - 6px) 100%,
    6px 100%, 6px calc(100% - 3px), 3px calc(100% - 3px), 3px calc(100% - 6px), 0 calc(100% - 6px));
}

.pixel { font-family: var(--pixel); font-weight: 500; letter-spacing: 0.01em; }
.eyebrow { font: 500 14px/1 var(--pixel); letter-spacing: 0.06em; text-transform: uppercase; color: var(--orange-ink); display: inline-flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--orange); }

h1, h2, h3 { margin: 0; line-height: 1.08; font-weight: 500; text-wrap: balance; }
h1, h2 { font-family: var(--pixel); }
h2 { font-size: clamp(34px, 5.2vw, 58px); letter-spacing: -0.005em; }
h3 { font: 600 20px/1.25 var(--sans); letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); line-height: 1.55; }
.c-orange { color: var(--orange); }
.c-teal { color: var(--teal); }
.c-gold { color: var(--gold); }
.c-pink { color: var(--pink); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in oklab, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 500 22px/1 var(--pixel); }
.brand img { width: 34px; height: 34px; border-radius: 9px; image-rendering: pixelated; }
.nav-links { display: flex; align-items: center; gap: 26px; font-weight: 500; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--ink-2); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav-links .hide-sm { display: none; } .nav-links { gap: 14px; } }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; background: var(--b); color: var(--bg); text-decoration: none;
  font: 600 16px/1 var(--sans); border: 0; cursor: pointer;
  transition: transform .15s cubic-bezier(.2,.8,.2,1), filter .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-orange { --b: var(--orange); color: #1c1a17; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }

.appstore {
  display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 22px 0 18px;
  background: #000; color: #fff; text-decoration: none; border-radius: 14px;
  transition: transform .15s cubic-bezier(.2,.8,.2,1), box-shadow .2s;
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 10px 30px -12px rgba(0,0,0,.45);
}
.appstore:hover { transform: translateY(-1px); }
.appstore:active { transform: scale(.98); }
.appstore svg { width: 26px; height: 26px; flex: none; }
.appstore span { display: flex; flex-direction: column; line-height: 1.05; }
.appstore small { font: 500 11px/1.2 var(--sans); letter-spacing: .02em; opacity: .85; }
.appstore strong { font: 600 21px/1.1 var(--sans); letter-spacing: -0.01em; }

/* ---------- Hero ---------- */
.hero { padding: 48px 0 40px; position: relative; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; } .hero { padding-top: 28px; } }
.hero h1 { font-size: clamp(46px, 7.4vw, 88px); line-height: .98; margin: 18px 0 22px; letter-spacing: -0.01em; }
.hero h1 .c-orange { display: block; }
.hero .lead { max-width: 33ch; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 32px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; color: var(--ink-2); font-size: 14.5px; font-weight: 500; padding: 0; list-style: none; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 16px; height: 16px; color: var(--teal); flex: none; }

/* Live note demo */
.demo-stage { position: relative; display: flex; justify-content: center; }
.demo-stage::before {
  content: ""; position: absolute; inset: 8% -6% -4% -6%; z-index: 0;
  background:
    radial-gradient(closest-side, color-mix(in oklab, var(--orange) 26%, transparent), transparent 70%);
  filter: blur(10px);
}
.note {
  position: relative; z-index: 1; width: min(100%, 440px); background: var(--night); color: var(--night-ink);
  padding: 22px 22px 18px; box-shadow: 0 40px 80px -30px rgba(28,26,23,.55);
}
.note-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--night-line); }
.note-title { font: 500 16px/1 var(--pixel); }
.note-dots { display: flex; gap: 6px; }
.note-dots i { width: 8px; height: 8px; background: var(--night-line); display: block; }
.note-dots i:first-child { background: var(--orange); }
.note-lines { list-style: none; margin: 0; padding: 0; min-height: 284px; }
.note-lines li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--night-line); font-size: 16px; }
.note-lines li.comment { color: var(--night-ink-2); font-style: normal; border-bottom: 0; }
.note-lines .reps { font-weight: 600; color: var(--night-ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; opacity: 0; transform: translateX(6px); transition: opacity .3s, transform .3s cubic-bezier(.2,.8,.2,1); }
.note-lines .reps.on { opacity: 1; transform: none; }
.note-lines .reps.best { color: var(--orange); }
.note-lines .tag { font: 600 12px/1 var(--sans); padding: 4px 6px; background: #4a2a10; color: var(--orange); margin-left: 8px; }
.caret { display: inline-block; width: 2px; height: 1.1em; background: var(--orange); vertical-align: -0.18em; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.note-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; font-size: 14px; color: var(--night-ink-2); }
.note-foot b { font: 500 26px/1 var(--pixel); color: var(--orange); font-variant-numeric: tabular-nums; }
.badge-float {
  position: absolute; z-index: 2; background: var(--card); color: var(--ink); padding: 10px 14px; display: flex; gap: 10px; align-items: center;
  font: 600 14px/1.2 var(--sans); box-shadow: 0 18px 40px -18px rgba(28,26,23,.45);
}
.badge-float img { width: 34px; height: 34px; image-rendering: pixelated; border-radius: 6px; }
.badge-float small { display: block; font-weight: 500; color: var(--ink-2); font-size: 12px; }
.badge-float.b1 { left: -6%; bottom: -20px; }
.badge-float.b2 { right: -3%; top: 6%; }
@media (max-width: 560px) { .badge-float.b1 { left: 0; bottom: -18px; } .badge-float.b2 { right: 0; top: -22px; } }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
@media (max-width: 700px) { section { padding: 72px 0; } }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2 { margin: 14px 0 16px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center .eyebrow { justify-content: center; }

/* Screenshot rail */
.rail-wrap { position: relative; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 24vw, 290px); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 20px 26px; scrollbar-width: none;
  margin: 0 auto; max-width: calc(var(--max) + 40px);
}
.rail::-webkit-scrollbar { display: none; }
.rail figure { margin: 0; scroll-snap-align: center; }
.rail img { width: 100%; height: auto; border-radius: 22px; box-shadow: 0 20px 40px -24px rgba(28,26,23,.5); background: var(--bg-2); aspect-ratio: 1290/2796; object-fit: cover; }
.rail-ctrl { display: flex; gap: 10px; justify-content: center; margin-top: 4px; }
.rail-ctrl button { width: 44px; height: 44px; border: 0; background: var(--card); color: var(--ink); cursor: pointer; display: grid; place-items: center; box-shadow: inset 0 0 0 2px var(--line); }
.rail-ctrl button:hover { box-shadow: inset 0 0 0 2px var(--ink-3); }
.rail-ctrl svg { width: 18px; height: 18px; }

/* Feature bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { background: var(--card); padding: 28px; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; min-height: 220px; }
.tile p { color: var(--ink-2); font-size: 16px; }
.tile .ico { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 8px; color: #1c1a17; }
.tile .ico svg { width: 22px; height: 22px; }
.t-span3 { grid-column: span 3; }
.t-span2 { grid-column: span 2; }
.t-span4 { grid-column: span 4; }
.tile.dark { background: var(--night); color: var(--night-ink); }
.tile.dark p { color: var(--night-ink-2); }
@media (max-width: 900px) { .t-span2, .t-span3, .t-span4 { grid-column: span 3; } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; } .t-span2, .t-span3, .t-span4 { grid-column: auto; } }

.mini-bars { display: flex; align-items: flex-end; gap: 6px; height: 90px; margin-top: auto; padding-top: 16px; }
.mini-bars i { flex: 1; display: block; background:
  repeating-linear-gradient(to top, var(--teal) 0 8px, transparent 8px 10px); }
.mini-bars i.hi { background: repeating-linear-gradient(to top, var(--orange) 0 8px, transparent 8px 10px); }
.timer { margin-top: auto; display: flex; align-items: center; gap: 12px; background: #000; color: #fff; border-radius: 999px; padding: 10px 16px 10px 12px; width: fit-content; font: 600 15px/1 var(--sans); }
.timer .dot { width: 26px; height: 26px; border-radius: 50%; background: conic-gradient(var(--orange) 0 68%, #333 68% 100%); }
.timer b { font: 500 20px/1 var(--pixel); color: var(--orange); font-variant-numeric: tabular-nums; }

/* Gary */
.gary { background: var(--night); color: var(--night-ink); position: relative; overflow: hidden; }
.gary::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--night-line) 1px, transparent 1px), linear-gradient(90deg, var(--night-line) 1px, transparent 1px); background-size: 32px 32px; opacity: .35; mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%); }
.gary .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .gary .wrap { grid-template-columns: 1fr; } }
.gary .lead { color: var(--night-ink-2); }
.gary .eyebrow { color: var(--gold); }
.gary .eyebrow::before { background: var(--gold); }
.gary-points { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.gary-points li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; color: var(--night-ink-2); font-size: 16px; }
.gary-points b { color: var(--night-ink); font-weight: 600; }
.gary-points .ck { width: 28px; height: 28px; display: grid; place-items: center; background: var(--night-2); color: var(--gold); }
.gary-points .ck svg { width: 16px; height: 16px; }
.gary-visual { position: relative; display: flex; flex-direction: column; align-items: center; }
.gary-visual img.sprite { width: min(78%, 330px); image-rendering: pixelated; filter: drop-shadow(0 30px 40px rgba(0,0,0,.5)); }
.bubble { background: #f6e9cf; color: #2a2118; padding: 16px 18px; font-size: 15.5px; line-height: 1.5; max-width: 380px; margin-top: -18px; position: relative; z-index: 1; box-shadow: 0 0 0 3px #b98a4a inset; }
.bubble .who { font: 500 13px/1 var(--pixel); color: #b06a1a; display: block; margin-bottom: 6px; letter-spacing: .04em; }
.bubble .hl { color: #c8730e; font-weight: 600; }
.bubble sup { font: 600 11px/1 var(--sans); color: #8b5a17; background: #ecd5a8; padding: 2px 4px; margin-left: 2px; }
.consent-note { margin-top: 28px; padding: 16px 18px; background: var(--night-2); color: var(--night-ink-2); font-size: 14.5px; display: flex; gap: 12px; }
.consent-note svg { width: 20px; height: 20px; flex: none; color: var(--gold); margin-top: 2px; }

/* Privacy band */
.priv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .priv-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .priv-grid { grid-template-columns: 1fr; } }
.priv { background: var(--card); padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.priv .ico { width: 40px; height: 40px; display: grid; place-items: center; background: color-mix(in oklab, var(--teal) 18%, var(--card)); color: color-mix(in oklab, var(--teal) 70%, var(--ink)); margin-bottom: 8px; }
.priv .ico svg { width: 20px; height: 20px; }
.priv p { color: var(--ink-2); font-size: 15.5px; }
.priv-more { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 900px; margin: 0 auto; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--card); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.plan.pro { background: var(--night); color: var(--night-ink); }
.plan h3 { font: 500 26px/1 var(--pixel); }
.plan .price { font: 600 15px/1.4 var(--sans); color: var(--ink-2); }
.plan.pro .price { color: var(--night-ink-2); }
.plan .price b { font: 500 40px/1 var(--pixel); color: var(--ink); display: block; margin-bottom: 4px; }
.plan.pro .price b { color: var(--orange); }
.plan ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 10px; }
.plan li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 15.5px; }
.plan li svg { width: 18px; height: 18px; margin-top: 3px; color: var(--teal); }
.plan.pro li svg { color: var(--orange); }
.fine { font-size: 13px; color: var(--ink-3); margin-top: 22px; text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; line-height: 1.55; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--card); padding: 0 22px; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font: 600 17px/1.35 var(--sans); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 500 24px/1 var(--pixel); color: var(--orange); transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-2); font-size: 16px; }

/* Final CTA */
.cta-final { text-align: center; padding: 110px 0; }
.cta-final img.icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 28px; box-shadow: 0 20px 40px -18px rgba(176,16,30,.6); }
.cta-final h2 { margin-bottom: 18px; }
.cta-final .appstore { margin-top: 32px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 15px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } .foot > :first-child { grid-column: 1 / -1; } }
.foot h4 { font: 500 13px/1 var(--pixel); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 0 0 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { text-decoration: none; color: var(--ink-2); }
.foot a:hover { color: var(--ink); }
.foot p { color: var(--ink-2); margin-top: 12px; max-width: 34ch; }
.copy { margin-top: 40px; color: var(--ink-3); font-size: 13.5px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .caret { animation: none; } }

/* ---------- Legal / docs pages ---------- */
.doc-hero { padding: 64px 0 28px; }
.doc-hero h1 { font-size: clamp(40px, 6vw, 64px); margin: 14px 0 14px; }
.doc-hero p { color: var(--ink-2); max-width: 62ch; font-size: 18px; }
.doc-hero .meta { margin-top: 14px; font-size: 14px; color: var(--ink-3); }
.doc { display: grid; grid-template-columns: 240px 1fr; gap: 56px; padding: 28px 0 96px; align-items: start; }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; gap: 24px; } }
.toc { position: sticky; top: 96px; font-size: 14.5px; }
.toc h4 { font: 500 13px/1 var(--pixel); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 0 0 12px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; counter-reset: toc; }
.toc a { text-decoration: none; color: var(--ink-2); }
.toc a:hover { color: var(--ink); }
@media (max-width: 900px) { .toc { position: static; background: var(--card); padding: 20px; } }
.prose { max-width: 740px; font-size: 16.5px; }
.prose h2 { font: 600 24px/1.25 var(--sans); letter-spacing: -0.015em; margin: 52px 0 14px; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin: 30px 0 10px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--orange-ink); text-underline-offset: 3px; }
.prose .callout { background: var(--card); padding: 20px 22px; margin: 18px 0 24px; border-left: 4px solid var(--orange); }
.prose .callout p:last-child { margin-bottom: 0; }
.prose .callout.teal { border-left-color: var(--teal); }
.prose .caps { text-transform: uppercase; font-size: 14.5px; letter-spacing: .01em; }
.table-wrap { overflow-x: auto; margin: 8px 0 22px; background: var(--card); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.prose th { color: var(--ink); font-weight: 600; font-size: 13.5px; text-transform: uppercase; letter-spacing: .04em; background: var(--bg-2); }
.prose tr:last-child td { border-bottom: 0; }
.glance { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 10px 0 30px; }
@media (max-width: 640px) { .glance { grid-template-columns: 1fr; } }
.glance div { background: var(--card); padding: 18px 18px; }
.glance b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.glance span { color: var(--ink-2); font-size: 15px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 20px 0 96px; align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.form { background: var(--card); padding: 28px; display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 14.5px; }
.form input, .form textarea, .form select {
  font: 400 16px/1.4 var(--sans); color: var(--ink); background: var(--bg); border: 2px solid var(--line); padding: 12px 14px; border-radius: 0; width: 100%;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--orange); }
.form textarea { min-height: 150px; resize: vertical; }
.form .hint { font-size: 13.5px; color: var(--ink-3); font-weight: 400; }
.help-list { display: grid; gap: 12px; }
.help-list details { background: var(--card); padding: 0 20px; }
.help-list summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.help-list summary::-webkit-details-marker { display: none; }
.help-list summary::after { content: "+"; font: 500 22px/1 var(--pixel); color: var(--orange); }
.help-list details[open] summary::after { content: "–"; }
.help-list p { color: var(--ink-2); padding-bottom: 18px; font-size: 15.5px; }
.mail-card { margin-top: 18px; display: flex; gap: 14px; align-items: center; background: var(--night); color: var(--night-ink); padding: 18px 20px; }
.mail-card img { width: 48px; height: 48px; image-rendering: pixelated; }
.mail-card a { color: var(--orange); font-weight: 600; }
.mail-card small { display: block; color: var(--night-ink-2); font-size: 13.5px; }

/* ---------- 1:1 app components (values from the SwiftUI code) ---------- */
.note { --app-orange:#FF9230; width:min(100%,400px); background:#171717; padding:14px 22px 40px; border-radius:48px; box-shadow:0 0 0 10px #0b0b0b, 0 40px 80px -30px rgba(28,26,23,.6); clip-path:none; }
.sbar { display:flex; justify-content:space-between; align-items:center; color:#fff; font:600 15px/1 -apple-system,"SF Pro Text",system-ui,sans-serif; padding:6px 10px 18px; }
.sbar .island { width:96px; height:28px; background:#000; border-radius:20px; display:block; }
.sbar span:last-child { font-size:10px; letter-spacing:1px; }
.note-head { justify-content:center; border-bottom:0; padding-bottom:10px; }
.note-title { font:400 22px/1 var(--pixel); letter-spacing:.4px; color:#fff; }
.note-lines { min-height:330px; }
.note-lines li { font:400 20px/1.25 -apple-system,"SF Pro Text",system-ui,sans-serif; color:#fff; border-bottom:1px solid rgba(255,255,255,.07); padding:14px 0; }
.note-lines li.comment { color:rgba(235,235,245,.3); }
.note-lines .reps { font:600 17px/1 var(--sans); color:rgba(235,235,245,.6); }
.note-lines .reps.best { color:var(--app-orange); }
.note-lines .tag { font:inherit; background:rgba(255,146,48,.18); color:var(--app-orange); padding:1px 6px; border-radius:6px; margin-left:6px; }
.caret { background:var(--app-orange); width:2.5px; }
.chartcard { margin-top:auto; background:rgba(255,255,255,.06); border-radius:26px; padding:16px; display:flex; flex-direction:column; gap:8px; }
.cc-head { display:flex; justify-content:space-between; align-items:center; font:400 15px/1 var(--pixel); letter-spacing:.4px; color:rgba(235,235,245,.6); }
.cc-dots { display:flex; gap:4px; } .cc-dots i { width:5px; height:5px; background:#FF9230; opacity:.7; display:block; }
.pxchart { width:100%; height:164px; margin-top:-14px; display:block; }
.cc-stats { display:flex; gap:18px; align-items:baseline; font:400 12px/1 var(--pixel); letter-spacing:.4px; color:rgba(235,235,245,.6); }
.cc-stats b { font:400 16px/1 var(--pixel); margin-left:6px; } .cc-stats .o { color:#FF9230; } .cc-stats .m { color:#00DAC3; }
.cc-stats .u { margin-left:auto; color:rgba(235,235,245,.3); }

/* PixelRect(step:) de l'app : coins en escalier de 2 marches */
.pxr { --s: 3px; clip-path: polygon(0 calc(2*var(--s)), var(--s) calc(2*var(--s)), var(--s) var(--s), calc(2*var(--s)) var(--s), calc(2*var(--s)) 0,
  calc(100% - 2*var(--s)) 0, calc(100% - 2*var(--s)) var(--s), calc(100% - var(--s)) var(--s), calc(100% - var(--s)) calc(2*var(--s)), 100% calc(2*var(--s)),
  100% calc(100% - 2*var(--s)), calc(100% - var(--s)) calc(100% - 2*var(--s)), calc(100% - var(--s)) calc(100% - var(--s)), calc(100% - 2*var(--s)) calc(100% - var(--s)), calc(100% - 2*var(--s)) 100%,
  calc(2*var(--s)) 100%, calc(2*var(--s)) calc(100% - var(--s)), var(--s) calc(100% - var(--s)), var(--s) calc(100% - 2*var(--s)), 0 calc(100% - 2*var(--s))); }
.pxr2 { --s: 2px; }

/* Téléphone (même cadre que la note) */
.phone { width:min(100%,400px); background:#171717; color:#fff; padding:14px 18px 22px; border-radius:48px; box-shadow:0 0 0 10px #0b0b0b, 0 40px 80px -30px rgba(0,0,0,.7); }
.gary-visual .phone { margin: 0 auto; }

/* En-tête Gary : portrait 48 pt recadré sur le visage (GaryPortrait), statut vert */
.g-head { display:flex; align-items:center; gap:12px; padding:2px 0 18px; }
.g-portrait-wrap { position:relative; width:53px; height:53px; flex:none; }
.g-portrait-edge { background:#9E6138; padding:2.5px; width:53px; height:53px; }
.g-portrait { width:48px; height:48px; background:color-mix(in srgb, #FF9230 22%, #171717) url(img/gary-portrait.png) no-repeat; background-size:98.3px; background-position:-26.9px -6.7px; image-rendering:pixelated; }
.g-online { position:absolute; right:-4px; bottom:-4px; width:11px; height:11px; background:#30D158; box-shadow:0 0 0 2.5px #171717; }
.g-titles { flex:1; min-width:0; }
.g-name { font:400 23px/1.1 var(--pixel); letter-spacing:.4px; }
.g-status { font:400 13px/1.3 var(--pixel); letter-spacing:.4px; color:rgba(235,235,245,.6); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.g-menu { width:44px; height:44px; background:rgba(255,255,255,.07); display:flex; align-items:center; justify-content:center; gap:4px; flex:none; }
.g-menu i { width:5px; height:5px; background:#fff; display:block; }

/* GaryDialog : parchemin, bord 3 pt, ombre 4/4 */
.g-dialog { filter: drop-shadow(4px 4px 0 rgba(0,0,0,.35)); }
.d-edge { background:#9E6138; padding:3px; }
.d-in { background:#F0DEC2; padding:13px 15px 9px; }
.g-dname { font:400 16px/1 var(--pixel); letter-spacing:.4px; color:#B88529; margin-bottom:8px; }
.g-dtext { font:400 17px/27px var(--pixel); letter-spacing:.4px; color:#291C14; margin:0; }
.g-dtext .hl { color:#B88529; }
.g-dtext .todo { color:rgba(41,28,20,.12); }

/* quêtes.rapides */
.g-qtitle { display:flex; align-items:center; gap:8px; font:400 16px/1 var(--pixel); letter-spacing:.4px; margin:24px 0 12px; }
.g-qtitle i { width:8px; height:8px; background:#FF9230; display:block; }
.g-quests { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.g-quest { filter: drop-shadow(0 4px 0 rgba(255,255,255,.16)); padding-bottom:4px; }
.q-edge { background:rgba(255,255,255,.14); padding:1.5px; height:100%; }
.q-in { background:#212121; display:flex; align-items:center; gap:10px; padding:10px; min-height:66px; height:100%; }
.g-emo { width:34px; height:34px; flex:none; display:grid; place-items:center; font-size:20px; background:color-mix(in srgb, #FF9230 14%, #212121); }
.q-in b { display:block; font:400 14px/1.15 var(--pixel); letter-spacing:.4px; color:#fff; font-weight:400; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.q-in small { display:block; font:400 11px/1.3 var(--sans); color:rgba(235,235,245,.6); margin-top:3px; }
.q-in > span:last-child { min-width:0; }
@media (max-width:420px) { .phone { padding:12px 12px 18px; border-radius:36px; } .q-in { gap:7px; padding:8px; } .g-emo { width:28px; height:28px; font-size:16px; } }

/* Sélecteur de style du graphique */
.cc-styles { display:flex; gap:6px; margin-top:6px; flex-wrap:wrap; }
.cc-styles button { font:400 12px/1 var(--pixel); letter-spacing:.4px; color:rgba(235,235,245,.6); background:rgba(255,255,255,.06); border:0; padding:8px 10px; cursor:pointer; border-radius:999px; }
.cc-styles button[aria-pressed="true"] { background:#FF9230; color:#1c1a17; }

/* Gary qui fait l'exercice */
.gx-stage { margin-top:auto; display:flex; flex-direction:column; align-items:center; padding-top:8px; position:relative; }
.gx-stage::before { content:""; position:absolute; width:180px; height:180px; top:-10px; border-radius:50%;
  background:repeating-conic-gradient(rgba(255,146,48,.16) 0deg 8deg, transparent 8deg 20deg);
  -webkit-mask-image:radial-gradient(circle, #000 15%, transparent 62%); mask-image:radial-gradient(circle, #000 15%, transparent 62%); }
.gx-stage img { width:128px; height:128px; image-rendering:pixelated; position:relative; filter:drop-shadow(0 6px 0 rgba(0,0,0,.35)); }
.gx-name { font:400 18px/1 var(--pixel); letter-spacing:.4px; color:#fff; text-shadow:2px 2px 0 #000; position:relative; }

.nav-links a.btn-orange, .nav-links a.btn-orange:hover { color: #1c1a17; }
