:root {
  color-scheme: dark;
  --ink: #f4f5ed;
  --muted: #b2b7a9;
  --surface: #1b201c;
  --line: #343b32;
  --lime: #c3f36b;
  --dark: #131613;
  --red: #ffac9d;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--dark);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.5; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .22em; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }
button, input, select { font: inherit; }
button, summary { cursor: pointer; }
button:disabled, select:disabled { cursor: wait; opacity: .65; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h1, h2 { letter-spacing: -.055em; line-height: 1.05; }
h1 { font-size: clamp(2.8rem, 5.2vw, 4.5rem); font-weight: 650; }
h2 { font-size: clamp(2rem, 3vw, 2.65rem); font-weight: 650; }
h3 { font-size: 1.18rem; font-weight: 630; line-height: 1.25; letter-spacing: -.022em; }
.shell { width: min(1180px, calc(100% - clamp(36px, 9vw, 132px))); margin-inline: auto; }
.mast { border-bottom: 1px solid var(--line); }
.mast-inner, .footer-inner, .brand, nav, .hero-links, .button-row, .section-title, .panel-head, .identity, .ticket-top, .ticket-foot, .plan-term { display: flex; align-items: center; }
.mast-inner { min-height: 75px; justify-content: space-between; gap: 16px; }
.brand { width: fit-content; gap: .65rem; font-weight: 700; letter-spacing: -.045em; font-size: 1.22rem; text-decoration: none; }
nav { gap: 1.6rem; }
nav a, .footer-inner a:not(.brand) { font-size: .92rem; text-decoration: none; color: var(--muted); }
nav a:hover, .footer-inner a:not(.brand):hover, .text-link:hover, .plain-button:hover { color: var(--lime); }
nav .nav-action { border: 1px solid #515c49; border-radius: 6px; padding: .5rem .95rem; color: var(--ink); }
.skip, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; overflow: visible; clip-path: none; left: 1rem; top: 1rem; z-index: 5; background: var(--lime); color: var(--dark); padding: .75rem; }
.hero { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 4.4rem); padding-block: clamp(3.5rem, 7vw, 6rem); }
.eyebrow { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; color: var(--lime); font: 650 .73rem/1.45 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.status-light { width: 7px; height: 7px; background: var(--lime); border-radius: 50%; }
.hero h1 { font-weight: 650; font-size: clamp(3.65rem, 6.25vw, 5.65rem); line-height: .99; letter-spacing: -.067em; }
.hero h1 em { font-style: normal; color: var(--lime); }
.lead { color: var(--muted); line-height: 1.6; font-size: 1.08rem; max-width: 49ch; margin-top: 1.25rem; }
.hero-links, .button-row { flex-wrap: wrap; gap: 1.45rem; margin-top: 1.8rem; }
.button, .text-link, .plain-button { display: inline-flex; align-items: center; justify-content: center; gap: .75rem; font-size: .94rem; font-weight: 650; }
.button { min-height: 42px; border-radius: 7px; border: 1px solid transparent; padding: .6rem 1.1rem; text-decoration: none; }
.primary { background: var(--lime); color: #1b2510; }
.primary:hover:enabled, a.primary:hover { background: #d3ff85; }
.secondary { background: #242b23; border-color: #475040; color: var(--ink); }
.secondary:hover:enabled { background: #30392c; }
.text-link, .plain-button { text-decoration: underline; text-underline-offset: .25rem; }
.plain-button { color: var(--ink); background: transparent; border: 0; padding: .4rem .1rem; }
.pass-stage { position: relative; display: grid; place-items: center; min-height: clamp(295px, 28vw, 382px); isolation: isolate; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background-color: #1c231c; background-image: radial-gradient(ellipse at center, #35432a 0%, transparent 68%), linear-gradient(90deg, #2b3329 1px, transparent 1px), linear-gradient(#2b3329 1px, transparent 1px); background-size: auto, 28px 28px, 28px 28px; }
.pass-stage::before, .pass-stage::after { content: ""; width: 85%; aspect-ratio: 1; position: absolute; z-index: -1; border-radius: 50%; border: 1px solid #47563b; }
.pass-stage::after { width: 67%; }
.ticket { position: relative; width: min(76%, 325px); padding: clamp(1rem, 2vw, 1.65rem); border: 1px solid #dcff9e; border-radius: 13px; overflow: hidden; transform: rotate(-6deg); color: #1b2718; box-shadow: 7px 12px 0 #0c110c7d; background: #c3f36b; background-image: repeating-radial-gradient(ellipse at 115% 5%, transparent 0 6px, #648e3e4d 7px, transparent 8px 12px); }
.ticket-top { gap: .45rem; font-size: .87rem; letter-spacing: -.025em; font-weight: 700; }
.ticket-top img { width: 25px; height: 25px; }
.ticket-title { font-weight: 700; font-size: clamp(2.15rem, 3.7vw, 3.25rem); line-height: .96; letter-spacing: -.065em; margin: 1.35rem 0 1.5rem; }
.ticket-foot { border-top: 1px dashed #4e6d32; padding-top: .85rem; justify-content: space-between; gap: .45rem; font: 600 .7rem/1.3 var(--mono); }
.section { border-top: 1px solid var(--line); padding-block: clamp(2.5rem, 5vw, 4.5rem); scroll-margin-block: 1.5rem; }
.section-title, .panel-head { justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.section-title { align-items: end; margin-bottom: 1.5rem; }
.muted, .terms, .hint { color: var(--muted); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.plan, .panel, dialog { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; }
.plan { padding: clamp(1.15rem, 2vw, 1.7rem); }
.plan h3 { color: var(--muted); }
.price { font-size: clamp(2.8rem, 4.5vw, 4rem); letter-spacing: -.075em; font-weight: 650; line-height: 1; margin: 1.4rem 0; }
.price span { font: 500 .75rem var(--mono); color: var(--muted); letter-spacing: .03em; }
.plan-term { gap: .55rem; border-top: 1px solid var(--line); padding-top: 1rem; font-size: .9rem; }
.clock-icon { width: 15px; height: 15px; border: 1.5px solid var(--lime); border-radius: 50%; position: relative; }
.clock-icon::before { content: ""; width: 3px; height: 4px; border-left: 1px solid var(--lime); border-bottom: 1px solid var(--lime); position: absolute; top: 3px; left: 5px; }
.terms { font-size: .9rem; margin-top: 1rem; }
.purchase { display: grid; grid-template-columns: .85fr 1fr; gap: 2rem; }
.steps { counter-reset: purchase; list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; padding-left: 2.9rem; counter-increment: purchase; }
.steps li::before { content: counter(purchase); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid #4b5841; border-radius: 8px; color: var(--lime); font: 500 .85rem var(--mono); }
.steps li+li { margin-top: 1.55rem; }
.steps p { color: var(--muted); margin-top: .35rem; }
footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 75px; justify-content: space-between; gap: .9rem; }
.footer-inner .brand { color: var(--muted); font-size: 1rem; }
.narrow { max-width: 680px; padding-bottom: 4rem; }
.page-head { padding-top: clamp(2.7rem, 5vw, 4.6rem); margin-bottom: 2rem; }
.page-head h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
.panel, dialog { padding: clamp(1.2rem, 3vw, 2rem); }
.panel h2, dialog h2 { font-size: clamp(1.65rem, 3vw, 2.15rem); }
.panel > .muted, .panel > p:not(.eyebrow) { margin: .65rem 0 1rem; }
.panel-head { align-items: start; }
.panel h2, .action-form h3 { margin-bottom: .6rem; }
label { display: block; color: var(--ink); font-size: .9rem; font-weight: 600; margin: .9rem 0 .4rem; }
input, select { display: block; width: 100%; min-width: 0; min-height: 44px; padding: .55rem .7rem; border: 1px solid #525d4d; background: #151a15; color: var(--ink); border-radius: 6px; }
input::placeholder { color: #9fa598; }
input:focus-visible, select:focus-visible { outline-width: 2px; outline-offset: 1px; }
.hint { font-size: .85rem; margin-top: .45rem; }
form > .button { margin-top: 1.15rem; }
.identity { justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); margin-top: 1.4rem; padding-block: .8rem; flex-wrap: wrap; }
.identity strong, .mono { font-family: var(--mono); font-size: .92rem; overflow-wrap: anywhere; }
.notice { color: var(--muted); padding: .8rem 1rem; border-left: 2px solid var(--lime); margin-bottom: .9rem; background: var(--surface); }
.message { margin-top: .7rem; color: var(--lime); overflow-wrap: anywhere; }
.message:empty { display: none; }
.error { color: var(--red); }
.success-panel, .key-card { border-color: #506441; }
.gate { max-width: 620px; }
.console { padding-bottom: 5rem; }
.console .identity { margin-top: -.65rem; }
.section-nav { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); gap: 1.65rem; padding-block: .75rem; flex-wrap: wrap; }
.console-section { margin-top: 2.5rem; scroll-margin-top: 1.2rem; }
.filters, .form-grid { display: grid; gap: 1rem; }
.filters { grid-template-columns: minmax(0, 1fr) minmax(135px, 220px); margin-bottom: .8rem; }
.form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid label, .filters label { margin-top: .35rem; }
.table-wrap { border: 1px solid var(--line); border-radius: 9px; overflow: auto; margin-top: .65rem; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: .9rem; }
td, th { padding: .8rem .85rem; vertical-align: middle; }
th { background: #212720; color: var(--muted); font-size: .78rem; font-weight: 600; }
td { border-top: 1px solid var(--line); }
td small { display: block; color: var(--muted); margin-top: .2rem; overflow-wrap: anywhere; }
.badge { display: inline-flex; border: 1px solid #4c5646; border-radius: 100px; font-size: .75rem; padding: .17rem .6rem; color: var(--muted); }
.badge-active { color: var(--lime); border-color: #4d653b; }
.badge-revoked { color: var(--red); border-color: #6d504b; }
.badge-issued { color: #bcd8ff; border-color: #445a74; }
.empty { border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); padding: 1.2rem; margin-top: .8rem; }
#more { margin-top: .85rem; }
.key-card { margin-top: 1.3rem; padding: 1rem; border: 1px dashed #627951; background: #20291d; border-radius: 9px; }
.key-card p { margin-top: .45rem; }
.key-card .button-row { margin-top: .9rem; gap: .65rem; }
dialog { width: min(620px, calc(100% - 2rem)); max-height: calc(100% - 2rem); color: var(--ink); }
dialog::backdrop { background: #080a08c9; }
.details { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .35rem 1rem; padding-block: .8rem; }
.details dt, .audit .meta { color: var(--muted); font-size: .85rem; }
.details dd { margin: 0; overflow-wrap: anywhere; font-size: .92rem; }
.action-form, .revoke { padding-top: 1rem; margin-top: 1rem; border-top: 1px solid var(--line); }
.action-form .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: .65rem; }
.revoke summary { color: var(--red); }
.danger { background: #462c26; color: #ffccbf; border-color: #845446; }
.audit { list-style: none; margin: 1rem 0 0; padding: 0; }
.audit li { display: grid; grid-template-columns: minmax(120px, 190px) 1fr; gap: 1rem; border-top: 1px solid var(--line); padding: .8rem 0; }
.audit p { margin-top: .25rem; overflow-wrap: anywhere; font-size: .88rem; }
@media (max-width: 780px) {
  .hero { grid-template-columns: 1fr .85fr; gap: 1.5rem; }
  .hero h1 { font-size: clamp(3.2rem, 7vw, 4rem); }
  .pass-stage { min-height: 255px; }
  .ticket { width: 84%; }
  .plans { gap: .6rem; }
  .form-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .mast-inner { min-height: 64px; }
  nav { gap: .8rem; }
  .brand { font-size: 1.04rem; gap: .4rem; }
  .brand img { width: 29px; height: 29px; }
  nav .nav-action { padding: .4rem .7rem; }
  .hero, .purchase { grid-template-columns: 1fr; }
  .hero { padding-block: 2.7rem 2rem; gap: 2rem; }
  .hero h1 { font-size: clamp(3.5rem, 11vw, 4.35rem); }
  .pass-stage { min-height: 245px; }
  .ticket { width: min(72%, 260px); }
  .plans { grid-template-columns: 1fr; }
  .plan { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .2rem 1rem; }
  .plan .price { grid-column: 2; grid-row: 1/3; margin: 0; font-size: 2.5rem; }
  .plan-term { border: 0; padding: 0; }
  .filters, .form-grid, .action-form .form-grid { grid-template-columns: 1fr; gap: .5rem; }
  .license-table, .license-table tbody { display: block; }
  .license-table thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .license-table tr { display: grid; grid-template-columns: 1fr auto; align-items: center; border-top: 1px solid var(--line); padding: .6rem; gap: .4rem; }
  .license-table tr:first-child { border-top: 0; }
  .license-table td { display: block; padding: 0; border: 0; }
  .license-table td:first-child { grid-column: 1/-1; }
  .license-table td:nth-child(4)::before { content: "Expires "; color: var(--muted); }
  .audit li { grid-template-columns: 1fr; gap: .1rem; }
}
