/* Shared look for the shop pages (sign up, thank you, manage, terms). Matches the home page. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body { font-family: 'Inter', sans-serif; color: #1a2e44; background: #f7f5f0; line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; }
:root { --teal: #1b8c9c; --teal-dark: #136d7a; --teal-light: #e8f6f8; --teal-mid: #a8dce4;
  --navy: #1a2e44; --navy-light: #2c4a6e; --green: #2d8653; --line: #d6dde4; --gold: #d4a72c; --red: #a32020; }
h1, h2, h3 { font-family: 'Poppins', sans-serif; line-height: 1.2; color: var(--navy); }
p, li { color: var(--navy); }
a { color: var(--teal-dark); }
.nowrap { white-space: nowrap; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.topbar { background: var(--navy); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { font-family: 'Poppins', sans-serif; font-weight: 800; color: #fff; font-size: 1.15rem; text-decoration: none; }
.logo span { color: var(--teal-mid); }
.topbar a.back { color: #fff; font-size: 0.9rem; font-weight: 600; text-decoration: none; }
main { flex: 1; }
.page { max-width: 560px; margin: 0 auto; padding: 24px 16px 56px; }
.page.wide { max-width: 760px; }
.page h1 { font-size: 1.6rem; margin-bottom: 6px; }
.page h2 { font-size: 1.15rem; margin: 26px 0 8px; }
.page p + p { margin-top: 10px; }
.page ul.plain { margin: 8px 0 0 20px; }
.page ul.plain li { margin: 4px 0; }

.summary { background: #fff; border: 2px solid var(--teal-dark); border-radius: 16px; padding: 18px 18px 16px; margin: 16px 0 8px; }
.summary .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.summary .plan { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--navy); }
.summary .amt { font-family: 'Poppins', sans-serif; font-weight: 900; font-size: 1.6rem; color: var(--navy); white-space: nowrap; }
.summary .amt small { font-size: 0.85rem; font-weight: 600; }
.summary ul { margin: 10px 0 0 18px; font-size: 0.92rem; }
.summary li { margin: 3px 0; }
.help { font-size: 0.85rem; color: var(--navy); margin-top: 4px; }
.change { font-size: 0.9rem; font-weight: 600; }

fieldset { border: 0; margin-top: 24px; }
legend { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--navy); margin-bottom: 10px; }
legend .n { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--teal-dark); color: var(--teal-dark);
  align-items: center; justify-content: center; font-size: 0.85rem; margin-right: 8px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choices.stack { grid-template-columns: 1fr; }
.choice { position: relative; display: block; border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 12px 14px; color: var(--navy); cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice b { display: block; font-size: 1rem; }
.choice span { display: block; font-size: 0.85rem; }
.choice.on { border-color: var(--teal-dark); box-shadow: inset 0 0 0 1px var(--teal-dark); }
.choice.on b::before { content: '\25CF\00a0'; color: var(--teal-dark); }
.choice:focus-within { outline: 3px solid var(--teal-mid); outline-offset: 2px; }
label.f { display: block; font-weight: 600; font-size: 0.92rem; margin: 12px 0 4px; color: var(--navy); }
input.input { width: 100%; border: 2px solid var(--line); background: #fff; border-radius: 10px; padding: 11px 12px; font: 400 1rem Inter, sans-serif; color: var(--navy); }
input.input:focus { outline: none; border-color: var(--teal-dark); }
input.input.bad { border-color: var(--red); }
.note { background: var(--teal-light); border-radius: 12px; padding: 12px 14px; font-size: 0.9rem; color: var(--navy); margin-top: 16px; }
.err { border: 2px solid var(--red); border-radius: 12px; background: #fff; color: var(--red); font-weight: 600; padding: 12px 14px; margin-top: 16px; }
.err[hidden], .note[hidden] { display: none; }
.ts { margin-top: 22px; min-height: 65px; }
.agree { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: 0.92rem; color: var(--navy); cursor: pointer; }
.agree input { width: 22px; height: 22px; flex-shrink: 0; accent-color: var(--teal-dark); margin-top: 1px; }
.pay { display: block; width: 100%; margin-top: 20px; background: var(--teal-dark); color: #fff; border: 0; border-radius: 12px; padding: 16px; font: 700 1.08rem Inter, sans-serif; text-align: center; cursor: pointer; }
.modal-bg { position: fixed; inset: 0; background: rgba(26, 46, 68, 0.55); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.modal-bg[hidden] { display: none; }
.modal { background: #fff; border: 2px solid var(--teal-dark); border-radius: 16px; padding: 20px 18px; max-width: 440px; width: 100%; }
.page .modal h2 { font-size: 1.15rem; margin: 0; }
.modal p { font-size: 0.95rem; margin-top: 10px; }
.modal p:empty { display: none; }
.modal .pay[hidden] { display: none; }
.modal .plain { display: block; width: 100%; margin-top: 10px; background: #fff; color: var(--teal-dark); border: 2px solid var(--teal-dark); border-radius: 12px; padding: 12px; font: 600 1rem Inter, sans-serif; cursor: pointer; }
.pay:disabled { background: #fff; color: var(--teal-dark); border: 2px solid var(--teal-dark); cursor: default; }
.secure { text-align: center; font-size: 0.85rem; margin-top: 10px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.big-icon { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--green); color: var(--green); display: flex; align-items: center; justify-content: center; margin: 12px 0 14px; }
.big-icon.warn { border-color: var(--gold); color: #8a5a00; }
.steps { list-style: none; margin-top: 18px; }
.steps li { display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 0.97rem; }
.steps .n { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--teal-dark); color: var(--teal-dark); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; }
.btn-outline { display: block; width: 100%; margin-top: 14px; border: 2px solid var(--navy); color: var(--navy); background: #fff; border-radius: 12px; padding: 14px; font: 700 1rem Inter, sans-serif; text-align: center; text-decoration: none; cursor: pointer; }
.btn-outline.red { border-color: var(--red); color: var(--red); }
.btn-outline:disabled { opacity: 0.6; cursor: default; }
.kv { background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 6px 18px; margin-top: 16px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 0.97rem; color: var(--navy); }
.kv div:last-child { border-bottom: 0; }
.kv dt { font-weight: 600; } .kv dd { text-align: right; }
.confirm { border: 2px solid var(--red); border-radius: 16px; background: #fff; padding: 18px; margin-top: 18px; }
.confirm h3 { color: var(--red); margin-bottom: 6px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.two .btn-outline { margin-top: 0; }
.footer { background: var(--navy); color: #fff; text-align: center; font-size: 0.85rem; padding: 22px 16px; }
.footer a { color: var(--teal-mid); }
.sandbox-flag { background: #fff; border: 2px solid var(--gold); color: #8a5a00; font-weight: 700; font-size: 0.85rem; text-align: center; padding: 6px; }
