/* Plans, Your plan and Cancel (Keep fires alive, part L3).
   Colours, type and buttons come from emma-journey.css (Paper by day, Dusk at night).
   No card is highlighted, nothing is struck through, and nothing moves on a timer. */
.ej-signin { margin-left: auto; }
.pl-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* One column of text, never wider than about 34em, with a gutter that never eats a phone. */
.pl-head, .pl-sec, .pl-page { width: min(100%, 44rem); margin-inline: auto; padding-inline: min(var(--gutter), 6.25vw); }
.pl-head { padding-block: var(--s10) var(--s8); text-align: center; }
.pl-head h1, .pl-page h1 { font-size: clamp(2.25rem, 6vw, 3.25rem); line-height: 1.08; margin: 0 0 var(--s4); }
.pl-lede { font-size: 1.25rem; line-height: 1.45; color: var(--muted); max-width: 34ch; margin: 0 auto; text-align: center; text-wrap: balance; }
.pl-notice:empty { display: none; }
.pl-notice { margin: var(--s5) auto 0; max-width: 34ch; text-align: left; font-weight: 600; }
.pl-notice p { margin: 0 0 var(--s2); }

/* The four cards, in the copy's order. Same size, same border: none is recommended. */
.pl-cards { width: min(100%, 76rem); margin: 0 auto; padding: 0 min(var(--gutter), 6.25vw) var(--section-space);
  display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); align-items: stretch; }
.pl-card { display: flex; flex-direction: column; min-width: 0; padding: var(--s6) var(--s5); background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-card); }
.pl-card h2 { font-size: 1.75rem; line-height: 1.2; margin: 0 0 var(--s3); }
/* The price and the words next to each button share one size, so the renewal terms are never small print. */
.pl-price, .pl-consent { font-size: 1.125rem; line-height: 1.45; }
.pl-price { font-weight: 600; margin: 0; color: var(--ink); }
.pl-price-note { margin: var(--s1) 0 0; color: var(--muted); font-size: 1rem; }
.pl-list { margin: var(--s5) 0 0; padding-left: 1.3em; color: var(--muted); }
.pl-list li { margin: 0 0 var(--s2); padding-left: 2px; }
.pl-list li::marker { color: var(--amber); }
.pl-list .pl-small { font-size: 0.9375rem; }
.pl-act { margin-top: auto; padding-top: var(--s5); display: grid; gap: var(--s3); }
.pl-act > p, .pl-act > div > p { margin: 0; }
.pl-act [data-show="buy"], .pl-act [data-show="have"], .pl-act [data-show="terms"] { display: grid; gap: var(--s5); }
.pl-act [data-show][hidden] { display: none; }
.pl-choice { display: grid; gap: var(--s2); }
.pl-choice p { margin: 0; }
.pl-consent { color: var(--ink); margin: 0; }
.pl-wide { width: 100%; text-align: center; }
.ej-btn { cursor: pointer; font-family: var(--sans); border: 0; }
.ej-btn.ej-btn-ghost { border: 1.5px solid var(--line-strong); }
.ej-btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.pl-live { margin: 0; font-weight: 600; }
.pl-live:empty { display: none; }

.pl-sec { padding-block: 0 var(--section-space); }
.pl-sec h2, .pl-page h2 { font-size: clamp(1.625rem, 3.5vw, 2rem); line-height: 1.15; margin: 0 0 var(--s5); }
.pl-sec > p, .pl-box p, .pl-page p { color: var(--muted); margin: 0 0 var(--s3); max-width: 34em; }
.pl-under { text-align: left; }
.pl-under p { color: var(--ink); }
.pl-box { padding: var(--s6) var(--s5); border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--bg2); }
.pl-box h2 { font-size: clamp(1.375rem, 3vw, 1.75rem); }
.pl-sec .ej-qs { margin-top: 0; }
.pl-sec details p { max-width: 34em; }

/* Your plan and Cancel: one quiet column. */
.pl-page { padding-block: var(--s10) var(--section-space); }
.pl-page h1 { text-align: left; }
.pl-block { margin: 0 0 var(--s10); }
.pl-block[hidden] { display: none; }
.pl-page .pl-big { font: 400 1.5rem/1.3 var(--serif); color: var(--ink); margin: 0 0 var(--s3); }
.pl-help { font-size: 1rem; }
.pl-link { color: var(--amber); font-weight: 600; text-underline-offset: 0.2em; display: inline-flex; align-items: center; min-height: 44px; }
/* Cancel plan and Keep my plan: plain words, the same size as the buttons, no colour. Never a "save" offer. */
.pl-plain { color: var(--ink); font-weight: 600; font-size: 1rem; text-underline-offset: 0.2em; display: inline-flex; align-items: center; min-height: 44px; }
.pl-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s6); }
.pl-fires { margin: 0 0 var(--s3); padding-left: 1.3em; color: var(--ink); }
.pl-fires li { margin: 0 0 var(--s2); }
.pl-how { color: var(--muted); }
.pl-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 600; letter-spacing: 0.04em; overflow-wrap: anywhere; }
.pl-chooser { margin: var(--s4) 0; padding: var(--s4); border: 1px solid var(--line); border-radius: var(--s4); min-width: 0; }
.pl-chooser legend { font-weight: 600; padding: 0 var(--s2); }
.pl-option { display: flex; align-items: center; gap: var(--s3); min-height: 44px; overflow-wrap: anywhere; }
.pl-option input { width: 1.25rem; height: 1.25rem; accent-color: var(--amber); flex: 0 0 auto; }
.pl-confirm { margin: var(--s4) 0; padding: var(--s5); border: 1px solid var(--line-strong); border-radius: var(--s4); background: var(--card); }
.pl-field { display: grid; gap: var(--s2); max-width: 24rem; }
.pl-field label { font-weight: 600; color: var(--ink); }
.pl-field input { min-height: 48px; padding: 0 var(--s4); border-radius: var(--s4); border: 1.5px solid var(--line-strong);
  background: var(--card); color: var(--ink); font: 1.125rem/1.4 var(--sans); letter-spacing: 0.04em; width: 100%; }
.pl-foot-line { color: var(--ink) !important; }
.pl-cancel-row { margin-top: var(--s6) !important; }
#pl-cancel-done:focus { outline: none; }
@media (prefers-contrast: more) { .pl-card, .pl-box, .pl-chooser { border-color: var(--line-strong); } }

/* A fire for someone we lost: its own quiet block on Your plan, and its own page. No price, no plan word, no colour that sells. */
.pl-memorial { margin-top: var(--s14); padding-top: var(--s6); border-top: 1px solid var(--line); }
.pl-lead { font-size: 1.125rem; color: var(--ink) !important; margin: 0 0 var(--s8) !important; }
.mm-list { list-style: none; margin: 0 0 var(--s4); padding: 0; }
.mm-list li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); padding: var(--s3) 0; border-bottom: 1px solid var(--line); min-width: 0; }
.mm-list bdi { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; min-width: 0; flex: 1 1 12rem; }
.mm-mark { display: inline-flex; align-items: center; gap: var(--s2); color: var(--muted); }
.mm-mark svg { flex: 0 0 auto; }
.mm-fire { font-weight: 600; color: var(--ink) !important; overflow-wrap: anywhere; }
.mm-quiet { background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--sans); text-decoration: underline; }
#mm-confirm:focus, #mm-undo-confirm:focus { outline: 2px solid var(--line-strong); outline-offset: 4px; }

/* Polish (2026-11-10): side by side, the cards share their rows, so every name, price, list and
   button starts on the same line whatever is above it (the Free and Keep buttons line up). */
@supports (grid-template-rows: subgrid) {
  .pl-card { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  .pl-card > h2 { grid-row: 1; } .pl-card > .pl-price { grid-row: 2; } .pl-card > .pl-price-note { grid-row: 3; }
  .pl-card > .pl-list { grid-row: 4; } .pl-card > .pl-act { grid-row: 5; margin-top: 0; align-self: start; }
}
