/* GordAI landing page — see docs/spec.md Section 5 for every value here. */

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/instrument-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/instrument-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #FCFCFA;
  --ink: #1C2321;
  --red: #D52B1E;
  --red-hover: #C4281C;
  --winter: #E3EBF0;
  --mist: #4F5855; /* spec lists #5C6663, which is 5.78:1 on Paper; this value is 7.15:1 */
  --rule: rgba(28, 35, 33, 0.2);
  --font: "Instrument Sans", "PP Neue Montreal", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --measure: 680px;
  --gutter: 24px;
  --section-gap: 64px;
}

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

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 19px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-weight: 400;
}

/* Language pairing: both languages are in the markup; the inactive one is hidden. */
html[lang="fr"] [data-lang="en"],
html:not([lang="fr"]) [data-lang="fr"] { display: none; }

h1, h2, h3, p, ul, ol, dl { margin: 0; }

h1, h2, h3 { font-weight: 500; letter-spacing: -0.01em; }
h1 { font-size: 40px; line-height: 1.15; }
h2 { font-size: 28px; line-height: 1.2; }
h3 { font-size: 22px; line-height: 1.3; }
p, li { max-width: var(--measure); }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header: wordmark left, language toggle right. No nav, not sticky. */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
}
.wordmark {
  font-size: 22px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: -0.01em;
}

/* Language toggle: two buttons with aria-pressed. Active state is the one
   permitted use of flag red outside the CTA buttons. */
.lang-toggle { display: inline-flex; align-items: center; gap: 4px; }
.lang-toggle button {
  appearance: none;
  background: none;
  border: 0;
  border-radius: 4px;
  padding: 10px 6px;
  min-width: 44px;
  min-height: 44px;
  font: inherit;
  font-size: 18px;
  line-height: 1;
  color: var(--mist);
  cursor: pointer;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.lang-toggle button[aria-pressed="true"] {
  color: var(--ink);
  font-weight: 500;
  border-bottom-color: var(--red);
}
.lang-toggle .sep { color: var(--mist); font-size: 18px; }

/* Hero */
.hero {
  display: grid;
  gap: 40px;
  padding-top: 16px;
}
.hero-copy > * + * { margin-top: 20px; }
.hero-copy h1 { max-width: 14ch; }
.hero-copy .lede { font-size: 19px; }
.hero-copy .cta { margin-top: 24px; }
.reassurance { font-size: 16px; color: var(--mist); margin-top: 12px; }

/* Buttons */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 0 32px;
  border: 0;
  border-radius: 6px;
  background: var(--red);
  color: var(--paper);
  font: inherit;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--red-hover); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.btn-secondary {
  background: none;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn-secondary:hover { background: var(--winter); }

/* Sample-conversation panel: the one bold element. */
.sample {
  background: var(--winter);
  border-radius: 12px;
  padding: 24px;
  transition: opacity 150ms ease;
}
.sample.is-fading { opacity: 0; }
.sample-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.sample-label { font-size: 16px; font-weight: 500; }
.sample .lang-toggle button { padding: 6px 4px; min-height: 36px; min-width: 36px; font-size: 16px; }
.sample .lang-toggle .sep { font-size: 16px; }

.msg { display: flex; flex-direction: column; max-width: 92%; }
.msg + .msg { margin-top: 16px; }
.msg-you { align-self: flex-end; align-items: flex-end; }
.msg-gord { align-self: flex-start; align-items: flex-start; }
.msg-who { font-size: 16px; font-weight: 500; margin-bottom: 6px; }
.msg-body {
  background: var(--paper);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 18px;
  line-height: 1.5;
}
.msg-you .msg-body { border-top-right-radius: 2px; }
.msg-gord .msg-body { border-top-left-radius: 2px; }

/* Sections */
main > section + section { margin-top: var(--section-gap); }
main > .hero { margin-top: 16px; }
.section h2 { margin-bottom: 24px; max-width: var(--measure); }
.prose > * + * { margin-top: 20px; }
.signature { font-size: 16px; color: var(--mist); margin-top: 28px; }

/* Three pillars: plain list, not cards. */
.pillars { list-style: none; padding: 0; }
.pillars li + li { margin-top: 32px; }
.pillars h3 { margin-bottom: 8px; }

/* Steps */
.steps { padding-left: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding-left: 44px; counter-increment: step; }
.steps li + li { margin-top: 20px; }
.steps li::before {
  content: counter(step) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 500;
  min-width: 32px;
}

/* FAQ: native details/summary, no accordion JS. */
.faq details { padding: 4px 0; }
.faq details + details { margin-top: 8px; }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  max-width: var(--measure);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-size: 26px;
  line-height: 1;
  width: 28px;
  text-align: center;
  color: var(--mist);
}
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
.faq summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.faq details > p { padding: 0 44px 16px 0; }

/* The one rule on the page. */
.rule {
  border: 0;
  height: 1px;
  background: var(--rule);
  margin: var(--section-gap) 0 0;
  max-width: none;
}

/* Final CTA */
.final-cta .cta { margin-top: 28px; }

/* Footer */
.site-footer {
  margin-top: var(--section-gap);
  padding: 40px 0 48px;
  font-size: 16px;
  color: var(--mist);
}
.site-footer > * + * { margin-top: 12px; }
.site-footer a { color: inherit; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; }
.disclosure { max-width: var(--measure); }

/* Consent notice for the Meta pixel: one line, dismissible. */
.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--ink);
  color: var(--paper);
  font-size: 16px;
  line-height: 1.4;
  z-index: 10;
}
.consent .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 24px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.consent p { max-width: none; }
.consent-actions { display: flex; gap: 8px; }
.consent button {
  appearance: none;
  background: none;
  border: 2px solid var(--paper);
  border-radius: 6px;
  color: var(--paper);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  padding: 6px 14px;
  min-height: 40px;
  cursor: pointer;
}
.consent button:hover { background: var(--paper); color: var(--ink); }
.consent button:focus-visible { outline: 3px solid var(--paper); outline-offset: 2px; }
.consent[hidden] { display: none; }

/* Thanks and legal pages */
.page { margin-top: 16px; padding-top: 24px; }
.page > * + * { margin-top: 20px; }
.page h1 { max-width: 16ch; }
.page .share { margin-top: 40px; }
.page .share > * + * { margin-top: 16px; }
.copy-status { font-size: 16px; color: var(--mist); min-height: 1.5em; }
.page .btn-secondary { width: auto; display: inline-flex; }

/* Desktop */
@media (min-width: 900px) {
  :root { --gutter: 48px; --section-gap: 96px; }
  html { font-size: 20px; }
  h1 { font-size: 64px; }
  h2 { font-size: 36px; }
  h3 { font-size: 24px; }
  .site-header { padding: 28px 0; }
  .hero {
    grid-template-columns: 55fr 45fr;
    gap: 64px;
    align-items: start;
    padding-top: 32px;
  }
  .hero-copy .lede { font-size: 20px; }
  .btn { display: inline-flex; width: auto; }
  .btn-block { display: flex; width: 100%; }
  .msg-body { font-size: 19px; }
  .site-footer { padding: 56px 0 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .sample { transition: none; }
  .sample.is-fading { opacity: 1; }
}
