/* ---------------------------------------------------------------------------
 * Vanday — Library Teardown landing page.
 * Reuses tokens.css + the shared .lp-* header/footer/button classes from
 * landing.css. Everything page-specific is namespaced `td-`.
 * --------------------------------------------------------------------------- */

.lp { max-width: 1080px; margin: 0 auto; padding: 0 24px 80px; }

/* ===== Header / footer (self-contained; mirrors start.css) =============== */
.lp-header {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 22px 0;
}
.lp-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.lp-tile {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 15px;
}
.lp-word { font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.lp-beta {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 100px;
  background: var(--accent-soft); color: var(--accent-hover);
  font-size: 13px; font-weight: 500; text-decoration: none; cursor: pointer;
}
.lp-beta .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.lp-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 64px; padding-top: 26px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-muted);
}
.lp-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.lp-footer a { color: var(--text-muted); text-decoration: none; }
.lp-footer a:hover { color: var(--text); }

/* ===== Hero =============================================================== */
.td-hero { text-align: center; padding: 56px 0 40px; max-width: 760px; margin: 0 auto; }
.td-eyebrow,
.td-hero .td-eyebrow { }
.td-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 500; color: var(--accent-hover);
  background: var(--accent-soft); border-radius: 999px; padding: 6px 14px;
}
.td-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.td-h1 {
  font-size: clamp(34px, 6vw, 54px); font-weight: 500; letter-spacing: -0.03em;
  line-height: 1.05; margin: 22px 0 0;
}
.td-h1 .accent { color: var(--accent); }
.td-sub {
  font-size: clamp(16px, 2.2vw, 19px); line-height: 1.55; color: var(--text-muted);
  max-width: 620px; margin: 20px auto 0;
}
.td-sub strong { color: var(--text); font-weight: 600; }

.td-hero-cta { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.td-hero-note { font-size: 13px; color: var(--text-faint); }

.td-credible { margin-top: 44px; }
.td-credible-lead {
  display: block; font-size: 11px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-faint); margin-bottom: 14px;
}
.td-logos {
  display: flex; align-items: center; justify-content: center; gap: 12px 30px; flex-wrap: wrap;
}
.td-logos span {
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--text-muted);
  opacity: 0.72;
}

/* ===== Section shells ==================================================== */
.td-section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.td-section-head h2 {
  font-size: clamp(24px, 4vw, 34px); font-weight: 500; letter-spacing: -0.025em;
  line-height: 1.12; margin: 16px 0 0;
}
.td-section-head h2 i { color: var(--accent); font-style: italic; }

.td-layers, .td-how { padding: 56px 0; }

/* ===== Four layers ====================================================== */
.td-layer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 900px; margin: 0 auto; }
.td-layer {
  position: relative; border: 1px solid var(--border); background: var(--surface);
  border-radius: var(--radius-lg); padding: 26px 24px 24px;
}
.td-layer-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 9px; background: var(--accent-soft);
  color: var(--accent-hover); font-family: var(--font-mono); font-size: 14px; font-weight: 600;
  margin-bottom: 14px;
}
.td-layer h3 { font-size: 17px; font-weight: 600; margin: 0 0 8px; }
.td-layer p { font-size: 14px; line-height: 1.55; color: var(--text-muted); }

/* ===== How it works ===================================================== */
.td-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 940px; margin: 0 auto; }
.td-step { text-align: left; }
.td-step-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 11px; background: var(--accent); color: #fff;
  margin-bottom: 14px;
}
.td-step h3 { font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.td-step-n { color: var(--accent); }
.td-step p { font-size: 14px; line-height: 1.55; color: var(--text-muted); }

/* ===== Personal note ==================================================== */
.td-portrait { width: 66px; height: 66px; border-radius: 50%; object-fit: cover; }
.td-note {
  display: flex; gap: 24px; align-items: flex-start;
  max-width: 720px; margin: 0 auto; padding: 40px 0 56px;
}
.td-note .td-portrait { flex: 0 0 auto; margin-top: 4px; }
.td-note-body p {
  font-size: clamp(16px, 2.2vw, 18.5px); line-height: 1.6; color: var(--text);
  margin: 0 0 14px;
}
.td-note-body p i { color: var(--accent-hover); font-style: italic; }
.td-note-body p strong { font-weight: 600; }
.td-note-body .by { display: block; margin-top: 6px; font-size: 13.5px; color: var(--text-muted); }

/* ===== Form ============================================================= */
.td-form-section { padding: 8px 0 0; scroll-margin-top: 24px; }
.td-form {
  max-width: 640px; margin: 0 auto; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 34px 34px 30px; box-shadow: var(--shadow-md);
}
.td-form-head { margin-bottom: 24px; }
.td-form-head h2 { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
.td-form-head p { font-size: 14px; color: var(--text-muted); margin-top: 8px; }

.td-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }
.td-field { display: flex; flex-direction: column; gap: 7px; }
.td-label { font-size: 13px; font-weight: 600; color: var(--text); }
.td-label b { color: var(--accent); font-weight: 700; }
.td-label i { color: var(--text-faint); font-weight: 400; font-style: normal; }
.td-input {
  border: 1px solid var(--border-strong); background: var(--bg); border-radius: 9px;
  padding: 11px 13px; font-family: var(--font-sans); font-size: 14.5px; color: var(--text);
  transition: border-color 120ms, box-shadow 120ms;
}
.td-input::placeholder { color: var(--text-faint); }
.td-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.td-q { padding: 18px 0; border-top: 1px solid var(--border); }
.td-q .td-label { display: block; margin-bottom: 4px; }
.td-hint { display: block; font-size: 12.5px; color: var(--text-faint); margin-bottom: 12px; }
.td-q .td-label + .td-chips { margin-top: 10px; }

.td-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.td-chip {
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-muted);
  font-family: var(--font-sans); font-size: 13.5px; font-weight: 500;
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  transition: all 120ms;
}
.td-chip:hover { border-color: var(--accent); color: var(--text); }
.td-chip.on {
  background: var(--accent); border-color: var(--accent); color: #fff;
}

.td-upload {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  border: 1px dashed var(--border-strong); background: var(--bg); border-radius: 10px;
  padding: 14px 16px; font-size: 14px; color: var(--text-muted);
  transition: border-color 120ms, background 120ms;
}
.td-upload:hover { border-color: var(--accent); }
.td-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.td-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.td-file {
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%;
  background: var(--surface-soft); border: 1px solid var(--border); border-radius: 8px;
  padding: 6px 8px 6px 11px; font-size: 12.5px; color: var(--text-muted);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.td-file button {
  border: none; background: none; cursor: pointer; color: var(--text-faint);
  font-size: 16px; line-height: 1; padding: 0 2px;
}
.td-file button:hover { color: var(--accent); }

.td-optin {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 22px; cursor: pointer;
  font-size: 13.5px; line-height: 1.5; color: var(--text-muted);
}
.td-optin input {
  width: 18px; height: 18px; margin: 1px 0 0; flex: 0 0 auto; cursor: pointer;
  accent-color: var(--accent);
}

.td-error {
  margin: 18px 0 0; padding: 11px 14px; border-radius: 9px;
  background: oklch(0.95 0.03 24); color: var(--status-danger);
  font-size: 13.5px; font-weight: 500;
}

.td-submit {
  width: 100%; margin-top: 22px; border: none; cursor: pointer;
  background: var(--accent); color: #fff; font-family: var(--font-sans);
  font-size: 15.5px; font-weight: 600; padding: 15px 20px; border-radius: 11px;
  transition: background 120ms;
}
.td-submit:hover { background: var(--accent-hover); }
.td-submit:disabled { opacity: 0.6; cursor: default; }
.td-submit .arrow { margin-left: 6px; display: inline-block; transition: transform 120ms; }
.td-submit:hover .arrow { transform: translateX(2px); }
.td-fine { text-align: center; font-size: 12.5px; color: var(--text-faint); margin-top: 14px; }

/* ===== Success ========================================================== */
.td-success {
  max-width: 560px; margin: 0 auto; text-align: center; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 44px 36px; box-shadow: var(--shadow-md);
}
.td-check {
  width: 52px; height: 52px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 26px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.td-success h3 { font-size: 24px; font-weight: 600; margin: 0 0 12px; letter-spacing: -0.02em; }
.td-success p { font-size: 15.5px; line-height: 1.6; color: var(--text-muted); margin: 0 auto 14px; max-width: 440px; }
.td-success p strong { color: var(--text); font-weight: 600; }
.td-success-sub { font-size: 14px !important; color: var(--text-faint) !important; }
.td-success .btn { margin-top: 10px; }

/* ===== Responsive ======================================================= */
@media (max-width: 720px) {
  .td-layer-grid { grid-template-columns: 1fr; }
  .td-steps { grid-template-columns: 1fr; gap: 26px; }
  .td-grid2 { grid-template-columns: 1fr; }
  .td-form { padding: 26px 20px 24px; border-radius: var(--radius-lg); }
  .lp { padding: 0 16px 64px; }
}
