/* Plans & checkout */
main { overflow-x: clip; }
.spin-sm { display: inline-block; width: 18px; height: 18px; flex: none; border: 2px solid var(--rule-2); border-top-color: var(--signal); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
body.no-scroll { overflow: hidden; }

/* Hero */
.p-hero { padding: 150px 0 56px; border-bottom: 1px solid var(--rule); background: radial-gradient(70% 90% at 85% 0, rgba(255, 74, 28, 0.13), transparent 60%); container-type: inline-size; }
.p-hero h1 { margin: 18px 0 20px; font: 900 clamp(44px, 9cqi, 120px)/0.9 var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: -0.01em; }
.p-hero h1 em { font-style: normal; color: var(--signal); }
.p-hero > .wrap > p { max-width: 560px; color: var(--muted); font-size: 17px; margin: 0; }
.p-controls { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 40px; }

.period { display: inline-flex; padding: 4px; border-radius: 4px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--rule-2); }
.period button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border: 0; border-radius: 3px; background: transparent; color: var(--muted); font: 700 12px/1 var(--display); font-stretch: 112%; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; transition: background 0.15s, color 0.15s; }
.period button:hover { color: var(--text); }
.period button.on { background: var(--text); color: var(--ink); }
.period button span { padding: 3px 6px; border-radius: 2px; background: rgba(53, 208, 127, 0.15); color: var(--ok); font: 500 10px/1 var(--mono); letter-spacing: 0.04em; }
.period button.on span { background: var(--ok); color: var(--ink); }

.server-pick { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; min-height: 42px; }
.pick { display: grid; gap: 8px; }
.select { position: relative; display: block; width: min(340px, calc(100vw - 32px)); }
.select select { width: 100%; height: 44px; padding: 0 38px 0 14px; border: 0; border-radius: 3px; background: var(--ink-3); box-shadow: inset 0 0 0 1px var(--rule-2); color: var(--text); font-size: 14px; -webkit-appearance: none; appearance: none; cursor: pointer; }
.select select:focus { outline: none; box-shadow: inset 0 0 0 1px var(--signal); }
.select::after { content: ''; position: absolute; right: 15px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.pick-empty { color: var(--muted); font-size: 14px; }
.pick-empty a { color: var(--signal-hi); text-decoration: underline; text-underline-offset: 3px; }

/* Order status after checkout */
.order-status { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; padding: 18px 20px; border-radius: 4px; background: var(--ink-2); box-shadow: inset 3px 0 0 var(--info), inset 0 0 0 1px var(--rule-2); }
.order-status > div { display: flex; gap: 14px; align-items: flex-start; }
.order-status b { display: block; font: 800 16px/1.2 var(--display); font-stretch: 115%; text-transform: uppercase; }
.order-status p { margin: 4px 0 0; color: var(--muted); font-size: 14px; max-width: 640px; }
.order-status.ok { box-shadow: inset 3px 0 0 var(--ok), inset 0 0 0 1px rgba(53, 208, 127, 0.35); background: rgba(53, 208, 127, 0.06); }
.order-status.bad { box-shadow: inset 3px 0 0 var(--signal), inset 0 0 0 1px rgba(255, 74, 28, 0.35); background: rgba(255, 74, 28, 0.06); }

/* Plan cards */
.p-plans { padding: 56px 0 88px; }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan-card { position: relative; display: flex; flex-direction: column; padding: 30px 28px 32px; border-radius: 4px; background: var(--ink-1); box-shadow: inset 0 0 0 1px var(--rule); transition: box-shadow 0.25s, transform 0.25s var(--ease); }
.plan-card:hover { box-shadow: inset 0 0 0 1px var(--rule-2); }
.plan-card.basic { background: var(--ink-2); }
.plan-card.premium { background: radial-gradient(120% 70% at 100% 0, rgba(255, 74, 28, 0.2), transparent 65%), var(--ink-2); box-shadow: inset 0 0 0 1px rgba(255, 74, 28, 0.55); }
.plan-card.focus { box-shadow: inset 0 0 0 2px var(--signal); }
.plan-card.current { box-shadow: inset 0 0 0 2px var(--ok); }
.skeleton-card { min-height: 520px; background: linear-gradient(100deg, var(--ink-1) 30%, var(--ink-2) 50%, var(--ink-1) 70%); background-size: 300% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }
.ribbon { position: absolute; top: -11px; right: 20px; height: 22px; padding: 0 9px; display: inline-flex; align-items: center; border-radius: 3px; background: var(--signal); color: var(--ink); font: 700 10px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.ribbon.cur { background: var(--ok); right: auto; left: 20px; }
.plan-card .label { color: var(--muted); }
.plan-card.premium .label { color: var(--signal-hi); }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: 18px; }
.price b { font: 900 56px/0.9 var(--display); font-stretch: 120%; letter-spacing: -0.02em; }
.price span { color: var(--dim); font: 500 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.billed { margin: 10px 0 0; color: var(--dim); font: 500 12px/1.4 var(--mono); }
.tagline { margin: 18px 0 22px; color: var(--muted); font-size: 15px; min-height: 2.8em; }
.plan-card .btn { width: 100%; justify-content: center; }
.plan-card ul { list-style: none; margin: 26px 0 0; padding: 22px 0 0; border-top: 1px solid var(--rule); display: grid; gap: 11px; }
.plan-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text); }
.plan-card li svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--ok); }
.plan-card.premium li svg { color: var(--signal-hi); }
.plan-card li.inherit { color: var(--muted); font-weight: 600; }
.load-err { grid-column: 1 / -1; color: var(--muted); }

/* Compare */
.p-compare, .p-faq { padding: 88px 0; border-top: 1px solid var(--rule); container-type: inline-size; }
.sec-head { margin-bottom: 36px; }
.sec-head h2 { margin: 14px 0 0; font: 900 clamp(32px, 6cqi, 64px)/0.95 var(--display); font-stretch: 125%; text-transform: uppercase; }
.cmp-wrap { overflow-x: auto; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--rule); }
.cmp { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 14px; }
.cmp th, .cmp td { padding: 14px 18px; border-bottom: 1px solid var(--rule); text-align: center; }
.cmp th:first-child, .cmp td:first-child { text-align: left; color: var(--text); }
.cmp thead th { position: sticky; top: 0; background: var(--ink-1); font: 800 13px/1 var(--display); font-stretch: 120%; letter-spacing: 0.04em; text-transform: uppercase; }
.cmp thead th.premium { color: var(--signal-hi); }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp tbody tr:hover td { background: var(--ink-1); }
.cmp td.premium { background: rgba(255, 74, 28, 0.04); }
.cmp .yes { width: 18px; height: 18px; color: var(--ok); vertical-align: middle; }
.cmp td.premium .yes { color: var(--signal-hi); }
.cmp .no { color: var(--dim); }
.cmp .val { font: 500 12.5px/1 var(--mono); color: var(--text); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 1px var(--rule); }
.faq-grid > div { padding: 26px 24px; background: var(--ink); }
.faq-grid h3 { margin: 0 0 10px; font: 800 16px/1.2 var(--display); font-stretch: 115%; text-transform: uppercase; }
.faq-grid p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* Checkout modal */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-back { position: absolute; inset: 0; background: rgba(5, 5, 6, 0.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadeIn 0.2s; }
.modal-card { position: relative; width: min(480px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 30px 28px 26px; border-radius: 5px; background: var(--ink-1); box-shadow: 0 0 0 1px var(--rule-2), 0 40px 80px -24px #000; animation: modalIn 0.3s var(--ease-out); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.modal-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 3px; background: transparent; color: var(--dim); cursor: pointer; }
.modal-x:hover { background: var(--ink-3); color: var(--text); }
.modal-x svg { width: 18px; height: 18px; }
.modal-card h2 { margin: 10px 0 20px; font: 900 30px/1 var(--display); font-stretch: 122%; text-transform: uppercase; }
.modal-card h2 span { color: var(--signal); }
.co-sum { margin: 0 0 16px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--rule); }
.co-sum div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--rule); font-size: 14px; }
.co-sum div:last-child { border-bottom: 0; }
.co-sum dt { color: var(--dim); }
.co-sum dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.co-sum .total dd { font: 800 18px/1 var(--display); font-stretch: 115%; }
.co-note { margin: 0 0 16px; padding: 10px 14px; border-radius: 3px; background: rgba(122, 167, 255, 0.08); color: #c9d8ff; font-size: 13.5px; }
.pay-opts { display: grid; gap: 10px; }
.pay-opt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border: 0; border-radius: 4px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--rule-2); color: var(--text); text-align: left; cursor: pointer; transition: box-shadow 0.15s, background 0.15s; }
.pay-opt > svg { width: 26px; height: 26px; flex: none; color: var(--signal-hi); }
.pay-opt span { flex: 1; }
.pay-opt b { display: block; font: 800 15px/1.1 var(--display); font-stretch: 115%; text-transform: uppercase; }
.pay-opt small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.pay-opt .go { width: 18px; height: 18px; color: var(--muted); transition: transform 0.2s var(--ease); }
.pay-opt:not(:disabled):hover { box-shadow: inset 0 0 0 1px var(--signal); background: var(--ink-3); }
.pay-opt:not(:disabled):hover .go { transform: translateX(3px); color: var(--signal); }
.pay-opt:disabled { cursor: not-allowed; opacity: 0.55; }
.pay-opt:disabled > svg { color: var(--dim); }
.pay-opt .soon { flex: none; padding: 5px 8px; border-radius: 3px; background: var(--ink-4); color: var(--muted); font: 500 10px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.pay-opt.busy { pointer-events: none; }
.pay-opt.busy .go { animation: spin 0.8s linear infinite; }
.co-fine { margin: 16px 0 0; color: var(--dim); font-size: 12.5px; }

@media (max-width: 980px) {
  .plan-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .faq-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .p-hero { padding: 116px 0 40px; }
  .p-controls { flex-direction: column; align-items: stretch; }
  .period { align-self: flex-start; }
  .faq-grid { grid-template-columns: 1fr; }
  .order-status { flex-direction: column; align-items: flex-start; }
  .plan-card { padding: 26px 22px 28px; }
  .price b { font-size: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .modal-card, .modal-back, .skeleton-card { animation: none; }
}
.co-fine a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* Phones: the whole comparison fits on screen, no sideways scrolling. */
@media (max-width: 640px) {
  .cmp { min-width: 0; table-layout: fixed; font-size: 13px; }
  .cmp th, .cmp td { padding: 12px 6px; }
  .cmp th:first-child, .cmp td:first-child { padding-left: 12px; width: auto; overflow-wrap: anywhere; }
  .cmp th:not(:first-child), .cmp td:not(:first-child) { width: 62px; }
  .cmp thead th { font-size: 10px; letter-spacing: 0; font-stretch: 100%; }
  .cmp th:last-child, .cmp td:last-child { width: 72px; }
  .cmp .val { font-size: 11px; line-height: 1.25; }
  .cmp .yes { width: 16px; height: 16px; }
}
