/* Keyra — paper / ink / signal-color design system */
:root {
  --paper: #f4f3ee;
  --ink: #0b0d0a;
  --muted: #4a4e46;
  --muted-2: #5b5f57;
  --line: #cfcec4;
  --white: #ffffff;
  --accent: #c8f31d;
  --on-accent: #0b0d0a;
  --on-dark: #c8f31d;
  --amber: #ffc933;
  --red: #ff6b3d;
  --dark-line: #2b2f28;
  --dark-text: #9ea39a;
  --font: 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}
[data-theme="cobalt"] { --accent: #3d5afe; --on-accent: #ffffff; --on-dark: #9db0ff; }
[data-theme="orange"] { --accent: #ff6b3d; --on-accent: #0b0d0a; --on-dark: #ff8a63; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: 15px; color: inherit; }
img, svg { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.dark-sec :focus-visible, .topbar :focus-visible, .ticker :focus-visible { outline-color: var(--on-dark); }
.mono { font-family: var(--mono); }
.ltr { direction: ltr; unicode-bidi: isolate; text-align: start; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1280px; margin: 0 auto; padding-inline: 32px; }
.muted { color: var(--muted-2); }
.inline { display: inline; margin: 0; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border: 1.5px solid var(--ink); background: var(--white); color: var(--ink); font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--paper); }
.btn--accent { background: var(--accent); color: var(--on-accent); box-shadow: 4px 4px 0 var(--ink); }
.btn--accent:hover { background: var(--accent); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #20241d; }
.btn--lg { height: 56px; padding: 0 30px; font-size: 17px; }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn--danger { background: var(--red); color: var(--ink); }
.icon-btn { width: 44px; height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--ink); background: var(--white); color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--accent); color: var(--on-accent); }

/* ---------- badges ---------- */
.badge { display: inline-block; padding: 2px 12px; border: 1.5px solid var(--ink); font-size: 13px; font-weight: 700; line-height: 1.6; white-space: nowrap; }
.badge--ok { background: var(--accent); color: var(--on-accent); }
.badge--warn { background: var(--amber); color: var(--ink); }
.badge--bad { background: var(--red); color: var(--ink); }
.badge--muted { background: var(--white); color: var(--muted); }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field > .label { font-size: 14px; font-weight: 700; }
.field .hint { font-size: 13px; color: var(--muted-2); }
.input, .select, .textarea { width: 100%; min-height: 46px; padding: 8px 14px; border: 1.5px solid var(--ink); background: var(--white); border-radius: 0; }
.textarea { min-height: 110px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: 3px solid var(--accent); outline-offset: 0; box-shadow: 0 0 0 1.5px var(--ink); }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--ink); }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.flash { padding: 14px 18px; border: 1.5px solid var(--ink); font-weight: 700; margin-bottom: 24px; }
.flash--ok { background: var(--accent); color: var(--on-accent); }
.flash--err { background: var(--red); color: var(--ink); }

/* ---------- ticker + brand ---------- */
.ticker { background: var(--ink); color: var(--on-dark); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; padding: 10px 32px; white-space: nowrap; overflow: hidden; text-align: center; direction: ltr; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: var(--on-dark); }
.brand__name { font-weight: 900; font-size: 26px; letter-spacing: .04em; line-height: 1; }

/* ---------- public site ---------- */
.site-head { border-bottom: 1.5px solid var(--ink); }
.site-head__in { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 10px; }
.site-nav { display: flex; gap: 32px; flex-wrap: wrap; }
.site-nav a { font-size: 16px; font-weight: 500; padding: 8px 0; }
.site-nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.site-actions { display: flex; align-items: center; gap: 12px; }

.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; padding-block: 72px; }
.hero__copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 30px; }
.eyebrow { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .1em; padding: 6px 12px; border: 1.5px solid var(--ink); }
.hero h1 { font-weight: 900; font-size: 76px; line-height: 1.2; letter-spacing: -.01em; }
.hero h1 .mark { display: inline-block; margin-top: 6px; padding: 0 14px; background: var(--accent); color: var(--on-accent); }
.hero h1 span.line { display: block; }
.lead { max-width: 560px; font-size: 20px; line-height: 1.8; color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; }
.hero__note { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.hero__art { flex: 1 1 440px; min-width: 0; max-width: 560px; display: flex; flex-direction: column; }

.ticket { position: relative; background: var(--white); border: 1.5px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); }
.ticket__bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 22px; background: var(--ink); color: var(--on-dark); font-family: var(--mono); font-size: 12px; letter-spacing: .1em; }
.ticket__body { padding: 26px 22px 22px; display: flex; flex-direction: column; gap: 22px; }
.ticket__label { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--muted-2); }
.ticket__key { font-family: var(--mono); font-size: 34px; font-weight: 700; letter-spacing: .02em; line-height: 1.2; }
.ticket__rule { border-top: 2px dashed var(--ink); }
.ticket__grid { display: flex; flex-wrap: wrap; gap: 22px 36px; }
.ticket__grid > div { display: flex; flex-direction: column; gap: 4px; }
.ticket__val { font-size: 17px; font-weight: 700; }
.ticket__val.mono { font-size: 16px; font-weight: 500; }
.ticket__stamp { position: absolute; top: 78px; inset-inline-end: 22px; transform: rotate(-8deg); padding: 6px 16px; background: var(--accent); color: var(--on-accent); border: 2px solid var(--ink); font-weight: 900; font-size: 20px; letter-spacing: .04em; }
.seats { display: flex; align-items: center; gap: 6px; direction: ltr; }
.seats i { width: 16px; height: 16px; background: var(--ink); display: inline-block; }
.seats i.empty { background: transparent; border: 1.5px solid var(--ink); }
.seats b { font-family: var(--mono); font-size: 14px; margin-inline-start: 6px; }
.term { margin-top: -18px; margin-inline-start: 56px; position: relative; background: var(--ink); color: var(--on-dark); border: 1.5px solid var(--ink); padding: 16px 20px; font-family: var(--mono); font-size: 13px; line-height: 1.9; direction: ltr; text-align: left; }
.term .dim { color: var(--dark-text); }
.term .cursor { display: inline-block; width: 8px; height: 14px; margin-inline-start: 6px; background: var(--on-dark); vertical-align: middle; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

.strip { border-block: 1.5px solid var(--ink); }
.strip__in { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.strip__cell { padding: 28px 32px; border-inline-start: 1.5px solid var(--ink); display: flex; flex-direction: column; gap: 4px; }
.strip__cell:first-child { border-inline-start: 0; }
.strip__v { font-family: var(--mono); font-size: 30px; font-weight: 700; }
.strip__c { font-size: 15px; color: var(--muted); }

.sec-tag { font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: .1em; }
.sec-title { font-weight: 900; font-size: 52px; line-height: 1.25; }
.sec-lead { font-size: 18px; line-height: 1.8; color: var(--muted); }
.sec-head { display: flex; flex-direction: column; gap: 18px; max-width: 760px; margin-bottom: 52px; }

.features { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-block: 120px 40px; }
.features__intro { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 24px; }
.features__list { flex: 2 1 600px; min-width: 0; border-top: 1.5px solid var(--ink); }
.feat { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 24px; padding-block: 26px; border-bottom: 1.5px solid var(--ink); }
.feat__n { flex: 0 0 44px; font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--muted-2); }
.feat__body { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.feat h3 { font-weight: 800; font-size: 24px; }
.feat p { font-size: 16px; line-height: 1.8; color: var(--muted); }
.feat__tag { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .08em; padding: 5px 10px; background: var(--accent); color: var(--on-accent); direction: ltr; }

.dark-sec { background: var(--ink); color: #e9eae3; }
.dark-sec .sec-title { color: #fff; }
.dark-sec .sec-tag { color: var(--on-dark); }
.dark-sec .sec-lead { color: var(--dark-text); }
#how { margin-top: 120px; }
#how .wrap, .accent-sec .wrap { padding-block: 112px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); border-top: 1.5px solid #e9eae3; }
.step { padding: 28px 28px 32px; border-inline-end: 1.5px solid var(--dark-line); display: flex; flex-direction: column; gap: 14px; }
.step__n { font-family: var(--mono); font-size: 48px; font-weight: 700; line-height: 1; color: var(--on-dark); }
.step h3 { font-weight: 800; font-size: 22px; color: #fff; }
.step p { font-size: 16px; line-height: 1.8; color: var(--dark-text); }
.sdk { margin-top: 64px; border: 1.5px solid #e9eae3; background: #11140f; direction: ltr; }
.sdk__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; border-bottom: 1.5px solid #e9eae3; }
.sdk__tabs { display: flex; }
.sdk__tab { height: 48px; padding: 0 22px; border: 0; border-inline-end: 1.5px solid #e9eae3; background: transparent; color: #e9eae3; font-family: var(--mono); font-size: 14px; font-weight: 700; cursor: pointer; }
.sdk__tab[aria-selected="true"] { background: var(--on-dark); color: var(--ink); }
.sdk__note { padding: 0 22px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--dark-text); }
.sdk pre { margin: 0; padding: 28px 28px 32px; font-family: var(--mono); font-size: 16px; line-height: 2; overflow-x: auto; color: #e9eae3; text-align: left; }
.sdk pre[hidden] { display: none; }
.sdk .c { color: var(--dark-text); }
.sdk .k { color: var(--on-dark); }

.accent-sec { background: var(--accent); color: var(--on-accent); border-bottom: 1.5px solid var(--ink); }
.accent-sec .sec-lead { color: var(--on-accent); }
.demo { display: flex; flex-wrap: wrap; gap: 40px; align-items: stretch; }
.demo__card { flex: 1 1 400px; min-width: 0; background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); display: flex; flex-direction: column; }
.demo__bar { padding: 12px 18px; border-bottom: 1.5px solid var(--ink); display: flex; align-items: center; justify-content: space-between; background: var(--white); font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.demo__bar--dark { background: var(--ink); color: var(--on-dark); }
.demo__stage { flex: 1 1 auto; min-height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; text-align: center; }
.demo__spin { width: 44px; height: 44px; border: 4px solid #d6d5cc; border-top-color: var(--ink); border-radius: 50%; animation: spin 1s linear infinite; }
.demo__tick { width: 56px; height: 56px; background: var(--ink); color: var(--on-dark); display: flex; align-items: center; justify-content: center; }
.demo__name { font-size: 20px; font-weight: 800; }
.demo__list { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.demo__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; background: var(--white); border: 1.5px solid var(--ink); font-family: var(--mono); font-size: 14px; }
.demo__toast { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border: 1.5px dashed var(--ink); font-weight: 700; }
.demo [data-when] { display: none; }
.demo[data-state="pending"] [data-when="pending"], .demo[data-state="done"] [data-when="done"] { display: flex; }
.demo[data-state="pending"] .demo__row [data-when="pending"] { display: flex; }

.plans { padding-block: 120px 40px; }
.table-scroll { overflow-x: auto; }
.plan-table { width: 100%; min-width: 760px; border-collapse: collapse; background: var(--white); border: 1.5px solid var(--ink); }
.plan-table th, .plan-table td { padding: 18px 22px; border: 1.5px solid var(--ink); text-align: start; vertical-align: top; }
.plan-table thead th { background: var(--ink); color: var(--paper); border-color: var(--dark-line); }
.plan-table .pname { font-weight: 900; font-size: 24px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plan-table .pprice { font-family: var(--mono); font-size: 20px; font-weight: 700; color: var(--on-dark); display: block; margin-top: 6px; }
.plan-table tbody th { font-size: 16px; font-weight: 700; background: var(--white); }
.plan-table td { font-family: var(--mono); font-size: 15px; }
.pop { font-family: var(--font); font-size: 12px; font-weight: 700; padding: 3px 10px; background: var(--on-dark); color: var(--ink); }

.contact { margin-top: 120px; overflow: hidden; }
.contact__in { padding-block: 96px 0; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; justify-content: space-between; }
.contact__copy { flex: 1 1 420px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.contact h2 { font-weight: 900; font-size: 56px; line-height: 1.25; color: #fff; }
.contact__links { display: flex; flex-wrap: wrap; gap: 16px; }
.lead-form { flex: 1 1 380px; max-width: 520px; background: var(--paper); color: var(--ink); border: 1.5px solid #e9eae3; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.lead-form h3 { font-weight: 800; font-size: 22px; }
.wordmark { margin-top: 56px; text-align: center; font-weight: 900; font-size: clamp(90px, 21vw, 280px); line-height: .78; letter-spacing: .02em; color: var(--on-dark); opacity: .9; white-space: nowrap; direction: ltr; overflow: hidden; }
.site-foot { border-top: 1.5px solid var(--dark-line); background: var(--ink); color: var(--dark-text); }
.site-foot__in { padding-block: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.site-foot b { font-family: var(--mono); letter-spacing: .08em; color: #e9eae3; }

/* ---------- admin ---------- */
.topbar { background: var(--ink); color: #e9eae3; }
.topbar__in { max-width: 1360px; margin: 0 auto; padding-inline: 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.topbar__l { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.topbar .brand { min-height: 64px; color: #fff; }
.topbar .brand__mark { background: var(--accent); color: var(--on-accent); width: 32px; height: 32px; }
.topbar .brand__name { font-size: 22px; }
.tabs { display: flex; flex-wrap: wrap; }
.tab { min-height: 64px; padding: 0 14px; display: flex; align-items: center; font-size: 15px; font-weight: 500; color: var(--dark-text); border-bottom: 4px solid transparent; }
.tab:hover { color: #fff; }
.tab.is-active { color: #fff; font-weight: 700; border-bottom-color: var(--accent); }
.tab .count { margin-inline-start: 8px; padding: 0 8px; background: var(--accent); color: var(--on-accent); font-family: var(--mono); font-size: 12px; font-weight: 700; }
.topbar__r { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-block: 8px; }
.topbar .search { display: flex; align-items: center; gap: 10px; height: 44px; padding-inline: 14px; border: 1.5px solid #3a3f37; color: var(--dark-text); }
.topbar .search input { width: 170px; background: transparent; border: 0; outline: 0; color: #e9eae3; font-size: 14px; }
.topbar .btn:not(.btn--accent) { background: transparent; color: #e9eae3; border-color: #3a3f37; }
.topbar .btn--accent { box-shadow: none; border-color: var(--accent); }

.page { max-width: 1360px; margin: 0 auto; padding: 36px 32px 64px; display: flex; flex-direction: column; gap: 28px; }
.page__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page__head h1 { font-weight: 900; font-size: 44px; line-height: 1.2; }
.page__head .meta { font-family: var(--mono); font-size: 13px; color: var(--muted-2); }
.page__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border: 1.5px solid var(--ink); background: var(--white); }
.stat { padding: 22px 24px; border-inline-start: 1.5px solid var(--ink); display: flex; flex-direction: column; gap: 6px; }
.stat:first-child { border-inline-start: 0; }
.stat__l { font-size: 14px; font-weight: 500; color: var(--muted-2); }
.stat__v { font-family: var(--mono); font-size: 42px; font-weight: 700; line-height: 1.1; }
.stat__n { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 2px 10px; background: var(--accent); color: var(--on-accent); }

.cols { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.cols__main { flex: 2 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.cols__side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }

.panel { border: 1.5px solid var(--ink); background: var(--white); min-width: 0; }
.panel--shadow { box-shadow: 8px 8px 0 var(--ink); }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; background: var(--ink); color: var(--on-dark); font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.panel__body { padding: 20px; }
.panel__empty { padding: 28px 20px; font-weight: 700; color: var(--muted-2); }

.table-wrap { overflow-x: auto; }
.table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 15px; }
.table th { padding: 12px 18px; border-bottom: 1.5px solid var(--ink); font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-align: start; color: var(--muted-2); white-space: nowrap; }
.table td { padding: 12px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .mono { font-size: 13px; }
.table a.link { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.table .actions { display: flex; gap: 8px; justify-content: flex-end; }
.table td.num, .table th.num { text-align: end; }

.req { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 20px; border-bottom: 1.5px solid var(--ink); }
.req:last-child { border-bottom: 0; }
.req__who { font-size: 18px; font-weight: 800; }
.req__meta { font-family: var(--mono); font-size: 13px; color: var(--muted-2); }
.req__btns { display: flex; gap: 10px; }

.heat { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; direction: ltr; }
.heat i { height: 30px; background: var(--ink); border: 1px solid rgba(11, 13, 10, .25); display: block; }
.heat-scale { display: flex; justify-content: space-between; margin-top: 12px; font-family: var(--mono); font-size: 11px; color: var(--muted-2); direction: ltr; }
.feed { display: flex; flex-direction: column; }
.feed__row { display: flex; gap: 14px; align-items: baseline; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.feed__row:last-child { border-bottom: 0; }
.feed__t { flex: 0 0 auto; font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--muted-2); }

.dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0; }
.dl dt { font-weight: 700; color: var(--muted-2); }
.dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.keybox { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 20px; background: var(--ink); color: var(--on-dark); }
.keybox code { font-family: var(--mono); font-size: 28px; font-weight: 700; letter-spacing: .03em; direction: ltr; }
.code { margin: 0; padding: 16px 18px; background: var(--ink); color: #e9eae3; font-family: var(--mono); font-size: 13px; line-height: 1.8; overflow-x: auto; direction: ltr; text-align: left; white-space: pre; }
.pager { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-family: var(--mono); font-size: 13px; }
.pager a, .pager span { min-width: 40px; height: 40px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--ink); background: var(--white); font-weight: 700; }
.pager .is-current { background: var(--ink); color: var(--on-dark); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filters .chip { height: 40px; padding: 0 14px; display: inline-flex; align-items: center; border: 1.5px solid var(--ink); background: var(--white); font-weight: 700; font-size: 14px; }
.filters .chip.is-active { background: var(--ink); color: var(--on-dark); }

/* ---------- auth / install ---------- */
.bare { min-height: 100vh; display: flex; flex-direction: column; }
.bare__main { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.bare__card { width: 100%; max-width: 480px; background: var(--white); border: 1.5px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); }
.bare__card.wide { max-width: 640px; }
.bare__head { padding: 22px 28px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bare__head .brand__mark { background: var(--accent); color: var(--on-accent); }
.bare__body { padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.bare__body h1 { font-weight: 900; font-size: 30px; line-height: 1.25; }
.langlink { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--on-dark); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero h1 { font-size: 52px; }
  .sec-title, .contact h2 { font-size: 38px; }
  .features__intro { position: static; }
  .term { margin-inline-start: 24px; }
}
@media (max-width: 640px) {
  .wrap, .page, .topbar__in { padding-inline: 18px; }
  .hero { padding-block: 44px; gap: 40px; }
  .hero h1 { font-size: 40px; }
  .lead { font-size: 18px; }
  .ticket__key { font-size: 24px; }
  .ticker { padding-inline: 12px; }
  .strip__cell { border-inline-start: 0; border-top: 1.5px solid var(--ink); }
  .strip__cell:first-child { border-top: 0; }
  .page__head h1 { font-size: 32px; }
  .keybox code { font-size: 20px; }
  .tab { min-height: 48px; }
  .topbar .search input { width: 120px; }
  #how .wrap, .accent-sec .wrap { padding-block: 72px; }
  .features { padding-top: 72px; }
  .plans { padding-top: 72px; }
  .contact { margin-top: 72px; }
  .contact__in { padding-top: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- plans (data-driven cards) ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; align-items: stretch; }
.plan { background: var(--white); border: 1.5px solid var(--ink); display: flex; flex-direction: column; }
.plan--pop { box-shadow: 8px 8px 0 var(--ink); }
.plan__head { padding: 22px 24px; background: var(--ink); color: var(--paper); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.plan__name { font-weight: 900; font-size: 24px; }
.plan__price { flex-basis: 100%; font-family: var(--mono); font-size: 22px; font-weight: 700; color: var(--on-dark); }
.plan__list { list-style: none; margin: 0; padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1 1 auto; }
.plan__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; }
.plan__list svg { flex: 0 0 auto; margin-top: 4px; }
.plan > .btn { margin: 0 24px 24px; }
