/* LeagueVault: one stylesheet for the front page, the questions page and the app. */
:root {
  --blue: #1F5C7A;
  --blue-deep: #143F55;
  --blue-ink: #0C2A3A;
  --flag: #FFC93C;
  --flag-deep: #F0B419;
  --ink: #0E1A22;
  --muted: #4A5A64;
  --line: #D5DEE3;
  --chalk: #F1F5F7;
  --white: #fff;
  --red: #B42318;
  --green: #17663A;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1200px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-stretch: 75%; font-weight: 900; line-height: .98; letter-spacing: -.01em; margin: 0; text-transform: uppercase; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; }
footer a, .alt a, .more { display: inline-block; padding: 10px 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
@media (min-width: 900px) { .wrap { padding: 0 40px; } }
:focus-visible { outline: 3px solid var(--flag); outline-offset: 2px; }

/* buttons: big, flat, penalty-flag yellow */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; border: 0; border-radius: 4px; background: var(--flag); color: var(--ink); font: 800 18px/1 var(--font); font-stretch: 87.5%; text-transform: uppercase; letter-spacing: .02em; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--flag-deep); }
.btn[disabled] { opacity: .6; cursor: default; }
.btn.small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn.blue { background: var(--blue); color: var(--white); }
.btn.blue:hover { background: var(--blue-deep); }
.btn.ghost { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
.btn.ghost:hover { background: var(--chalk); }
.btn.danger { background: transparent; color: var(--red); box-shadow: inset 0 0 0 2px var(--red); }

/* the field: blue top with yard lines */
.field { background-color: var(--blue); background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 2px, transparent 2px 120px); color: var(--white); }
nav { display: flex; align-items: center; gap: 12px; padding: 14px 0; }
nav .brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-weight: 900; font-stretch: 87.5%; font-size: 22px; text-transform: uppercase; letter-spacing: .01em; margin-right: auto; }
nav .brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
nav .login { color: var(--white); font-weight: 700; text-decoration: none; padding: 12px 8px; }
nav .login:hover { text-decoration: underline; }
@media (max-width: 420px) { nav .brand span { font-size: 19px; } nav .btn.small { padding: 0 12px; font-size: 14px; } }

header.hero { padding: 24px 0 0; }
header.hero h1 { font-size: clamp(42px, 7vw, 84px); color: var(--white); max-width: 20ch; }
.hero-row { display: grid; gap: 28px; margin-top: 24px; }
.hero-copy .sub { font-size: 19px; line-height: 1.45; color: #E3EEF4; max-width: 36ch; }
.cta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 22px; }
.cta-line .nocard { font-weight: 700; color: var(--white); }
.hero-shot { position: relative; margin-bottom: -150px; z-index: 2; }
.after-hero { padding-top: 170px; }
@media (min-width: 900px) {
  header.hero { padding-top: 28px; }
  .hero-row { grid-template-columns: 5fr 6fr; align-items: start; gap: 48px; margin-top: 28px; }
  .hero-copy { padding-top: 8px; }
  .hero-shot { margin-bottom: -170px; }
  .after-hero { padding-top: 210px; }
}

/* the product's screen: a Discord-style channel with LeagueVault's post */
.screen { background: #fff; color: var(--ink); border-radius: 10px; box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .4), 0 0 0 1px rgba(0,0,0,.06); overflow: hidden; max-height: 470px; position: relative; }
.screen::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 110px; background: linear-gradient(rgba(255,255,255,0), #fff 85%); pointer-events: none; }
.screen .bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 800; font-size: 15px; }
.screen .bar .hash { color: var(--muted); font-size: 20px; line-height: 1; }
.screen .bar .tag { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--chalk); padding: 4px 8px; border-radius: 3px; text-transform: uppercase; letter-spacing: .04em; }
.post { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 16px; }
.post img { width: 40px; height: 40px; border-radius: 50%; }
.post .who { font-weight: 800; font-size: 15px; }
.post .who .bot { background: var(--blue); color: #fff; font-size: 12px; padding: 2px 5px; border-radius: 3px; margin-left: 4px; vertical-align: 2px; }
.post .who time { color: var(--muted); font-weight: 400; font-size: 13px; margin-left: 6px; }
.post .msg { font-size: 15px; line-height: 1.5; margin-top: 2px; }
.post .msg p + p { margin-top: 8px; }
.post .msg b { font-weight: 800; }
.post .ranks { margin: 6px 0 0; padding: 0; list-style: none; font-variant-numeric: tabular-nums; }
.post .ranks li { display: grid; grid-template-columns: 22px 1fr auto; gap: 6px; padding: 3px 0; border-bottom: 1px dashed var(--line); }
.post .ranks .rec { color: var(--muted); }
.reacts { display: flex; gap: 6px; margin-top: 10px; }
.reacts span { background: var(--chalk); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; font-size: 13px; font-weight: 700; }

/* sections */
section { padding: 56px 0; }
@media (min-width: 900px) { section { padding: 80px 0; } }
.kicker { font-weight: 800; color: var(--blue); text-transform: uppercase; letter-spacing: .08em; font-size: 14px; margin-bottom: 12px; }
section h2 { font-size: clamp(36px, 5.4vw, 64px); max-width: 18ch; }
.lede { font-size: 19px; color: var(--muted); max-width: 52ch; margin-top: 16px; }

#how .steps { display: grid; gap: 28px; margin-top: 32px; }
#how .step { border-top: 6px solid var(--ink); padding-top: 18px; }
#how .step .n { font-size: 64px; font-weight: 900; font-stretch: 75%; color: var(--blue); line-height: 1; }
#how .step h3 { font-size: 28px; margin: 10px 0 10px; }
#how .step p { color: var(--muted); }
@media (min-width: 900px) { #how .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

#what { background: var(--ink); color: var(--white); }
#what .kicker { color: var(--flag); }
#what .lede { color: #B9C8D1; }
.ledger { margin-top: 36px; background: #fff; color: var(--ink); border-radius: 8px; overflow: hidden; }
.ledger .top { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; padding: 16px 20px; background: var(--blue); color: #fff; }
.ledger .top b { font-weight: 900; font-stretch: 75%; text-transform: uppercase; font-size: 24px; }
.ledger .top span { font-size: 14px; color: #D6E6EF; }
.ledger table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ledger th, .ledger td { text-align: left; padding: 12px 20px; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
.ledger th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--chalk); }
.ledger tr:last-child td { border-bottom: 0; }
.ledger .owed { color: var(--red); font-weight: 800; }
.ledger .served { color: var(--green); font-weight: 800; }
@media (max-width: 640px) { .ledger .hide-s { display: none; } .ledger th, .ledger td { padding: 10px 12px; font-size: 14px; } }

#price .grid { display: grid; gap: 40px; margin-top: 8px; }
@media (min-width: 900px) { #price .grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; } }
.plan { border: 4px solid var(--ink); border-radius: 8px; padding: 28px; }
.plan .name { font-weight: 900; font-stretch: 75%; text-transform: uppercase; font-size: 26px; }
.plan .amount { font-size: 96px; font-weight: 900; font-stretch: 75%; line-height: 1; margin-top: 12px; color: var(--blue); }
.plan .per { font-weight: 700; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; }
.plan li { padding: 9px 0 9px 28px; border-bottom: 1px solid var(--line); position: relative; }
.plan li::before { content: ''; position: absolute; left: 2px; top: 15px; width: 14px; height: 8px; border-left: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: rotate(-45deg); }
.plan .btn { width: 100%; }
.plan .fine { font-size: 14px; color: var(--muted); margin-top: 12px; text-align: center; }
#faq h3 { font-size: 34px; margin-bottom: 8px; }
.qa { border-bottom: 2px solid var(--ink); padding: 18px 0; }
.qa h4 { margin: 0 0 6px; font-size: 19px; font-weight: 800; }
.qa p { color: var(--muted); }
.more { display: inline-block; margin-top: 18px; font-weight: 800; }

.band { background: var(--blue); color: var(--white); padding: 64px 0; }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.band p { font-size: clamp(32px, 5vw, 60px); font-weight: 900; font-stretch: 75%; text-transform: uppercase; line-height: 1; max-width: 16ch; }

footer { background: var(--blue-ink); color: #C9D7DF; padding: 36px 0; font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer a { color: #fff; }
footer .fbrand { font-weight: 900; font-stretch: 87.5%; text-transform: uppercase; color: #fff; margin-right: auto; }
.syng-legal-links a { color: #fff; }

/* questions page */
.page-head { padding: 28px 0 56px; }
.page-head h1 { font-size: clamp(40px, 7vw, 84px); }
.page-head p { margin-top: 14px; font-size: 19px; color: #E3EEF4; max-width: 50ch; }
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(30px, 4vw, 44px); margin: 48px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 12px; }
.prose .qa h3 { font-size: 20px; text-transform: none; font-stretch: 100%; font-weight: 800; line-height: 1.25; margin-bottom: 6px; }
.prose .sample { background: var(--chalk); border-left: 6px solid var(--blue); padding: 16px 18px; white-space: pre-wrap; font-size: 15px; color: var(--ink); border-radius: 4px; margin-top: 12px; }

/* forms and app */
.auth { min-height: 100vh; display: flex; flex-direction: column; }
.auth main { flex: 1; padding: 20px 0 64px; }
.card { background: #fff; color: var(--ink); border-radius: 10px; padding: 28px; box-shadow: 0 20px 40px -24px rgba(0,0,0,.4); max-width: 460px; margin: 16px auto 0; }
.card h1 { font-size: 40px; margin-bottom: 8px; }
.card .hint { color: var(--muted); margin-bottom: 18px; }
label { display: block; font-weight: 700; font-size: 15px; margin: 14px 0 6px; }
input, select, textarea { width: 100%; font: 400 17px/1.4 var(--font); padding: 12px 14px; border: 2px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: none; }
textarea { min-height: 120px; resize: vertical; }
.form-actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form-actions .btn { flex: 1 1 auto; }
.msg-box { margin-top: 14px; padding: 12px 14px; border-radius: 4px; font-weight: 600; display: none; }
.msg-box.show { display: block; }
.msg-box.err { background: #FDECEA; color: var(--red); }
.msg-box.ok { background: #E7F4EC; color: var(--green); }
.alt { margin-top: 18px; font-size: 15px; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { width: auto; margin-top: 4px; }

.app-top { padding-bottom: 28px; }
.app-top h1 { font-size: clamp(34px, 5vw, 56px); }
.app-top .meta { color: #D6E6EF; margin-top: 8px; }
.trial { background: var(--flag); color: var(--ink); font-weight: 700; padding: 10px 0; font-size: 15px; }
.trial a { color: var(--ink); }
.app-main { padding: 32px 0 72px; background: var(--chalk); min-height: 50vh; }
.panel { background: #fff; border-radius: 8px; padding: 22px; box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 0 0 1px var(--line); }
.panel + .panel { margin-top: 20px; }
.panel h2 { font-size: 28px; margin-bottom: 6px; }
.panel .hint { color: var(--muted); font-size: 15px; }
.app-grid { display: grid; gap: 20px; }
@media (min-width: 980px) { .app-grid { grid-template-columns: 7fr 5fr; align-items: start; } }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 4px; }
.tabs button { font: 800 15px var(--font); padding: 10px 16px; border-radius: 4px; border: 2px solid var(--line); background: #fff; cursor: pointer; color: var(--ink); }
.tabs button[aria-selected="true"] { border-color: var(--blue); background: var(--blue); color: #fff; }
.tabs button[disabled] { color: var(--muted); cursor: default; }
.pick { list-style: none; padding: 0; margin: 14px 0 0; }
.pick li { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.chatpost { white-space: pre-wrap; background: #F6F7F9; border: 1px solid var(--line); border-left: 6px solid var(--blue); border-radius: 4px; padding: 16px; font-size: 15px; line-height: 1.55; margin-top: 12px; max-height: 520px; overflow: auto; }
table.book { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 15px; margin-top: 10px; }
table.book th, table.book td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
table.book th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.scroll-x { overflow-x: auto; }
.facts { display: grid; gap: 10px; margin-top: 12px; }
.facts div { background: var(--chalk); border-radius: 4px; padding: 10px 12px; font-size: 15px; }
.facts b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pill { display: inline-block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 3px 8px; border-radius: 3px; background: var(--chalk); color: var(--muted); }
.pill.ok { background: #E7F4EC; color: var(--green); }
.pill.bad { background: #FDECEA; color: var(--red); }
details.help { margin-top: 10px; font-size: 15px; color: var(--muted); }
details.help summary { cursor: pointer; font-weight: 700; color: var(--blue); }
.leaguebar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.leaguebar button { font: 700 14px var(--font); padding: 8px 14px; border-radius: 4px; border: 2px solid rgba(255,255,255,.5); background: transparent; color: #fff; cursor: pointer; }
.leaguebar button[aria-current="true"] { background: #fff; color: var(--blue); border-color: #fff; }
.hidden, [hidden] { display: none !important; }
.loading { color: var(--muted); padding: 24px 0; }
