/* ============================================================
   Fable Labs of Bangalore — Autonomous Company Fund
   Matches the main site: AF body, Mondwest display, Geist Mono
   labels, GIC neutral palette, pixel stripes.
   ============================================================ */

@font-face {
  font-family: "AF";
  src: url("fonts/af.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Mondwest";
  src: url("fonts/ppmondwest.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #fefffc;
  --bg-alt: #f9faf7;
  --line: #eef1ed;
  --ink-600: #646464;
  --ink-700: #444141;
  --ink-900: #2c2c2c;
  --teal: #a0d7d1;
  --teal-soft: #cfebe7;
  --teal-ink: #2f6f5a;
  --danger: #b3402f;
  --radius: 12px;
  --nav-h: 58px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  font-family: "AF", ui-sans-serif, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink-900);
  -webkit-font-smoothing: antialiased;
  line-height: 1.4;
}

.mono { font-family: "Geist Mono", ui-monospace, monospace; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 760px; }

/* ============ NAVBAR ============ */
.nav {
  position: fixed;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 24px);
  max-width: 720px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(249, 250, 247, 0.14), rgba(249, 250, 247, 0.2));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: background 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}
.nav.is-light {
  border-color: rgba(28, 28, 28, 0.1);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.9));
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 14px;
}
.nav-logo { display: inline-flex; --mark: #f9faf7; transition: --mark 250ms; }
.nav.is-light .nav-logo { --mark: #1f2937; }
.nav-links { display: flex; gap: 18px; margin-left: 6px; }
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.15px;
  opacity: 0.95;
}
.nav-links a:hover { opacity: 0.7; }
.nav.is-light .nav-links a { color: var(--ink-900); }
.nav-cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid #282834;
  border-radius: 9px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.12) 100%),
    #1f1f29;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.15px;
  white-space: nowrap;
}
.nav-cta:hover { opacity: 0.9; }

.arrow-badge { font-weight: 400; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: clip;
  background: #0b0e1a;
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 14, 26, 0.55) 0%, rgba(11, 14, 26, 0.25) 40%, rgba(11, 14, 26, 0.82) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 140px;
  padding-bottom: 120px;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
}
.dot {
  width: 8px; height: 8px;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.hero-title {
  margin: 0;
  max-width: 18ch;
  font-family: "Mondwest", Georgia, serif;
  font-weight: 400;
  font-size: clamp(38px, 7vw, 64px);
  line-height: 1.08;
  letter-spacing: -1px;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.35);
}
.hero-sub {
  margin: 20px 0 0;
  max-width: 52ch;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: -0.15px;
  color: #f3f5f2;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-top: 32px;
}

/* Pixel stripe band (6px bands, 2px separators) like the main site */
.hero-stripes, .footer-stripes {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
}
.hero-stripes span, .footer-stripes span { height: 6px; display: block; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font-family: "AF", ui-sans-serif, sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.15px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 200ms ease, transform 200ms ease, background 200ms ease;
}
.btn:active { transform: translateY(1px); }
.btn-solid {
  border: 1px solid #282834;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.12) 100%),
    #1f1f29;
  color: #fff;
}
.btn-solid:hover { opacity: 0.9; }
.btn-ghost {
  border: none;
  background: transparent;
  color: inherit;
  padding: 0 2px;
  height: auto;
}
.btn-ghost .arrow-badge { transition: transform 200ms ease; }
.btn-ghost:hover .arrow-badge { transform: translateX(3px); }
.hero .btn-ghost { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.5); }
main .btn-ghost, footer .btn-ghost { color: var(--ink-900); border-bottom: 1px solid var(--ink-600); }
.btn-wide { width: 100%; height: 48px; }

/* ============ SECTIONS ============ */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.kicker {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-600);
}
.section-title {
  margin: 0 0 20px;
  font-family: "Mondwest", Georgia, serif;
  font-weight: 400;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.5px;
}
.step-gap { margin-top: 64px; }

/* ============ SLIDER CARD ============ */
.slider-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 28px;
  max-width: 640px;
}
.amount-display {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.amount-out {
  font-family: "Mondwest", Georgia, serif;
  font-size: clamp(40px, 8vw, 56px);
  line-height: 1;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.amount-range { font-size: 12px; color: var(--ink-600); letter-spacing: 0.02em; }

/* Range input — square pixel thumb, filled track */
input[type="range"] {
  --fill: 0%;
  width: 100%;
  height: 28px;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
  margin: 0;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--ink-900) var(--fill), var(--line) var(--fill));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px; height: 26px;
  margin-top: -8px;
  border-radius: 6px;
  background: var(--ink-900);
  border: 3px solid #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}
input[type="range"]::-moz-range-track {
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--ink-900) var(--fill), var(--line) var(--fill));
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 6px;
  background: var(--ink-900);
  border: 3px solid #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}
input[type="range"]:focus-visible { outline: 2px solid var(--ink-900); outline-offset: 4px; }

.range-ends {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  color: var(--ink-600);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip {
  height: 32px;
  padding: 0 14px;
  border: 1px solid #e2e5e2;
  border-radius: 999px;
  background: #fff;
  color: var(--ink-700);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 150ms ease;
}
.chip:hover { border-color: var(--ink-600); }
.chip.is-active {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.slider-hint {
  margin: 18px 0 0;
  font-size: 13.5px;
  color: var(--ink-600);
  letter-spacing: -0.1px;
}

/* ============ OPENING CARDS ============ */
.roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 900px;
}
.role {
  position: relative;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.role:hover { border-color: var(--ink-600); transform: translateY(-2px); }
.role:focus-visible { outline: 2px solid var(--ink-900); outline-offset: 3px; }
.role[aria-pressed="true"] {
  border: 2px solid var(--ink-900);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  padding: 21px 19px; /* compensate border growth */
}
.role[aria-pressed="true"]::after {
  content: "✓";
  position: absolute;
  top: 14px; right: 14px;
  width: 22px; height: 22px;
  display: grid;
  place-items: center;
  background: var(--ink-900);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
}
.role-chip {
  display: inline-block;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-ink);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}
.role h3 {
  margin: 2px 0 0;
  font-family: "Mondwest", Georgia, serif;
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.3px;
}
.role p { margin: 0; font-size: 13.5px; line-height: 145%; color: var(--ink-700); }
.roles-note {
  margin: 18px 0 0;
  max-width: 62ch;
  font-size: 13.5px;
  color: var(--ink-600);
  line-height: 150%;
}

/* ============ FORM ============ */
.summary {
  margin: 0 0 18px;
  padding: 12px 16px;
  border: 1px dashed #c9cdc9;
  border-radius: 10px;
  background: var(--bg-alt);
  font-size: 14.5px;
}
.summary-placeholder { color: var(--ink-600); }
.reg-form { max-width: 640px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.1px;
  color: var(--ink-700);
}
.optional { color: var(--ink-600); font-weight: 400; }
.field input {
  height: 44px;
  padding: 0 14px;
  border: 1px solid #e2e5e2;
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink-900);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field input::placeholder { color: #a6aaa6; }
.field input:focus {
  outline: none;
  border-color: var(--ink-900);
  box-shadow: 0 0 0 3px rgba(44, 44, 44, 0.08);
}
.field input.is-invalid { border-color: var(--danger); }
.form-error {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fbeae7;
  border: 1px solid #ecc9c2;
  color: var(--danger);
  font-size: 13.5px;
}
.form-note { margin: 12px 0 0; font-size: 12.5px; color: var(--ink-600); }

/* ============ SUCCESS ============ */
.reg-success {
  max-width: 640px;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-alt);
  text-align: center;
}
.success-title {
  margin: 14px 0 8px;
  font-family: "Mondwest", Georgia, serif;
  font-weight: 400;
  font-size: 28px;
}
.success-body { margin: 0 0 20px; color: var(--ink-700); font-size: 15px; line-height: 150%; }

/* ============ FAQ ============ */
.faq-list { max-width: 640px; }
.faq {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.15px;
  list-style: none;
  position: relative;
  padding-right: 32px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  font-family: "Geist Mono", monospace;
  font-size: 18px;
  color: var(--ink-600);
  transition: transform 200ms ease;
}
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-body { margin: 10px 0 0; font-size: 14.5px; line-height: 155%; color: var(--ink-700); }
.faq-body p { margin: 0; }

/* ============ FOOTER ============ */
.footer { background: var(--bg); }
.footer-inner {
  padding-top: 80px;
  padding-bottom: 72px;
  text-align: center;
}
.footer-title {
  margin: 0 auto 28px;
  max-width: 22ch;
  font-family: "Mondwest", Georgia, serif;
  font-weight: 400;
  font-size: clamp(26px, 4.5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.6px;
}
.footer-base { background: #0b0e1a; color: #f9faf7; }
.footer-base-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 18px;
  padding-bottom: 18px;
  font-size: 13px;
}
.footer-base .mono { font-size: 12px; color: rgba(255, 255, 255, 0.7); }

/* ============ RESPONSIVE ============ */
@media (max-width: 720px) {
  .nav-links { display: none; }
  .hero { min-height: 86vh; }
  .hero-content { padding-top: 120px; padding-bottom: 90px; }
  .section { padding: 64px 0; }
  .roles { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .slider-card { padding: 22px 18px; }
  .footer-base-inner { flex-direction: column; align-items: center; text-align: center; }
}

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