/* Plotloft download + buy pages — reuses site.css tokens and its .price-card,
   .faq, .notify-form and .btn components; adds only what these pages need:
   the two-column layout, the download cards, the checkout button and its
   fallback, and the SmartScreen warning box.

   Serves /download/, /buy/ and /buy/thanks.html — one stylesheet for the
   three sales-and-download screens rather than copies drifting apart. */

.dl-hero { padding: 68px 0 8px; }
.dl-hero h1 { max-width: 15ch; }

/* ===== Pricing column + "what happens at launch" column ===== */
.dl-grid-section { padding-top: 34px; }
.dl-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 44px; align-items: start;
}
@media (max-width: 860px) {
  .dl-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* The shared .price-card centres itself with an auto margin; inside the grid
   it should fill its column instead. */
.dl-grid .price-card { margin: 0; max-width: none; }
.price-card .price-note .was { color: var(--ink-dim); }

/* ===== Checkout (the /buy/ card) ===== */
.price-card #buy-btn { width: 100%; cursor: pointer; border: 0; font: 600 16px var(--font-ui); }
.price-card #buy-btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.checkout-fallback {
  margin-top: 14px; font-size: 13px; line-height: 1.5;
  color: var(--ink-soft); text-align: left;
  background: var(--accent-soft); border-radius: 8px; padding: 12px 14px;
}
.checkout-fallback[hidden] { display: none; }
.checkout-fallback a { color: var(--accent); }

/* Sales aren't open yet, so the card sells a mailing list, not a licence.
   The pre-launch badge and muted price live in site.css (the landing page
   uses them too); what's local is the form fitting inside a card:
   .notify-form is a one-line flex row on the landing page, and in a card
   column it has to stack. */
.price-card .notify-form { flex-direction: column; margin-top: 28px; }
.price-card .notify-form .btn { margin-top: 0; }
.price-card .notify-done { margin-top: 28px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }

.next-steps { padding-top: 6px; }
.next-steps h2 { font-size: clamp(24px, 3vw, 30px); }
.steps { margin: 26px 0 0; padding-left: 0; list-style: none; counter-reset: step; }
.steps li {
  position: relative; padding-left: 46px; margin-bottom: 22px;
  color: var(--ink-soft); font-size: 15.5px; line-height: 1.6;
}
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -1px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font: 600 14px var(--font-ui);
  display: flex; align-items: center; justify-content: center;
}
.steps strong { color: var(--ink); }
.steps code, .key-note code {
  font-family: var(--font-mono); font-size: 12.5px;
  background: var(--accent-soft); padding: 1px 6px; border-radius: 5px;
  /* Break the long sender address only where it must — break-all chopped
     "keys@send.plotloft.com" mid-word and split "PLOTLOFT." across lines. */
  word-break: normal; overflow-wrap: anywhere;
}
.key-note {
  margin-top: 26px; padding: 18px 20px;
  background: var(--bg-raise); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: 10px;
  color: var(--ink-soft); font-size: 14.5px; line-height: 1.6;
}

/* ===== Download ===== */
.download-section {
  background: var(--accent-soft);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.dl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 36px; }
@media (max-width: 780px) { .dl-row { grid-template-columns: 1fr; } }
.dl-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--bg-raise); border: 1px solid var(--line);
  border-radius: 12px; padding: 24px 26px;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.dl-card:hover {
  border-color: var(--accent); transform: translateY(-2px);
  box-shadow: var(--card-shadow);
}
.dl-card.primary { border-color: var(--accent); box-shadow: var(--card-shadow); }
.dl-title {
  font-family: var(--font-display); font-size: 21px; font-weight: 550;
  color: var(--ink);
}
.dl-tag {
  font: 600 11px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
  padding: 3px 8px; border-radius: 999px; vertical-align: 3px; margin-left: 6px;
}
.dl-meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-dim); margin-top: 8px; }
.dl-sub { color: var(--ink-soft); font-size: 14.5px; margin-top: 12px; line-height: 1.55; }
.dl-sub code { font-family: var(--font-mono); font-size: 12.5px; }

.dl-facts {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin-top: 22px; font-size: 13.5px; color: var(--ink-dim);
}
.dl-facts strong { color: var(--ink-soft); }
.dl-facts a { color: var(--accent); }

.warn-box {
  margin-top: 34px; max-width: 760px;
  background: var(--bg-raise); border: 1px solid var(--line);
  border-left: 3px solid var(--ink-dim);
  border-radius: 10px; padding: 20px 24px;
}
.warn-title { font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.warn-box p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; margin: 0; }

/* ===== Thank-you page ===== */
.thanks-main { max-width: 640px; margin: 0 auto; padding: 90px 24px 110px; text-align: center; }
.thanks-main h1 {
  font-family: var(--font-display); font-weight: 550;
  font-size: clamp(32px, 5vw, 44px); line-height: 1.1; margin: 16px 0 0;
}
.thanks-main .lede { color: var(--ink-soft); font-size: 17px; margin-top: 18px; line-height: 1.6; }
.thanks-main .steps { text-align: left; margin-top: 40px; }
.thanks-main .key-note { text-align: left; }
