/* ============================================================
   Kameni Alfred — "Il faut être en joie"
   Risograph two-ink palette, clean sans, hyper-still.
   ============================================================ */

:root {
  --bg: #f7f5ea;
  --paper: #fffdf4;
  --ink-a: #ff48b0;
  --ink-b: #1f3fff;
  --text: #14131a;
  --text-soft: #4a4756;
  --line: rgba(20, 19, 26, 0.14);
  --wash-a: rgba(255, 72, 176, 0.16);
  --wash-b: rgba(31, 63, 255, 0.13);
  --shadow: 0 1px 0 rgba(20, 19, 26, 0.06);
  --btn-bg: #1f3fff;
  --btn-fg: #fffdf4;
  --radius: 16px;
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 72px);
  --section-y: clamp(64px, 9vw, 120px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14131a;
    --paper: #1c1b24;
    --ink-a: #ff6ec2;
    --ink-b: #7d92ff;
    --text: #f4f2e9;
    --text-soft: #b9b5c6;
    --line: rgba(244, 242, 233, 0.18);
    --wash-a: rgba(255, 110, 194, 0.16);
    --wash-b: rgba(125, 146, 255, 0.16);
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
    --btn-bg: #7d92ff;
    --btn-fg: #14131a;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at top left, var(--wash-a) 0, transparent 60%),
    radial-gradient(ellipse at bottom right, var(--wash-b) 0, transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--ink-b);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- shared container ---------- */
.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  flex-wrap: wrap;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink-a);
  color: #14131a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 3px 3px 0 var(--ink-b);
}

.brand-name { font-size: 1rem; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-soft);
  padding: 10px 2px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav a:hover { color: var(--text); }

.nav-cta {
  color: var(--text) !important;
  border: 1.5px solid var(--text);
  border-radius: 999px;
  padding: 8px 18px !important;
  box-shadow: 3px 3px 0 var(--ink-a);
}

/* ---------- hero ---------- */
.hero-section { padding-block: clamp(40px, 6vw, 88px) var(--section-y); }

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-b);
}

h1 {
  margin: 0 0 24px;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-wrap: balance;
}

.lede {
  margin: 0 0 32px;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: 4px 4px 0 var(--ink-a);
}

.btn-primary:hover { background: color-mix(in srgb, var(--btn-bg) 86%, var(--btn-fg)); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}

.btn-ghost:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }

.hero-foot {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.hero-figure { margin: 0; }

.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1.5px solid var(--text);
  box-shadow: 10px 10px 0 var(--ink-a), -10px -10px 0 var(--ink-b);
}

.hero-figure figcaption {
  margin-top: 22px;
  font-size: 0.86rem;
  color: var(--text-soft);
  letter-spacing: 0.01em;
}

/* ---------- signature: hover footnote ---------- */
.note {
  position: relative;
  border-bottom: 2px dotted var(--ink-a);
  cursor: help;
}

.note::after {
  content: attr(data-note);
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  width: max-content;
  max-width: min(280px, 78vw);
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 10;
  box-shadow: 4px 4px 0 var(--ink-a);
}

.note:hover::after,
.note:focus-visible::after,
.note:focus::after {
  opacity: 1;
  visibility: visible;
}

/* ---------- bands ---------- */
.band {
  padding-block: var(--section-y);
  border-top: 1px solid var(--line);
}

.section-title {
  margin: 0 0 clamp(32px, 4vw, 56px);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 800;
  max-width: 22ch;
  text-wrap: balance;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
}

.pillar {
  padding: 28px 26px 30px;
  background: var(--paper);
  border: 1.5px solid var(--text);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--wash-b);
}

.pillar-num {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--ink-a);
  margin-bottom: 14px;
}

.pillar h3 {
  margin: 0 0 12px;
  font-size: 1.16rem;
  letter-spacing: -0.015em;
  font-weight: 800;
}

.pillar p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.98rem;
}

/* ---------- features ---------- */
.feature-section { padding-block: var(--section-y); }

.feature-section.alt { border-top: 1px solid var(--line); }

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
}

.feature:nth-child(even) > :first-child { order: 2; }

.feature-copy h2 {
  margin: 0 0 20px;
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
  font-weight: 800;
  text-wrap: balance;
}

.feature-copy p {
  margin: 0 0 18px;
  color: var(--text-soft);
  max-width: 52ch;
}

.ticks {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.ticks li {
  position: relative;
  padding-left: 28px;
  font-size: 0.98rem;
  color: var(--text);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink-a);
  box-shadow: 2px 2px 0 var(--ink-b);
}

.feature-figure { margin: 0; }

.feature-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1.5px solid var(--text);
  box-shadow: 8px 8px 0 var(--ink-b);
}

.quote-card {
  padding: clamp(28px, 4vw, 44px);
  background: var(--paper);
  border: 1.5px solid var(--text);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--ink-a);
}

.quote {
  margin: 0 0 18px;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.4;
  letter-spacing: -0.015em;
  font-weight: 700;
}

.quote-by {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-soft);
}

/* ---------- steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  counter-reset: step;
}

.steps li {
  padding-top: 26px;
  border-top: 2px solid var(--text);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.steps h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.steps p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.98rem;
}

/* ---------- faq ---------- */
.faq-section {
  padding-block: var(--section-y);
  border-top: 1px solid var(--line);
}

.faq {
  display: grid;
  gap: 0;
  max-width: 820px;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding-block: 6px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 34px 18px 0;
  position: relative;
  font-weight: 700;
  font-size: 1.02rem;
  min-height: 44px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--ink-a);
}

.faq details[open] summary::after { content: "–"; }

.faq details p {
  margin: 0 0 20px;
  color: var(--text-soft);
  max-width: 62ch;
}

/* ---------- cta ---------- */
.cta-section { padding-block: 0 var(--section-y); }

.cta-band {
  border-radius: var(--radius);
  padding: clamp(32px, 6vw, 72px);
  text-align: center;
  background:
    radial-gradient(ellipse at top left, var(--wash-a) 0, transparent 62%),
    radial-gradient(ellipse at bottom right, var(--wash-b) 0, transparent 58%),
    var(--paper);
  border: 1.5px solid var(--text);
  box-shadow: 10px 10px 0 var(--ink-a);
}

.cta-band h2 {
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.cta-band > p {
  margin: 0 auto 34px;
  max-width: 52ch;
  color: var(--text-soft);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

.field { display: grid; gap: 6px; }

.field-wide { grid-column: 1 / -1; }

.field label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.field input,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  min-height: 48px;
  width: 100%;
}

.field textarea { resize: vertical; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink-b);
  box-shadow: 0 0 0 3px var(--wash-b);
}

.contact-form .btn { grid-column: 1 / -1; justify-self: start; }

.form-status {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink-b);
}

.cta-alt {
  margin: 26px 0 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* ---------- placeholders ---------- */
.placeholder {
  background: var(--wash-a);
  border-bottom: 1.5px dotted var(--ink-a);
  padding: 0 3px;
  border-radius: 3px;
  font-style: normal;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 40px 56px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 28px;
}

.footer-name {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.footer-line {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.94rem;
}

.attribution {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.attribution a { color: var(--text-soft); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero,
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) > :first-child { order: 0; }
  .pillars,
  .steps { grid-template-columns: 1fr; }
  .hero-figure img { aspect-ratio: 4 / 3; }
}

@media (max-width: 560px) {
  .nav { gap: 10px; }
  .nav a { font-size: 0.88rem; }
  .contact-form { grid-template-columns: 1fr; }
  .hero-figure img { box-shadow: 6px 6px 0 var(--ink-a), -6px -6px 0 var(--ink-b); }
  .cta-band { box-shadow: 6px 6px 0 var(--ink-a); }
}

/* ---------- hyper-stillness ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
