/* ============================================================
   CREAM CASE PREP: the look of the Preparation tab and the warm
   introduction offer on the case page, from v5-preparation-locked.png,
   v5-preparation-open.png and v3-partner-intro.png, held to DESIGN.md.
   Linked after cream-case.css, whose buttons, rungs, notices and
   example line it reuses. Tokens only, from cream-tokens.css.

   WHERE IT PARTS FROM THE MOCK, and why: corners are 6px or less and
   nothing is a pill (the house shape rule); the preparation is ringed
   the same on all four sides, never edged down one side; every
   uppercase label is 11px or more; the offer is a ruled section inside
   the step, never a card inside a card, and its two buttons are drawn
   alike.

   PRINT. Nothing here prints: the page prints only the sheet, and these
   rules hide the tab's view and the offer again, in case a page ever
   prints more. No dashes.
   ============================================================ */

/* ---- the third tab ---- */
.switch .ptab .tl { display: inline-flex; margin-left: 4px; vertical-align: -1px; opacity: 0.8; }

/* ---- the tab's view ---- */
.pwrap { max-width: 880px; margin: 0 auto; padding: 28px 32px 64px; }
.pwrap > .notice, .pwrap > .demoline { margin: 0 0 14px; }
.pwrap.is-locked > .notice, .pwrap.is-locked > .demoline { max-width: 560px; margin-left: auto; margin-right: auto; text-align: center; }
.pkick { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin: 0; }
.plock { flex: none; }

/* locked */
.lockcard { max-width: 560px; margin: 40px auto 0; text-align: center; background: var(--ground-raise); border: 1px solid var(--rule-card); border-radius: 6px; padding: 40px 40px 32px; animation: prise 240ms ease-out; }
@keyframes prise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.lkring { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid rgba(198, 161, 91, 0.55); border-radius: 50%; color: var(--gold); margin: 0 auto 16px; }
.lockcard .pkick { margin-top: 2px; }
.lockcard h2 { font-family: var(--serif); font-weight: 600; font-size: 28px; line-height: 1.25; margin: 10px 0 10px; }
.lockcard h2 em { font-style: italic; color: var(--gold); }
.lk1 { font-size: 15px; line-height: 1.6; color: var(--ink-soft); max-width: 42ch; margin: 0 auto 22px; }
.lockcard .btn.solid { padding: 11px 22px; }
.inside { list-style: none; margin: 26px auto 0; padding: 0; max-width: 380px; text-align: left; border-top: 1px solid var(--rule); }
.inside li { position: relative; padding: 10px 0 10px 22px; font-size: 13.5px; color: var(--ink-faint); border-bottom: 1px solid var(--rule); line-height: 1.45; }
.inside li::before { content: ""; position: absolute; left: 1px; top: 15px; width: 9px; height: 7px; border: 1px solid var(--ink-faint); border-radius: 1px; opacity: 0.8; }

/* open */
.prepnote { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-faint); margin: 0 0 16px; }
.prepnote .plock { color: var(--gold); }
.prepdoc { border: 1px dashed var(--rule-strong); border-radius: 6px; padding: 44px 56px 40px; animation: prise 240ms ease-out; }
.pkrow { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.jfy { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-faint); }
.jfy .plock { color: var(--gold); }
.ppart { margin-top: 30px; }
.pkrow + .ppart { margin-top: 22px; }
.plabel { display: flex; align-items: baseline; gap: 10px; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-faint); font-weight: 500; margin: 0; padding-bottom: 8px; border-bottom: 1px solid var(--rule-strong); }
.edithint2 { margin-left: auto; font-size: 12.5px; letter-spacing: 0; text-transform: none; color: var(--gold); }
.lead3 { list-style: none; counter-reset: l; margin: 0; padding: 0; }
.lead3 li { counter-increment: l; position: relative; padding: 14px 0 14px 34px; border-bottom: 1px solid var(--rule); font-family: var(--serif); font-size: 17px; line-height: 1.5; color: var(--ink-soft); }
.lead3 li:last-child { border-bottom: 0; }
.lead3 li::before { content: counter(l); position: absolute; left: 0; top: 13px; font-family: var(--serif); font-size: 20px; line-height: 1.2; color: var(--gold); }
.lead3 li b { color: var(--ink); font-weight: 600; }
.qa { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.qa:last-child { border-bottom: 0; }
.qa .q { font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.45; color: var(--ink); margin: 0; }
.qa .ans { font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); margin: 8px 0 0; }
.qa .ans .rung { margin-right: 8px; position: relative; top: -1px; }
.qa .ans .rw { color: var(--ink-faint); }
.qa .ans b { color: var(--ink); font-weight: 500; }
.reuse { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.rline { font-family: var(--serif); font-size: 17.5px; line-height: 1.5; color: var(--ink); margin: 0; padding: 12px 15px; border: 1px dashed var(--rule-strong); border-radius: 4px; background: var(--ground-sink); outline: none; transition: border-color 160ms ease-out; }
.rline:hover { border-color: rgba(198, 161, 91, 0.45); }
.rline:focus { border-style: solid; border-color: var(--gold); }
.rline:empty::before { content: attr(data-empty); color: var(--ink-faint); font-style: italic; }
.pwait { font-family: var(--serif); font-style: italic; font-size: 16px; line-height: 1.5; color: var(--ink-soft); margin: 22px 0 14px; }

/* ---- the warm introduction offer, a ruled section in the step ---- */
.ioffer { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--rule-strong); }
.ioffer .iq { font-family: var(--serif); font-size: 19px; line-height: 1.4; color: var(--ink); margin: 0; }
.ioffer .inote { font-size: 13px; line-height: 1.55; color: var(--ink-faint); margin: 8px 0 0; max-width: 62ch; }
.ibtns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.btn.ieq { border-color: var(--rule-strong); color: var(--ink); font-size: 13.5px; padding: 9px 18px; min-width: 150px; justify-content: center; }
.btn.ieq:hover { border-color: var(--gold); }
.btn.ieq:disabled { opacity: 0.55; cursor: default; }
.btn.ieq:focus-visible, .ptab:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.idraft { margin: 14px 0 0; padding: 16px 18px; background: var(--ground-sink); border: 1px solid var(--rule); border-radius: 4px; }
.idraft p { font-family: var(--serif); font-size: 15.5px; line-height: 1.55; color: var(--ink); margin: 0 0 10px; }
.idraft p:last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) { .lockcard, .prepdoc { animation: none; } .rline { transition: none; } }

@media (max-width: 640px) {
  /* Three tabs and the mark must fit a phone's bar beside the brand. */
  .switch:has(.ptab) { flex: none; }
  .switch:has(.ptab) button { padding: 6px 8px; font-size: 11.5px; }
  .switch:has(.ptab) button > span:first-child { margin-right: 4px; }
  .switch .ptab .tl { margin-left: 2px; }
  .pwrap { padding: 18px 16px 40px; }
  .lockcard { margin-top: 16px; padding: 30px 20px 24px; }
  .lockcard h2 { font-size: 23px; }
  .prepdoc { padding: 24px 18px 22px; }
  .jfy { margin-left: 0; }
  .lead3 li { font-size: 16px; padding-left: 28px; }
  .qa .q { font-size: 16px; }
  .rline { font-size: 16px; }
  .btn.ieq { flex: 1; min-width: 0; }
}

@media (max-width: 370px) {
  .switch:has(.ptab) button > span:first-child { display: none; }
}

@media print {
  .pwrap, .ioffer { display: none !important; }
}
