/* Moulin Solutions: brochure site. Colours come from the app (src/theme.js) so the two feel like one product. */
:root {
  --navy: #1b1e44;
  --navy-2: #1d3248;
  --teal: #0f9c93;
  --teal-ink: #0a7a73; /* teal dark enough for text on paper */
  --mint: #73c7a6;
  --paper: #f2f6f6;
  --white: #ffffff;
  --ink: #15183a;
  --muted: #474d6d;
  --line: #cfd9db;
  --rose: #be123c;
  --rose-soft: #fbe3ea;
  --day: #d6efec;
  --night: #d9dcef;
  --leave: #d7f0e4;

  --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --body: 'Instrument Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 72rem;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a {
  color: var(--teal-ink);
  text-underline-offset: 0.18em;
}

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

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

h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 700;
  max-width: 24ch;
}

h3 {
  font-size: 1.3rem;
  font-weight: 650;
}

p {
  margin: 0;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--white);
  color: var(--navy);
  padding: 0.6rem 1rem;
  border-radius: 6px;
  z-index: 10;
}
.skip:focus {
  top: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  font: 600 1rem/1 var(--body);
  padding: 0.95rem 1.5rem;
  border-radius: 10px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.btn-mint {
  background: var(--mint);
  color: var(--navy);
}
.btn-mint:hover {
  background: #8bd4b8;
}
.btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-ghost:hover {
  border-color: var(--white);
}

/* Top: header and hero share the navy field, like the app's sign-in page */
.top {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white);
}

.bar {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
}
.brand img {
  border-radius: 10px;
}

.bar nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2.5vw, 1.75rem);
}
.navlink {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 500;
}
.navlink:hover {
  color: var(--white);
  text-decoration: underline;
}
.logon {
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.5);
  padding: 0.5rem 1.1rem;
  border-radius: 10px;
}
.logon:hover {
  border-color: var(--mint);
  color: var(--mint);
}

.hero {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding: clamp(2rem, 6vw, 4.5rem) var(--gutter) clamp(3rem, 7vw, 5.5rem);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.04;
}
.lead {
  margin-top: 1.4rem;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.86);
  max-width: 34rem;
}
.actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* The people-flow card in the hero */
.flow-card {
  background: var(--white);
  color: var(--ink);
  border-radius: 16px;
  padding: clamp(1.4rem, 3vw, 2.1rem);
  box-shadow: 0 24px 60px rgba(5, 8, 30, 0.45);
}
.flow-title {
  font-size: 1.3rem;
  max-width: none;
  margin-bottom: 1.4rem;
}
.flow {
  list-style: none;
  counter-reset: flow;
  margin: 0;
  padding: 0;
}
.flow li {
  counter-increment: flow;
  position: relative;
  padding: 0 0 1.5rem 3.4rem;
}
.flow li:last-child {
  padding-bottom: 0;
}
.flow li::before {
  content: counter(flow);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font: 700 1rem/1 var(--display);
}
.flow li::after {
  content: '';
  position: absolute;
  left: 1.05rem;
  top: 2.4rem;
  bottom: 0.2rem;
  width: 2px;
  background: var(--line);
}
.flow li:last-child::after {
  display: none;
}
.flow li.done::before {
  background: var(--teal);
}
.flow h3 {
  font-size: 1.1rem;
  line-height: 1.3;
}
.flow p {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.97rem;
  max-width: 34ch;
}

/* Sections */
section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
/* Modules */
.modules {
  padding-bottom: 0;
}
.modules h2 {
  max-width: 24ch;
  margin-bottom: 1rem;
}
.mod {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 1rem clamp(2rem, 6vw, 5rem);
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
  border-bottom: 1px solid var(--line);
}
.mod:last-child {
  border-bottom: 0;
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}
.mod-what p {
  margin-top: 0.6rem;
  color: var(--muted);
  max-width: 30ch;
}
.mod-why {
  margin: 0;
}
.mod-why dt {
  font-family: var(--display);
  font-weight: 650;
  color: var(--teal-ink);
}
.mod-why dd {
  margin: 0.15rem 0 1.1rem;
  font-size: 1.1rem;
  max-width: 40rem;
}
.mod-why dd:last-child {
  margin-bottom: 0;
}
.mod-why .more {
  font-size: 1.1rem;
  max-width: 40rem;
}

/* Contact */
.contact-wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2rem clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.contact-copy p {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 28rem;
}
.contact-copy .small {
  font-size: 0.97rem;
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.25rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
.wide {
  grid-column: 1 / -1;
}
.field label {
  font-weight: 600;
  font-size: 0.95rem;
}
.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(115, 199, 166, 0.5);
}
.field .bad {
  border-color: var(--rose);
}
.contact .btn-mint {
  background: var(--navy);
  color: var(--white);
}
.contact .btn-mint:hover {
  background: #2a2f63;
}
.note:empty {
  display: none;
}
.note {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.note a {
  color: var(--teal-ink);
}
.note.err {
  color: var(--rose);
  font-weight: 500;
}

/* Anti-spam trap field (people never see it) and the thank-you panel */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
[hidden] {
  display: none !important;
}
.sent {
  padding: 1.5rem 0;
}
.sent p {
  margin-top: 0.5rem;
  color: var(--muted);
}
.btn[disabled] {
  opacity: 0.6;
  cursor: wait;
}

/* Footer */
.foot {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.8);
  padding-block: 2rem;
}
.foot-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.legal {
  display: flex;
  gap: 1.25rem;
}
.legal a {
  color: rgba(255, 255, 255, 0.8);
}
.legal a:hover {
  color: var(--white);
}
.foot .brand {
  color: var(--white);
  font-size: 1.1rem;
}

/* Narrower screens */
@media (max-width: 62rem) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 46rem) {
  .navlink {
    display: none;
  }
  .mod,
  .contact-wrap {
    grid-template-columns: minmax(0, 1fr);
  }
  .form {
    grid-template-columns: minmax(0, 1fr);
  }
}

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