/* Freedom Lab Ventures — landing page
   Palette: ink navy / signal yellow / paper white / cobalt */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --ink: #0e1b3d;
  --ink-2: #16264f;
  --paper: #fbfaf5;
  --white: #ffffff;
  --yellow: #ffd43b;
  --yellow-deep: #edb900;
  --cobalt: #2b4fd8;
  --line: rgba(14, 27, 61, 0.14);
  --line-light: rgba(255, 255, 255, 0.14);
  --muted: #4b5878;
  --muted-light: #aab4d0;
  --radius: 14px;
  --display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --body: "Instrument Sans", "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  padding: 22px 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.01em;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--yellow);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
}
.header-spacer { flex: 1; }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 12px;
}
.lang-switch a, .lang-switch span {
  padding: 7px 13px;
  text-decoration: none;
  color: var(--muted-light);
}
.lang-switch .active {
  background: var(--yellow);
  color: var(--ink);
}
.lang-switch a:hover { color: var(--white); }

.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border-radius: 10px;
  padding: 13px 24px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-yellow {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 2px 0 var(--yellow-deep);
}
.btn-yellow:hover { transform: translateY(-2px); box-shadow: 0 4px 0 var(--yellow-deep); }
.btn-yellow:active { transform: translateY(0); box-shadow: 0 1px 0 var(--yellow-deep); }
.btn-ghost {
  color: var(--white);
  border: 1px solid var(--line-light);
}
.btn-ghost:hover { border-color: var(--white); }
.btn-small { padding: 9px 18px; font-size: 14px; }

:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 2px;
}
.hero :where(a, button):focus-visible,
.apply :where(a, button, input, textarea):focus-visible {
  outline-color: var(--yellow);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  padding: 130px 0 90px;
  overflow: hidden;
}
/* blueprint grid: the lab bench this page is named after */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(120% 90% at 30% 20%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(120% 90% at 30% 20%, #000 40%, transparent 100%);
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 18px;
}
.eyebrow::before { content: "// "; opacity: 0.6; }

.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(38px, 5.4vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin-bottom: 22px;
}

/* signature: yellow marker sweep behind the key phrase */
.mark {
  position: relative;
  z-index: 0;
  white-space: nowrap;
  color: var(--ink);
}
.mark::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 8% -2% 4% -2%;
  background: var(--yellow);
  border-radius: 4px;
  transform: skew(-4deg) rotate(-0.6deg);
  transform-origin: left center;
  animation: sweep 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s backwards;
}
@keyframes sweep {
  from { transform: skew(-4deg) rotate(-0.6deg) scaleX(0); }
  to { transform: skew(-4deg) rotate(-0.6deg) scaleX(1); }
}

.hero .lede {
  font-size: 19px;
  color: var(--muted-light);
  max-width: 54ch;
  margin-bottom: 34px;
}
.hero .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.hero .cta-note {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-light);
  margin-top: 14px;
}

/* photo placeholder card */
.photo-slot {
  aspect-ratio: 4 / 5;
  border: 2px dashed var(--line-light);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
}
.photo-slot .tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-light);
}
.photo-slot--light { border-color: var(--line); background: var(--white); }
.photo-slot--light .tag { color: var(--muted); }
.photo-slot img, .photo-slot--filled { border: none; }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }

/* ---------- sections ---------- */

section { padding: 84px 0; }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head .eyebrow { color: var(--cobalt); }
.section-head h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.section-head p { margin-top: 14px; color: var(--muted); }

/* focus trio */
.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.card h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 8px;
}
.card p { color: var(--muted); font-size: 15.5px; }
.card .chip {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--yellow);
  border-radius: 6px;
  padding: 4px 9px;
  margin-bottom: 16px;
}

/* illustrations */
.card-illu { margin: 2px 0 18px; }
.card-illu img { width: 100%; height: 128px; object-fit: contain; }
.steps-top {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 48px;
  align-items: center;
  margin-bottom: 40px;
}
.steps-top .section-head { margin-bottom: 0; }
.steps-illu img { width: 100%; max-width: 470px; display: block; margin-left: auto; }
@media (max-width: 900px) {
  .steps-top { grid-template-columns: 1fr; gap: 24px; }
  .steps-illu img { margin: 0 auto; max-width: 400px; }
}

/* steps */
.steps { border-top: 1px solid var(--line); }
.step-list { display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.step:first-child { border-top: 1px solid var(--line); }
.step-no {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--cobalt);
  padding-top: 5px;
}
.step h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 6px;
}
.step p { color: var(--muted); max-width: 60ch; }

/* about */
.about .container {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 56px;
  align-items: center;
}
.about h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.12;
  margin-bottom: 16px;
}
.about p { color: var(--muted); margin-bottom: 14px; max-width: 58ch; }
.about .signature {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
  margin-top: 8px;
}

/* testimonial placeholder */
.quote {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--yellow);
  border-radius: var(--radius);
  padding: 34px 38px;
}
.quote blockquote {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.35;
  margin-bottom: 14px;
}
.quote figcaption {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
}
.placeholder-note {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 3px 8px;
  margin-bottom: 14px;
}

/* ---------- apply ---------- */

.apply {
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.apply::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(110% 100% at 80% 0%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(110% 100% at 80% 0%, #000 30%, transparent 100%);
}
.apply .container {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 64px;
}
.apply h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
  margin-bottom: 16px;
}
.apply .section-note { color: var(--muted-light); max-width: 44ch; margin-bottom: 22px; }
.apply ul { list-style: none; display: grid; gap: 10px; }
.apply ul li {
  padding-left: 26px;
  position: relative;
  color: var(--muted-light);
  font-size: 15.5px;
}
.apply ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--yellow);
  font-family: var(--mono);
}

.form-card {
  background: var(--ink-2);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 32px;
}

/* quiz */
.quiz-progress[hidden] { display: none; }
.quiz-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.quiz-count {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted-light);
  white-space: nowrap;
}
.quiz-bar {
  flex: 1;
  height: 4px;
  background: var(--line-light);
  border-radius: 99px;
  overflow: hidden;
}
.quiz-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--yellow);
  border-radius: 99px;
  transition: width 0.3s ease;
}
.quiz-step { display: none; }
.quiz-step.active { display: block; animation: stepin 0.25s ease; }
@keyframes stepin {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.quiz-q {
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.25;
  margin-bottom: 18px;
}
.quiz-opts { display: grid; gap: 10px; }
.quiz-opt {
  text-align: left;
  background: var(--ink);
  border: 1px solid var(--line-light);
  border-radius: 9px;
  color: var(--white);
  font-family: var(--body);
  font-size: 15.5px;
  padding: 13px 16px;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.quiz-opt:hover { border-color: var(--yellow); }
.quiz-opt.selected { border-color: var(--yellow); background: rgba(255, 212, 59, 0.1); }
.quiz-back {
  display: inline-block;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted-light);
  padding: 0;
  margin-top: 20px;
}
.quiz-back:hover { color: var(--white); }
.quiz-back[hidden] { display: none; }
.check-badge {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 16px;
  animation: pop 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
}
@keyframes pop {
  from { transform: scale(0); }
  to { transform: scale(1); }
}
.quiz-sub { color: var(--muted-light); margin-bottom: 20px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 7px;
}
.field input, .field textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line-light);
  border-radius: 9px;
  color: var(--white);
  font-family: var(--body);
  font-size: 16px;
  padding: 12px 14px;
}
.field input:focus, .field textarea:focus {
  border-color: var(--yellow);
  outline: none;
}
.field textarea { min-height: 110px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-msg {
  display: none;
  margin-top: 16px;
  border-radius: 9px;
  padding: 13px 16px;
  font-size: 15px;
}
.form-msg.ok { display: block; background: rgba(255, 212, 59, 0.12); border: 1px solid var(--yellow); color: var(--white); }
.form-msg.err { display: block; background: rgba(216, 74, 74, 0.14); border: 1px solid #d84a4a; color: var(--white); }
.form-consent { font-size: 13px; color: var(--muted-light); margin-top: 14px; }
.form-consent a { color: var(--white); }

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--muted-light);
  border-top: 1px solid var(--line-light);
  padding: 34px 0;
  font-size: 14px;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
}
.site-footer .foot-brand {
  color: var(--white);
  font-family: var(--display);
  font-weight: 700;
}
.site-footer nav { display: flex; gap: 22px; margin-left: auto; }
.site-footer a { color: var(--muted-light); text-decoration: none; }
.site-footer a:hover { color: var(--white); }

/* ---------- legal pages ---------- */

.legal-page { background: var(--paper); }
.legal-header {
  background: var(--ink);
  padding: 110px 0 50px;
  color: var(--white);
}
.legal-header h1 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4vw, 44px); }
.legal-body { padding: 56px 0 90px; }
.legal-body .container { max-width: 760px; }
.legal-body h2 { font-family: var(--display); font-size: 26px; margin: 40px 0 12px; }
.legal-body h3 { font-family: var(--display); font-size: 19px; margin: 26px 0 8px; }
.legal-body p, .legal-body li { color: var(--muted); margin-bottom: 12px; }
.legal-body ul { padding-left: 22px; }
.legal-body a { color: var(--cobalt); word-break: break-word; }
.legal-body strong { color: var(--ink); }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  section { padding: 64px 0; }
  .hero { padding: 110px 0 64px; }
  .hero .container, .about .container, .apply .container { grid-template-columns: 1fr; gap: 40px; }
  .hero .photo-slot { max-width: 320px; }
  .trio { grid-template-columns: 1fr; }
  .about .photo-slot { max-width: 320px; }
  .step { grid-template-columns: 56px 1fr; gap: 14px; }
  .site-footer nav { margin-left: 0; }
  .header-cta { display: none; }
}
