/* Checkout page: plan, billing period and details on the left, a sticky order summary on the right. Calm navy ink, one violet accent. */
.subpage { padding: 34px 0 70px; }
.subpage [hidden] { display: none !important; }
.sp-head { max-width: 720px; margin-bottom: 22px; }
.sp-head h1 { margin: 6px 0 8px; font-size: clamp(30px, 4vw, 40px); letter-spacing: -.03em; }
.sp-head .meta { margin: 0; color: var(--muted, #5b6b82); }
.sp-msg { margin: 0 0 16px; color: var(--muted, #5b6b82); }
.sp-msg:empty { display: none; }

.sp-card { background: var(--surface, #fff); border: 1px solid var(--border, #e1e7f0); border-radius: 20px; box-shadow: 0 1px 2px rgba(35, 52, 76, .05), 0 18px 40px -26px rgba(35, 52, 76, .3); }
.sp-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 22px; align-items: start; }
.sp-form { padding: 28px; display: grid; gap: 26px; }
.sp-step { padding: 0; margin: 0; }
.sp-step h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 16px; letter-spacing: -.01em; }
.sp-step h2 i { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #0a7cff, #6a3df0); color: #fff; font: 800 12px/1 inherit; font-style: normal; }

.sp-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sp-plan { position: relative; display: block; cursor: pointer; }
.sp-plan input, .sp-seg input { position: absolute; opacity: 0; pointer-events: none; }
.sp-plan-in { display: flex; flex-direction: column; gap: 10px; min-height: 112px; padding: 16px; border: 1.5px solid #d6dff0; border-radius: 14px; background: #fff; transition: border-color .15s, box-shadow .15s, background .15s; }
.sp-plan-in b { display: block; font-size: 17px; letter-spacing: -.01em; }
.sp-plan-in small { display: block; margin-top: 2px; color: var(--muted, #5b6b82); font-size: 13px; line-height: 1.35; }
.sp-plan-in em { margin-top: auto; font-style: normal; font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.sp-plan input:checked + .sp-plan-in { border-color: #6a3df0; background: #faf8ff; box-shadow: 0 0 0 4px rgba(106, 61, 240, .13); }
.sp-plan input:focus-visible + .sp-plan-in { outline: 3px solid rgba(106, 61, 240, .45); outline-offset: 2px; }
.sp-best { position: absolute; top: -10px; right: 12px; padding: 2px 10px; border-radius: 999px; background: linear-gradient(90deg, #0a7cff, #6a3df0); color: #fff; font-size: 11px; font-style: normal; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }

.sp-seg { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2, #eef2f8); }
.sp-seg label { cursor: pointer; }
.sp-seg span { display: flex; align-items: center; justify-content: center; gap: 6px; height: 42px; padding: 0 18px; border-radius: 11px; color: var(--muted, #5b6b82); font-weight: 700; white-space: nowrap; transition: background .15s, color .15s, box-shadow .15s; }
.sp-seg em { font-style: normal; padding: 2px 8px; border-radius: 999px; background: #e8f8ee; color: #15803d; font-size: 11.5px; font-weight: 800; }
.sp-seg input:checked + span { background: #fff; color: var(--text, #10253a); box-shadow: 0 2px 8px -2px rgba(20, 40, 90, .25); }
.sp-seg input:focus-visible + span { outline: 3px solid rgba(106, 61, 240, .45); outline-offset: 2px; }

.sp-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sp-f { display: grid; gap: 6px; align-content: start; font-weight: 700; font-size: 14px; }
.sp-f input, .sp-f select { height: 48px; padding: 0 14px; border: 1px solid #d6dff0; border-radius: 12px; background: #fff; color: inherit; font: inherit; font-weight: 500; font-size: 16px; }
.sp-f input:focus, .sp-f select:focus { outline: none; border-color: #6a3df0; box-shadow: 0 0 0 4px rgba(106, 61, 240, .15); }
.sp-f small { color: var(--muted, #5b6b82); font-weight: 500; font-size: 12.5px; line-height: 1.35; }
.sp-err { margin: -8px 0 0; padding: 11px 13px; border-radius: 12px; background: #fff2f3; border: 1px solid #ffd3d8; color: #b42335; font-size: 14px; }
.sp-go { width: 100%; height: 52px; margin: -6px 0 0; border-radius: 14px; font-size: 16px; font-weight: 800; }
.sp-trust { display: flex; align-items: flex-start; gap: 8px; margin: -12px 0 0; color: var(--muted, #5b6b82); font-size: 13px; line-height: 1.4; }
.sp-trust svg { flex: none; margin-top: 2px; }

.sp-sum { position: sticky; top: 90px; padding: 24px; display: grid; gap: 14px; }
.sp-sum h2 { margin: 0; font-size: 16px; }
.sp-sum-plan { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0; }
.sp-sum-plan b { font-size: 22px; letter-spacing: -.02em; }
.sp-sum-plan span { color: var(--muted, #5b6b82); font-weight: 700; font-size: 13px; }
.sp-sum-list { list-style: none; margin: 0; padding: 14px 0; border-block: 1px solid var(--border, #e1e7f0); display: grid; gap: 9px; }
.sp-sum-list li { position: relative; padding-left: 24px; font-size: 14px; }
.sp-sum-list li::before { content: ''; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #efeaff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a3df0' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat; }
.sp-sum-rows { margin: 0; display: grid; gap: 8px; }
.sp-sum-rows div { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.sp-sum-rows dt { color: var(--muted, #5b6b82); } .sp-sum-rows dd { margin: 0; font-weight: 700; }
.sp-total { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 14px; background: #f3f6fb; }
.sp-total span { font-weight: 700; } .sp-total b { font-size: 26px; letter-spacing: -.03em; }
.sp-note { margin: 0; color: var(--muted, #5b6b82); font-size: 12.5px; line-height: 1.45; }
.sp-test { margin: 0; padding: 8px 12px; border-radius: 10px; background: #fff7e6; color: #b45309; font-size: 13px; font-weight: 700; }

.sp-center { max-width: 520px; margin: 0 auto; padding: 38px 32px; text-align: center; display: grid; justify-items: center; gap: 12px; }
.sp-center h2 { margin: 4px 0 0; font-size: 24px; letter-spacing: -.02em; }
.sp-center p { margin: 0; color: var(--muted, #5b6b82); max-width: 40ch; }
.sp-ico { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(135deg, #e8f1ff, #efeaff); color: #5b35e6; }
.sp-ico.ok { border-radius: 50%; background: #e8f8ee; color: #15803d; }
.sp-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }
.sp-actions .btn, .sp-center .btn { text-decoration: none; }
.sp-inv { width: 100%; text-align: left; margin-top: 8px; }
.sp-inv h3 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted, #5b6b82); }
.sp-inv ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sp-inv li a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid var(--border, #e1e7f0); border-radius: 12px; color: inherit; text-decoration: none; font-weight: 600; }
.sp-inv li a:hover { border-color: #6a3df0; }

@media (max-width: 900px) { .sp-grid { grid-template-columns: 1fr; } .sp-sum { position: static; order: -1; } }
@media (max-width: 560px) { .sp-form { padding: 20px 16px; } .sp-plans, .sp-fields { grid-template-columns: 1fr; } .sp-plan-in { min-height: 0; } .sp-seg { display: grid; } .sp-seg em { display: none; } }
@media (prefers-reduced-motion: reduce) { .sp-plan-in, .sp-seg span { transition: none; } }
.sp-ico.wait { border-radius: 50%; background: #fff7e6; color: #b45309; }
