/* Homepage only; tokens, buttons and the estimate widget live in brand.css. */

/* ---------- Hero ---------- */
body.lp .hero { padding: 64px 0 88px; overflow: visible; background: none; }
body.lp .hero::before, body.lp .hero::after { display: none; }
body.lp .hero-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; align-items: start; }
.lp-h1 {
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.07;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 22px;
  max-width: 17ch;
  color: var(--lp-ink);
  text-wrap: balance;
}
.lp-lead { font-size: 19px; line-height: 1.55; color: var(--lp-ink-2); max-width: 34em; margin: 0 0 28px; }
.lp-lead a { color: var(--lp-blue); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

.lp-est {
  background: var(--lp-sheet);
  border: 1px solid var(--lp-rule);
  border-radius: 10px;
  padding: 20px 22px 22px;
  max-width: 540px;
}
.lp-est-h { font-size: 17px; font-weight: 600; margin: 0 0 14px; letter-spacing: 0; }
.lp-fine { font-size: 14px; line-height: 1.5; color: var(--lp-ink-2); max-width: 38em; margin: 14px 0 0; }

/* Upload card as the top sheet of a small stack of paper */
body.lp .upload-card {
  background: var(--lp-sheet);
  border: 1px solid var(--lp-rule);
  border-radius: 10px;
  box-shadow:
    6px 6px 0 -1px var(--lp-paper), 6px 6px 0 0 var(--lp-rule),
    12px 12px 0 -1px var(--lp-paper), 12px 12px 0 0 var(--lp-rule);
}
body.lp .upload-card .dot-live { display: none; }
body.lp .upload-eyebrow { font-size: 17px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--lp-ink); }
body.lp .upload-sub, body.lp .drop-hint, body.lp .drop-or, body.lp .detect-summary-line,
body.lp .upload-reassurance, body.lp .intake-alt-divider span, body.lp .file-queue-sub {
  font-family: inherit !important; letter-spacing: 0 !important; text-transform: none !important;
}
body.lp .upload-sub, body.lp .drop-hint { font-size: 14px; color: var(--lp-ink-2); }
body.lp .detect-summary-line { font-size: 14px; color: var(--lp-ink-2); }
body.lp .drop-zone { border-radius: 8px; border-color: #BFC4B8; background: var(--lp-paper); }
body.lp .intake-alt-divider span { font-size: 13px; color: var(--lp-ink-2); }

/* ---------- Sections ---------- */
.lp-section { padding: 88px 0; border-top: 1px solid var(--lp-rule); }
.lp-h2 {
  font-size: clamp(28px, 3.1vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin: 0 0 16px;
  max-width: 22ch;
  color: var(--lp-ink);
  text-wrap: balance;
}
.lp-h3 { font-size: 22px; line-height: 1.25; font-weight: 700; margin: 0 0 8px; }
.lp-section p { font-size: 17px; line-height: 1.6; color: var(--lp-ink-2); max-width: 36em; }

/* Steps: a real sequence, so the numerals are the design */
.lp-steps { list-style: none; counter-reset: lp-step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin: 40px 0 0; padding: 0; }
.lp-steps li { counter-increment: lp-step; border-top: 2px solid var(--lp-ink); padding-top: 18px; }
.lp-steps li::before {
  content: counter(lp-step);
  display: block;
  font-size: 64px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--lp-blue);
  margin-bottom: 18px;
}
.lp-steps h3 { font-size: 20px; font-weight: 700; margin: 0 0 8px; }
.lp-steps p { margin: 0; font-size: 16px; }

/* ---------- The letter ---------- */
.lp-letter-section { background: var(--lp-desk); border-top-color: transparent; }
.lp-letter-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 72px; align-items: center; }
.lp-calc { width: 100%; max-width: 460px; border-collapse: collapse; margin: 18px 0 8px; font-size: 16px; }
.lp-calc th { text-align: left; font-weight: 400; color: var(--lp-ink-2); padding: 11px 16px 11px 0; border-bottom: 1px solid #C9CDC3; }
.lp-calc td { text-align: right; white-space: nowrap; color: var(--lp-ink); padding: 11px 0; border-bottom: 1px solid #C9CDC3; }
.lp-calc .lp-calc-total th, .lp-calc .lp-calc-total td { font-weight: 700; color: var(--lp-ink); border-top: 2px solid var(--lp-ink); border-bottom: 0; }
.lp-calc .lp-calc-total td { color: var(--lp-green); }

.lp-letter { position: relative; margin: 0; padding: 58px 26px 0 0; }
.lp-envelope {
  position: absolute; top: 0; right: 0; width: 82%; height: 58%;
  background: #FBFBF8;
  border: 1px solid #CFD2C9;
  border-radius: 4px;
  transform: rotate(2.2deg);
  box-shadow: 0 10px 24px -14px rgba(27, 29, 33, .35);
}
.lp-envelope::before { /* address window */
  content: ""; position: absolute; left: 9%; top: 34%; width: 44%; height: 24%;
  border: 1px solid #D9DCD4; border-radius: 3px; background: #F4F5F1;
}
.lp-reg {
  position: absolute; top: 12px; right: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1.5px solid var(--lp-ink); border-radius: 3px;
  padding: 3px 8px 3px 7px;
  transform: rotate(-3deg);
}
.lp-reg b { font-size: 22px; line-height: 1; font-weight: 800; color: var(--lp-ink); }
.lp-reg-bars {
  display: block; width: 64px; height: 20px;
  background: repeating-linear-gradient(90deg,
    var(--lp-ink) 0 2px, transparent 2px 4px, var(--lp-ink) 4px 5px, transparent 5px 8px,
    var(--lp-ink) 8px 11px, transparent 11px 12px);
}
.lp-sheet {
  position: relative; z-index: 1;
  width: 88%;
  background: var(--lp-sheet);
  padding: 34px 38px 38px;
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-size: 14.5px; line-height: 1.55; color: #23262B;
  transform: rotate(-1deg);
  box-shadow: 0 1px 2px rgba(27, 29, 33, .06), 0 18px 40px -18px rgba(27, 29, 33, .32);
}
.lp-sheet p { margin: 0 0 11px; max-width: none; font-size: inherit; line-height: inherit; color: inherit; }
.lp-sheet-sender { font-size: 10.5px !important; color: #555A62 !important; text-decoration: underline; text-underline-offset: 2px; margin-bottom: 6px !important; }
.lp-sheet-to { margin: 0 0 26px 50% !important; }
.lp-sheet-date { margin-bottom: 14px !important; }
.lp-sheet-subject { font-weight: 600; margin-bottom: 16px !important; }
.lp-sheet-sign { display: flex; gap: 36px; margin-top: 34px !important; }
.lp-sheet-sign span { border-top: 1px solid #8A8E95; padding-top: 4px; font-size: 12px; min-width: 110px; }

/* ---------- Price ---------- */
.lp-price { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.lp-price-num { font-size: clamp(56px, 7vw, 88px) !important; line-height: 1 !important; font-weight: 700; letter-spacing: -0.035em; color: var(--lp-ink) !important; margin: 10px 0 16px; }
.lp-price-num span { font-size: 18px; font-weight: 500; letter-spacing: 0; color: var(--lp-ink-2); }
.lp-price-main .btn { margin-top: 8px; }
.lp-price-list { background: var(--lp-sheet); border: 1px solid var(--lp-rule); border-radius: 10px; padding: 26px 28px 14px; }
.lp-price-list h3 { font-size: 17px; font-weight: 600; margin: 0 0 6px; }
.lp-price-list ul { list-style: none; margin: 0; padding: 0; }
.lp-price-list li { padding: 13px 0; border-bottom: 1px solid var(--lp-rule); font-size: 16px; color: var(--lp-ink); }
.lp-price-list li:last-child { border-bottom: 0; }

/* ---------- Two-column fact lists ---------- */
.lp-two { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: start; }
.lp-facts { margin: 6px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 30px 40px; }
.lp-facts dt { font-weight: 700; font-size: 17px; margin-bottom: 4px; color: var(--lp-ink); }
.lp-facts dd { margin: 0; font-size: 16px; line-height: 1.55; color: var(--lp-ink-2); }

/* ---------- FAQ (markup and script unchanged) ---------- */
body.lp .faq-list { margin-top: 28px; border-top: 1px solid var(--lp-rule); max-width: 820px; }
body.lp .faq-a-inner { padding-left: 0 !important; padding-right: 40px; }
body.lp .faq-item { border-bottom: 1px solid var(--lp-rule); background: none; border-radius: 0; }
body.lp .faq-q { font-size: 18px; font-weight: 600; padding: 20px 0; color: var(--lp-ink); }
body.lp .faq-q-icon { color: var(--lp-blue); }
body.lp .faq-a-inner { font-size: 16.5px; line-height: 1.6; color: var(--lp-ink-2); }

/* ---------- Closing + login ---------- */
.lp-close { background: var(--lp-sheet); }
.lp-close .btn { margin-top: 10px; }
.lp-login { padding: 56px 0 72px; }
.lp-login p { margin-top: 0; }
body.lp .login-card { display: flex; gap: 10px; margin-top: 16px; padding: 0; border: 0; background: none; box-shadow: none; }
body.lp .login-card input { flex: 1; min-width: 0; min-height: 48px; padding: 10px 14px; font-size: 16px; border: 1px solid #C9CDC3; border-radius: 8px; background: #fff; }
.lp-login-msg { margin-top: 12px; font-size: 15px; color: var(--lp-ink-2); }

/* ---------- Phones ---------- */
@media (max-width: 980px) {
  body.lp .hero-inner, .lp-letter-grid, .lp-price, .lp-two { grid-template-columns: 1fr; gap: 40px; }
  .lp-letter { max-width: 560px; }
}
@media (max-width: 760px) {
  body.lp .hero { padding: 28px 0 56px; }
  .lp-h1 { font-size: 33px; max-width: none; }
  .lp-lead { font-size: 17px; margin-bottom: 22px; }
  .lp-est { padding: 16px; }
  .lp-section { padding: 60px 0; }
  .lp-steps { grid-template-columns: 1fr; gap: 28px; margin-top: 28px; }
  .lp-steps li::before { font-size: 48px; margin-bottom: 12px; }
  .lp-facts { grid-template-columns: 1fr; gap: 22px; }
  .lp-letter { padding: 44px 10px 0 0; }
  .lp-sheet { width: 96%; padding: 22px 20px 26px; font-size: 13px; }
  .lp-sheet-to { margin-left: 38% !important; }
  .lp-reg b { font-size: 18px; }
  .lp-reg-bars { width: 48px; height: 16px; }
  body.lp .login-card { flex-direction: column; }
}
