/* System Crew brand */
@font-face { font-family: 'Montserrat'; src: url('/static/fonts/Montserrat-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('/static/fonts/Montserrat-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('/static/fonts/Montserrat-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('/static/fonts/Montserrat-ExtraBold.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  --bg: #232830;
  --bg2: #32353e;
  --paper: #f2f2f2;
  --card: #ffffff;
  --ink: #1a1d22;
  --ink-soft: #3a3f47;
  --muted: #767c87;
  --accent: #3bcbaa;
  --accent-dark: #239378;
  --accent-ink: #0e241c;
  --ok: #239378;
  --err: #e2504a;
  --warn: #dd9f3d;
  --border: #e7e7e9;
  --radius: 18px;
  --radius-sm: 10px;
  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  background: linear-gradient(180deg, var(--bg) 0, var(--bg) 150px, var(--paper) 150px);
  color: var(--ink);
  min-height: 100vh;
}
.wrap { max-width: 460px; margin: 0 auto; padding: 0 0 48px; position: relative; }

/* header / brand */
header.brand {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 28px 22px 42px;
  color: #fff;
  overflow: hidden;
}
.brand-mark { display: inline-flex; align-items: center; }
.client-logo { height: 30px; width: auto; display: block; }
.brand-name { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: rgba(255,255,255,.68); margin-left: 2px; }

/* decorative line clusters (brand motif) -- kept low-key and away from the top-right corner so
   they never read as a menu control */
.deco { position: absolute; display: flex; flex-direction: column; gap: 3px; pointer-events: none; }
.deco i { display: block; height: 2px; border-radius: 1px; background: currentColor; }
.deco.teal { color: var(--accent); opacity: .55; }
.deco.white { color: #fff; opacity: .2; }
.deco-1 { bottom: 18px; right: 22px; }
.deco-1 i:nth-child(1){width:24px;} .deco-1 i:nth-child(2){width:16px;}
.deco-2 { bottom: 30px; right: 52px; }
.deco-2 i{width:11px;}

/* wordmark */
.sc-logo { display: inline-flex; flex-direction: column; gap: .08em; line-height: 1; font-family: var(--font); }
.sc-logo .row { display: inline-flex; align-items: center; }
.sc-logo .txt { letter-spacing: .01em; }
.sc-logo .row1 .txt { font-weight: 800; color: #fff; }
.sc-logo .row2 .txt { font-weight: 400; color: #fff; }
.sc-logo.sc-logo-onlight .row1 .txt, .sc-logo.sc-logo-onlight .row2 .txt { color: var(--ink); }
.sc-e { display: inline-flex; flex-direction: column; justify-content: space-between; width: .6em; height: .56em; margin: 0 .03em; transform: translateY(.01em); }
.sc-e i { display: block; height: .078em; border-radius: 1px; background: var(--accent); }
.sc-e i:nth-child(2) { width: 62%; }

main {
  background: var(--card);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 30px 22px 28px;
  margin-top: -22px;
  position: relative;
  box-shadow: 0 -10px 26px rgba(19,20,20,.08);
}
h1 { font-size: 22px; font-weight: 800; margin: 0 0 16px; letter-spacing: -.01em; }
h2 { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 26px 0 12px; }
.msg { color: var(--muted); font-size: 14px; line-height: 1.5; }
.msg.err { color: var(--err); font-weight: 600; }

.plans { display: flex; flex-direction: column; gap: 14px; }
.plan { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px; background: var(--paper); }
.plan-head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.plan-name { font-size: 15px; }
.plan-price { color: var(--accent-dark); font-size: 18px; font-weight: 800; }
.plan-desc { color: var(--muted); font-size: 13.5px; margin: 6px 0; }
.plan-facts { margin: 10px 0 16px; padding-left: 0; list-style: none; font-size: 13px; color: var(--muted); }
.plan-facts li { margin: 4px 0; padding-left: 18px; position: relative; }
.plan-facts li::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 2px; background: var(--accent-dark); border-radius: 1px; }

form { display: flex; flex-direction: column; gap: 10px; }
.email-field { font-size: 12.5px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
input[type=text], input[type=email], input[type=number], select {
  font-family: var(--font); font-size: 16px; padding: 11px 13px; border: 1px solid var(--border);
  border-radius: 10px; width: 100%; background: #fff; color: var(--ink);
}
.voucher-form { flex-direction: row; }
.voucher-form input { flex: 1; text-transform: uppercase; }

.btn {
  display: inline-block; text-align: center; padding: 12px 18px; border-radius: 10px; border: none;
  font-family: var(--font); font-size: 14.5px; font-weight: 700; cursor: pointer; text-decoration: none;
  letter-spacing: .01em;
}
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-dark); color: #fff; }
.btn.secondary { background: var(--paper); color: var(--ink); border: 1px solid var(--border); }
.btn.danger { background: #fbe8e7; color: var(--err); }
.btn.small { padding: 7px 11px; font-size: 12.5px; }

.sep { border: none; border-top: 1px solid var(--border); margin: 26px 0; }
.terms-note { font-size: 12px; color: var(--muted); margin-top: 18px; line-height: 1.5; }
footer { text-align: center; padding: 20px 16px 0; font-size: 12px; color: var(--muted); }
footer a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
footer a:hover { color: var(--accent-dark); }

.center main { text-align: center; }
.center .plan-facts { text-align: center; }
.center .plan-facts li { padding-left: 0; }
.center .plan-facts li::before { display: none; }
.card.status h1 { margin-bottom: 8px; }
.card.status.ok h1 { color: var(--accent-dark); }
.card.status.err h1 { color: var(--err); }
.card.status.warn h1 { color: var(--warn); }
.code-label { color: var(--muted); font-size: 12.5px; margin: 14px 0 4px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.code { font-size: 32px; font-weight: 800; letter-spacing: .04em; margin: 0 0 10px; font-family: var(--font); }
.actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.spinner { width: 30px; height: 30px; margin: 16px auto; border: 3px solid var(--border);
  border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
