/* landing.css — Forge landing page (PRD 20 S1). Brand-token driven; see tokens.css. */

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--db-font-body, "Hanken Grotesk", system-ui, sans-serif);
  color: var(--db-text);
  background: var(--db-paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--db-accent); }
a:hover { color: var(--db-accent-deep); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--db-radius-md, 4px);
  border: 1px solid transparent;
  font-family: var(--db-font-body, "Hanken Grotesk", system-ui, sans-serif);
  font-size: var(--db-text-base, 15px);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn--primary { background: var(--db-accent); color: #fff; }
.btn--primary:hover { background: var(--db-accent-deep); color: #fff; }
.btn--secondary { background: #fff; color: var(--db-ink); border-color: var(--db-ink); }
.btn--secondary:hover { border-color: var(--db-accent); color: var(--db-accent); }
.btn--lg { padding: 14px 28px; font-size: var(--db-text-lg, 18px); }

/* ── Header ── */
.lp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(20px, 5vw, 56px);
  background: var(--db-paper);
}
.lp-header__logo { height: 64px; width: auto; }
.lp-header__nav { display: flex; align-items: center; gap: 16px; }
.lp-lang { display: flex; gap: 2px; border: 1px solid var(--db-line); border-radius: var(--db-radius-md, 4px); overflow: hidden; }
.lp-lang__btn {
  padding: 6px 12px;
  border: none;
  background: transparent;
  font: inherit;
  font-size: var(--db-text-sm, 13px);
  font-weight: 600;
  color: var(--db-ink);
  cursor: pointer;
}
.lp-lang__btn[aria-pressed="true"] { background: var(--db-ink); color: var(--db-paper); }

/* ── Hero ── */
.lp-hero {
  padding: clamp(48px, 10vw, 120px) clamp(20px, 5vw, 56px);
  background: var(--db-paper);
}
.lp-hero__inner { max-width: 860px; margin: 0 auto; text-align: center; }
.lp-hero__kicker {
  font-family: var(--db-font-display, "Bricolage Grotesque", sans-serif);
  font-weight: 700;
  font-size: var(--db-text-sm, 13px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--db-accent);
  margin: 0 0 16px;
}
.lp-hero__title {
  font-family: var(--db-font-display, "Bricolage Grotesque", sans-serif);
  font-weight: 800;
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.12;
  color: var(--db-ink);
  margin: 0 0 20px;
}
.lp-hero__subtitle {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--db-text);
  max-width: 680px;
  margin: 0 auto 32px;
}
.lp-hero__actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lp-hero__note { font-size: var(--db-text-sm, 13px); color: var(--db-ink); opacity: 0.7; }

/* Discreet entrance — alludes to the Lean/Agile phase transitions (PRD §5) */
@media (prefers-reduced-motion: no-preference) {
  .lp-hero__inner > * {
    animation: lp-rise 0.6s ease-out both;
  }
  .lp-hero__inner > *:nth-child(2) { animation-delay: 0.08s; }
  .lp-hero__inner > *:nth-child(3) { animation-delay: 0.16s; }
  .lp-hero__inner > *:nth-child(4) { animation-delay: 0.24s; }
}
@keyframes lp-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ── Scroll reveal (enhance.js adds .is-visible; reduced-motion gets it instantly) ── */
.lp-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease-out, transform 0.55s ease-out; }
.lp-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .lp-reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Narrative ── */
.lp-story { padding: clamp(40px, 7vw, 88px) clamp(20px, 5vw, 56px); max-width: 980px; margin: 0 auto; }
.lp-story__row { display: flex; align-items: center; gap: clamp(24px, 5vw, 64px); margin-bottom: clamp(40px, 6vw, 72px); }
.lp-story__row--flip { flex-direction: row-reverse; }
.lp-story__art { flex: 0 0 38%; margin: 0; background: #fff; border-radius: var(--db-radius-lg, 8px);
                 overflow: hidden; box-shadow: 0 4px 24px rgba(31,42,54,0.08); }
.lp-story__art img { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
.lp-story__text h3 { font-family: var(--db-font-display, "Bricolage Grotesque", sans-serif); font-weight: 700;
                     font-size: var(--db-text-xl, 24px); color: var(--db-ink); margin: 0 0 10px; }
.lp-story__text p { margin: 0; }
@media (max-width: 700px) {
  .lp-story__row, .lp-story__row--flip { flex-direction: column; align-items: stretch; }
  .lp-story__art { flex-basis: auto; }
}

/* ── Venture Flow Map — marketing edition ── */
.lp-journey { padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 56px); background: var(--db-ink); color: var(--db-paper); }
.lp-journey h2 { font-family: var(--db-font-display, "Bricolage Grotesque", sans-serif); font-weight: 800;
                 font-size: var(--db-text-2xl, 32px); text-align: center; margin: 0 0 8px; color: var(--db-paper); }
.lp-journey__sub { text-align: center; max-width: 640px; margin: 0 auto clamp(32px, 5vw, 56px);
                   color: var(--db-paper); opacity: 0.75; font-size: var(--db-text-base, 15px); }
.lp-journey__rail { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr);
                    gap: 18px; padding: 0; margin: 0 auto; max-width: 1200px; position: relative; }
/* The spine — alludes to the flywheel thread */
.lp-journey__rail::before { content: ""; position: absolute; top: 21px; left: 3%; right: 3%;
                            height: 2px; background: var(--db-accent); opacity: 0.7; }
.lp-journey__phase { position: relative; padding-top: 8px; }
.lp-journey__num { display: inline-flex; align-items: center; justify-content: center;
                   width: 44px; height: 44px; border-radius: 50%; background: var(--db-accent);
                   color: #fff; font-family: var(--db-font-display, "Bricolage Grotesque", sans-serif);
                   font-weight: 800; font-size: 18px; position: relative; z-index: 1;
                   border: 3px solid var(--db-ink); box-shadow: 0 0 0 2px var(--db-accent); }
.lp-journey__phase h3 { font-family: var(--db-font-display, "Bricolage Grotesque", sans-serif); font-weight: 700;
                        font-size: var(--db-text-base, 15px); margin: 12px 0 6px; color: var(--db-clay); }
.lp-journey__phase p { font-size: var(--db-text-sm, 13px); margin: 0; opacity: 0.8; line-height: 1.5; }
/* Staggered reveal down the rail */
.lp-journey__phase:nth-child(2) { transition-delay: 0.08s; }
.lp-journey__phase:nth-child(3) { transition-delay: 0.16s; }
.lp-journey__phase:nth-child(4) { transition-delay: 0.24s; }
.lp-journey__phase:nth-child(5) { transition-delay: 0.32s; }
.lp-journey__phase:nth-child(6) { transition-delay: 0.40s; }
@media (max-width: 860px) {
  .lp-journey__rail { grid-template-columns: 1fr; max-width: 420px; gap: 24px; }
  .lp-journey__rail::before { top: 4%; bottom: 4%; left: 21px; right: auto; width: 2px; height: auto; }
  .lp-journey__phase { padding-left: 64px; padding-top: 0; }
  .lp-journey__num { position: absolute; left: 0; top: 0; }
  .lp-journey__phase h3 { margin-top: 8px; }
}

/* ── How it works ── */
.lp-how { padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 56px); max-width: 1100px; margin: 0 auto; }
.lp-how h2 { font-family: var(--db-font-display, "Bricolage Grotesque", sans-serif); font-weight: 700;
             font-size: var(--db-text-2xl, 32px); color: var(--db-ink); text-align: center; margin: 0 0 36px; }
.lp-how__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.lp-how__card { background: #fff; border-radius: var(--db-radius-lg, 8px); padding: 26px 28px;
                border-top: 3px solid var(--db-accent); box-shadow: 0 4px 24px rgba(31,42,54,0.08); }
.lp-how__card:nth-child(2) { transition-delay: 0.1s; }
.lp-how__card:nth-child(3) { transition-delay: 0.2s; }
.lp-how__card:nth-child(4) { transition-delay: 0.3s; }
.lp-how__card h3 { font-family: var(--db-font-display, "Bricolage Grotesque", sans-serif); font-weight: 700;
                   font-size: var(--db-text-lg, 18px); color: var(--db-ink); margin: 0 0 10px; }
.lp-how__card p { margin: 0; font-size: var(--db-text-sm, 13px); line-height: 1.6; }
@media (max-width: 800px) { .lp-how__cards { grid-template-columns: 1fr; } }

/* ── Beta program ── */
.lp-beta { padding: clamp(40px, 7vw, 80px) clamp(20px, 5vw, 56px); background: var(--db-line); }
.lp-beta__inner { max-width: 720px; margin: 0 auto; text-align: center; }
.lp-beta h2 { font-family: var(--db-font-display, "Bricolage Grotesque", sans-serif); font-weight: 700;
              font-size: var(--db-text-2xl, 32px); color: var(--db-ink); margin: 0 0 14px; }
.lp-beta p { margin: 0 0 22px; }

/* ── Q&A ── */
.lp-faq { padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 56px); max-width: 760px; margin: 0 auto; }
.lp-faq h2 { font-family: var(--db-font-display, "Bricolage Grotesque", sans-serif); font-weight: 700;
             font-size: var(--db-text-2xl, 32px); color: var(--db-ink); text-align: center; margin: 0 0 28px; }
.lp-faq__item { background: #fff; border-radius: var(--db-radius-md, 4px); margin-bottom: 10px;
                box-shadow: 0 2px 12px rgba(31,42,54,0.06); overflow: hidden; }
.lp-faq__item summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--db-ink);
                        font-family: var(--db-font-display, "Bricolage Grotesque", sans-serif); list-style-position: inside; }
.lp-faq__item summary:hover { color: var(--db-accent); }
.lp-faq__item[open] summary { border-bottom: 1px solid var(--db-line); color: var(--db-accent); }
.lp-faq__item p { padding: 14px 20px 18px; margin: 0; font-size: var(--db-text-sm, 13px); line-height: 1.65; }

/* ── Registration ── */
.lp-register {
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 56px);
  background: #fff;
  border-top: 3px solid var(--db-accent);
}
.lp-register__inner { max-width: 520px; margin: 0 auto; }
.lp-register h2 {
  font-family: var(--db-font-display, "Bricolage Grotesque", sans-serif);
  font-weight: 700;
  font-size: var(--db-text-2xl, 32px);
  color: var(--db-ink);
  margin: 0 0 8px;
}
.lp-form { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.lp-form__row { display: flex; flex-direction: column; gap: 6px; }
.lp-form__row label { font-weight: 600; font-size: var(--db-text-sm, 13px); color: var(--db-ink); }
.lp-form__row input {
  padding: 12px 14px;
  border: 1px solid var(--db-line);
  border-radius: var(--db-radius-md, 4px);
  font: inherit;
  background: var(--db-paper);
}
.lp-form__row input:focus { outline: 2px solid var(--db-accent); outline-offset: 1px; }
/* Honeypot — off-screen, not display:none (some bots skip hidden fields) */
.lp-form__trap { position: absolute; left: -9999px; top: -9999px; height: 1px; overflow: hidden; }
.lp-form__consent { display: flex; gap: 10px; align-items: flex-start; font-size: var(--db-text-sm, 13px); }
.lp-form__consent input { margin-top: 3px; }
.lp-form__submit { width: 100%; }
.lp-form__feedback {
  padding: 12px 14px;
  border-radius: var(--db-radius-md, 4px);
  font-size: var(--db-text-sm, 13px);
}
.lp-form__feedback--success { background: #e8f5e9; color: #1b5e20; }
.lp-form__feedback--error { background: #fdecea; color: #8e2519; }

/* ── Footer ── */
.lp-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 28px clamp(20px, 5vw, 56px);
  background: var(--db-ink);
  color: var(--db-paper);
  font-size: var(--db-text-sm, 13px);
}
.lp-footer__links { display: flex; gap: 16px; }
.lp-footer a { color: var(--db-clay); }
.lp-footer a:hover { color: var(--db-paper); }

/* ── Consent modal (equal prominence, docked bottom-left, see consent.js) ── */
.lp-consent-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  z-index: 400;
  padding: 20px clamp(16px, 4vw, 32px);
  pointer-events: none;
}
.lp-consent {
  background: #fff;
  border-radius: var(--db-radius-lg, 8px);
  border-top: 3px solid var(--db-accent);
  box-shadow: 0 20px 48px rgba(22, 24, 15, 0.25);
  width: 100%;
  max-width: 380px;
  margin: 0 0 8px 8px;
  padding: 22px 26px;
  outline: none;
  pointer-events: auto;
}
.lp-consent__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.lp-consent__title {
  font-family: var(--db-font-display, "Bricolage Grotesque", sans-serif);
  font-weight: 700;
  font-size: var(--db-text-lg, 18px);
  color: var(--db-ink);
}
.lp-consent__text { font-size: var(--db-text-sm, 13px); margin: 0 0 18px; }
.lp-consent__actions { display: flex; gap: 10px; }
.lp-consent__actions .btn { flex: 1; }
@media (max-width: 480px) {
  .lp-consent__actions { flex-direction: column-reverse; }
}

/* ── Policy document page ── */
.lp-policy-wrapper { padding: 48px 24px; }
.lp-policy {
  background: #fff;
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 64px;
  border-radius: var(--db-radius-lg, 8px);
  box-shadow: 0 4px 24px rgba(31, 42, 54, 0.10);
}
.lp-policy__head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding-bottom: 28px;
  margin-bottom: 32px;
  border-bottom: 3px solid var(--db-accent);
}
.lp-policy__wordmark {
  font-family: var(--db-font-display, "Bricolage Grotesque", sans-serif);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--db-ink);
}
.lp-policy h1 {
  font-family: var(--db-font-display, "Bricolage Grotesque", sans-serif);
  font-weight: 700;
  font-size: 30px;
  color: var(--db-accent);
  margin: 4px 0 2px;
}
.lp-policy h2 {
  font-family: var(--db-font-display, "Bricolage Grotesque", sans-serif);
  font-weight: 700;
  font-size: 19px;
  color: var(--db-ink);
  margin: 30px 0 10px;
}
.lp-policy__updated { font-size: var(--db-text-sm, 13px); color: var(--db-ink); opacity: 0.6; }
.lp-policy p, .lp-policy li { font-size: var(--db-text-base, 15px); }
.lp-policy ul { padding-left: 22px; }
.lp-policy__foot {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--db-line);
  font-size: var(--db-text-sm, 13px);
}
@media (max-width: 640px) {
  .lp-policy { padding: 32px 24px; }
  .lp-policy-wrapper { padding: 24px 12px; }
}
