:root {
  --brand: #1f4e79;
  --bg: #f5f6f8;
  --card: #ffffff;
  --ink: #16202b;
  --muted: #5b6673;
  --line: #e2e6eb;
  --ok: #1d7a46;
  --warn: #9a6200;
  --bad: #b3261e;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--font, -apple-system), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
[hidden] { display: none !important; }

.top { background: var(--card); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; min-width: 0; }
.brand span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mark {
  display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none;
  border-radius: 8px; background: var(--brand); color: #fff; font-size: 15px;
}
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; flex: none; }
.lang button {
  border: 0; background: transparent; padding: 6px 11px; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--brand); color: #fff; font-weight: 600; }

main { padding-top: 20px; padding-bottom: 24px; }
h1 { font-size: 22px; line-height: 1.25; margin: 0 0 6px; }
h2 { font-size: 18px; line-height: 1.3; margin: 0; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; padding: 40px 0; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.narrow { max-width: 440px; margin: 8px auto 16px; }

label { display: block; font-weight: 600; font-size: 14px; margin: 6px 0; }
input[type=email], input[type=text], input[type=password], textarea {
  width: 100%; font: inherit; font-size: 17px; padding: 11px 12px; border: 1px solid #c6cdd5; border-radius: 10px; background: #fff; color: var(--ink);
}
input:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); outline-offset: 1px; }
#code { letter-spacing: .4em; font-size: 22px; text-align: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 10px 16px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; text-align: center;
}
form .btn.primary { width: 100%; margin-top: 12px; }
.btn.primary { background: var(--brand); color: #fff; }
.btn.ghost { background: #fff; color: var(--ink); border-color: #c6cdd5; }
.btn.danger { background: var(--bad); color: #fff; }
.btn.danger-ghost { background: #fff; color: var(--bad); border-color: #e7b9b5; }
.btn:disabled { opacity: .6; cursor: progress; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); text-decoration: underline; cursor: pointer; }
.err { color: var(--bad); font-size: 14px; margin: 10px 0 0; }
.err.ok { color: var(--ok); }

.dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.dash-head .btn { flex: none; min-height: 38px; padding: 6px 12px; font-size: 14px; }
.demo-note { background: #fff7e0; border: 1px solid #f0d58a; color: #6b4e00; border-radius: 10px; padding: 10px 12px; font-size: 14px; }

.member { border-top: 4px solid var(--accent, var(--brand)); }
.m-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 2px; font-weight: 700; }
.badge { flex: none; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #e9f5ee; color: var(--ok); }
.badge[data-status="paused"] { background: #fff4de; color: var(--warn); }
.badge[data-status="canceled"], .badge[data-status="failed"] { background: #f1f2f4; color: var(--muted); }
.badge[data-status="retrying"] { background: #fdecea; color: var(--bad); }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 0 0 14px; }
.facts div { min-width: 0; }
.facts dt { font-size: 12px; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.actions.stack { flex-direction: column; }
.actions.stack .btn { width: 100%; }

.section { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.section summary { cursor: pointer; font-weight: 700; font-size: 15px; padding: 4px 0; }
.benefits { margin: 8px 0 4px; padding-left: 20px; }
.benefits li { margin-bottom: 6px; }

.table-wrap { overflow-x: auto; margin-top: 8px; }
.billing { width: 100%; border-collapse: collapse; font-size: 14px; }
.billing th, .billing td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.billing th { font-size: 12px; color: var(--muted); font-weight: 600; }
.billing .num { text-align: right; }

.foot { padding-bottom: 32px; text-align: center; }
.foot a { color: var(--muted); }

dialog { border: 0; border-radius: 14px; padding: 20px; width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; }
dialog::backdrop { background: rgba(16, 24, 32, .55); }
dialog h2 { margin-bottom: 10px; }
fieldset { border: 0; padding: 0; margin: 0 0 10px; }
legend { font-weight: 600; font-size: 14px; margin-bottom: 4px; padding: 0; }
.choice { font-weight: 400; display: flex; gap: 8px; align-items: center; padding: 7px 0; margin: 0; font-size: 15px; }
.offer { background: #f3f7fb; border-radius: 10px; padding: 12px; margin: 12px 0; }
.offer p { margin-bottom: 8px; font-size: 14px; }

@media (max-width: 420px) {
  .lang button { padding: 6px 9px; }
  .card { padding: 16px; }
  .actions:not(.stack) .btn { flex: 1 1 calc(50% - 8px); }
  .billing th:nth-child(3), .billing td:nth-child(3) { display: none; }
}

#vPass label + input + label, #fPass input + label { margin-top: 12px; }
#vEmail form + p, #vPass form + p { margin-top: 14px; }

.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; color: var(--ink); }

/* Brand theme with pill buttons (Ecom Depot, Roly 10/6) */
html.pill .btn, html.pill .lang { border-radius: 999px; }

/* ---------- Member Store, premium (Roly 10/6). Theme-aware: every color derives from --brand/--ink/--line. ---------- */
.store { margin: 4px 0 22px; }
.store-head { padding: 6px 2px 12px; }
.store-head .eyebrow { color: var(--brand); letter-spacing: .14em; }
.store-title { font-size: 28px; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; margin: 2px 0 8px; }
.store-head p.muted { max-width: 560px; font-size: 15px; }

.codes { margin: 4px 0 18px; border-radius: calc(var(--radius) + 4px); padding: 1.5px;
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 35%, #d8b45a)); }
.codes-in { background: color-mix(in srgb, var(--brand) 5%, var(--card)); border-radius: calc(var(--radius) + 3px); padding: 20px; }
.codes .eyebrow { color: var(--brand); letter-spacing: .14em; }
.codes-title { font-size: 21px; font-weight: 800; letter-spacing: -.01em; margin: 2px 0 12px; }
.codes-what { margin: 12px 0 4px; font-size: 16px; }
.codes-tier { display: inline-block; margin: 6px 0 6px; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 14px;
  background: var(--brand); color: #fff; }
.codes-facts { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.codes-facts li { position: relative; padding-left: 24px; font-size: 14px; color: var(--ink); }
.codes-facts li::before { content: ""; position: absolute; left: 2px; top: 4px; width: 12px; height: 7px; border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(-45deg); }

.codebox { border: 1.5px dashed color-mix(in srgb, var(--brand) 55%, transparent); background: color-mix(in srgb, var(--brand) 7%, #fff);
  border-radius: 12px; padding: 10px 12px; margin: 12px 0; }
.cb-label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 4px; }
.cb-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cb-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 18px; letter-spacing: .08em; color: var(--ink); overflow-wrap: anywhere; }
.codebox.big { background: var(--card); padding: 14px 16px; }
.codebox.big .cb-code { font-size: clamp(17px, 5.2vw, 24px); letter-spacing: .05em; }
.cb-copy { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border-radius: 10px; border: 1.5px solid var(--brand);
  background: var(--card); color: var(--brand); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.cb-copy.done { background: var(--brand); color: #fff; }
html.pill .cb-copy { border-radius: 999px; }

.store-grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin: 0 0 12px; }
@media (min-width: 720px) { .store-grid { grid-template-columns: 1fr 1fr; } }
.product { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
  overflow: hidden; box-shadow: 0 1px 2px rgba(16,24,32,.04), 0 10px 30px -18px rgba(16,24,32,.25); min-width: 0; }
.p-media { position: relative; background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 4%, #fff), #fff); aspect-ratio: 4 / 3;
  display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.p-media img, .p-media .img-ph { width: 100%; height: 100%; object-fit: contain; padding: 18px; display: block; }
.p-badge { position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; background: color-mix(in srgb, var(--card) 88%, transparent); color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent); backdrop-filter: blur(4px); }
.p-body { display: flex; flex-direction: column; padding: 18px 18px 20px; flex: 1; }
.p-cat { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.p-name { font-size: 20px; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; margin: 0 0 10px; }
.p-bullets { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.p-bullets li { position: relative; padding-left: 22px; font-size: 14.5px; line-height: 1.45; color: var(--ink); }
.p-bullets li::before { content: ""; position: absolute; left: 3px; top: 6px; width: 10px; height: 6px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
.p-price { border-top: 1px solid var(--line); padding-top: 14px; margin-top: auto; }
.pp-regular { font-size: 14px; color: var(--muted); }
.pp-regular s { font-size: 16px; }
.pp-member { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 2px 0; }
.pp-label { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.pp-member strong { font-size: 34px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.pp-save { display: inline-block; font-weight: 800; font-size: 14px; color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, #fff);
  padding: 4px 10px; border-radius: 999px; margin: 4px 0 2px; }
.pp-unit { margin-top: 4px; }
.p-btn { width: 100%; min-height: 50px; font-size: 16px; margin-top: 2px; }
.p-note { margin: 8px 0 0; text-align: center; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; color: var(--ink); }

/* ---------- Tiers on the membership card (match amvecomdepot.com/membership.html) ---------- */
.m-tier:empty { display: none; }
.m-tier { margin: 0 0 14px; }
.tier-mine { margin-bottom: 10px; }
.tier-pill { display: inline-block; font-weight: 800; font-size: 15px; padding: 6px 14px; border-radius: 999px; background: var(--brand); color: #fff; }
.tier-all-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (min-width: 720px) { .tiers { grid-template-columns: repeat(4, 1fr); } }
.tier { position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 10px 10px 12px; background: var(--card); min-width: 0; }
.tier.on { border: 2px solid var(--brand); background: color-mix(in srgb, var(--brand) 6%, var(--card)); }
.tier-top { display: flex; align-items: center; justify-content: space-between; gap: 4px; flex-wrap: wrap; font-size: 14px; }
.tier-tag { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); }
.tier-price { font-weight: 700; font-size: 13px; color: var(--muted); margin: 2px 0 6px; }
.tier ul { margin: 0; padding-left: 16px; font-size: 12.5px; line-height: 1.4; }
.tier li { margin-bottom: 2px; }
.tier-you { display: inline-block; margin-top: 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); }
.tier-exp { margin: 8px 0 0; font-size: 13px; }
