/* Studio site — Ahmed El Euch. System fonts only (fast, no third-party requests: RGPD-friendly). */
:root {
  --bg: #faf7f2;
  --bg-2: #f2ece2;
  --card: #ffffff;
  --ink: #1f1b16;
  --muted: #6b6258;
  --line: #e4dccf;
  --accent: #b5441b;
  --accent-ink: #ffffff;
  --accent-soft: #f6e3d9;
  --ok: #2f6b4f;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(31 27 22 / 6%), 0 8px 24px rgb(31 27 22 / 6%);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17140f;
    --bg-2: #1f1b15;
    --card: #231f19;
    --ink: #f3ede4;
    --muted: #b0a596;
    --line: #3a332a;
    --accent: #e0703f;
    --accent-ink: #17140f;
    --accent-soft: #3a2519;
    --ok: #7cc39d;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
img, svg { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.eyebrow { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); font-weight: 650; margin-bottom: 0.8em; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { font-family: var(--serif); font-weight: 650; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand span { color: var(--accent); }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.nav a:hover { color: var(--accent); }
.nav a.btn, .nav a.btn:hover { color: var(--accent-ink); }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600; border: 0; cursor: pointer; font-size: 1rem; }
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn.small { padding: 8px 14px; font-size: 0.92rem; }

/* Sections */
section { padding: 84px 0; }
section.alt { background: var(--bg-2); }
.hero { padding: 88px 0 72px; }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .proof { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 0.95rem; }
.hero .proof b { color: var(--ink); }

.grid { display: grid; gap: 18px; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 0.35em; }
.card ul { padding-left: 1.1em; margin: 0.6em 0 0; }
.card li { margin: 0.25em 0; }
.card.featured { border: 2px solid var(--accent); }
.tag { display: inline-block; font-size: 0.78rem; font-weight: 650; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); margin-bottom: 12px; }

.pains { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 28px; }
.pain { padding: 18px 20px; border-left: 3px solid var(--accent); background: var(--card); border-radius: 0 var(--radius) var(--radius) 0; }
.pain b { display: block; margin-bottom: 4px; }

.demo-card { display: block; text-decoration: none; color: inherit; overflow: hidden; padding: 0; transition: transform 0.15s ease; }
.demo-card:hover { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .demo-card:hover { transform: none; } }
.demo-card .thumb { height: 150px; display: grid; place-items: center; font-family: var(--serif); font-size: 1.4rem; color: #fff; text-shadow: 0 1px 8px rgb(0 0 0 / 30%); }
.demo-card .body { padding: 18px 20px 22px; }
.demo-card .go { color: var(--accent); font-weight: 600; }

.steps { counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { position: relative; padding: 22px 22px 22px 64px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 20px; top: 20px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; font-size: 0.95rem; }

details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; color: var(--muted); }

.contact { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
.contact .big { font-size: 1.15rem; }

footer { padding: 40px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer a { color: var(--muted); }

.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.todo { background: var(--accent-soft); color: var(--accent); padding: 0 4px; border-radius: 4px; }
