/* =============================================================
   aiproducts.fr — landing page
   System fonts only (zero webfont requests = fast Lighthouse).
   Dark text on light bg, one accent color, big type, lots of air.
   ============================================================= */

:root {
  --bg:        #faf9f6;   /* warm off-white */
  --bg-alt:    #f2f0ea;   /* section band   */
  --ink:       #17150f;   /* near-black text */
  --ink-soft:  #5b574c;   /* muted body text */
  --line:      #e2ddd2;   /* hairlines      */
  --accent:    #e5502d;   /* single accent — confident coral-red */
  --accent-ink:#ffffff;
  --card:      #ffffff;

  --maxw: 1080px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(23,21,15,.04), 0 12px 32px rgba(23,21,15,.06);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
          Arial, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
}
.wrap--narrow { max-width: 640px; }

/* ---------------------------- Buttons ------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  font: inherit;
  font-weight: 600;
  font-size: 1.03rem;
  letter-spacing: -.01em;
  border: none;
  border-radius: 999px;
  padding: 15px 26px;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 1px 2px rgba(229,80,45,.35), 0 10px 22px rgba(229,80,45,.22);
}
.btn--primary:hover { transform: translateY(-1px); background: #d0421f; }
.btn--primary:active { transform: translateY(0); }
.btn--block { width: 100%; }
.btn:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

/* ------------------------------ Nav --------------------------- */
.nav {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 26px 22px 0;
}
.wordmark {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -.03em;
}
.wordmark .dot { color: var(--accent); }

/* ------------------------------ Hero -------------------------- */
.hero { padding-bottom: 18px; }
.hero__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 46px 22px 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.hero__headline {
  font-size: clamp(2.1rem, 7.5vw, 3.7rem);
  line-height: 1.04;
  letter-spacing: -.035em;
  font-weight: 700;
  margin: 0 0 20px;
  text-wrap: balance;
}
.hero__subhead {
  font-size: clamp(1.05rem, 3.6vw, 1.28rem);
  color: var(--ink-soft);
  margin: 0 0 30px;
  max-width: 34ch;
  line-height: 1.5;
}
.br-desktop { display: none; }

/* Hero visual */
.hero__visual { display: flex; flex-direction: column; align-items: center; }
.hero__visual svg { width: 100%; max-width: 360px; height: auto; }
.card rect, .card circle { fill: var(--card); }
.card--a rect:first-of-type,
.card--b rect:first-of-type {
  stroke: var(--line); stroke-width: 1.5;
  filter: drop-shadow(0 8px 18px rgba(23,21,15,.07));
}
.card--a { opacity: .72; }
.shape-muted   { fill: #e7e2d8 !important; }
.shape-accent  { fill: var(--accent) !important; }
.shape-accent-soft { fill: #f6c3b6 !important; }
.card__tag {
  fill: var(--ink-soft);
  font: 600 12px var(--font);
  text-anchor: middle;
  letter-spacing: .02em;
}
.card__tag--win { fill: var(--accent); }
.badge circle { fill: var(--accent); }
.badge path   { stroke: #fff; }
.hero__visual-caption {
  font-size: .92rem;
  color: var(--ink-soft);
  margin-top: 16px;
  font-style: italic;
}

/* ---------------------------- Sections ------------------------ */
.section { padding: 60px 0; }
.section--alt { background: var(--bg-alt); }
.section__eyebrow {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 34px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section__eyebrow--center { justify-content: center; text-align: center; }
.pill {
  font-size: .7rem;
  letter-spacing: .06em;
  background: var(--accent);
  color: #fff;
  padding: 3px 9px;
  border-radius: 999px;
}

/* Problem cards */
.cards--3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.cardblock {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.cardblock__num {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: .05em;
}
.cardblock p { margin: 0; font-size: 1.05rem; }

/* Steps (what you get) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.step__marker {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.3;
}
.step p { margin: 0; font-size: 1.05rem; }

/* Pricing */
.price {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow);
}
.price__desc { margin: 0 0 8px; font-size: 1.1rem; font-weight: 600; }
.price__amount {
  margin: 0 0 6px;
  font-size: clamp(3rem, 12vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
}
.price__per { font-size: 1.3rem; font-weight: 600; color: var(--ink-soft); }
.price__note { margin: 0 0 26px; color: var(--ink-soft); }

/* ------------------------------ Form -------------------------- */
.section--form { background: var(--bg-alt); scroll-margin-top: 20px; }
.form__title {
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  letter-spacing: -.03em;
  margin: 0 0 10px;
  text-align: center;
}
.form__lede {
  text-align: center;
  color: var(--ink-soft);
  margin: 0 0 32px;
}
#signup-form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .92rem; font-weight: 600; }
.req { color: var(--accent); }
.opt { color: var(--ink-soft); font-weight: 400; }
.field input {
  font: inherit;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.field input::placeholder { color: #b7b1a4; }
.field input:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(229,80,45,.16);
}
.form__error {
  color: #b3261e;
  font-size: .92rem;
  margin: 2px 0 0;
  text-align: center;
}

.form__success {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 28px;
  box-shadow: var(--shadow);
}
.form__success-check {
  width: 52px; height: 52px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
}
.form__success-msg {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -.01em;
}

/* ----------------------------- Footer ------------------------- */
.footer {
  padding: 48px 0 60px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.footer__name { font-weight: 700; margin: 0 0 4px; }
.footer__contact { margin: 0 0 14px; }
.footer__contact-link {
  font: inherit;
  color: var(--accent);
  font-weight: 600;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.footer__contact-link:hover { text-decoration: underline; }
.footer__contact-link:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 3px; }
.footer__note { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* --------------------------- Desktop -------------------------- */
@media (min-width: 760px) {
  .br-desktop { display: inline; }
  .hero__inner {
    grid-template-columns: 1.15fr .85fr;
    padding-top: 66px;
    padding-bottom: 56px;
    gap: 48px;
  }
  .hero__copy { max-width: none; }
  .cards--3 { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .section { padding: 84px 0; }
}

@media (min-width: 1000px) {
  .hero__headline { margin-bottom: 24px; }
}
