/* The /offer/ steps and their thanks page (templates/offer.html, offer-thanks.html). Phone first; on a PC a step with
   programs shows the big covers on the left and the pitch and buttons on the right. */
.offer { max-width: 1040px; padding-top: 34px; }
.offer-wait { text-align: center; color: var(--muted); }
.offer-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 26px 20px; max-width: 760px; margin: 0 auto; }
.offer-kicker { color: var(--gold-ink); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.82rem; margin: 0 0 8px; }
.offer-head { font-size: 1.7rem; line-height: 1.2; margin: 0 0 18px; }
.offer-pitch { font-size: 1.08rem; line-height: 1.6; margin: 0 0 16px; }
.offer-inside { margin: 0 0 18px; padding: 0; list-style: none; }
.offer-inside li { position: relative; padding: 0 0 10px 30px; line-height: 1.5; }
.offer-inside li::before { content: "✓"; position: absolute; left: 4px; top: 0; color: var(--angel); font-weight: 700; }
.offer-price { background: #fbf6ea; border: 1px solid var(--gold); border-radius: 12px; padding: 10px 14px; margin: 0 0 18px; font-weight: 600; }
.offer-yes { display: block; width: 100%; font-size: 1.12rem; padding: 18px 20px; text-align: center; }
.offer-no { display: block; width: 100%; margin: 14px 0 0; background: none; border: none; color: var(--muted); text-decoration: underline; font-size: 0.98rem; cursor: pointer; padding: 8px; }
.offer-no:hover { color: var(--ink); }

.offer-covers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 18px; }
.offer-cover { margin: 0; }
.offer-cover img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; box-shadow: var(--shadow); }
.offer-cover figcaption { padding: 10px 2px 0; }
.offer-cover strong { display: block; line-height: 1.3; }
.offer-cover small { display: block; color: var(--muted); margin-top: 4px; }
.offer-cover ol { margin: 8px 0 0; padding-left: 20px; color: var(--muted); font-size: 0.9rem; line-height: 1.45; }

.offer-order { max-width: 760px; margin: 26px auto 0; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.offer-order h2 { font-size: 1.1rem; margin: 0 0 10px; }
.offer-order .cart-lines { list-style: none; margin: 0; padding: 0; }
.offer-order .cart-line { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.offer-total { display: flex; justify-content: space-between; font-size: 1.1rem; margin: 12px 0 0; }
.offer-alone { display: flex; justify-content: space-between; color: var(--muted); margin: 12px 0 0; }
.offer-go { display: block; width: 100%; margin: 18px 0 0; text-align: center; }
.offer-go:disabled { opacity: 0.7; cursor: wait; }
.offer-secure { color: var(--muted); font-size: 0.88rem; text-align: center; margin: 10px 0 0; }
.offer-msg { max-width: 760px; margin: 22px auto 0; text-align: center; }

.offer-parts { list-style: none; margin: 18px 0 0; padding: 0; }
.offer-parts li { border-top: 1px solid var(--line); padding: 18px 0; }
.offer-parts p { margin: 0 0 12px; line-height: 1.55; }

@media (min-width: 900px) {
  .offer-card { padding: 40px 44px; }
  .offer-head { font-size: 2.2rem; }
  .offer-card:has(.offer-covers:not(.hidden)) {
    max-width: 1040px; display: grid; grid-template-columns: 1.15fr 1fr; column-gap: 40px;
    grid-template-areas: "kicker kicker" "head head" "covers pitch" "covers inside" "covers price" "covers yes" "covers no" "covers rest";
    grid-template-rows: auto auto auto auto auto auto auto 1fr;
  }
  .offer-card:has(.offer-covers:not(.hidden)) .offer-kicker { grid-area: kicker; }
  .offer-card:has(.offer-covers:not(.hidden)) .offer-head { grid-area: head; }
  .offer-card:has(.offer-covers:not(.hidden)) .offer-covers { grid-area: covers; margin: 0; align-self: start; }
  .offer-card:has(.offer-covers:not(.hidden)) .offer-pitch { grid-area: pitch; }
  .offer-card:has(.offer-covers:not(.hidden)) .offer-inside { grid-area: inside; }
  .offer-card:has(.offer-covers:not(.hidden)) .offer-price { grid-area: price; }
  .offer-card:has(.offer-covers:not(.hidden)) .offer-yes { grid-area: yes; align-self: start; }
  .offer-card:has(.offer-covers:not(.hidden)) .offer-no { grid-area: no; align-self: start; }
}

/* A link without a result: a real page with both tests as cards and the store under them. */
.offer-empty { max-width: 760px; margin: 0 auto; text-align: center; }
.offer-empty h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 0 12px; }
.offer-empty-lede { color: var(--muted); font-size: 1.05rem; line-height: 1.6; margin: 0 auto 26px; max-width: 34em; }
.offer-empty-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; text-align: left; }
.offer-way { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 16px; background: var(--card);
  border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .2s, border-color .2s; }
.offer-way:hover, .offer-way:focus-visible { transform: translateY(-3px); border-color: var(--accent); }
.offer-way strong { font-family: "Fraunces", Georgia, serif; font-size: 1.2rem; }
.offer-way span:not(.btn) { color: var(--muted); line-height: 1.5; flex: 1; }
.offer-way .btn { align-self: stretch; text-align: center; margin-top: 6px; }
.offer-empty-store { margin: 26px 0 0; }
