:root {
  --pine: #28595d;
  --teal: #006e78;
  --mint: #84c5be;
  --aqua: #edf6f9;
  --coral: #e29678;
  --peach: #ffddd2;
  --cream: #faf5f0;
  --white: #ffffff;
  --bark: #4b1b08;
  --ink: #193d40;
  --muted: #567478;
  --border: rgba(40, 89, 93, 0.16);
  --border-strong: rgba(40, 89, 93, 0.3);
  --shadow: 0 20px 45px rgba(40, 89, 93, 0.1);
  --shadow-card: 0 6px 22px rgba(40, 89, 93, 0.07);
  --sans: "Space Grotesk", Arial, sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--pine);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.container {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  width: min(186px, 40vw);
  height: auto;
}

.event-pill,
.eyebrow,
.updated,
.preview-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--teal);
  padding: 9px 15px;
}

.hero {
  padding: 44px 0 62px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(500px, 1fr) 430px;
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: 24px 58px;
}

.hero-hook {
  grid-column: 1;
  grid-row: 1;
}

.story {
  grid-column: 1;
  grid-row: 2;
}

.form-card {
  grid-column: 2;
  grid-row: 1 / -1;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--peach);
  color: var(--bark);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 650px;
  margin-bottom: 18px;
  color: var(--pine);
  font-size: clamp(41px, 4.7vw, 55px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.06;
}

h1 .hero-lead {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

h1 .hero-lead .decisions {
  color: var(--mint);
}

h1 .hl {
  color: var(--coral);
}

.hero-intro {
  max-width: 610px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.5;
}

.solution-line {
  max-width: 610px;
  margin: 0;
  color: var(--pine);
  font-size: 20px;
  line-height: 1.48;
}

.solution-line strong {
  color: var(--teal);
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 11px;
  padding: 0 26px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.button-primary {
  background: var(--teal);
  color: var(--white);
}

.button-primary:hover {
  background: var(--pine);
  box-shadow: 0 10px 20px rgba(40, 89, 93, 0.15);
}

.button-primary:active {
  transform: translateY(1px);
}

.memory-preview {
  position: relative;
  max-width: 590px;
  margin-top: 31px;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 23px 25px 14px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.memory-preview::before {
  position: absolute;
  top: -1px;
  left: 36px;
  width: 116px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--teal), var(--mint), var(--coral));
  content: "";
}

.preview-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.preview-label {
  margin-bottom: 7px;
  color: var(--muted);
}

.preview-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 23px;
  letter-spacing: -0.03em;
}

.updated {
  height: fit-content;
  border-radius: 999px;
  background: var(--aqua);
  color: var(--teal);
  padding: 8px 10px;
  white-space: nowrap;
}

.timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline-entry {
  display: grid;
  grid-template-columns: 52px auto 1fr;
  gap: 10px;
  align-items: baseline;
  border-top: 1px solid var(--border);
  padding: 10px 0;
}

.tl-date {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.tl-status {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 3px 7px;
  border-radius: 4px;
}

.tl-exploration {
  background: var(--aqua);
  color: var(--teal);
}

.tl-blocage {
  background: #fff0ec;
  color: #ab3d22;
}

.tl-ecartee {
  background: #f2f2f2;
  color: var(--muted);
}

.tl-decision {
  background: #e6f5e6;
  color: #2d6a30;
}

.tl-memoire {
  background: var(--peach);
  color: var(--bark);
}

.tl-text {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.tl-text-struck {
  text-decoration: line-through;
  color: var(--muted);
}

.timeline-footer {
  border-top: 1px solid var(--border);
  padding: 12px 0 4px;
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.tl-footer-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  white-space: nowrap;
}

.tl-footer-value {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.control-note {
  max-width: 590px;
  margin: 15px 0 0;
  border-radius: 11px;
  background: var(--aqua);
  padding: 15px 17px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.control-note strong {
  display: block;
  margin-bottom: 2px;
  color: var(--teal);
}

.signup-copy h2 {
  margin: 0 0 11px;
  color: var(--pine);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.14;
}

.signup-copy > p:not(.eyebrow) {
  margin-bottom: 23px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.form-card {
  position: sticky;
  top: 20px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--white);
  padding: 26px;
  box-shadow: var(--shadow);
}

form {
  display: grid;
  gap: 10px;
}

form > label:not(.radio):not(.consent),
fieldset legend {
  color: var(--pine);
  font-size: 14px;
  font-weight: 500;
}

input[type="email"],
input[type="text"],
select {
  width: 100%;
  height: 49px;
  margin-bottom: 9px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: var(--cream);
  padding: 0 14px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
}

input::placeholder {
  color: rgba(86, 116, 120, 0.65);
}

select {
  cursor: pointer;
}

input:focus-visible,
select:focus-visible,
.button:focus-visible {
  outline: 3px solid rgba(132, 197, 190, 0.5);
  outline-offset: 1px;
  border-color: var(--teal);
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

fieldset {
  display: grid;
  gap: 11px;
  margin: 5px 0 13px;
  border: 0;
  padding: 0;
}

fieldset legend {
  margin-bottom: 9px;
}

.radio,
.consent {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.42;
}

.radio input,
.consent input {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--teal);
}

.consent {
  margin-bottom: 9px;
}

.submit-button {
  width: 100%;
  margin-top: 7px;
  cursor: pointer;
}

.submit-button[disabled] {
  cursor: wait;
  opacity: 0.7;
}

.privacy-copy {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.privacy-copy a {
  color: var(--teal);
}

.form-status {
  min-height: 0;
  margin: 2px 0 0;
  color: #ab3d22;
  font-size: 13px;
  line-height: 1.4;
}

.success-panel {
  padding: 30px 6px;
  text-align: center;
}

.success-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--aqua);
  color: var(--teal);
  font-size: 25px;
}

.success-panel h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 24px;
  letter-spacing: -0.03em;
}

.success-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 27px 0 32px;
}

.footer-logo {
  width: 112px;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 20px;
  }

  .hero-hook {
    grid-column: 1;
    grid-row: auto;
    order: 0;
  }

  .form-card {
    grid-column: 1;
    grid-row: auto;
    position: static;
    order: 1;
  }

  .story {
    grid-column: 1;
    grid-row: auto;
    order: 2;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 34px, 1160px);
  }

  .site-header {
    padding: 17px 0;
  }

  .event-pill {
    padding: 7px 11px;
    font-size: 10px;
  }

  .hero {
    padding: 20px 0 39px;
  }

  h1 {
    margin-bottom: 16px;
    font-size: clamp(32px, 10vw, 40px);
    line-height: 1.06;
  }

  .hero-intro {
    margin-bottom: 15px;
    font-size: 17px;
  }

  .solution-line {
    font-size: 18px;
  }

  .memory-preview {
    margin-top: 21px;
    padding: 20px 19px 9px;
  }

  .preview-head {
    gap: 8px;
  }

  .updated {
    padding: 7px 8px;
    font-size: 10px;
  }

  .timeline-entry {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .tl-date {
    font-size: 10px;
  }

  .tl-status {
    justify-self: start;
  }

  .control-note {
    margin-top: 11px;
    padding: 12px 14px;
  }

  .signup-copy h2 {
    font-size: 28px;
  }

  .form-card {
    padding: 23px 19px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
