/* ============================================================
   LexDesk landing — externe stylesheet
   Self-hosted fonts via /fonts/ (geen Google Fonts).
   ============================================================ */

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/fonts/inter-tight-latin-300.woff2") format("woff2");
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-tight-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/inter-tight-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter-tight-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/inter-tight-latin-700.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin-500.woff2") format("woff2");
}

:root {
  --navy:        #041F3A;
  --navy-2:      #0a2a4d;
  --brown:       #573B2F;
  --beige:       #E6D9C6;
  --beige-soft:  #F3ECE1;
  --white:       #FFFFFF;
  --ink:         #0A1420;
  --muted:       #5E6B7A;
  --line:        rgba(4, 31, 58, 0.08);
  --line-strong: rgba(4, 31, 58, 0.14);
  --bg:          #F7F3EC;
  --green:       #2ea76b;
  --amber:       #D89B3A;

  --pad-x: clamp(20px, 4vw, 64px);
  --pad-y: clamp(28px, 4vh, 48px);
  --max:   1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background:
    radial-gradient(ellipse 1400px 700px at 20% 0%, rgba(4, 31, 58, 0.05), transparent 60%),
    radial-gradient(ellipse 1000px 500px at 80% 100%, rgba(87, 59, 47, 0.05), transparent 60%),
    var(--bg);
  color: var(--ink);
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  min-height: 100dvh;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

/* ---------- Page frame ---------- */
.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--pad-y) var(--pad-x) calc(var(--pad-y) * 1.4);
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 6vh, 80px);
  min-height: 100vh;
  min-height: 100dvh;
}

/* ---------- Header ---------- */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.012em;
}
.wordmark img {
  height: 26px; width: 26px;
}
.wordmark .tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--brown);
  background: var(--beige-soft);
  padding: 3px 7px;
  border-radius: 5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-left: 4px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a36e1a;
  background: rgba(216, 155, 58, 0.10);
  border: 1px solid rgba(216, 155, 58, 0.28);
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.status-pill i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(216, 155, 58, 0.15);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(216, 155, 58, 0.15); }
  50%      { box-shadow: 0 0 0 7px rgba(216, 155, 58, 0.04); }
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.kicker {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brown);
  font-weight: 500;
  margin: 0 0 18px;
}
h1.headline {
  margin: 0 0 18px;
  font-weight: 300;
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.034em;
  color: var(--navy);
}
h1.headline em {
  font-style: normal;
  font-weight: 500;
  color: var(--brown);
}
.lede {
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.6;
  max-width: 56ch;
}
.lede strong { color: var(--navy); font-weight: 500; }

/* Mini app preview tile */
.preview {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 360px;
  margin: 0 auto;
  width: 100%;
}
.preview-shadow {
  position: absolute; inset: 0;
  border-radius: 36px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 70%, rgba(4, 31, 58, 0.18), transparent 70%);
  filter: blur(20px);
  transform: translateY(20px);
  z-index: 0;
}
.tile {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 22%;
  background: var(--white);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 30px 60px -20px rgba(4, 31, 58, 0.22),
    0 60px 120px -30px rgba(87, 59, 47, 0.15),
    0 0 0 1px var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.tile svg {
  width: 50%;
  height: auto;
}
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(243, 236, 225, 0.6), transparent 60%);
  pointer-events: none;
}

/* ---------- Wachtlijst signup ---------- */
.signup-card {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 28px 30px;
  box-shadow: 0 4px 14px rgba(4, 31, 58, 0.04);
}
.signup-card h2 {
  margin: 0 0 6px;
  font-weight: 500;
  font-size: 18px;
  color: var(--navy);
  letter-spacing: -0.012em;
}
.signup-card p {
  margin: 0 0 18px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}
.signup-form {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.signup-form input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  background: var(--beige-soft);
  border-radius: 9px;
  color: var(--navy);
  font-family: inherit;
  font-size: 14px;
  letter-spacing: -0.005em;
  transition: border-color .15s ease, background .15s ease;
  outline: none;
}
.signup-form input[type="email"]::placeholder { color: var(--muted); opacity: 0.7; }
.signup-form input[type="email"]:focus {
  border-color: var(--navy);
  background: #fff;
}
.signup-form button {
  height: 44px;
  padding: 0 20px;
  border: 0;
  background: var(--navy);
  color: var(--beige);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.005em;
  border-radius: 9px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .15s ease, transform .1s ease;
  white-space: nowrap;
}
.signup-form button:hover { background: var(--navy-2); }
.signup-form button:hover .arrow { transform: translateX(3px); }
.signup-form button:active { transform: translateY(1px); }
.signup-form button:disabled { opacity: 0.6; cursor: not-allowed; }
.signup-form .arrow {
  display: inline-block;
  transition: transform .2s ease;
}
.signup-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--muted);
  min-height: 1.4em;
  transition: color .25s ease;
}
.signup-note.success { color: #1f7b4d; font-weight: 500; }
.signup-note.error   { color: #8f2d24; font-weight: 500; }

/* ---------- Features grid (Wat we bouwen) ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.section-head h3 {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown);
  font-weight: 500;
}
.section-head small {
  font-size: 12px;
  color: var(--muted);
}
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
  transition: border-color .15s ease, transform .15s ease;
}
.feature:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}
.feature .ic {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--beige-soft);
  color: var(--brown);
  display: grid; place-items: center;
  margin-bottom: 14px;
}
.feature .ic svg { width: 16px; height: 16px; }
.feature h4 {
  margin: 0 0 6px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.008em;
}
.feature p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
}

/* ---------- Roadmap timeline ---------- */
.roadmap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 30px;
}
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
}
.roadmap-grid::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--navy), var(--amber) 60%, var(--line) 90%);
  border-radius: 2px;
  z-index: 0;
}
.step {
  position: relative;
  z-index: 1;
  text-align: center;
}
.step .dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line);
  margin: 0 auto 14px;
  display: grid; place-items: center;
}
.step .dot::after {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
}
.step.done .dot { border-color: var(--navy); background: var(--navy); }
.step.done .dot::after { background: var(--beige); }
.step.now .dot { border-color: var(--amber); background: rgba(216, 155, 58, 0.12); }
.step.now .dot::after { background: var(--amber); }
.step .when {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brown);
  font-weight: 500;
  margin-bottom: 4px;
}
.step .when.now-lbl { color: #a36e1a; }
.step h4 {
  margin: 0 0 4px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.005em;
}
.step p {
  margin: 0 auto;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 28ch;
}

/* ---------- Footer ---------- */
footer {
  margin-top: auto;
  padding-top: 36px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 12.5px;
  color: var(--muted);
  flex-wrap: wrap;
}
footer .links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
footer a {
  color: var(--muted);
  transition: color .15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
footer a:hover { color: var(--navy); }
footer .status-link i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(46, 167, 107, 0.15);
}
footer .copy {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ---------- Entrance animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp .7s cubic-bezier(.2,.7,.2,1) forwards;
}
.d1 { animation-delay: .05s; }
.d2 { animation-delay: .12s; }
.d3 { animation-delay: .22s; }
.d4 { animation-delay: .32s; }
.d5 { animation-delay: .42s; }
.d6 { animation-delay: .52s; }
.d7 { animation-delay: .62s; }

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .preview { max-width: 240px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .roadmap-grid { grid-template-columns: 1fr; }
  .roadmap-grid::before { display: none; }
  .step { text-align: left; display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; }
  .step .dot { margin: 4px 0 0; }
  .step p { max-width: none; }
}

@media (max-width: 560px) {
  :root { --pad-x: 18px; --pad-y: 22px; }
  .signup-card { padding: 22px 20px; }
  .signup-form { flex-direction: column; }
  .signup-form button { width: 100%; justify-content: center; }
  footer { flex-direction: column; align-items: flex-start; gap: 14px; }
  .features { grid-template-columns: 1fr; }
  h1.headline { font-size: clamp(30px, 9vw, 38px); }
  .wordmark .tag { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .fade-up { opacity: 1; transform: none; }
}

::selection { background: var(--beige); color: var(--navy); }

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--navy);
  -webkit-box-shadow: 0 0 0 1000px var(--beige-soft) inset;
  transition: background-color 5000s ease-in-out 0s;
}
