/* Solutech Digital, l'atelier numerique
   Committed palette: white stage, warm espresso ink, vermilion signature.
   No em/en dashes anywhere in this file (commas, parentheses, colons only). */

:root {
  /* Color (OKLCH). Warmth lives in brand + type, not the surface. */
  --bg:          oklch(1 0 0);
  --ink:         oklch(0.22 0.012 55);
  --ink-soft:    oklch(0.44 0.012 55);
  --line:        oklch(0.90 0.006 55);
  --panel:       oklch(0.975 0.004 55);
  --brand:       oklch(0.635 0.182 38);
  --brand-press: oklch(0.55 0.17 36);
  --brand-tint:  oklch(0.96 0.028 42);
  --on-ink:      oklch(0.965 0.006 55);
  --on-ink-soft: oklch(0.80 0.012 55);
  --ink-deep:    oklch(0.20 0.014 50);

  /* Motion (Emil Kowalski) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io:  cubic-bezier(0.77, 0, 0.175, 1);

  /* Type */
  --font-display: "Clash Display", system-ui, sans-serif;
  --font-body: "General Sans", system-ui, -apple-system, sans-serif;

  /* Rhythm */
  --shell: 1120px;
  --pad: clamp(1.25rem, 5vw, 2.5rem);
  --section-y: clamp(4.5rem, 10vw, 8rem);

  /* Layered z-scale */
  --z-header: 100;

  --radius: 16px;
  --radius-sm: 11px;
  --shadow-card: 0 1px 2px oklch(0.22 0.012 55 / 0.06), 0 18px 50px -28px oklch(0.22 0.012 55 / 0.45);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
section[id] { scroll-margin-top: 80px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.97rem + 0.2vw, 1.075rem);
  line-height: 1.62;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; }

img, svg, canvas { display: block; max-width: 100%; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* Focus + skip link */
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: 999;
  background: var(--ink);
  color: var(--on-ink);
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-weight: 500;
  transform: translateY(-160%);
  transition: transform 200ms var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--brand-press);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  padding: 0.95rem 1.4rem;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 150ms var(--ease-out), background-color 180ms var(--ease-out), border-color 180ms var(--ease-out), color 180ms var(--ease-out);
}
.btn-sm { padding: 0.62rem 1.05rem; font-size: 0.94rem; }
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--b); color: oklch(0.99 0.01 55); box-shadow: 0 10px 26px -14px var(--brand-press); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-block { width: 100%; padding-block: 1.05rem; }

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--brand); transform: translateY(-2px); }
  .btn-primary:active { transform: scale(0.97); }
  .btn-ghost:hover { border-color: var(--ink); background: var(--panel); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: oklch(1 0 0 / 0.78);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 250ms var(--ease-out), background-color 250ms var(--ease-out);
}
.site-header[data-scrolled] {
  border-bottom-color: var(--line);
  background: oklch(1 0 0 / 0.92);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-mark { color: var(--ink); display: inline-flex; }
.brand-dim { color: var(--ink-soft); }
.site-nav {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
  font-size: 0.97rem;
  font-weight: 500;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  padding: 0.35rem 0;
  position: relative;
  transition: color 160ms var(--ease-out);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease-out);
}
@media (hover: hover) {
  .site-nav a:hover { color: var(--ink); }
  .site-nav a:hover::after { transform: scaleX(1); }
}
.header-cta { margin-left: 0; }

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: var(--section-y);
  overflow: clip;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-tag {
  display: inline-block;
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  color: var(--brand-press);
  background: var(--brand-tint);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}
.hero-title {
  font-size: clamp(2.55rem, 1.6rem + 4.2vw, 4.4rem);
  font-weight: 600;
  margin-bottom: 1.4rem;
}
.ink-brand { color: var(--brand-press); font-style: italic; }
.hero-sub {
  font-size: clamp(1.1rem, 1.02rem + 0.45vw, 1.32rem);
  color: var(--ink-soft);
  max-width: 38ch;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}
.hero-micro {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 44ch;
}
.micro-ico { width: 20px; height: 20px; color: var(--brand-press); flex: none; }

/* Hero build card (signature) */
.hero-stage { perspective: 1400px; }
.build-card {
  margin: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  will-change: transform;
}
.build-chrome {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.7rem 0.95rem;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.build-chrome .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.build-chrome .dot:nth-child(1) { background: oklch(0.78 0.13 30); }
.build-chrome .dot:nth-child(2) { background: oklch(0.85 0.12 85); }
.build-chrome .dot:nth-child(3) { background: oklch(0.82 0.12 145); }
.build-url {
  margin-left: 0.6rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.18rem 0.7rem;
}
.build-canvas { width: 100%; height: auto; aspect-ratio: 720 / 560; background: var(--bg); }
.build-caption {
  padding: 0.7rem 0.95rem;
  font-size: 0.84rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  text-align: center;
}

/* ---------- Bands ---------- */
.band { padding-block: var(--section-y); }
.band-soft { background: var(--panel); }
.band-ink { background: var(--ink-deep); color: var(--on-ink); }
.band-ink .section-title { color: var(--on-ink); }

.section-title {
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem);
  max-width: 20ch;
  margin-bottom: 1.1rem;
}
.section-lede {
  font-size: clamp(1.08rem, 1rem + 0.4vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 60ch;
}
.on-ink { color: var(--on-ink); }
.on-ink-soft { color: var(--on-ink-soft); }

/* Problem list */
.pain-list {
  list-style: none;
  margin: clamp(2.2rem, 5vw, 3.4rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(1.4rem, 3vw, 2.4rem);
}
.pain-list li {
  border-top: 2px solid var(--ink);
  padding-top: 1.1rem;
}
.pain-k {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.22rem;
  margin-bottom: 0.5rem;
}
.pain-v { display: block; color: var(--ink-soft); font-size: 1rem; }

/* Steps */
.steps {
  list-style: none;
  counter-reset: none;
  margin: clamp(2.4rem, 5vw, 3.6rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.6rem);
}
.step { position: relative; padding-top: 0.5rem; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--brand);
  border: 1.5px solid oklch(0.965 0.006 55 / 0.28);
  border-radius: 50%;
  margin-bottom: 1.2rem;
}
.step-title { font-size: 1.4rem; color: var(--on-ink); margin-bottom: 0.6rem; }
.step-text { color: var(--on-ink-soft); }

/* Offer */
.offer-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.offer-head { position: sticky; top: 96px; }
.offer-model {
  margin-top: 1.6rem;
  padding: 1.1rem 1.25rem;
  background: var(--brand-tint);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 0.98rem;
}
.offer-list { list-style: none; margin: 0; padding: 0; }
.offer-list li {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 0.4rem;
}
.offer-list li:first-child { padding-top: 0; }
.offer-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.offer-list h3 {
  font-size: 1.3rem;
  position: relative;
  padding-left: 1.6rem;
}
.offer-list h3::before {
  content: "";
  position: absolute;
  left: 0; top: 0.34em;
  width: 0.7rem; height: 0.7rem;
  border-radius: 3px;
  background: var(--brand);
}
.offer-list p { color: var(--ink-soft); padding-left: 1.6rem; }

/* Person */
.person {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.person-mark { color: var(--brand-press); }
.person-body { max-width: 60ch; display: grid; gap: 1.1rem; }
.person-body p { color: var(--ink-soft); font-size: 1.1rem; }

/* Future */
.future-list {
  list-style: none;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  counter-reset: f;
  max-width: 720px;
}
.future-list li {
  padding: 1.3rem 0 1.3rem 3.2rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  color: var(--ink-soft);
}
.future-list li::before {
  counter-increment: f;
  content: "0" counter(f);
  position: absolute;
  left: 0; top: 1.3rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--brand);
  font-size: 1.05rem;
}
.future-list strong { color: var(--ink); font-weight: 600; }
.future-foot { margin-top: 1.8rem; font-size: 1.15rem; font-weight: 500; color: var(--ink); }

/* FAQ */
.faq-wrap { max-width: 800px; }
.faq { margin-top: clamp(1.8rem, 4vw, 2.6rem); }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 2.5rem 1.25rem 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  position: relative;
  transition: color 160ms var(--ease-out);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.4rem; top: 50%;
  width: 12px; height: 12px;
  border-right: 2px solid var(--brand-press);
  border-bottom: 2px solid var(--brand-press);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 240ms var(--ease-out);
}
.faq details[open] summary::after { transform: translateY(-35%) rotate(-135deg); }
@media (hover: hover) { .faq summary:hover { color: var(--brand-press); } }
.faq-a { padding: 0 0 1.3rem; color: var(--ink-soft); max-width: 64ch; }
.faq-a p { font-size: 1.02rem; }

/* CTA + form */
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.cta-copy { max-width: 30ch; }
.cta-direct { margin-top: 1.6rem; font-size: 1rem; }
.cta-direct a { color: var(--brand); font-weight: 600; text-decoration: none; border-bottom: 1px solid oklch(0.635 0.182 38 / 0.4); }
@media (hover: hover) { .cta-direct a:hover { border-bottom-color: var(--brand); } }

.demo-form {
  background: var(--bg);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  box-shadow: var(--shadow-card);
}
.field { display: grid; gap: 0.4rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.field .opt { color: var(--ink-soft); font-weight: 400; }
.field input, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  width: 100%;
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px oklch(0.635 0.182 38 / 0.16);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: oklch(0.58 0.2 25);
  box-shadow: 0 0 0 3px oklch(0.58 0.2 25 / 0.14);
}
.field textarea { resize: vertical; min-height: 84px; }
.demo-form .btn-block { grid-column: 1 / -1; margin-top: 0.3rem; }
.form-note {
  grid-column: 1 / -1;
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-align: center;
  margin: 0;
}
.form-note[data-state="ok"] { color: oklch(0.5 0.13 150); font-weight: 600; }
.form-note[data-state="err"] { color: oklch(0.55 0.2 25); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-deep);
  color: var(--on-ink-soft);
  padding-top: clamp(3rem, 6vw, 4.5rem);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 2.5rem;
}
.footer-brand .brand { color: var(--on-ink); }
.footer-brand .brand-mark { color: var(--on-ink); }
.footer-tag { margin-top: 0.9rem; max-width: 34ch; color: var(--on-ink-soft); }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.footer-col { display: grid; gap: 0.55rem; align-content: start; }
.footer-col h2 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--on-ink-soft);
  font-weight: 600;
  margin: 0 0 0.3rem;
}
.footer-col a { color: var(--on-ink); text-decoration: none; width: max-content; transition: color 160ms var(--ease-out); }
@media (hover: hover) { .footer-col a:hover { color: var(--brand); } }
.footer-meta { font-size: 0.92rem; }
.social { display: grid; gap: 0.5rem; }
.footer-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 1.4rem;
  border-top: 1px solid oklch(0.965 0.006 55 / 0.12);
  font-size: 0.88rem;
}
.footer-top { text-decoration: none; color: var(--on-ink-soft); }
@media (hover: hover) { .footer-top:hover { color: var(--brand); } }

/* ---------- Reveal motion ----------
   Gated behind .js so content is fully visible without JavaScript
   (a reveal must enhance an already-visible default, never hide it). */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out);
  will-change: opacity, transform;
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { max-width: 520px; margin-inline: auto; width: 100%; }
  .hero-sub, .hero-micro { max-width: none; }
  .offer-grid { grid-template-columns: 1fr; }
  .offer-head { position: static; }
  .cta-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 1.3rem; }
  .step { display: grid; grid-template-columns: auto 1fr; column-gap: 1.1rem; align-items: start; }
  .step-num { margin-bottom: 0; grid-row: span 2; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .site-nav { display: none; }
  .header-cta { margin-left: auto; }
  .person { grid-template-columns: 1fr; }
  .demo-form { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
