/* design system: plans (merged into css/ui-kit.css before release)
   The pricing page (#plans) and the personal area (#me): sign-in and registration, the subscription panel, profile,
   account settings and the comfort preferences. Loaded right after css/ui-kit.css, so a rule here with the same
   specificity as one in css/style.css wins. Colour, background, border and shadow rules sit inside
   :where(html:not(.a11y-contrast)) so the high-contrast mode keeps its own strong colours; layout rules apply always.
   Icons are line icons drawn with CSS masks, so they take the text colour and work in the dark theme. */

.plans, section.me {
  --pi-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --pi-free: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21v-8.5'/%3E%3Cpath d='M12 12.5c0-4.6 3-7.5 8-7.5 0 4.6-3 7.5-8 7.5z'/%3E%3Cpath d='M12 15c0-3.6-2.5-6-6.5-6 0 3.6 2.5 6 6.5 6z'/%3E%3C/svg%3E");
  --pi-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5 3.5 8 12 12.5 20.5 8z'/%3E%3Cpath d='M3.5 12 12 16.5 20.5 12'/%3E%3Cpath d='M3.5 16 12 20.5 20.5 16'/%3E%3C/svg%3E");
  --pi-pro: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5 8 12.5l4-7 4 7 4.5-4-1.8 10H5.3z'/%3E%3Cpath d='M5.5 21h13'/%3E%3C/svg%3E");
  --pi-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.5' y='10.5' width='15' height='10' rx='2.5'/%3E%3Cpath d='M8 10.5V7.5a4 4 0 0 1 8 0v3M12 14.5v2.5'/%3E%3C/svg%3E");
  --pi-card: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='5' width='19' height='14' rx='2.5'/%3E%3Cpath d='M2.5 10h19M6.5 15h4'/%3E%3C/svg%3E");
  --pi-undo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5A8 8 0 1 0 6.3 6.8'/%3E%3Cpath d='M5.5 3.5v4h4'/%3E%3Cpath d='M9 12.5l2 2 4-4.5'/%3E%3C/svg%3E");
  --pi-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 5 6v5.5c0 4.3 2.9 8 7 9.5 4.1-1.5 7-5.2 7-9.5V6z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
  --pi-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --pi-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5h.01'/%3E%3C/svg%3E");
  --pi-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5l2.6 5.3 5.9.9-4.3 4.1 1 5.8L12 16.9l-5.2 2.7 1-5.8-4.3-4.1 5.9-.9z'/%3E%3C/svg%3E");
  --pi-book: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 6.5C10.5 5.2 8.3 4.5 4 4.5v13c4.3 0 6.5.7 8 2 1.5-1.3 3.7-2 8-2v-13c-4.3 0-6.5.7-8 2zM12 6.5v13'/%3E%3C/svg%3E");
  --pi-flame: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21c-3.9 0-6.5-2.6-6.5-6.2 0-3.3 2.2-5.3 3.6-7.6.4 1.6 1.4 2.7 2.6 3.2C11.4 7 12.6 4.6 15 3c-.3 2.6.6 4.4 1.9 6.1 1.1 1.5 1.6 3 1.6 4.9 0 3.6-2.6 7-6.5 7z'/%3E%3C/svg%3E");
  --pi-gem: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 4h11L21 9l-9 11L3 9z'/%3E%3Cpath d='M3 9h18M9.5 4 8 9l4 11 4-11-1.5-5'/%3E%3C/svg%3E");
  --pi-user: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4.5 20.5a7.5 7.5 0 0 1 15 0'/%3E%3C/svg%3E");
  --pi-calx: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2.5'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4M10 13.5l4 4M14 13.5l-4 4'/%3E%3C/svg%3E");
  --pi-eyeoff: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.9 5.7A9.7 9.7 0 0 1 12 5.5c6 0 9.5 6.5 9.5 6.5a16 16 0 0 1-2.6 3.4M6.3 7.4C3.9 9.1 2.5 12 2.5 12s3.5 6.5 9.5 6.5c1.9 0 3.5-.6 4.9-1.5'/%3E%3Cpath d='M9.9 10a3 3 0 0 0 4.2 4.2M3.5 3.5l17 17'/%3E%3C/svg%3E");
  --pi-inf: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 12c-2-2.5-3.5-3.8-5.3-3.8a3.8 3.8 0 0 0 0 7.6c1.8 0 3.3-1.3 5.3-3.8zm0 0c2 2.5 3.5 3.8 5.3 3.8a3.8 3.8 0 0 0 0-7.6c-1.8 0-3.3 1.3-5.3 3.8z'/%3E%3C/svg%3E");
  --pi-pause: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M10 9v6M14 9v6'/%3E%3C/svg%3E");
  --pi-web: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M3.5 12h17M12 3.5c2.4 2.3 3.6 5.2 3.6 8.5s-1.2 6.2-3.6 8.5c-2.4-2.3-3.6-5.2-3.6-8.5S9.6 5.8 12 3.5z'/%3E%3C/svg%3E");
  --pi-gift: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='8.5' width='17' height='4' rx='1'/%3E%3Cpath d='M5 12.5v7.5h14v-7.5M12 8.5V20M12 8.5c-1.5-3.5-5.5-4-5.5-1.5 0 1.5 2.5 1.5 5.5 1.5zM12 8.5c1.5-3.5 5.5-4 5.5-1.5 0 1.5-2.5 1.5-5.5 1.5z'/%3E%3C/svg%3E");
  --pi-receipt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3.5h12v17l-2.5-1.5-2 1.5-1.5-1.5-1.5 1.5-2-1.5L6 20.5z'/%3E%3Cpath d='M9 8h6M9 11.5h6M9 15h3.5'/%3E%3C/svg%3E");
  --pi-sliders: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h9M17 7h3M4 17h3M11 17h9'/%3E%3Ccircle cx='15' cy='7' r='2'/%3E%3Ccircle cx='9' cy='17' r='2'/%3E%3C/svg%3E");
  --pi-voice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9.5v5M8 6.5v11M12 4v16M16 7.5v9M20 10.5v3'/%3E%3C/svg%3E");
  --pi-heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7.5-4.6-7.5-10.2A4.3 4.3 0 0 1 12 7.2a4.3 4.3 0 0 1 7.5 2.6C19.5 15.4 12 20 12 20z'/%3E%3C/svg%3E");
  --pi-seal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.5 4.5 5.5v5.8c0 4.6 3.1 8.5 7.5 10.2 4.4-1.7 7.5-5.6 7.5-10.2V5.5z'/%3E%3Cpath d='M12 15.5s-3.3-2-3.3-4.5a1.9 1.9 0 0 1 3.3-1.2 1.9 1.9 0 0 1 3.3 1.2c0 2.5-3.3 4.5-3.3 4.5z'/%3E%3C/svg%3E");
}

/* =====================================================================
   1. Pricing page (#plans): header
   ===================================================================== */
.plans { container: plans / inline-size; gap: var(--sp-3); padding-top: var(--sp-4); padding-bottom: var(--sp-8); }
.plans > .mascot-img.small { width: 88px; height: 88px; margin: 0 auto var(--sp-2); }
.plans > h1 { margin: 0; font-size: var(--fs-display); line-height: 1.1; letter-spacing: -.025em; }
.plans > .lead { max-width: 52ch; margin: 0 auto; font-size: var(--fs-lg); line-height: 1.6; text-wrap: balance; }
:where(html:not(.a11y-contrast)) .plans > .lead { color: var(--muted); }
.plans > .promo { display: inline-flex; align-items: center; gap: var(--sp-2); margin: var(--sp-1) auto 0; padding: .55em 1.1em; border-radius: var(--r-pill); font-weight: 600; font-size: var(--fs-sm); }
:where(html:not(.a11y-contrast)) .plans > .promo { color: var(--ok-text, var(--ok)); background: var(--ok-soft); border: 1px solid color-mix(in srgb, var(--ok) 28%, transparent); }
.plans-sub { margin: var(--sp-1) 0 0; }

/* =====================================================================
   2. Pricing page: the three tiers
   Phones and narrow screens: one column. Wide screens: three equal cards whose rows line up (subgrid), so the prices,
   the feature lists and the buttons sit at the same height in every card.
   ===================================================================== */
.plans .plan-grid.three { width: 100%; max-width: 560px; margin: var(--sp-8) auto 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); align-items: stretch; }
.plans .plan { display: flex; flex-direction: column; align-items: stretch; gap: 0; text-align: start; padding: var(--sp-6); border-radius: var(--r-lg); }
:where(html:not(.a11y-contrast)) .plans .plan { background: var(--surface); border: 1px solid var(--hairline); box-shadow: var(--e2); }
.plans .plan:hover { transform: none; } /* the cards are not links: no lift */
:where(html:not(.a11y-contrast)) .plans .plan:not(.featured):hover { box-shadow: var(--e2); }

/* tier name with its icon */
.plans .plan > h2 { position: relative; display: flex; align-items: center; gap: var(--sp-3); margin: 0; min-height: 40px;
  font: 600 1.15rem/1.25 var(--font-ui); letter-spacing: -.005em; text-transform: none; }
:where(html:not(.a11y-contrast)) .plans .plan > h2 { color: var(--ink); }
.plans .plan > h2::before { content: ""; flex: none; width: 40px; height: 40px; border-radius: 12px; }
.plans .plan > h2::after { content: ""; position: absolute; inset-inline-start: 10px; top: 50%; width: 20px; height: 20px; margin-top: -10px;
  background: var(--t, var(--accent)); -webkit-mask: var(--ti) center / contain no-repeat; mask: var(--ti) center / contain no-repeat; }
:where(html:not(.a11y-contrast)) .plans .plan > h2::before { background: color-mix(in srgb, var(--t, var(--accent)) 13%, var(--surface)); }
.plans .plan.tier-free { --t: var(--ok); --ti: var(--pi-free); }
.plans .plan.tier-plus { --t: var(--accent); --ti: var(--pi-plus); }
.plans .plan.tier-pro { --t: var(--gold); --ti: var(--pi-pro); }
.plans .plan-tag { margin: var(--sp-2) 0 0; font-size: var(--fs-sm); line-height: 1.5; }
:where(html:not(.a11y-contrast)) .plans .plan-tag { color: var(--muted); }

/* price: the number in the display face, the period small next to it */
.plans .plan .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: var(--sp-5) 0 0; padding: 0; border: 0; }
.plans .plan .price .num { font: 700 3rem/1 var(--font-target); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
:where(html:not(.a11y-contrast)) .plans .plan .price .num { color: var(--ink); }
.plans .plan .price .muted { font-size: var(--fs-sm); font-weight: 500; }
.plans .price-year { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: var(--sp-2) 0 0; font-size: var(--fs-sm); line-height: 1.4; }
:where(html:not(.a11y-contrast)) .plans .price-year { color: var(--muted); }
.plans .price-year b { font: 700 1em var(--font-target); }
:where(html:not(.a11y-contrast)) .plans .price-year b { color: var(--ink); }
.plans .price-year .pill { padding: .2em .65em; font-size: var(--fs-xs); font-weight: 700; }
:where(html:not(.a11y-contrast)) .plans .price-year .pill { color: var(--ok-text, var(--ok)); background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }

/* free practice has no hearts, no energy and no daily cap (nothing in the code counts lessons): said under the $0 */
.plans .plan-note { display: flex; align-items: flex-start; gap: var(--sp-2); margin: var(--sp-3) 0 0; font-size: var(--fs-sm); font-weight: 600; line-height: 1.45; }
:where(html:not(.a11y-contrast)) .plans .plan-note { color: var(--ok-text, var(--ok)); }
.plans .plan-note::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: -.5px; background: currentColor;
  -webkit-mask: var(--pi-inf) center / contain no-repeat; mask: var(--pi-inf) center / contain no-repeat; }

/* feature checklist */
.plans .plan-feats { list-style: none; flex: 1 0 auto; display: grid; align-content: start; gap: var(--sp-3); margin: var(--sp-5) 0 0; padding: var(--sp-5) 0 0; }
:where(html:not(.a11y-contrast)) .plans .plan-feats { border-top: 1px solid var(--hairline); }
.plans .plan-feats > li { position: relative; padding-inline-start: 32px; font-size: .95rem; line-height: 1.5; }
:where(html:not(.a11y-contrast)) .plans .plan-feats > li { color: var(--ink-2); }
.plans .plan-feats > li::before { content: ""; position: absolute; inset-inline-start: 0; top: .14em; width: 22px; height: 22px; border-radius: 50%; }
:where(html:not(.a11y-contrast)) .plans .plan-feats > li::before { background: var(--ok-soft); }
:where(html:not(.a11y-contrast)) .plans .plan-feats > li::after { content: ""; position: absolute; inset-inline-start: 6px; top: calc(.14em + 6px); width: 10px; height: 10px;
  background: var(--ok); -webkit-mask: var(--pi-check) center / contain no-repeat; mask: var(--pi-check) center / contain no-repeat; }

/* buttons and "your plan" */
.plans .plan-cta, .plans .plan > .pill { margin-top: var(--sp-6); }
.plans .plan-cta { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: stretch; gap: var(--sp-2); align-items: stretch; }
.plans .plan-cta .btn { flex: none; width: 100%; min-height: 48px; padding-block: .7em; }
.plans :is(.plan-cta, .plan) > .pill { display: flex; align-items: center; justify-content: center; gap: var(--sp-2); min-height: 48px; padding: .6em 1em;
  border-radius: 14px; font-size: .92rem; font-weight: 600; line-height: 1.3; text-align: center; }
:where(html:not(.a11y-contrast)) .plans :is(.plan-cta, .plan) > .pill.ok { color: var(--ok-text, var(--ok)); background: var(--ok-soft); border: 1px solid color-mix(in srgb, var(--ok) 26%, transparent); box-shadow: none; }
:where(html:not(.a11y-contrast)) .plans :is(.plan-cta, .plan) > .pill.ok::before { content: ""; flex: none; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: var(--pi-check) center / contain no-repeat; mask: var(--pi-check) center / contain no-repeat; }
.plans .plan-cta .app-buy-note { margin: 0; text-align: center; }
/* renewal terms right under the pay button, before anyone pays */
.plans .plan-terms { margin: var(--sp-1) 0 0; font-size: var(--fs-xs); line-height: 1.5; text-align: start; text-wrap: pretty; }
:where(html:not(.a11y-contrast)) .plans .plan-terms { color: var(--muted); }

/* the trust line at the foot of each card: three short facts with small icons */
.plans .plan-trust { list-style: none; flex: none; display: grid; gap: 6px; margin: var(--sp-4) 0 0; padding: var(--sp-4) 0 0; }
:where(html:not(.a11y-contrast)) .plans .plan-trust { border-top: 1px dashed var(--hairline-strong); }
.plans .plan-trust > li { position: relative; padding-inline-start: 24px; font-size: var(--fs-xs); font-weight: 500; line-height: 1.45; }
:where(html:not(.a11y-contrast)) .plans .plan-trust > li { color: var(--ink-2); }
.plans .plan-trust > li::before { content: ""; position: absolute; inset-inline-start: 0; top: .05em; width: 16px; height: 16px; border-radius: 0; background: currentColor;
  -webkit-mask: var(--pi) center / contain no-repeat; mask: var(--pi) center / contain no-repeat; }
:where(html:not(.a11y-contrast)) .plans .plan-trust > li::before { background: var(--ok); }
.plans .plan-trust .pt-cancel { --pi: var(--pi-calx); }
.plans .plan-trust .pt-refund { --pi: var(--pi-undo); }
.plans .plan-trust .pt-noads { --pi: var(--pi-eyeoff); }
.plans .plan-trust .pt-pause { --pi: var(--pi-pause); }
.plans .plan-trust .pt-card { --pi: var(--pi-card); }
.plans .plan-trust .pt-web { --pi: var(--pi-web); }
.plans .plan-trust .pt-free { --pi: var(--pi-gift); }
/* store rules: the phone app does not talk about web payments (like .pay-safe in css/native.css) */
html.in-app .plans .plan :is(.plan-terms, .plan-trust, .plan-promise) { display: none; }
html.in-app .plans .plan-lifetime { display: none; }
/* Plus for life: a one-time PayPal payment, set apart under the subscription buttons */
/* Lifetime cards above the subscriptions (the first one featured, dark like .featured); side by side on wide screens */
.plans .lt-grid { width: 100%; max-width: 560px; margin: var(--sp-12) auto 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-8) var(--sp-5); align-items: stretch; }
.plans .plan-lt { position: relative; }
@container plans (min-width: 880px) { .plans .lt-grid.two { max-width: 900px; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plans .plan-lifetime { display: grid; gap: var(--sp-1); margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px dashed var(--hairline); }

/* wide screens: three cards side by side, rows aligned across the cards */
@container plans (min-width: 880px) {
  .plans .plan-grid.three { max-width: 1080px; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--sp-5); row-gap: 0; margin-top: var(--sp-12); }
  .plans .plan { padding: var(--sp-8) var(--sp-6) var(--sp-6); }
  @supports (grid-template-rows: subgrid) {
    .plans .plan { display: grid; grid-row: span 7; grid-template-rows: subgrid; row-gap: 0; }
    .plans .plan > h2 { grid-row: 1; }
    .plans .plan > .plan-tag { grid-row: 2; }
    .plans .plan > .price { grid-row: 3; }
    .plans .plan > :is(.price-year, .plan-note) { grid-row: 4; }
    .plans .plan > .plan-feats { grid-row: 5; }
    .plans .plan > :is(.plan-cta, .pill) { grid-row: 6; align-self: start; } /* the buttons line up; the terms under them may differ in length */
    .plans .plan > .plan-trust { grid-row: 7; }
  }
}

/* the featured tier: a deep indigo card with a light edge and the gold ribbon */
.plans .plan.featured { --fx-ink: #fff; --fx-ink-2: rgb(232 235 255 / .78); --fx-line: rgb(255 255 255 / .13); --t: var(--gold); }
:where(html:not(.a11y-contrast)) .plans .plan.featured {
  color: var(--fx-ink); border: 1px solid transparent;
  /* the dark base stays dark in both themes, so white text always reads; the glow and the edge follow the brand colours */
  background:
    radial-gradient(130% 75% at 100% 0%, color-mix(in srgb, var(--accent-2) 42%, transparent), transparent 62%) padding-box,
    radial-gradient(90% 60% at 0% 100%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%) padding-box,
    linear-gradient(170deg, #1f2667, #11163d 72%) padding-box,
    linear-gradient(160deg, color-mix(in srgb, var(--accent-2) 70%, #fff), var(--accent) 42%, rgb(255 255 255 / .06) 85%) border-box;
  box-shadow: 0 1px 2px rgb(10 12 40 / .2), 0 30px 60px -26px color-mix(in srgb, var(--accent) 70%, transparent), inset 0 1px 0 rgb(255 255 255 / .12);
}
:where(html:not(.a11y-contrast)) .plans .plan.featured > h2 { color: var(--fx-ink); }
:where(html:not(.a11y-contrast)) .plans .plan.featured > h2::before { background: rgb(255 255 255 / .1); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); }
:where(html:not(.a11y-contrast)) .plans .plan.featured :is(.plan-tag, .muted) { color: var(--fx-ink-2); }
:where(html:not(.a11y-contrast)) .plans .plan.featured .price .num { color: var(--fx-ink); }
:where(html:not(.a11y-contrast)) .plans .plan.featured .plan-feats { border-top-color: var(--fx-line); }
:where(html:not(.a11y-contrast)) .plans .plan.featured .plan-feats > li { color: var(--fx-ink-2); }
.plans .plan.featured .plan-feats > li:first-child { font-weight: 600; }
:where(html:not(.a11y-contrast)) .plans .plan.featured .plan-feats > li:first-child { color: var(--fx-ink); }
:where(html:not(.a11y-contrast)) .plans .plan.featured .plan-feats > li::before { background: rgb(255 255 255 / .1); }
:where(html:not(.a11y-contrast)) .plans .plan.featured .plan-feats > li::after { background: color-mix(in srgb, var(--accent-2) 45%, #fff); }
:where(html:not(.a11y-contrast)) .plans .plan.featured .plan-terms { color: var(--fx-ink-2); }
:where(html:not(.a11y-contrast)) .plans .plan.featured .plan-trust { border-top-color: rgb(255 255 255 / .2); }
:where(html:not(.a11y-contrast)) .plans .plan.featured .plan-trust > li { color: var(--fx-ink-2); }
:where(html:not(.a11y-contrast)) .plans .plan.featured .plan-trust > li::before { background: color-mix(in srgb, var(--ok) 55%, #fff); }
:where(html:not(.a11y-contrast)) .plans .plan.featured .btn.ghost { color: #fff; background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .22); box-shadow: none; }
:where(html:not(.a11y-contrast)) .plans .plan.featured .btn.ghost:focus-visible { box-shadow: 0 0 0 3px rgb(255 255 255 / .55); }
:where(html:not(.a11y-contrast)) .plans .plan.featured .btn.ghost:hover:not(:disabled) { background: rgb(255 255 255 / .14); }
:where(html:not(.a11y-contrast)) .plans .plan.featured :is(.plan-cta, .plan) > .pill.ok { color: color-mix(in srgb, var(--ok) 45%, #fff); background: color-mix(in srgb, var(--ok) 18%, transparent); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.plans .plan-ribbon { position: absolute; z-index: 1; top: 0; inset-inline: 0; width: max-content; max-width: calc(100% - 32px); margin-inline: auto; transform: translateY(-50%);
  padding: 7px 14px; border-radius: var(--r-pill); font: 700 .78rem/1 var(--font-ui); letter-spacing: .02em; white-space: nowrap; }
:where(html:not(.a11y-contrast)) .plans .plan-ribbon { color: #2b1a00; background: linear-gradient(135deg, #ffd978, var(--gold) 55%, #ec9a30);
  box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--gold) 85%, transparent), inset 0 1px 0 rgb(255 255 255 / .5); }
/* high contrast (css/a11y.css) paints every .muted and .small text in the dark ink; the featured card stays dark there */
html.a11y-contrast .plans .plan.featured :is(.muted, .small) { color: #fff !important; }
/* the featured card stands a little taller than its neighbours without moving its rows out of line */
@container plans (min-width: 880px) {
  .plans .plan-grid.three .plan.featured { transform: none; margin-block: -14px; padding-block: calc(var(--sp-8) + 14px) calc(var(--sp-6) + 14px); }
  .plans .plan-grid.three .plan.featured:hover { transform: none; }
}

/* =====================================================================
   3. Pricing page: secure payment (a row of three) and questions
   ===================================================================== */
.plans .pay-safe { display: grid; gap: var(--sp-5); width: 100%; max-width: 1080px; margin: var(--sp-12) auto 0; padding: var(--sp-6); border-radius: var(--r-lg); text-align: start; align-items: start; }
:where(html:not(.a11y-contrast)) .plans .pay-safe { background: color-mix(in srgb, var(--surface) 72%, transparent); border: 1px solid var(--hairline); box-shadow: none; }
.plans .pay-safe > h2 { display: flex; align-items: center; gap: var(--sp-2); margin: 0; font-size: var(--fs-h3); font-weight: 600; }
.plans .pay-safe > h2::before { content: ""; flex: none; width: 22px; height: 22px; background: var(--ok); -webkit-mask: var(--pi-shield) center / contain no-repeat; mask: var(--pi-shield) center / contain no-repeat; }
.plans .ps-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); color: inherit; }
.plans .ps-items li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-3) var(--sp-4); align-items: start; align-content: start; }
.plans .ps-ico { position: relative; display: block; width: 44px; height: 44px; border-radius: 12px; }
:where(html:not(.a11y-contrast)) .plans .ps-ico { background: var(--ok-soft); }
.plans .ps-ico::before { content: ""; position: absolute; inset: 11px; background: var(--ok); -webkit-mask: var(--pi) center / contain no-repeat; mask: var(--pi) center / contain no-repeat; }
.plans .ps-lock { --pi: var(--pi-lock); }
.plans .ps-card { --pi: var(--pi-card); }
.plans .ps-undo { --pi: var(--pi-undo); }
.plans .ps-items strong { display: block; font-size: 1rem; font-weight: 600; line-height: 1.35; }
:where(html:not(.a11y-contrast)) .plans .ps-items strong { color: var(--ink); }
.plans .ps-items p { margin: var(--sp-1) 0 0; font-size: var(--fs-sm); line-height: 1.6; }
:where(html:not(.a11y-contrast)) .plans .ps-items p { color: var(--muted); }
.plans .ps-links { display: flex; flex-wrap: wrap; gap: 0 var(--sp-5); margin: 0 0 calc(var(--sp-2) * -1); padding-top: var(--sp-2); }
:where(html:not(.a11y-contrast)) .plans .ps-links { border-top: 1px solid var(--hairline); color: var(--muted); }
.plans .ps-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }
.plans-faq .faq-intro a, .faq-list details > p > a { display: inline-flex; align-items: center; min-height: 44px; vertical-align: middle; }
@container plans (min-width: 760px) {
  .plans .pay-safe { padding: var(--sp-8); gap: var(--sp-6); }
  .plans .ps-items { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-8); }
  .plans .ps-items li { grid-template-columns: minmax(0, 1fr); }
}

/* questions before paying: a quiet accordion */
.plans-faq { display: grid; gap: var(--sp-5); width: 100%; max-width: 1080px; margin: var(--sp-12) auto 0; text-align: start; align-items: start; }
.plans-faq .faq-intro h2 { margin: 0 0 var(--sp-2); font-size: var(--fs-h2); }
.plans-faq .faq-intro p { margin: 0; line-height: 1.6; }
.plans-faq .faq-intro a { font-weight: 600; }
.faq-list { display: grid; }
:where(html:not(.a11y-contrast)) .faq-list { border-top: 1px solid var(--hairline-strong); }
:where(html:not(.a11y-contrast)) .faq-list details { border-bottom: 1px solid var(--hairline-strong); }
.faq-list summary { display: flex; align-items: center; gap: var(--sp-4); min-height: 56px; padding: var(--sp-3) var(--sp-1); cursor: pointer; list-style: none; font-weight: 600; font-size: 1rem; line-height: 1.4; }
:where(html:not(.a11y-contrast)) .faq-list summary { color: var(--ink); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 20px; height: 20px; margin-inline-start: auto; background: var(--muted);
  -webkit-mask: var(--pi-chev) center / contain no-repeat; mask: var(--pi-chev) center / contain no-repeat; transition: transform var(--dur-2) var(--ease); }
.faq-list details[open] > summary::after { transform: rotate(180deg); }
.faq-list summary:hover::after { background: var(--ink); }
.faq-list summary:focus-visible { outline-offset: 0; border-radius: 8px; }
.faq-list details > p { margin: 0; padding: 0 var(--sp-1) var(--sp-5); padding-inline-end: var(--sp-10); line-height: 1.65; max-width: 68ch; }
:where(html:not(.a11y-contrast)) .faq-list details > p { color: var(--ink-2); }
@container plans (min-width: 880px) {
  .plans-faq { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--sp-12); }
}
/* store rules: no talk of web payments inside the phone app (like .pay-safe in css/native.css) */
html.in-app .plans-faq { display: none; }

/* =====================================================================
   4. Personal area (#me): page and header card
   ===================================================================== */
section.me { container: me / inline-size; max-width: 880px; margin-inline: auto; gap: var(--sp-5); padding-bottom: var(--sp-8); }
/* signed in: the header and the key numbers come first (the numbers hold no links, so the reading order stays sound) */
.me:has(> #subscription) > .me-head { order: -2; }
.me:has(> #subscription) > .stat-grid { order: -1; }
.me > .me-head { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--sp-3) var(--sp-5);
  padding: var(--sp-6); border-radius: var(--r-xl); overflow: hidden; isolation: isolate; }
:where(html:not(.a11y-contrast)) .me > .me-head {
  background: radial-gradient(600px 240px at 0% 0%, color-mix(in srgb, var(--accent) 11%, transparent), transparent 70%),
    radial-gradient(500px 220px at 100% 100%, color-mix(in srgb, var(--accent-2) 8%, transparent), transparent 70%), var(--surface);
  border: 1px solid var(--hairline); box-shadow: var(--e2);
}
:where(html:not(.a11y-contrast)) .me > .me-head::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--grad); z-index: -1; }
.me-head .me-id { gap: 2px; }
.me-head .me-id .eyebrow { margin: 0; }
.me-head .me-id h1 { margin: 0; font-size: var(--fs-h1); }
.me-head .me-id > p.muted { margin: var(--sp-1) 0 0; max-width: 52ch; line-height: 1.55; }
.me-head .lg-line { margin-top: var(--sp-1); font-size: var(--fs-sm); }
.me-head .admin-tag { margin-top: var(--sp-1); }
.me-head > .btn { align-self: start; }
.me-head .avatar.big { width: 76px; height: 76px; font-size: 1.9rem; }
/* a guest has no letter yet: a person icon instead */
.me:has(> .auth-wrap) .me-head .avatar.big { font-size: 0; }
.me:has(> .auth-wrap) .me-head .avatar.big::before { content: ""; width: 36px; height: 36px; background: currentColor; -webkit-mask: var(--pi-user) center / contain no-repeat; mask: var(--pi-user) center / contain no-repeat; }
:where(html:not(.a11y-contrast)) .me:has(> .auth-wrap) .me-head .avatar.big { color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--accent-line); }

/* key numbers */
.me > .stat-grid.four { gap: var(--sp-3); }
.me > .stat-grid > div { position: relative; display: grid; gap: 2px; padding: var(--sp-4); padding-inline-start: calc(var(--sp-4) + 44px); border-radius: var(--r); min-width: 0; }
:where(html:not(.a11y-contrast)) .me > .stat-grid > div { background: var(--surface); border: 1px solid var(--hairline); box-shadow: var(--e1); }
.me > .stat-grid dt { font-size: var(--fs-xs); font-weight: 500; line-height: 1.3; }
:where(html:not(.a11y-contrast)) .me > .stat-grid dt { color: var(--muted); }
.me > .stat-grid dd { margin: 0; font: 700 1.5rem/1.15 var(--font-target); letter-spacing: -.01em; }
.me > .stat-grid > div::before { content: ""; position: absolute; inset-inline-start: var(--sp-4); top: 50%; width: 34px; height: 34px; margin-top: -17px; border-radius: 10px; }
.me > .stat-grid > div::after { content: ""; position: absolute; inset-inline-start: calc(var(--sp-4) + 8px); top: 50%; width: 18px; height: 18px; margin-top: -9px;
  background: var(--t); -webkit-mask: var(--ti) center / contain no-repeat; mask: var(--ti) center / contain no-repeat; }
:where(html:not(.a11y-contrast)) .me > .stat-grid > div::before { background: color-mix(in srgb, var(--t) 13%, var(--surface)); }
.me > .stat-grid > div:nth-child(1) { --t: var(--accent); --ti: var(--pi-star); }
.me > .stat-grid > div:nth-child(2) { --t: #1f9d5c; --ti: var(--pi-book); }
.me > .stat-grid > div:nth-child(3) { --t: #e8692b; --ti: var(--pi-flame); }
.me > .stat-grid > div:nth-child(4) { --t: #7b5cf0; --ti: var(--pi-gem); }

/* every section of the personal area is the same card */
.me > .panel { padding: var(--sp-6); gap: var(--sp-3); border-radius: var(--r-lg); }
:where(html:not(.a11y-contrast)) .me > .panel { box-shadow: var(--e1); }
.me > .panel > h2 { margin: 0; font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; }
.me > .panel > h2 + p.muted { margin: calc(var(--sp-1) * -1) 0 var(--sp-1); line-height: 1.55; }
.me > .panel h3 { margin: var(--sp-2) 0 0; font-size: 1rem; font-weight: 600; }
.me > p:last-child { margin: 0; }

/* =====================================================================
   5. Personal area: sign in and registration (guest)
   ===================================================================== */
.me > .auth-wrap { display: grid; grid-template-columns: minmax(0, 1fr); max-width: none; padding: 0; overflow: hidden; border-radius: var(--r-xl); }
:where(html:not(.a11y-contrast)) .me > .auth-wrap { box-shadow: var(--e3); }
.me .auth { display: grid; gap: 6px; padding: var(--sp-6); align-content: start; }
.me .auth > h2 { margin: 0; font-size: var(--fs-h2); font-weight: 700; }
.me .auth > h2 + p { margin: 0 0 var(--sp-2); font-size: var(--fs-sm); line-height: 1.55; }
.me .auth > label:not(.legal-consent) { margin-top: var(--sp-2); font-size: var(--fs-sm); font-weight: 500; }
.me .auth input:not([type="checkbox"]):not([type="radio"]) { width: 100%; min-width: 0; min-height: 46px; padding: 0 14px; font: 400 1rem/1.3 var(--font-ui); }
.me .auth > .muted.small { margin-top: -2px; font-size: var(--fs-xs); }
.me .auth label.legal-consent { margin-top: var(--sp-3); gap: var(--sp-3); font-size: var(--fs-sm); line-height: 1.55; }
.me .auth .legal-consent input { width: 24px; height: 24px; min-height: 0; margin-top: 0; } /* 24 px: the smallest tap target allowed (WCAG 2.5.8) */
/* the terms and privacy links inside the consent sentence: a taller hit area; padding on an inline link moves no text */
.me .auth .legal-consent a { padding-block: 5px; }
.me .auth .age-step { display: grid; gap: 2px; margin: 6px 0 0; padding: 0; border: 0; min-width: 0; }
.me .auth .age-step legend { padding: 0; margin-bottom: 4px; font-weight: 500; font-size: .9rem; }
.me .auth .age-step #age-parent { display: grid; gap: 2px; }
.me .auth .age-step #age-parent[hidden] { display: none; }
.me .auth button[type="submit"] { width: 100%; min-height: 50px; margin-top: var(--sp-4); font-size: 1rem; }
.me .auth .linkish { justify-self: center; min-height: 44px; padding: 0 var(--sp-3); font-size: .95rem; font-weight: 600; }
.me .auth .linkish:hover { text-decoration: underline; text-underline-offset: 3px; }

/* the side of the card: Polly and what a free account gives */
.auth-side { display: grid; align-content: center; justify-items: start; gap: var(--sp-4); padding: var(--sp-6); }
:where(html:not(.a11y-contrast)) .auth-side {
  background: radial-gradient(420px 260px at 100% 0%, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 70%),
    linear-gradient(160deg, var(--accent-soft), color-mix(in srgb, var(--accent-soft) 40%, var(--surface)));
  border-top: 1px solid var(--hairline);
}
/* Polly's photo has a white backdrop: in the light theme it melts into the panel (multiply); in the dark theme it
   sits in a round white frame like the other mascot photos */
.auth-side img { width: 100%; max-width: 220px; height: auto; aspect-ratio: 1; object-fit: cover; margin: calc(var(--sp-4) * -1) 0 calc(var(--sp-2) * -1); }
:where(html:not(.a11y-contrast)) .auth-side img { mix-blend-mode: multiply; }
:root[data-theme="dark"] .auth-side img { max-width: 140px; margin: 0; border-radius: 50%; background: #fff; mix-blend-mode: normal; filter: brightness(.92); box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--accent-line); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .auth-side img { max-width: 140px; margin: 0; border-radius: 50%; background: #fff; mix-blend-mode: normal; filter: brightness(.92); box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--accent-line); }
}
.auth-side h3 { margin: 0; font-size: var(--fs-h3); font-weight: 600; line-height: 1.35; }
.auth-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.auth-side li { position: relative; padding-inline-start: 32px; line-height: 1.5; }
:where(html:not(.a11y-contrast)) .auth-side li { color: var(--ink-2); }
.auth-side li::before { content: ""; position: absolute; inset-inline-start: 0; top: .1em; width: 22px; height: 22px; border-radius: 50%; }
:where(html:not(.a11y-contrast)) .auth-side li::before { background: var(--surface); box-shadow: inset 0 0 0 1px var(--accent-line); }
.auth-side li::after { content: ""; position: absolute; inset-inline-start: 6px; top: calc(.1em + 6px); width: 10px; height: 10px; background: var(--accent);
  -webkit-mask: var(--pi-check) center / contain no-repeat; mask: var(--pi-check) center / contain no-repeat; }
@container me (min-width: 700px) {
  .me > .auth-wrap { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .me .auth { padding: var(--sp-8); }
  .auth-side { padding: var(--sp-8); }
  :where(html:not(.a11y-contrast)) .auth-side { border-top: 0; border-inline-start: 1px solid var(--hairline); }
}

/* errors and confirmations under the forms */
.me .auth-error:not(:empty), .me #redeem-msg.bad-text:not(:empty) { display: flex; gap: var(--sp-2); align-items: flex-start; margin: var(--sp-2) 0 0; padding: 10px 12px;
  border-radius: 10px; font-size: var(--fs-sm); font-weight: 500; line-height: 1.45; }
:where(html:not(.a11y-contrast)) .me .auth-error:not(:empty), :where(html:not(.a11y-contrast)) .me #redeem-msg.bad-text:not(:empty) {
  color: var(--bad); background: var(--bad-soft); border: 1px solid color-mix(in srgb, var(--bad) 25%, transparent); }
.me .auth-error:not(:empty)::before, .me #redeem-msg.bad-text:not(:empty)::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; background: currentColor;
  -webkit-mask: var(--pi-alert) center / contain no-repeat; mask: var(--pi-alert) center / contain no-repeat; }
.me #redeem-msg.ok-text:not(:empty) { display: flex; gap: var(--sp-2); align-items: center; margin: var(--sp-1) 0 0; padding: 10px 12px; border-radius: 10px; font-size: var(--fs-sm); }
:where(html:not(.a11y-contrast)) .me #redeem-msg.ok-text:not(:empty) { color: var(--ok-text, var(--ok)); background: var(--ok-soft); border: 1px solid color-mix(in srgb, var(--ok) 25%, transparent); }
.me #redeem-msg.ok-text:not(:empty)::before { content: ""; flex: none; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--pi-check) center / contain no-repeat; mask: var(--pi-check) center / contain no-repeat; }
:where(html:not(.a11y-contrast)) .me :is(.auth, .acct-form, .profile-form) input:user-invalid { border-color: color-mix(in srgb, var(--bad) 60%, var(--hairline-strong)); }

/* =====================================================================
   6. Personal area: the subscription panel
   ===================================================================== */
.me .sub-panel { gap: var(--sp-4); }
.me .sub-card { display: grid; gap: var(--sp-5); padding: var(--sp-5); border-radius: var(--r-lg); }
:where(html:not(.a11y-contrast)) .me .sub-card { background: linear-gradient(150deg, var(--accent-soft), var(--surface) 65%); border: 1px solid var(--accent-line); box-shadow: none; }
:where(html:not(.a11y-contrast)) .me .sub-panel:is(.tier-pro, .tier-full) .sub-card { background: linear-gradient(150deg, var(--gold-soft), var(--surface) 65%); border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
:where(html:not(.a11y-contrast)) .me .sub-panel.tier-free .sub-card { background: var(--surface-2); border-color: var(--hairline); }
.me .sub-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--sp-2) var(--sp-4); }
.me .sub-head > div { min-width: 0; }
.me .sub-head .eyebrow { margin: 0; }
.me .sub-name { display: block; font: 700 1.5rem/1.2 var(--font-ui); letter-spacing: -.01em; }
.me .sub-icon { width: 52px; height: 52px; border-radius: 16px; }
:where(html:not(.a11y-contrast)) .me .sub-icon { color: #fff; background: var(--grad); box-shadow: inset 0 1px 0 rgb(255 255 255 / .25), 0 8px 18px -10px color-mix(in srgb, var(--accent) 80%, transparent); }
:where(html:not(.a11y-contrast)) .me .sub-panel:is(.tier-pro, .tier-full) .sub-icon { color: #3a2600; background: linear-gradient(135deg, #ffd978, var(--gold) 55%, #e39328); box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), 0 8px 18px -10px color-mix(in srgb, var(--gold) 90%, transparent); }
:where(html:not(.a11y-contrast)) .me .sub-panel.tier-free .sub-icon { color: var(--muted); background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline-strong); }
.me .sub-state { display: inline-flex; align-items: center; gap: 6px; padding: .35em .8em; font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; }
.me .sub-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
:where(html:not(.a11y-contrast)) .me .sub-state.ok { color: var(--ok-text, var(--ok)); background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 26%, transparent); }
:where(html:not(.a11y-contrast)) .me .sub-state.warn { color: var(--warn); background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
:where(html:not(.a11y-contrast)) .me .sub-state.muted { color: var(--muted); background: var(--surface); border-color: var(--hairline-strong); }
.me .sub-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: var(--sp-3); margin: 0; }
.me .sub-rows > div { padding: var(--sp-3) var(--sp-4); border-radius: var(--r-sm); }
:where(html:not(.a11y-contrast)) .me .sub-rows > div { background: var(--surface); border: 1px solid var(--hairline); }
.me .sub-rows dt { font-size: var(--fs-xs); font-weight: 500; }
:where(html:not(.a11y-contrast)) .me .sub-rows dt { color: var(--muted); }
.me .sub-rows dd { margin: 2px 0 0; font-weight: 600; line-height: 1.4; }
.me .sub-feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: var(--sp-2) var(--sp-5); margin: 0; padding: 0; list-style: none; }
.me .sub-feats li { position: relative; display: block; padding-inline-start: 30px; line-height: 1.5; font-size: .95rem; }
.me .sub-feats li::before { content: ""; position: absolute; inset-inline-start: 0; top: .12em; width: 20px; height: 20px; border-radius: 50%; }
:where(html:not(.a11y-contrast)) .me .sub-feats li { color: var(--ink-2); }
:where(html:not(.a11y-contrast)) .me .sub-feats li::before { background: var(--ok-soft); }
.me .sub-feats li::after { content: ""; position: absolute; inset-inline-start: 5px; top: calc(.12em + 5px); width: 10px; height: 10px; background: currentColor;
  -webkit-mask: var(--pi-check) center / contain no-repeat; mask: var(--pi-check) center / contain no-repeat; }
:where(html:not(.a11y-contrast)) .me .sub-feats li::after { background: var(--ok); }
.me .sub-acts { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: 0; }
.me .sub-acts .btn { min-height: 46px; }
.me .sub-safe { align-items: center; gap: var(--sp-2); font-size: var(--fs-xs); line-height: 1.5; }
.me .sub-safe svg { margin-top: 0; }
.me .sub-panel .redeem { display: grid; gap: var(--sp-1); padding-top: var(--sp-4); }
:where(html:not(.a11y-contrast)) .me .sub-panel .redeem { border-top: 1px solid var(--hairline); }
.me .sub-panel .redeem h3 { margin: 0; }
.me .sub-panel .redeem > p.muted { margin: 0 0 var(--sp-2); }
.me .copy-row { gap: var(--sp-2); align-items: stretch; }
.me .copy-row input { min-height: 46px; padding: 0 14px; font-size: .95rem; }
.me .copy-row .btn { flex: none; min-height: 46px; }
.me .sub-pause .copy-row { flex-wrap: wrap; }
.me .sub-pause .copy-row select { flex: 1 1 7em; min-width: 0; }
.me .sub-pause .copy-row .btn { flex: 1 1 auto; }
/* Withdraw from the contract (js/app.js renderWithdraw, withdraw.js) */
.me .sub-withdraw { display: grid; gap: var(--sp-2); justify-items: start; }
.me .sub-withdraw p { margin: 0; }
.wd-panel { display: grid; gap: var(--sp-3); max-width: 720px; margin-inline: auto; }
.wd-panel h2, .wd-panel p { margin: 0; }
.wd-panel .wd-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: var(--sp-3); margin: 0 0 var(--sp-3); }
.wd-panel .wd-rows > div { padding: var(--sp-3) var(--sp-4); border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--hairline); }
.wd-panel .wd-rows dt { font-size: var(--fs-xs); color: var(--muted); }
.wd-panel .wd-rows dd { margin: 2px 0 0; font-weight: 600; }
.wd-panel .wd-confirm, .wd-panel .wd-done { display: grid; gap: var(--sp-1); padding: var(--sp-4); border-radius: var(--r-sm); background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); }
.wd-panel .wd-done { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 26%, transparent); }
.wd-panel .actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.wd-panel .wd-form { max-width: none; padding: 0; box-shadow: none; background: none; border: 0; }
/* Before a renewal (js/app.js renderRenew): keep, pause and cancel side by side, the same size and look (legal room) */
.rn-panel .rn-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: var(--sp-2); }
.rn-panel .rn-choices .btn { width: 100%; justify-content: center; }
.rn-panel .rn-months { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); margin: var(--sp-2) 0 0; padding: 0; border: 0; }
.rn-panel .rn-months label { display: inline-flex; align-items: center; gap: 6px; }
/* My charges (js/app.js loadHistory): a quiet table, one row per payment, newest first */
.me .sub-history { display: grid; gap: var(--sp-2); padding-top: var(--sp-4); }
:where(html:not(.a11y-contrast)) .me .sub-history { border-top: 1px solid var(--hairline); }
.me .sub-history h3, .me .sub-history p { margin: 0; }
.me .sh-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.me .sh-table th { padding: 6px 8px; text-align: start; font-size: var(--fs-xs); font-weight: 500; }
.me .sh-table td { padding: 10px 8px; }
:where(html:not(.a11y-contrast)) .me .sh-table th { color: var(--muted); }
:where(html:not(.a11y-contrast)) .me .sh-table tr + tr td, :where(html:not(.a11y-contrast)) .me .sh-table tbody tr:first-child td { border-top: 1px solid var(--hairline); }
.me .sh-table .sh-amt { font-variant-numeric: tabular-nums; font-weight: 600; }
.me .sh-st { display: inline-block; padding: .2em .65em; border-radius: 999px; font-size: var(--fs-xs); font-weight: 600; }
:where(html:not(.a11y-contrast)) .me .sh-paid { color: var(--ok-text, var(--ok)); background: var(--ok-soft); }
:where(html:not(.a11y-contrast)) .me :is(.sh-refunded, .sh-partial, .sh-pending) { color: var(--muted); background: var(--surface); }
:where(html:not(.a11y-contrast)) .me .sh-failed { color: var(--warn); background: var(--warn-soft); }

/* =====================================================================
   7. Personal area: profile, pictures and account forms
   ===================================================================== */
.me .profile-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: var(--sp-3) var(--sp-4); margin: var(--sp-1) 0 var(--sp-2); }
.me .profile-form label { display: block; margin: 0 0 6px; font-size: var(--fs-sm); font-weight: 500; }
.me .profile-form input { width: 100%; min-height: 46px; padding: 0 14px; font-size: 1rem; }
.me .profile-form .btn { min-height: 46px; min-width: 120px; }
.me .profile-panel > h3 { margin-top: var(--sp-4); padding-top: var(--sp-5); }
:where(html:not(.a11y-contrast)) .me .profile-panel > h3 { border-top: 1px solid var(--hairline); }
.me .av-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: var(--sp-2); margin: var(--sp-2) 0 var(--sp-3); }
.me .av-pick { gap: 6px; min-height: 44px; padding: 12px 6px 10px; border-radius: var(--r); font-size: .8rem; font-weight: 500; }
:where(html:not(.a11y-contrast)) .me .av-pick { background: var(--surface-2); border: 1px solid transparent; transition: border-color var(--dur-1), background-color var(--dur-1), box-shadow var(--dur-1); }
:where(html:not(.a11y-contrast)) .me .av-pick:hover { transform: none; border-color: var(--hairline-strong); background: var(--surface); box-shadow: var(--e1); }
:where(html:not(.a11y-contrast)) .me .av-pick.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.me .av-pick:hover { transform: none; }
.me .av-pick img { width: 60px; height: 60px; }
.me .photo-row { gap: var(--sp-3); }

.me .acct-grid { gap: var(--sp-4); }
.me .acct-form { display: grid; gap: 6px; align-content: start; padding: var(--sp-5); border-radius: var(--r); }
:where(html:not(.a11y-contrast)) .me .acct-form { background: var(--surface-2); border: 1px solid var(--hairline); }
.me .acct-form h3 { margin: 0 0 var(--sp-1); font-size: 1rem; font-weight: 600; }
.me .acct-form > p.muted { margin: 0; }
.me .acct-form label { margin-top: var(--sp-2); font-size: var(--fs-sm); font-weight: 500; }
.me .acct-form input { width: 100%; min-width: 0; min-height: 46px; padding: 0 14px; font-size: 1rem; }
.me .acct-form > .muted.small { font-size: var(--fs-xs); }
.me .acct-form .btn { justify-self: start; min-height: 46px; margin-top: var(--sp-3); }
.me .acct-form .auth-error:empty { display: none; }
.me .acct-export { gap: var(--sp-2) var(--sp-3); margin: var(--sp-2) 0 0; }
.me .acct-delete { margin-top: var(--sp-2); padding-top: var(--sp-4); }
:where(html:not(.a11y-contrast)) .me .acct-delete { border-top: 1px solid var(--hairline); }
.me .acct-delete summary { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; cursor: pointer; }
:where(html:not(.a11y-contrast)) .me .acct-delete summary { color: var(--bad); }
.me .acct-delete .acct-form { max-width: 440px; margin-top: var(--sp-2); }
:where(html:not(.a11y-contrast)) .me .acct-delete .acct-form { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 22%, transparent); }

/* =====================================================================
   8. Personal area: settings (switches, menus), easy learning, medals
   ===================================================================== */
.me .prefs { gap: var(--sp-2); margin-top: var(--sp-1); }
.me .switch-row { min-height: 52px; padding: 10px 14px; border-radius: var(--r-sm); grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-4); line-height: 1.4; font-weight: 500; }
.me .switch-row > .switch { grid-column: 2; grid-row: 1; }
.me .switch-row > span:last-child { grid-column: 1; grid-row: 1; }
:where(html:not(.a11y-contrast)) .me .switch-row { background: var(--surface-2); border: 1px solid transparent; transition: border-color var(--dur-1), background-color var(--dur-1); }
:where(html:not(.a11y-contrast)) .me .switch-row:hover { border-color: var(--hairline-strong); }
.me .switch { flex: none; width: 46px; height: 28px; }
.me .switch::after { top: 3px; width: 22px; height: 22px; }
.me .switch-row input:checked + .switch::after { inset-inline-start: 21px; }
:where(html:not(.a11y-contrast)) .me .switch { background: color-mix(in srgb, var(--ink) 18%, var(--surface)); box-shadow: inset 0 1px 2px rgb(15 20 40 / .12); }
:where(html:not(.a11y-contrast)) .me .switch-row input:checked + .switch { background: var(--accent); }
:where(html:not(.a11y-contrast)) .me .switch::after { background: #fff; box-shadow: 0 1px 3px rgb(15 20 40 / .3); }
.me .switch-row input:focus-visible + .switch { outline: 2px solid var(--accent); outline-offset: 3px; }
/* easy learning: its own highlighted card at the top of the settings */
.me .easy-card { gap: var(--sp-1); padding: var(--sp-2); border-radius: var(--r); }
.me .easy-card .switch-row { padding: 10px 12px; font-weight: 600; }
:where(html:not(.a11y-contrast)) .me .easy-card .switch-row { background: transparent; }
:where(html:not(.a11y-contrast)) .me .easy-card .switch-row:hover { border-color: transparent; }
.me .easy-card > p.muted { margin: 0; padding: 0 12px 8px; line-height: 1.55; }
/* light mode (B43): the same switch-and-hint card on a quiet background, across the whole row */
.me .lite-card { display: grid; gap: var(--sp-1); padding: var(--sp-2); border-radius: var(--r); }
:where(html:not(.a11y-contrast)) .me .lite-card { background: var(--surface-2); }
.me .lite-card .switch-row { padding: 10px 12px; font-weight: 600; }
:where(html:not(.a11y-contrast)) .me .lite-card .switch-row { background: transparent; }
:where(html:not(.a11y-contrast)) .me .lite-card .switch-row:hover { border-color: transparent; }
.me .lite-card > p.muted { margin: 0; padding: 0 12px 8px; line-height: 1.55; }
html.a11y-contrast .me .lite-card { border: 2px solid var(--ink); }
.me .pref-select { display: grid; gap: 6px; align-content: start; min-width: 0; }
.me .pref-select label { font-size: var(--fs-sm); font-weight: 500; }
:where(html:not(.a11y-contrast)) .me .pref-select label { color: var(--ink-2); }
.me .pref-select select { width: 100%; min-height: 46px; }
@container me (min-width: 640px) {
  .me .prefs { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--sp-2) var(--sp-3); }
  .me .prefs > .easy-card { grid-column: 1 / -1; margin-bottom: var(--sp-1); }
  .me .prefs > .switch-row { grid-column: span 3; }
  .me .prefs > .pref-select { grid-column: span 2; margin-top: var(--sp-3); }
  .me .prefs > .switch-row + .pref-select { grid-column: 1 / span 2; } /* the menus start their own row */
  .me .prefs > .lite-card { grid-column: 1 / -1; }
  .me .prefs > .lite-card + .pref-select { grid-column: 1 / span 2; }
}

/* my medals */
.me #my-medals .pf-head-row { gap: var(--sp-3); }
.me #my-medals .md-grid { gap: var(--sp-3); }
:where(html:not(.a11y-contrast)) .me .md-card { background: var(--surface-2); border-color: var(--hairline); }
.me #my-medals > .switch-row { margin-top: var(--sp-1); }
.me #my-medals > p.muted { margin: 0; }

/* =====================================================================
   9. Phones
   ===================================================================== */
@container me (max-width: 560px) {
  .me > .me-head { grid-template-columns: auto minmax(0, 1fr); padding: var(--sp-5); gap: var(--sp-3) var(--sp-4); }
  .me > .me-head > .btn { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
  .me-head .avatar.big { width: 64px; height: 64px; font-size: 1.6rem; }
  .me > .stat-grid > div { padding: var(--sp-3); padding-inline-start: calc(var(--sp-3) + 40px); }
  .me > .stat-grid > div::before { inset-inline-start: var(--sp-3); width: 30px; height: 30px; margin-top: -15px; }
  .me > .stat-grid > div::after { inset-inline-start: calc(var(--sp-3) + 7px); width: 16px; height: 16px; margin-top: -8px; }
  .me > .stat-grid dd { font-size: 1.3rem; }
  .me > .panel { padding: var(--sp-5); }
  .me .auth, .auth-side { padding: var(--sp-5); }
  .auth-side img { display: none; } /* too small to read on a phone; the list says it all */
  .me .profile-form { grid-template-columns: minmax(0, 1fr); }
  .me .profile-form .btn { justify-self: start; }
  .me .sub-card { padding: var(--sp-4); gap: var(--sp-4); }
  .me .sub-icon { width: 46px; height: 46px; border-radius: 14px; }
  .me .sub-rows { grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr)); gap: var(--sp-2); }
  .me .sub-rows > div { padding: var(--sp-3); }
  .me .sub-head { grid-template-columns: auto minmax(0, 1fr); }
  .me .sub-head > .sub-state { grid-column: 1 / -1; justify-self: start; max-width: 100%; white-space: normal; line-height: 1.35; }
  .me .sub-acts .btn { flex: 1 1 100%; }
  .me .acct-form { padding: var(--sp-4); }
  .me .acct-form .btn { justify-self: stretch; }
  .me .badges { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); }
  .me .badge-item { padding: 10px 4px; font-size: .76rem; line-height: 1.3; }
  .me .badge-icon { width: 40px; height: 40px; font-size: .85rem; }
  /* the learning calendar (css/certs.css) fits a 320px phone without scrolling sideways */
  .me .cal-grid { gap: 3px; }
  .me .cal-grid .cal-d { min-width: 9px; }
}
/* touch screens: every button at least 44px tall */
@media (pointer: coarse) {
  :is(.me, .plans) .btn.small { min-height: 44px; }
}
@container plans (max-width: 420px) {
  .plans .plan { padding: var(--sp-5); }
  .plans .plan .price .num { font-size: 2.6rem; }
  .plans .pay-safe { padding: var(--sp-5); }
}

/* =====================================================================
   10. Easy learning, calm and reduced motion
   ===================================================================== */
:where(html.pref-easy:not(.a11y-contrast)) .plans .plan.featured { background: linear-gradient(170deg, #263070, #1a2152) padding-box, linear-gradient(var(--accent-line), var(--accent-line)) border-box; box-shadow: var(--e2); }
:where(html.pref-easy:not(.a11y-contrast)) .me > .me-head { background: var(--surface); }
:where(html.pref-easy:not(.a11y-contrast)) .auth-side { background: var(--accent-soft); }
@media (prefers-reduced-motion: reduce) {
  .faq-list summary::after { transition: none; }
  :where(html:not(.a11y-contrast)) :is(.me .av-pick, .me .switch-row) { transition: none; }
}

/* =====================================================================
   The reminder a week before a yearly renewal (app.js renewNotice, B41): on the home page and in the subscription panel
   ===================================================================== */
.renew-note { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: var(--sp-3); margin: 0 0 var(--sp-4); padding: var(--sp-3) var(--sp-4); }
:where(html:not(.a11y-contrast)) .renew-note { border-radius: var(--r); border: 1px solid color-mix(in srgb, var(--info) 30%, transparent); background: color-mix(in srgb, var(--info) 8%, var(--surface)); color: var(--ink); }
.renew-note strong { display: block; font: 600 .95rem/1.35 var(--font-ui); }
.renew-note p { margin: 2px 0 0; font-size: var(--fs-sm); line-height: 1.45; }
:where(html:not(.a11y-contrast)) .renew-note p { color: var(--ink-2); }
.renew-note .rn-ico { display: grid; place-items: center; width: 40px; height: 40px; }
:where(html:not(.a11y-contrast)) .renew-note .rn-ico { border-radius: 12px; background: color-mix(in srgb, var(--info) 14%, var(--surface)); }
.renew-note .rn-ico::before { content: ""; width: 20px; height: 20px; background: var(--info); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2.5'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4M12 13.5v3l2 1.2'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2.5'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4M12 13.5v3l2 1.2'/%3E%3C/svg%3E") center / contain no-repeat; }
.sub-card .renew-note { margin: var(--sp-4) 0 0; align-items: start; }
html.a11y-contrast .renew-note { border: 2px solid var(--ink); border-radius: var(--r); }
html.a11y-contrast .renew-note .rn-ico::before { background: var(--ink); }
@media (max-width: 560px) {
  .renew-note { grid-template-columns: 40px minmax(0, 1fr); align-items: start; }
  .renew-note .btn { grid-column: 1 / -1; justify-self: start; }
}

/* =====================================================================
   Customer promise (leo, 2026-10-03): on #plans under the cards and, compact, in the #me subscription box.
   Every line is something the site does today; the binding wording lives on the refund and terms pages.
   ===================================================================== */
.plans .plan-promise { display: inline-flex; justify-self: start; align-items: center; gap: 6px; min-height: 44px; margin: 0; font-size: var(--fs-xs); font-weight: 600; text-decoration: none; }
.plans .plan-promise::before { content: ""; flex: none; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--pi-seal) center / contain no-repeat; mask: var(--pi-seal) center / contain no-repeat; }
.plans .plan-promise:hover { text-decoration: underline; }
:where(html:not(.a11y-contrast)) .plans .plan:not(.featured) .plan-promise { color: var(--accent); }
:where(html:not(.a11y-contrast)) .plans .plan.featured .plan-promise { color: #f3d58a; }
.promise { container: promise / inline-size; display: grid; gap: var(--sp-5); width: 100%; max-width: 1080px; margin: var(--sp-10, 40px) auto 0; padding: var(--sp-6); text-align: start; scroll-margin-top: 96px; }
:where(html:not(.a11y-contrast)) .promise { border-radius: var(--r-lg); border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--hairline)); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 9%, var(--surface)), var(--surface) 62%); box-shadow: var(--e1); }
.promise .pm-head { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--sp-4); align-items: center; }
.promise .pm-seal { position: relative; width: 48px; height: 48px; }
:where(html:not(.a11y-contrast)) .promise .pm-seal { border-radius: 14px; background: color-mix(in srgb, var(--accent) 16%, var(--surface)); }
.promise .pm-seal::before { content: ""; position: absolute; inset: 11px; background: var(--accent); -webkit-mask: var(--pi-seal) center / contain no-repeat; mask: var(--pi-seal) center / contain no-repeat; }
.promise h2 { margin: 0; font-size: var(--fs-h3); font-weight: 650; line-height: 1.25; }
.promise .pm-head p { margin: 2px 0 0; font-size: var(--fs-sm); }
:where(html:not(.a11y-contrast)) .promise .pm-head p { color: var(--ink-2); }
.promise .pm-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
.promise .pm-items li { position: relative; padding-inline-start: 34px; }
.promise .pm-items li::before { content: ""; position: absolute; inset-inline-start: 0; top: 1px; width: 22px; height: 22px; background: var(--accent); -webkit-mask: var(--pi) center / contain no-repeat; mask: var(--pi) center / contain no-repeat; }
.promise .pm-eye { --pi: var(--pi-receipt); }
.promise .pm-hand { --pi: var(--pi-sliders); }
.promise .pm-heart { --pi: var(--pi-heart); }
.promise .pm-items strong { display: block; font-size: 1rem; font-weight: 600; line-height: 1.35; }
.promise .pm-items p { margin: var(--sp-1) 0 0; font-size: var(--fs-sm); line-height: 1.6; }
:where(html:not(.a11y-contrast)) .promise .pm-items p { color: var(--ink-2); }
.promise .pm-foot { margin: 0; padding-top: var(--sp-2); }
:where(html:not(.a11y-contrast)) .promise .pm-foot { border-top: 1px solid var(--hairline); color: var(--muted); }
.promise .pm-links { display: inline-flex; flex-wrap: wrap; gap: 0 var(--sp-4); }
.promise .pm-foot a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }
@container promise (min-width: 720px) {
  .promise .pm-items { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-6); }
}
/* compact, inside the subscription card: no shadow, smaller head */
.promise.compact { margin: var(--sp-4) 0 0; padding: var(--sp-4); gap: var(--sp-3); }
:where(html:not(.a11y-contrast)) .promise.compact { box-shadow: none; }
.promise.compact .pm-head { grid-template-columns: 36px minmax(0, 1fr); gap: var(--sp-3); }
.promise.compact .pm-seal { width: 36px; height: 36px; }
.promise.compact .pm-seal::before { inset: 8px; }
.promise.compact h2 { font-size: 1rem; }
.promise.compact .pm-items { gap: var(--sp-3); }
.promise.compact .pm-items strong { font-size: var(--fs-sm); }
.promise.compact .pm-items p { font-size: var(--fs-xs); }
html.a11y-contrast .promise { border: 2px solid var(--ink); border-radius: var(--r-lg); }
html.a11y-contrast :is(.promise .pm-seal::before, .promise .pm-items li::before) { background: var(--ink); }
/* store rules: no talk of web payments inside the phone app */
html.in-app .promise { display: none; }

/* Under the plan cards: the course voices are synthetic (Kokoro, credited in js/legal.js), said plainly before anyone
   pays. Not payment text, so it stays visible in the phone app. */
.plans .plans-voice { display: flex; align-items: flex-start; gap: var(--sp-3); max-width: 760px; margin: var(--sp-5) auto 0; padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-sm); font-size: var(--fs-sm); line-height: 1.55; text-align: start; }
:where(html:not(.a11y-contrast)) .plans .plans-voice { background: var(--surface-2); color: var(--ink-2); }
.plans .plans-voice .pv-ico { flex: none; width: 20px; height: 20px; margin-top: .1em; background: currentColor;
  -webkit-mask: var(--pi-voice) center / contain no-repeat; mask: var(--pi-voice) center / contain no-repeat; }
.plans .plans-voice .link-btn { font: inherit; }

/* Devices: "My devices" in #me and the "which device to sign out" step when signing in on one too many. */
.dev-panel { margin-top: 18px; }
.dev-list { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 8px; }
.dev-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); }
.dev-ic { flex: none; font-size: 1.35rem; line-height: 1; }
.dev-name { flex: 1 1 150px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dev-row .btn { flex: none; margin-inline-start: auto; }
.dev-pick { margin: 6px 0 10px; padding: 12px 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--hairline); }
.dev-pick p { margin: 0 0 8px; }
.dev-pick .dev-row { background: var(--surface-2); }

/* =====================================================================
   11. Bold shapes (docs/plan/2026-10-04-redesign-bento.md, phase 1): the same plans, prices and words, in the home's new
   shapes. Bigger rounded cards, the featured plan on the deep panel, a thick headline, questions as rounded strips.
   ===================================================================== */
.plans > h1 { font-size: var(--fs-hero); font-weight: 800; line-height: 1.04; letter-spacing: -.03em; }
:where(html:not(.a11y-contrast)) .plans .plan { border-radius: var(--r-2xl); box-shadow: var(--e-bento); }
:where(html:not(.a11y-contrast)) .plans .plan:not(.featured):hover { box-shadow: var(--e-bento); }
:where(html:not(.a11y-contrast, .pref-easy)) .plans .plan.featured {
  background:
    radial-gradient(130% 75% at 100% 0%, color-mix(in srgb, #7c4adf 48%, transparent), transparent 62%) padding-box,
    radial-gradient(90% 60% at 0% 100%, color-mix(in srgb, #3f49d8 34%, transparent), transparent 70%) padding-box,
    linear-gradient(var(--panel), var(--panel)) padding-box,
    linear-gradient(160deg, color-mix(in srgb, var(--accent-2) 70%, #fff), var(--accent) 42%, rgb(255 255 255 / .06) 85%) border-box;
}
:where(html:not(.a11y-contrast)) .plans .pay-safe { border-radius: var(--r-2xl); }
/* questions: each one its own rounded strip, the sign on the end side opens it */
:where(html:not(.a11y-contrast)) .faq-list { gap: var(--sp-3); border-top: 0; }
:where(html:not(.a11y-contrast)) .faq-list details { border: 1px solid var(--hairline); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--e1); }
:where(html:not(.a11y-contrast)) .faq-list summary { padding-inline: var(--sp-5); }
:where(html:not(.a11y-contrast)) .faq-list details > p { padding-inline: var(--sp-5) var(--sp-10); }
html.a11y-contrast .faq-list details { border: 2px solid var(--ink); border-radius: var(--r-lg); margin-bottom: var(--sp-3); }
/* Admin: speaking practice step by step (js/app.js adminTele); the wide table scrolls on its own on a phone */
.admin-tele .admin-scroll { overflow-x: auto; }
.admin-tele table { border-collapse: collapse; font-size: .9rem; }
.admin-tele :is(th, td) { padding: 6px 8px; text-align: start; white-space: nowrap; }
.settings .tele-note { margin: 0; max-width: 46ch; }
