:root {
  --ink: #141414;
  --ink-2: #555555;
  --line: #e6e6e6;
  --field: #c8c8c8;
  --bg: #ffffff;
  --soft: #f5f5f5;
  --green: #06c167;
  --green-ink: #047a42;
  --green-soft: #e9f8f0;
  --red-ink: #b42318;
  --red-soft: #fdecec;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, sans-serif; color: var(--ink); background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; outline: none; }
a { color: var(--green-ink); }
a:hover { color: #035c32; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
code { background: var(--soft); padding: 2px 6px; border-radius: 6px; font-size: 0.92em; }
h1, h2, h3 { margin: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }

/* header */
.top { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 10; }
.top-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: baseline; gap: 10px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-uber { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; }
.brand-sub { font-size: 14px; font-weight: 600; color: var(--green); }
nav { display: flex; flex-wrap: wrap; gap: 4px; }
nav a { color: #e0e0e0; text-decoration: none; padding: 11px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; }
nav a:hover { color: #fff; background: #262626; }
nav a.on { background: #fff; color: var(--ink); }
nav a.nav-cta { background: var(--green); color: #0b0b0b; }
nav a.nav-cta.on { box-shadow: 0 0 0 2px #fff inset; }
.menu-btn { display: none; background: transparent; color: #fff; border: 1px solid #5a5a5a; border-radius: 999px; padding: 10px 16px; min-height: 44px; }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  nav { display: none; width: 100%; flex-direction: column; }
  nav.open { display: flex; }
}

/* sections */
.hero { background: var(--ink); color: #fff; }
.hero-in { padding-top: 72px; padding-bottom: 88px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--green); text-transform: uppercase; letter-spacing: 1.5px; }
.hero h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.05; font-weight: 800; letter-spacing: -1.5px; }
.hero p { margin: 0; font-size: 18px; line-height: 1.6; color: #cfcfcf; max-width: 560px; }
.hero-card { flex: 1 1 320px; background: #1f1f1f; border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.hero-card code { background: #2c2c2c; }
.label { font-size: 13px; color: #b3b3b3; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); display: inline-block; flex-shrink: 0; }
.dot.off { background: #8a8a8a; }
.row { display: flex; align-items: center; gap: 10px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; padding: 15px 26px; font-size: 16px; font-weight: 700; min-height: 48px; text-decoration: none; }
.btn-green { background: var(--green); color: #0b0b0b; }
.btn-green:hover { color: #0b0b0b; filter: brightness(0.95); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { color: #fff; background: #000; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid #5a5a5a; font-weight: 600; }
.btn-ghost:hover { color: #fff; border-color: #fff; }
.btn:disabled { background: var(--line); color: var(--ink-2); cursor: not-allowed; }

.page { padding-top: 56px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 28px; }
.page.narrow { max-width: 760px; }
.page-head { display: flex; flex-direction: column; gap: 8px; }
.page-head h1 { font-size: 40px; font-weight: 800; letter-spacing: -1px; }
.page-head p { margin: 0; color: var(--ink-2); line-height: 1.6; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; background: #fff; }
.card h2 { font-size: 20px; }
.card p { margin: 0; color: var(--ink-2); line-height: 1.6; }
.card-link { text-decoration: none; color: inherit; }
.card-link:hover { color: inherit; border-color: var(--ink); }

.company { background: var(--soft); }
.company-in { padding-top: 56px; padding-bottom: 56px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.company h2 { font-size: 28px; letter-spacing: -0.5px; }
.ceo { display: flex; align-items: center; gap: 16px; background: #fff; border-radius: var(--radius); padding: 20px 24px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex-shrink: 0; }
.avatar.big { width: 56px; height: 56px; font-size: 18px; }

/* pills */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { border-radius: 999px; padding: 10px 18px; min-height: 44px; font-size: 15px; font-weight: 600; background: #fff; color: var(--ink); border: 1px solid var(--field); }
.pill.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* menu grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.item { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #fff; }
.item.picked { border: 2px solid var(--ink); padding: 13px 15px; }
.item-name { font-size: 15px; font-weight: 500; }
.item-price { font-size: 15px; font-weight: 700; white-space: nowrap; }
.qty { display: flex; align-items: center; gap: 8px; }
.qbtn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--field); background: #fff; font-size: 18px; line-height: 1; }
.qbtn.add { background: var(--ink); color: #fff; border-color: var(--ink); }

/* table */
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
th, td { padding: 16px 20px; text-align: left; }
thead tr { background: var(--soft); }
tbody tr { border-top: 1px solid var(--line); }

/* forms */
.form { display: flex; flex-direction: column; gap: 16px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .lab { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { font-size: 16px; padding: 12px 14px; border: 1px solid var(--field); border-radius: 12px; min-height: 48px; background: #fff; width: 100%; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.hint { font-size: 13px; color: var(--ink-2); }

.notice { border-radius: var(--radius); padding: 18px 20px; line-height: 1.5; }
.notice.ok { background: var(--green-soft); }
.notice.err { background: var(--red-soft); color: #7a1610; }
.notice.info { background: var(--soft); }

/* order */
.order { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.order-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.order-side { flex: 1 1 320px; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 88px; }
@media (max-width: 900px) { .order-side { position: static; } }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.panel h2 { font-size: 18px; }
.kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kind { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; border-radius: var(--radius); padding: 18px 20px; background: #fff; border: 2px solid var(--line); }
.kind strong { font-size: 18px; }
.kind span { font-size: 14px; color: var(--ink-2); }
.kind.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.kind.on span { color: #cfcfcf; }
.cars { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.sum-line { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.sum-total { border-top: 1px solid var(--line); padding-top: 12px; display: flex; justify-content: space-between; font-size: 18px; font-weight: 700; }
.status-steps { display: flex; flex-direction: column; gap: 10px; }
.step { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.step.on { color: var(--ink); font-weight: 600; }

/* team */
.person { display: flex; align-items: center; gap: 12px; }
.person-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.board-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.board-rank { width: 24px; font-weight: 700; color: var(--ink-2); }
.board-name { width: 160px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { flex: 1 1 120px; height: 10px; background: #efefef; border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--green); border-radius: 999px; }
.board-stat { width: 150px; text-align: right; font-size: 14px; }

/* invoice */
.inv { border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.inv.ok { background: var(--green-soft); }
.inv.void { background: var(--red-soft); }
.inv.none { background: var(--soft); }
.badge { align-self: flex-start; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; color: #fff; background: var(--ink); }
.badge.ok { background: var(--green-ink); }
.badge.void { background: var(--red-ink); }
.kv { display: grid; grid-template-columns: minmax(0, 140px) minmax(0, 1fr); gap: 10px 16px; font-size: 15px; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; }

/* admin / discord preview */
.split { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.split > * { flex: 1 1 420px; min-width: 0; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sw { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--field); }
.sw.on { box-shadow: 0 0 0 2px var(--ink); }
.sw-custom { width: 56px; height: 44px; padding: 2px; border: 1px solid var(--field); border-radius: 10px; background: #fff; }
.dc { background: #313338; border-radius: var(--radius); padding: 20px; display: flex; gap: 14px; color: #dbdee1; }
.dc-ava { width: 40px; height: 40px; border-radius: 50%; background: var(--green); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #0b0b0b; font-weight: 800; }
.dc-body { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.dc-name { color: #fff; font-weight: 600; font-size: 15px; }
.dc-app { background: #5865f2; color: #fff; font-size: 10px; font-weight: 700; padding: 1px 4px; border-radius: 3px; margin-left: 6px; }
.dc-ping { color: #c9cdfb; background: rgba(88, 101, 242, 0.3); padding: 0 2px; border-radius: 3px; align-self: flex-start; }
.dc-embed { background: #2b2d31; border-radius: 4px; display: flex; overflow: hidden; max-width: 520px; }
.dc-bar { width: 4px; flex-shrink: 0; }
.dc-in { padding: 12px 16px; display: flex; gap: 16px; min-width: 0; flex: 1; }
.dc-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; }
.dc-title { color: #fff; font-weight: 700; font-size: 16px; overflow-wrap: anywhere; }
.dc-desc { font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.dc-img { max-width: 100%; border-radius: 4px; display: block; }
.dc-thumb { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.dc-foot { color: #b5bac1; font-size: 12px; }

.foot { background: var(--ink); color: #b3b3b3; font-size: 13px; line-height: 1.6; }
.foot strong { color: #fff; }
.foot-in { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
.foot-right { text-align: right; }
@media (max-width: 640px) { .foot-right { text-align: left; } .page-head h1 { font-size: 32px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.field input.sw-custom { width: 56px; min-height: 44px; height: 44px; padding: 2px; border-radius: 10px; }

/* ratings */
.rate { display: flex; flex-direction: column; gap: 8px; }
.rate .btns input { flex: 1 1 200px; font-size: 15px; padding: 10px 12px; border: 1px solid var(--field); border-radius: 12px; min-height: 44px; }
.stars { display: flex; gap: 4px; }
.star { width: 44px; height: 44px; border: 0; background: transparent; font-size: 28px; line-height: 1; color: #c8c8c8; padding: 0; }
.star.on { color: #e5a000; }

/* bar chart */
.chart { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(34px, 1fr); gap: 2px; align-items: end; overflow-x: auto; padding-top: 48px; }
.col { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; min-height: 200px; outline: none; }
.col-bar { width: 70%; max-width: 36px; background: var(--green-ink); border-radius: 4px 4px 0 0; }
.col:hover .col-bar, .col:focus .col-bar { background: var(--ink); }
.col-val { font-size: 11px; color: var(--ink-2); white-space: nowrap; }
.col-lab { font-size: 11px; color: var(--ink-2); text-align: center; line-height: 1.3; border-top: 1px solid var(--line); width: 100%; padding-top: 4px; }
.col-tip { display: none; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 12px; padding: 6px 10px; border-radius: 8px; white-space: nowrap; z-index: 2; text-align: center; }
.col:hover .col-tip, .col:focus .col-tip { display: block; }
details summary { cursor: pointer; color: var(--ink-2); margin-top: 8px; }
