@font-face { font-family: "Open Sauce One"; font-weight: 400; src: url("fonts/OpenSauceOne-Regular.ttf"); font-display: swap; }
@font-face { font-family: "Open Sauce One"; font-weight: 600; src: url("fonts/OpenSauceOne-SemiBold.ttf"); font-display: swap; }
@font-face { font-family: "Open Sauce One"; font-weight: 800; src: url("fonts/OpenSauceOne-ExtraBold.ttf"); font-display: swap; }
@font-face { font-family: "Blacklist"; font-weight: 800; size-adjust: 120%; ascent-override: 83.3%; descent-override: 19.75%; line-gap-override: 0%; src: url("fonts/Blacklist-ExtraBold.otf"); font-display: swap; }

:root {
  --brand: #FE4940;
  --bg: #0E0E10;
  --card: #18181B;
  --card-2: #222226;
  --line: #2C2C31;
  --ink: #FFFFFF;
  --muted: #A1A1AA;
  --ok: #3DDC97;
  --font: "Open Sauce One", system-ui, sans-serif;
  --accent-font: "Blacklist", Georgia, serif;
  --r: 16px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
body { min-height: 100dvh; padding-bottom: calc(76px + var(--safe-b)); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand); }

.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; background: rgba(14,14,16,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.logo { height: 34px; width: auto; }

main { max-width: 520px; margin: 0 auto; padding: 16px; outline: none; }

h1 { font-size: 28px; font-weight: 800; line-height: 1.12; margin: 6px 0 10px; letter-spacing: -.01em; }
h2 { font-size: 19px; font-weight: 800; margin: 22px 0 10px; }
.acc { font-family: var(--accent-font); font-weight: 800; color: var(--brand); }
p { line-height: 1.5; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.hero { position: relative; border-radius: 20px; overflow: hidden; min-height: 230px; display: flex; align-items: flex-end;
  background: #000 center/cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,14,16,0) 20%, rgba(14,14,16,.95) 100%); }
.hero .in { position: relative; z-index: 1; padding: 18px; }
.hero h1 { margin: 0 0 6px; }
.hero p { margin: 0; color: #E4E4E7; font-size: 14px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 14px 18px;
  font-weight: 800; cursor: pointer; text-decoration: none; min-height: 48px; }
.btn.red { background: var(--brand); color: #fff; }
.btn.ghost { background: var(--card-2); color: var(--ink); border: 1px solid var(--line); }
.btn.wa { background: #1FAF38; color: #fff; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }

.chip { border: 1px solid var(--brand); background: transparent; color: var(--brand); border-radius: 999px; padding: 7px 12px; font-weight: 600; font-size: 13px; cursor: pointer; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.stack > * + * { margin-top: 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.course { display: flex; flex-direction: column; gap: 6px; cursor: pointer; text-align: left; width: 100%; }
.course .tag { align-self: flex-start; font-size: 11px; font-weight: 600; color: var(--brand); background: rgba(254,73,64,.12); padding: 3px 8px; border-radius: 999px; }
.course b { font-size: 16px; }
.course .fee { font-weight: 800; }
.price { font-size: 22px; font-weight: 800; }

.feature { display: flex; gap: 12px; align-items: flex-start; }
.feature .n { flex: none; width: 34px; height: 34px; border-radius: 10px; background: rgba(254,73,64,.14); color: var(--brand); display: grid; place-items: center; font-weight: 800; }

label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 14px 0 6px; }
input, select, textarea { width: 100%; background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; font-size: 16px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: transparent; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills label { margin: 0; color: var(--ink); font-weight: 600; background: var(--card-2); border: 1px solid var(--line); border-radius: 999px; padding: 9px 13px; cursor: pointer; }
.pills input:checked + label { background: var(--brand); border-color: var(--brand); }
.pills input:focus-visible + label { outline: 2px solid #fff; }
.err { color: #FF8A84; font-size: 14px; min-height: 20px; margin-top: 8px; }

.list-item { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.badge { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: var(--card-2); color: var(--brand); }
.list-item .t { flex: 1; min-width: 0; }
.list-item .t b { display: block; font-size: 15px; }

.bar { height: 10px; background: var(--card-2); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }

.subtabs { display: flex; gap: 6px; background: var(--card); border: 1px solid var(--line); padding: 4px; border-radius: 12px; margin: 14px 0; }
.subtabs button { flex: 1; border: 0; background: transparent; padding: 10px; border-radius: 9px; font-weight: 600; color: var(--muted); cursor: pointer; }
.subtabs button[aria-selected="true"] { background: var(--card-2); color: var(--ink); }

.alert { border-left: 3px solid var(--line); }
.alert.new { border-left-color: var(--brand); }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; justify-content: space-around;
  background: rgba(20,20,23,.97); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + var(--safe-b)); backdrop-filter: blur(10px); }
.tabbar button { position: relative; flex: 1; max-width: 104px; border: 0; background: none; color: var(--muted); font-size: 11px; font-weight: 600;
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; cursor: pointer; border-radius: 10px; }
.tabbar .ic { font-size: 19px; line-height: 1.2; }
.tabbar button.active { color: var(--ink); }
.tabbar button.active .ic { color: var(--brand); }
.tabbar button.primary .ic { background: var(--brand); color: #fff; width: 34px; height: 26px; border-radius: 9px; display: grid; place-items: center; font-size: 17px; }
.dot { position: absolute; top: 4px; right: calc(50% - 16px); width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }

#toast { position: fixed; left: 50%; bottom: calc(90px + var(--safe-b)); transform: translateX(-50%) translateY(20px); opacity: 0; transition: .25s;
  background: #fff; color: #111; padding: 12px 16px; border-radius: 12px; font-weight: 600; font-size: 14px; max-width: calc(100% - 32px); z-index: 20; pointer-events: none; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.success { text-align: center; padding: 28px 16px; }
.success .tick { width: 64px; height: 64px; border-radius: 50%; background: rgba(61,220,151,.15); color: var(--ok); display: grid; place-items: center; font-size: 32px; margin: 0 auto 10px; }
.demo-banner { font-size: 12px; color: var(--muted); text-align: center; margin-top: 26px; }
