:root {
  --ink: #1a1a2e;
  --muted: #5c6370;
  --red: #b71c1c;
  --navy: #1a237e;
  --bg: #f5f6f8;
  --card: #ffffff;
  --line: #e1e4ea;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.55 "Segoe UI", "Noto Sans", "Nirmala UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a { color: var(--navy); }
header, main, footer {
  max-width: 740px;
  margin: 0 auto;
  padding: 14px 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
}
.brand img { width: 42px; height: 42px; border-radius: 11px; }
nav { margin-top: 10px; }
nav a { margin: 0 12px 8px 0; display: inline-block; text-decoration: none; font-size: 15px; }
h1 { font-size: 1.75rem; line-height: 1.2; margin: 0.4em 0; }
h2 { font-size: 1.2rem; margin: 1.2em 0 0.4em; }
p, li { max-width: 68ch; }
.btn {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 700;
}
.btn.red { background: var(--red); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 12px 0;
}
code, pre {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92em;
}
pre {
  background: #111827;
  color: #f8fafc;
  padding: 12px;
  border-radius: 10px;
  overflow: auto;
}
.hi { margin-top: 2rem; padding-top: 0.5rem; border-top: 2px solid var(--line); }
footer { color: var(--muted); font-size: 14px; }
footer a { margin-right: 10px; }
table { border-collapse: collapse; width: 100%; background: #fff; font-size: 15px; }
th, td { border: 1px solid var(--line); padding: 8px; text-align: left; }
.note { color: var(--muted); font-size: 15px; }
label { display: block; margin: 12px 0 4px; font-weight: 650; }
input[type="text"], input[type="email"] {
  width: 100%;
  max-width: 420px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
}
button.btn { border: 0; cursor: pointer; font: inherit; }
#key-box { font-family: Consolas, "Courier New", monospace; font-size: 1.15rem; letter-spacing: 0.04em; }

body.soft { background: #fff; }
body.soft header,
body.soft main,
body.soft footer { max-width: none; margin: 0; padding: 0; }
.top {
  background: #14051f;
  color: #fff;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 0 22px;
}
.top .brand { color: #fff; font-size: 1.35rem; letter-spacing: 0.04em; }
.top .brand img { width: 36px; height: 36px; border-radius: 8px; }
.top nav { margin: 0; display: flex; align-items: stretch; }
.top nav a {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 0 18px;
  min-height: 72px;
  border-left: 1px solid rgba(255,255,255,.16);
  margin: 0;
  font-size: 15px;
}
.hero {
  color: #fff;
  background:
    radial-gradient(circle at 18% 78%, rgba(255,255,255,.09) 0 150px, transparent 151px),
    radial-gradient(circle at 62% 30%, rgba(255,255,255,.08) 0 190px, transparent 191px),
    radial-gradient(circle at 88% 82%, rgba(255,255,255,.07) 0 130px, transparent 131px),
    linear-gradient(115deg, #2a0845 0%, #5b21b6 48%, #7e22ce 100%);
  padding: 64px 7vw 72px;
}
.hero-grid, .band-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 36px;
  align-items: center;
  max-width: 1180px;
}
.hero h1 {
  font-size: clamp(2.3rem, 5vw, 4.1rem);
  line-height: 1.05;
  font-weight: 650;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  max-width: 14ch;
}
.hero em, .band em { font-style: italic; font-weight: 600; color: #ff8a3d; }
.hero p { color: #f4f0ff; max-width: 42ch; }
.ghost {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  border: 1.5px solid #fff;
  border-radius: 8px;
  padding: 12px 18px;
  margin: 8px 10px 0 0;
  font-weight: 650;
  background: transparent;
}
.ghost.big { min-width: 168px; text-align: center; font-size: 1.2rem; padding: 16px 22px; }
.band { background: #fff; color: #1c1028; padding: 72px 7vw; }
.band h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-top: 0;
}
.solid {
  display: inline-block;
  background: #2e1065;
  color: #fff;
  text-decoration: none;
  border: 0;
  border-radius: 10px;
  padding: 14px 20px;
  font-weight: 700;
  cursor: pointer;
  font: inherit;
}
.tiles { display: grid; gap: 16px; }
.tile {
  background: linear-gradient(165deg, #3b0764, #6d28d9);
  color: #fff;
  border-radius: 26px;
  padding: 22px 24px 8px;
}
.tile.alt { background: linear-gradient(165deg, #5b21b6, #7c3aed); }
.tile h3 { margin: 0 0 8px; font-size: 1.15rem; }
.tile li { color: #fff; max-width: none; }
.tile .ghost { margin-bottom: 16px; }
.foot {
  background: #14051f;
  color: #ddd6fe;
  padding: 28px 7vw 36px;
  font-size: 14px;
}
.foot a { color: #fff; margin-right: 14px; }
.gate { min-height: calc(100vh - 72px); display: flex; flex-direction: column; justify-content: center; }
.panel {
  background: #fff;
  color: #1c1028;
  border-radius: 18px;
  padding: 8px 22px 18px;
  max-width: 520px;
}
.panel input[type="text"], .panel input[type="email"] { background: #fff; }
@media (max-width: 860px) {
  .hero-grid, .band-grid { grid-template-columns: 1fr; }
  .top nav a { padding: 0 10px; font-size: 14px; }
  .hero { padding: 42px 20px 48px; }
  .band { padding: 42px 20px; }
}

body.portal {
  background-color: #fff;
  background-image: radial-gradient(#e6e6e6 0.8px, transparent 0.8px);
  background-size: 16px 16px;
  color: #1c1c1c;
  font-family: "Segoe UI", Arial, sans-serif;
}
body.portal header,
body.portal main,
body.portal footer { max-width: none; margin: 0; padding: 0; }
.frame { width: min(1080px, calc(100% - 28px)); margin: 0 auto; }
.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 68px;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
}
.bar-in { height: 68px; display: flex; align-items: center; gap: 8px; }
.crumb { color: #888; font-size: 13px; padding: 16px 0 0; }
.crumb a { color: #666; text-decoration: none; }
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #1a1a1a;
  font-weight: 750;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  margin-right: 18px;
}
.logo img { width: 28px; height: 28px; max-width: 28px; border-radius: 7px; flex: 0 0 28px; }
.bar { height: auto; min-height: 64px; }
.main-nav { display: flex; gap: 4px; align-items: center; margin-left: auto; }
.main-nav a {
  color: #3a3a3a;
  text-decoration: none;
  font-weight: 650;
  padding: 8px 12px;
  border-radius: 8px;
}
.main-nav a:hover { background: #f3f4f6; }
.bar-right { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.icon-btn {
  border: 0;
  background: transparent;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #222;
  text-decoration: none;
}
.icon-btn:hover { background: #f2f2f2; }
.search-pop {
  background: #fff;
  border-bottom: 1px solid #e6e6e6;
  padding: 10px 18px 14px;
}
.search-pop input {
  width: min(520px, 100%);
  max-width: none;
  border-radius: 8px;
}
.page-head { padding: 8px 0 4px; background: transparent; }
.frame .grid { padding: 16px 0 48px; }
.page-head h1 { font-size: 1.7rem; margin: 0 0 12px; font-weight: 750; }
.cat-line { color: #666; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.cat-line select {
  border: 0;
  background: transparent;
  font: inherit;
  color: #222;
  font-weight: 650;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 300px));
  gap: 22px;
  padding: 18px 28px 48px;
}
.scard {
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 12px;
  overflow: hidden;
}
.scard h2 {
  margin: 0;
  background: #f3f4f6;
  font-size: 1rem;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.app-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  text-decoration: none;
  color: #222;
  border-top: 1px solid #f1f1f1;
  background: #fff;
}
.app-row img { width: 28px; height: 28px; border-radius: 7px; }
.see-all {
  display: block;
  text-align: right;
  color: #1478c8;
  text-decoration: none;
  padding: 8px 14px 12px;
  font-size: 14px;
}
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 30; }
.drawer[hidden],
.scrim[hidden],
.search-pop[hidden] { display: none !important; }
.drawer {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(300px, 86vw);
  background: #fff;
  box-shadow: 8px 0 28px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
}
.drawer a, .drawer button.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 13px 16px;
  border: 0;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
  color: #222;
  text-decoration: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.drawer-end { margin-top: auto; }
.drawer-hot {
  display: block;
  width: 100%;
  text-align: left;
  background: #00a6e4;
  color: #fff;
  border: 0;
  font: inherit;
  font-weight: 750;
  padding: 14px 16px;
  cursor: pointer;
}
.sheet {
  max-width: 880px;
  margin: 18px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 22px;
}
.program { display: flex; gap: 18px; align-items: flex-start; }
.program img { width: 84px; height: 84px; border-radius: 18px; }
.program h1 { margin: 0; font-size: 1.8rem; }
.by { color: #777; margin: 2px 0 12px; }
a.dl, button.dl {
  display: inline-block;
  background: #14a34a;
  color: #fff;
  text-decoration: none;
  font-weight: 750;
  border-radius: 6px;
  padding: 12px 22px;
  border: 0;
  cursor: pointer;
  font: inherit;
}
a.dl.alt { background: #0b78c8; }
.meta { color: #666; font-size: 14px; }
.big-price { font-size: 2rem; font-weight: 750; margin: 8px 0; }
.foot-slim { padding: 18px 28px 32px; color: #666; font-size: 14px; background: transparent; }
.foot-slim a { color: #444; margin-right: 12px; }
@media (max-width: 800px) {
  .main-nav { display: none; }
  .grid { grid-template-columns: 1fr; padding: 12px; }
  .page-head, .foot-slim { padding-left: 14px; padding-right: 14px; }
  .sheet { margin: 10px; }
}
