/* Thematica Landing — Direction B (quiet, centered, type-only) */
@import url('./colors_and_type.css');
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap');

html, body { margin: 0; padding: 0; }

/* ============================================================
   Shared primitives
============================================================ */
.ld-page {
  font-family: var(--font-sans);
  color: var(--ink-700);
  background: var(--cream-50);
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
}
.ld-serif { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-style: italic; letter-spacing: -0.005em; }
.ld-mono  { font-family: var(--font-mono); }

.ld-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px; border-radius: 10px;
  font-size: 14px; font-weight: 500; letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer; transition: background .15s, border-color .15s, transform .08s;
  text-decoration: none;
  font-family: var(--font-sans);
}
.ld-btn:active { transform: translateY(0.5px); }
.ld-btn-primary { background: #1a1a1a; color: #fff !important; border-color: #1a1a1a; }
.ld-btn-primary:hover { background: #000; color: #fff !important; }
.ld-btn-primary .ld-arr { color: #fff; }
.ld-btn-secondary { background: #fff; color: var(--ink-700); border-color: var(--border-1); }
.ld-btn-secondary:hover { background: var(--cream-100); border-color: #ccc; }
.ld-btn-ghost { background: transparent; color: var(--ink-700); border-color: transparent; }
.ld-btn-ghost:hover { background: var(--cream-100); }

.ld-btn .ld-arr { display: inline-block; transition: transform .15s; }
.ld-btn:hover .ld-arr { transform: translateX(3px); }

/* ============================================================
   Shared top nav
============================================================ */
.ld-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 40px;
  max-width: 1040px; margin: 0 auto;
}
.ld-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; color: var(--ink-900); }
.ld-logo .mascot { font-size: 22px; line-height: 1; }
.ld-logo .beta-tag {
  margin-left: 6px;
  font-family: var(--font-mono); font-size: 10px;
  padding: 2px 7px; background: var(--cream-100);
  border: 1px solid var(--border-1); border-radius: 999px;
  color: var(--ink-500); letter-spacing: 0.06em; font-weight: 500;
}
/* Hamburger toggle (all sizes) */
.ld-nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  padding: 0; border: 1px solid var(--border-1); border-radius: 8px;
  background: #fff; cursor: pointer;
  align-items: center;
  transition: background .15s, border-color .15s;
}
.ld-nav-toggle:hover { background: var(--cream-100); border-color: #ccc; }
.ld-nav-toggle-bar {
  display: block; width: 16px; height: 1.5px;
  background: var(--ink-700);
  transition: transform .18s, opacity .18s;
}
.ld-nav-toggle.is-open .ld-nav-toggle-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.ld-nav-toggle.is-open .ld-nav-toggle-bar:nth-child(2) { opacity: 0; }
.ld-nav-toggle.is-open .ld-nav-toggle-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Collapsible menu panel (mobile-first: drops below logo+toggle, full width) */
.ld-nav-panel {
  display: flex; flex-direction: column; gap: 2px;
  flex-basis: 100%;
  padding: 8px 0 12px;
}
.ld-nav-panel[hidden] { display: none; }
.ld-nav-panel a {
  color: var(--ink-700); font-size: 14px; text-decoration: none;
  padding: 10px 12px; border-radius: 8px;
  transition: color .15s, background .15s;
}
.ld-nav-panel a:hover { color: var(--ink-900); background: var(--cream-100); }
.ld-nav-panel .ld-btn-primary,
.ld-nav-panel .ld-btn-primary:hover { color: #fff; }
.ld-nav-panel .ld-btn-primary {
  margin-top: 6px; align-self: flex-start;
  padding: 10px 16px; font-size: 13px;
}

/* Nav "Join tools waitlist" widget: a labelled dark pill that morphs into an
   email input on hover / focus / click. The label stays visible by default so
   users know what they're signing up for. */
.ld-nav-waitlist-wrap {
  display: inline-flex;
  margin-top: 6px;
  align-self: flex-start;
}
.ld-nav-waitlist-wrap .ld-nav-waitlist-toggle {
  margin-top: 0;
  align-self: stretch;
}
/* Default: label visible, form hidden. Swap on hover, focus-within, or
   sticky .is-open (set by JS on click — persists past mouseleave for touch +
   keyboard users who explicitly opted into the form). */
.ld-nav-waitlist {
  display: none;
  align-items: center; gap: 6px;
  background: #1a1a1a; color: #fff;
  border-radius: 999px;
  padding: 4px 6px 4px 14px;
  transition: background .15s;
}
.ld-nav-waitlist-wrap:hover > .ld-nav-waitlist-toggle,
.ld-nav-waitlist-wrap:focus-within > .ld-nav-waitlist-toggle,
.ld-nav-waitlist-wrap.is-open > .ld-nav-waitlist-toggle {
  display: none;
}
.ld-nav-waitlist-wrap:hover > .ld-nav-waitlist,
.ld-nav-waitlist-wrap:focus-within > .ld-nav-waitlist,
.ld-nav-waitlist-wrap.is-open > .ld-nav-waitlist {
  display: flex;
}
.ld-nav-waitlist:focus-within { background: #000; }
.ld-nav-waitlist input {
  flex: 1; min-width: 200px;
  background: transparent;
  border: none; outline: none;
  color: #fff;
  font-family: inherit; font-size: 13px;
  padding: 6px 0;
}
.ld-nav-waitlist input::placeholder { color: rgba(255, 255, 255, 0.55); }
.ld-nav-waitlist input:disabled { opacity: 0.6; cursor: not-allowed; }
.ld-nav-waitlist button[type="submit"] {
  flex: none;
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-mono); font-size: 13px;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.ld-nav-waitlist button[type="submit"]:hover { background: rgba(255, 255, 255, 0.12); transform: translateX(2px); }
.ld-nav-waitlist button[type="submit"]:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.ld-nav-waitlist-done {
  display: inline-flex; align-items: center;
  padding: 10px 16px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em;
  color: var(--ink-700);
}
.ld-nav-waitlist-error {
  padding: 0 16px;
  font-size: 12px; color: #b91c1c;
}

/* ============================================================
   DIRECTION B — Quiet & confident (type-only, minimal)
   All about typographic hierarchy. Centered. Generous whitespace.
============================================================ */
.ldb {
  background: var(--cream-50);
  min-height: 100vh;
  display: flex; flex-direction: column;
}

.ldb .hero {
  padding: 48px 40px 28px;
  max-width: 820px; margin: 0 auto;
  text-align: center;
  /* Divider lives on .do (border-top) — avoid stacking two 1px lines here. */
}

.ldb h1 {
  margin: 0;
  font-size: 72px;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--ink-900);
}
.ldb h1 em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic; font-weight: 400;
  letter-spacing: -0.02em;
}
.ldb h1 .pause {
  display: block;
  margin-top: 10px;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink-500);
}

/* three actions as a clean list */
.ldb .do {
  max-width: 720px; margin: 24px auto 0; padding: 0 40px;
}

.ldb .do-row {
  display: flex; align-items: baseline; gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-1);
  text-decoration: none; color: inherit;
  transition: padding .18s;
  cursor: pointer;
}
.ldb .do-row:hover { padding-left: 8px; }
.ldb .do-row-static { cursor: default; }
.ldb .do-row-static:hover { padding-left: 0; }
.ldb .do-row .idx {
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-400);
  min-width: 28px;
}
.ldb .do-row .body { flex: 1; }
.ldb .do-row .title {
  font-size: 20px; font-weight: 500; letter-spacing: -0.015em; color: var(--ink-900);
  margin-bottom: 2px;
}
.ldb .do-row .title em { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; }
.ldb .do-row .sub { font-size: 14px; color: var(--ink-500); line-height: 1.5; }
.ldb .do-row .arr {
  font-family: var(--font-mono);
  color: var(--ink-400); font-size: 14px;
  align-self: flex-end;
  padding-bottom: 2px;
  transition: transform .15s, color .15s;
}
.ldb .do-row:hover .arr { color: var(--ink-900); transform: translateX(4px); }
.ldb .do-row .badge {
  display: inline-block;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-900);
  background: #fde68a;
  padding: 2px 6px; border-radius: 4px;
  margin-left: 10px;
  vertical-align: 3px;
}

.ldb .do-inline-form {
  display: flex; flex-direction: row; align-items: center; gap: 10px;
  margin-top: 14px;
  /* No max-width — on desktop the form fills .body (flex: 1), so its submit
     arrow (rendered outside the form via form="id", see row #02) column-aligns
     with the .arr arrows on rows #01 / #03. Mobile caps via the 600px query. */
  border-bottom: 1px solid var(--border-1);
  transition: border-color .15s;
}
/* Row-level submit button (for row #02, wired via form="do-waitlist-form").
   Sits at the .arr column so the → aligns with arrows on rows #01 / #03. */
.ldb .do-row > .do-inline-submit.arr {
  flex: none;
  align-self: flex-end;
  background: transparent;
  border: none;
  padding: 0 2px 2px;
  margin: 0;
  font-family: var(--font-mono); font-size: 14px;
  color: var(--ink-400);
  cursor: pointer;
  transition: color .15s, transform .15s;
}
.ldb .do-row > .do-inline-submit.arr:hover { color: var(--ink-900); transform: translateX(4px); }
.ldb .do-row > .do-inline-submit.arr:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.ldb .do-inline-form:focus-within { border-bottom-color: var(--ink-700); }
.ldb .do-inline-form input {
  flex: 1; min-width: 0;
  font-family: inherit; font-size: 15px;
  padding: 10px 0;
  background: transparent;
  border: none;
  border-radius: 0;
  color: var(--ink-700); outline: none;
}
.ldb .do-inline-form input::placeholder { color: var(--ink-500); }
.ldb .do-inline-form input:disabled { opacity: 0.6; cursor: not-allowed; }

.ldb .do-inline-form .do-inline-submit {
  flex: none;
  background: transparent;
  border: none;
  padding: 0 2px;
  margin: 0;
  font-family: var(--font-mono); font-size: 14px;
  color: var(--ink-400);
  cursor: pointer;
  transition: color .15s, transform .15s;
}
.ldb .do-inline-form .do-inline-submit:hover { color: var(--ink-900); transform: translateX(3px); }
.ldb .do-inline-form .do-inline-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.ldb .do-success {
  margin-top: 14px; padding: 12px 14px;
  background: #fff; border: 1px solid var(--border-1); border-radius: 8px;
  font-size: 14px; color: var(--ink-700); line-height: 1.5;
  max-width: 440px;
}
.ldb .do-error {
  margin-top: 10px; font-size: 13px; color: #b91c1c;
  max-width: 440px;
}

.ldb .ldb-foot {
  margin-top: auto;
  max-width: 820px; margin-left: auto; margin-right: auto;
  padding: 28px 40px 24px;
  display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-400);
  font-family: var(--font-mono); letter-spacing: 0.04em;
}
.ldb .ldb-foot a { color: var(--ink-500); text-decoration: none; margin-left: 14px; }
.ldb .ldb-foot a:hover { color: var(--ink-700); }

/* ============================================================
   Desktop (> 820px) — show nav links inline, hide hamburger
============================================================ */
@media (min-width: 821px) {
  .ld-nav-toggle { display: none; }
  /* Override the `[hidden]` attribute at desktop — links always visible. */
  .ld-nav-panel[hidden],
  .ld-nav-panel {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-basis: auto;
    gap: 4px;
    padding: 0;
    margin: 0;
  }
  .ld-nav-panel a {
    padding: 8px 12px;
  }
  .ld-nav-panel .ld-btn-primary {
    margin-top: 0;
    margin-left: 8px;
    align-self: center;
    padding: 10px 16px;
  }
  /* Desktop: waitlist widget sits inline in the nav row, not left-aligned. */
  .ld-nav-waitlist-wrap {
    margin-top: 0;
    margin-left: 8px;
    align-self: center;
  }
  .ld-nav-waitlist-done,
  .ld-nav-waitlist-error {
    margin-top: 0;
    margin-left: 8px;
    align-self: center;
  }
}

/* ============================================================
   Responsive — tablet (≤ 820px) + mobile (≤ 600px)
   Handoff shipped desktop-only; these rules close that gap.
============================================================ */
@media (max-width: 820px) {
  .ldb .hero {
    padding: 40px 24px 24px;
  }
  .ldb h1 {
    font-size: 56px;
    letter-spacing: -0.035em;
  }
  .ldb h1 .pause {
    font-size: 24px;
  }
  .ldb .do {
    padding: 0 24px;
  }
  .ldb .ldb-foot {
    padding: 24px 24px 20px;
  }
}

@media (max-width: 600px) {
  /* Nav: tighter padding, smaller logo, drop beta pill */
  .ld-nav {
    padding: 16px 20px;
  }
  .ldb > .ld-nav .ld-nav-inner {
    padding: 0 20px;
  }
  /* Panel lives inside .ld-nav-inner now — let the inner own horizontal padding. */
  .ld-nav-panel {
    padding: 8px 0 12px;
  }
  /* Align link text flush-left with the logo (no hanging-indent gap). */
  .ld-nav-panel a {
    padding-left: 0;
  }
  .ld-logo {
    font-size: 15px;
    gap: 8px;
  }
  .ld-logo .mascot {
    font-size: 20px;
  }
  .ld-logo .beta-tag {
    display: none;
  }

  /* Hero: smaller h1, tighter padding */
  .ldb .hero {
    padding: 32px 20px 20px;
  }
  .ldb h1 {
    font-size: 42px;
    line-height: 1.06;
  }
  .ldb h1 .pause {
    margin-top: 6px;
    font-size: 19px;
  }

  /* Action list: tighter gap, smaller horizontal padding */
  .ldb .do {
    padding: 0 20px;
    margin-top: 20px;
  }
  .ldb .do-row {
    gap: 14px;
    padding: 14px 0;
  }
  .ldb .do-row .idx {
    min-width: 22px;
    font-size: 11px;
  }
  .ldb .do-row .title {
    font-size: 17px;
  }
  .ldb .do-row .sub {
    font-size: 13px;
  }

  /* Inline form: transparent underline input */
  .ldb .do-inline-form {
    max-width: 100%;
  }
  .ldb .do-inline-form input {
    padding: 12px 0;
    font-size: 14px;
  }

  /* Footer: tighter padding, slightly smaller font */
  .ldb .ldb-foot {
    padding: 20px 20px 18px;
    font-size: 10px;
  }
  .ldb .ldb-foot a {
    margin-left: 10px;
  }
}
