/* Thank-you screen: "morning" after the night-time landing page. */
.thanks-header { background: var(--c-parchment); }
.wordmark-light { color: var(--c-amber-deep); } /* gold fails on parchment; amber-deep is 8.2:1 */

.thanks { padding-block: clamp(24px, 5vw, 64px) var(--section); }
.thanks-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "intro intro" "reserve reserve" "share quiz";
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
}
.thanks-intro { grid-area: intro; max-width: 44em; padding-bottom: clamp(8px, 2vw, 24px); }
.thanks-intro .display { margin-bottom: 18px; }
.share { grid-area: share; }
.quiz { grid-area: quiz; }

/* Founding reservation: step 2 after the email. Existing tokens only (contrast in DESIGN.md). */
.reserve {
  grid-area: reserve;
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  grid-template-areas: "art body"; /* offer is first in the DOM; picture sits left on wide screens */
  gap: clamp(24px, 4vw, 56px); align-items: center;
}
.reserve[hidden] { display: none; }
.reserve-body { grid-area: body; }
.reserve-art {
  grid-area: art;
  position: relative; min-height: 340px; align-self: stretch;
  border-radius: var(--radius); overflow: hidden; background: var(--c-parchment);
}
.reserve-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.reserve-body .h3 { margin-bottom: 12px; }
.reserve-body > p:first-of-type { margin-bottom: 20px; }
.reserve-facts { margin: 0 0 28px; border-top: 1px solid rgba(30, 24, 19, 0.25); }
.reserve-facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(30, 24, 19, 0.25); }
.reserve-facts dt { font-size: 1rem; color: var(--c-muted); } /* 5.35:1 on sand */
.reserve-facts dd { margin: 0; font-weight: 600; text-align: end; }
.reserve-facts .was { margin-inline-start: 6px; font-weight: 400; color: var(--c-muted); } /* 5.35:1 on sand */
.reserve-note { margin-top: 12px; font-size: 1rem; color: var(--c-muted); }
a.btn:not([href]) { cursor: default; } /* preview: link has no destination yet */
a.btn-dark:not([href]):hover { background: var(--c-espresso); }

/* Referral reward line inside the share card */
.reward {
  background: var(--c-parchment); /* ink 15.6:1 */
  border-inline-start: 3px solid var(--c-amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 12px 16px;
}
.reward[hidden] { display: none; }

.position {
  font-family: var(--f-display); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem);
  line-height: 1.2; color: var(--c-amber-deep); margin-bottom: 14px;
}
.preview-note {
  margin-top: 18px; font-size: 1rem; color: var(--c-ink);
  border-inline-start: 3px solid var(--c-amber); padding: 6px 0 6px 14px;
}

.card { background: var(--c-sand); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); }
.h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.6rem, 1.3rem + 0.8vw, 2rem); line-height: 1.15; margin-bottom: 10px; }
.card > p { margin-bottom: 24px; }

.btn-outline {
  background: transparent; color: var(--c-ink);
  box-shadow: inset 0 0 0 2px var(--c-ink);
}
.btn-outline:hover { background: rgba(30, 24, 19, 0.08); }
.btn-outline:active { background: rgba(30, 24, 19, 0.16); }

.share-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.copy-row { margin-top: 28px; }
.copy-label { display: block; font-size: 1rem; font-weight: 500; margin-bottom: 8px; }
.copy-field { display: flex; gap: 10px; }
.copy-field input {
  flex: 1 1 auto; min-width: 0; min-height: var(--control); padding: 0 14px;
  font: 400 1rem/1.2 var(--f-body); color: var(--c-ink);
  background: var(--c-parchment); border: 2px solid rgba(30, 24, 19, 0.65); border-radius: var(--radius);
}
.status { min-height: 1.6em; margin-top: 10px; font-size: 1rem; font-weight: 500; }

.quiz fieldset { border: 0; padding: 0; margin: 0 0 24px; }
.quiz legend { font-weight: 600; font-size: 1.1rem; margin-bottom: 10px; padding: 0; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choices label { position: relative; display: block; cursor: pointer; }
.choices input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choices span {
  display: flex; flex-direction: column; justify-content: center;
  min-height: var(--control); padding: 8px 14px; border-radius: var(--radius);
  background: var(--c-parchment); border: 2px solid rgba(30, 24, 19, 0.65); /* boundary 4.1:1 on sand, 5.2:1 on parchment */
  font-size: 1rem; line-height: 1.3;
  transition: background-color var(--t-std) var(--ease), border-color var(--t-std) var(--ease), color var(--t-std) var(--ease);
}
.choices small { font-size: 0.875rem; color: var(--c-muted); }
.choices label:hover span { border-color: var(--c-ink); }
.choices input:checked + span { background: var(--c-espresso); border-color: var(--c-espresso); color: var(--c-parchment); }
.choices input:checked + span small { color: var(--c-night-muted); }
.choices input:checked + span { padding-inline-end: 36px; }
.choices input:checked + span::after { /* non-colour cue */
  content: "\2713"; position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%);
  font-weight: 700; font-size: 1.05rem;
}
.choices input:focus-visible + span { outline: 2px solid var(--focus-light); outline-offset: 3px; }

@media (max-width: 900px) {
  .thanks-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "reserve" "share" "quiz"; }
  .reserve { grid-template-columns: minmax(0, 1fr); grid-template-areas: "body" "art"; } /* heading and button first on phones */
  .reserve-art { min-height: 240px; }
}
@media (max-width: 560px) {
  .reserve .btn { width: 100%; }
  .reserve-art { min-height: 200px; }
  .share-actions .btn { width: 100%; }
  .copy-field { flex-direction: column; }
  .choices { grid-template-columns: minmax(0, 1fr); }
}
@media (forced-colors: active) {
  .choices input:checked + span { border: 3px solid Highlight; }
}
