/* The public website (server/landing.js): home, features, school, safety, vs Discord, download. */
@font-face { font-family: 'Inter'; src: url('/fonts/Inter-Variable.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
:root { --bg: #1e1f21; --bg2: #25272a; --bg3: #2d3033; --bg4: #161718; --line: #34373b; --text: #dfe3d6; --strong: #f3f5ee; --muted: #9ca191; --brand: #87a330; --brand-hover: #74902a; --on-brand: #17210a; --green: #a1c349; --red: #e5534b; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Inter', 'Segoe UI', Helvetica, Arial, sans-serif; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.center { text-align: center; justify-content: center; margin-left: auto; margin-right: auto; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 8px; border: 0; font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-brand { background: var(--brand); color: var(--on-brand); }
.btn-brand:hover { background: var(--brand-hover); }
.btn-grey { background: var(--bg3); color: var(--strong); }
.btn-grey:hover { background: #383b3f; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }

/* header */
header { position: sticky; top: 0; z-index: 10; background: rgba(30, 31, 33, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; color: var(--strong); text-decoration: none; flex-shrink: 0; }
.brand svg { color: var(--brand); }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; padding: 6px 10px; border-radius: 6px; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--strong); background: var(--bg3); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-right .lang { color: var(--muted); font-size: 14px; text-decoration: none; padding: 0 6px; }
.nav-right .lang:hover { color: var(--strong); }
.nav .btn { height: 38px; padding: 0 16px; font-size: 14px; }
.mnav { display: none; position: relative; }
.mnav summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; color: var(--strong); background: var(--bg3); }
.mnav summary::-webkit-details-marker { display: none; }
.mnav nav { position: absolute; right: 0; top: 48px; width: 240px; padding: 8px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); display: flex; flex-direction: column; }
.mnav nav a { padding: 10px 12px; border-radius: 6px; text-decoration: none; color: var(--text); font-weight: 500; }
.mnav nav a:hover, .mnav nav a[aria-current] { background: var(--bg3); color: var(--strong); }

/* type */
h1 { margin: 0; font-size: clamp(34px, 5vw, 56px); line-height: 1.06; letter-spacing: -1px; color: var(--strong); font-weight: 800; }
h2 { margin: 0 0 12px; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; color: var(--strong); letter-spacing: -.5px; }
.lead { margin: 18px 0 28px; font-size: 19px; color: var(--muted); max-width: 640px; }
.sub { margin: 0 0 28px; color: var(--muted); font-size: 17px; max-width: 680px; }
.kicker { color: var(--green); font-size: 13px; font-weight: 800; letter-spacing: .08em; margin-bottom: 10px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 600; text-decoration: none; margin-top: 18px; }
.text-link:hover { text-decoration: underline; }

/* home hero + app mock */
.hero { padding: 64px 16px 48px; display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.dl-meta { margin-top: 10px; font-size: 13px; color: var(--muted); min-height: 20px; }
.page-hero { padding: 64px 16px 8px; }
.page-hero .lead { margin-bottom: 8px; }
.mock { display: grid; grid-template-columns: 52px 170px 1fr; height: 360px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--bg2); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); font-size: 13px; }
.mock-rail { background: var(--bg4); display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 12px; }
.mock-rail i { width: 34px; height: 34px; border-radius: 12px; background: var(--bg3); display: block; }
.mock-rail i.on { background: var(--brand); }
.mock-side { background: #222427; padding: 12px 8px; display: flex; flex-direction: column; gap: 2px; }
.mock-side b { color: var(--strong); padding: 0 8px 10px; font-size: 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.mock-side small { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 8px 8px 4px; }
.mock-side span { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 6px; color: var(--muted); }
.mock-side span.on { background: var(--bg3); color: var(--strong); }
.mock-side span svg { flex-shrink: 0; opacity: .8; }
.mock-side em { font-style: normal; margin: 2px 8px 0 28px; padding: 3px 8px; border-radius: 6px; background: rgba(135, 163, 48, .16); color: var(--green); font-size: 11px; font-weight: 600; width: fit-content; }
.mock-chat { display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding: 16px; }
.msg { display: flex; gap: 10px; }
.msg .av { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; }
.msg b { color: var(--strong); font-size: 13px; }
.msg p { margin: 2px 0 0; color: var(--text); }
.mock-input { margin-top: 4px; height: 36px; border-radius: 8px; background: var(--bg3); }

/* sections & cards */
section { padding: 56px 0; }
.band { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) { .grid.grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid.grid-4 { grid-template-columns: 1fr; } }
/* phones: the Android card first on the download page */
@media (max-width: 760px) { .card.dl-android { order: -1; } }
.card { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; }
.band .card { background: var(--bg); }
.card .ic { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: rgba(135, 163, 48, .14); color: var(--green); margin-bottom: 14px; }
.card h3 { margin: 0 0 6px; font-size: 18px; color: var(--strong); }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card.link { text-decoration: none; }
.card.link:hover { border-color: var(--brand); }
.card .more { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 600; font-size: 14px; }
.card.dl .btn { margin-top: 18px; align-self: flex-start; }
.card.dl small { margin-top: 10px; color: var(--muted); font-size: 13px; }

/* no ads */
.noads { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.zero, .ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.zero li, .ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; color: var(--strong); }
.zero li { padding: 14px 16px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); font-weight: 600; }
.zero svg, .ticks svg { color: var(--green); flex-shrink: 0; margin-top: 1px; }
.ticks li { color: var(--text); }

/* feature spotlights */
.spot { display: grid; grid-template-columns: 120px 1fr; gap: 32px; align-items: start; }
.spot-ic { width: 120px; height: 120px; border-radius: 28px; display: grid; place-items: center; background: rgba(135, 163, 48, .14); color: var(--green); }

/* callouts */
.callout { display: flex; align-items: center; gap: 32px; justify-content: space-between; }
.callout .sub { margin-bottom: 0; }

/* comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15px; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { background: var(--bg2); color: var(--muted); font-size: 14px; letter-spacing: .02em; }
.compare thead th.us { color: var(--green); }
.compare thead th.us svg { vertical-align: -4px; }
.compare tbody th { color: var(--strong); font-weight: 600; width: 34%; }
.compare td { width: 33%; }
.compare td svg { vertical-align: -4px; margin-right: 8px; }
.compare td span { color: var(--text); }
.compare td.win { background: rgba(135, 163, 48, .08); }
.compare td.win svg { color: var(--green); }
.compare td.lose svg { color: var(--red); }
.compare td.tie svg { color: var(--muted); }
.note { margin-top: 24px; padding: 20px 22px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); }
.note h3 { margin: 0 0 6px; color: var(--strong); }
.note p { margin: 0; color: var(--muted); }
.fine { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* support form */
.support > * { max-width: 720px; } /* lined up with the page title, not centered */
.sform { display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); }
.sform label { margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--strong); letter-spacing: .02em; }
.sform input, .sform select, .sform textarea { width: 100%; padding: 11px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg4); color: var(--strong); font: inherit; font-size: 15px; }
.sform input:focus, .sform select:focus, .sform textarea:focus { outline: 2px solid var(--brand); outline-offset: -1px; }
.sform textarea { resize: vertical; min-height: 140px; }
.sform small { color: var(--muted); font-size: 13px; }
.sform .err { color: var(--red); font-size: 13px; }
.sform .err:empty { display: none; }
.sform .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sform .two > div { display: flex; flex-direction: column; gap: 6px; }
.sform button { margin-top: 18px; align-self: flex-start; }
.sform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sform-msg { font-size: 15px; }
.sform-msg:empty { display: none; }
.sform-msg.ok { padding: 12px 14px; border-radius: 8px; background: rgba(135, 163, 48, .14); color: var(--green); font-weight: 600; }
.sform-msg.bad { color: var(--red); }
.amb-info { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; padding: 12px 14px; border-radius: 8px; background: rgba(135, 163, 48, .1); color: var(--green); font-size: 14px; }
.amb-info svg { flex-shrink: 0; margin-top: 1px; }
@media (max-width: 600px) { .sform { padding: 16px; } .sform .two { grid-template-columns: 1fr; } .sform button { width: 100%; } }

/* final call to action */
.cta { text-align: center; border-top: 1px solid var(--line); }
.cta .sub { margin-bottom: 24px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 28px; color: var(--muted); font-size: 14px; background: var(--bg4); }
.foot { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px; }
.foot-brand p { margin: 10px 0 0; }
.foot-links { display: flex; flex-direction: column; gap: 8px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--strong); }
footer .copy { margin-top: 28px; font-size: 13px; }

@media (max-width: 1040px) {
  .nav-links { display: none; }
  .mnav { display: block; }
}
@media (max-width: 900px) {
  .hero, .noads { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .callout { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .grid, .foot { grid-template-columns: 1fr; }
  /* phones: no server-icon column (it's hidden), a narrower channel list and the chat */
  .mock { grid-template-columns: 112px 1fr; height: 320px; }
  .mock-side { padding: 10px 6px; }
  .mock-side b { font-size: 13px; padding: 0 6px 8px; }
  .mock-side small { padding: 6px 6px 3px; }
  .mock-side span { padding: 4px 6px; gap: 5px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .mock-side em { margin-left: 6px; }
  .mock-chat { padding: 12px; gap: 12px; }
  .msg { gap: 8px; }
  .msg .av { width: 28px; height: 28px; font-size: 12px; }
  .msg p { font-size: 12.5px; }
  .mock-rail { display: none; }
  .hide-sm, .nav-right .lang { display: none; }
  .cta-row .btn { width: 100%; }
  .spot { grid-template-columns: 1fr; gap: 16px; }
  .spot-ic { width: 72px; height: 72px; border-radius: 18px; }
  .spot-ic svg { width: 36px; height: 36px; }
  .page-hero { padding-top: 36px; }
  /* comparison: one card per row on phones */
  table.compare { min-width: 0; }
  .compare thead { display: none; }
  .compare tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
  .compare tr:last-child { border-bottom: 0; }
  .compare tbody th { grid-column: 1 / -1; width: auto; border-bottom: 0; padding-bottom: 4px; }
  .compare td { width: auto; border-bottom: 0; font-size: 14px; }
  .compare td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
  section { padding: 40px 0; }
}
