/* Kinetic Mind subscriptions (app.kinetic-mind.com)
   A slate chalkboard for headings, warm paper for forms, chalk yellow for the one thing to do next. */

:root {
  --slate: #1c2822;
  --slate-2: #243630;
  --slate-3: #31463e;
  --chalk: #f3f0e6;
  --chalk-dim: #c5d0c8;
  --accent: #f2c14e;
  --accent-2: #e5ad2a;
  --accent-ink: #2f2304;
  --paper: #f7f4ec;
  --card: #ffffff;
  --ink: #1b2530;
  --muted: #4f5b64;
  --faint: #7b868d;
  --line: #e3ddcf;
  --line-2: #d4cdbc;
  --ok: #2b7a52;
  --ok-bg: #e7f3ec;
  --warn: #9c5208;
  --warn-bg: #fdf1dc;
  --err: #b3261e;
  --err-bg: #fbe9e7;
  --focus: #2a7de1;
  --c-orange: #e0762c;
  --c-cyan: #1f93ad;
  --c-lime: #5b9a26;
  --c-violet: #7553c9;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(27, 37, 48, 0.06), 0 8px 28px rgba(27, 37, 48, 0.08);
  --head: "Anek Bangla", "Hind Siliguri", "Noto Sans Bengali", "Nirmala UI", system-ui, sans-serif;
  --body: "Hind Siliguri", "Noto Sans Bengali", "Nirmala UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111915;
    --card: #19241f;
    --ink: #edf0ea;
    --muted: #b3beb6;
    --faint: #8c9890;
    --line: #2b3a33;
    --line-2: #3a4c43;
    --ok: #6fcf9b;
    --ok-bg: #173126;
    --warn: #f2b264;
    --warn-bg: #33270f;
    --err: #ff8a80;
    --err-bg: #3a1b18;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.3);
    color-scheme: dark;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, label:focus-within > .tile {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.en { color: var(--faint); font-size: 0.86em; font-weight: 500; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.n { font-variant-numeric: tabular-nums; }

/* ---------- top bar */
.bar { background: var(--slate); color: var(--chalk); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.bar-in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 19px; letter-spacing: 0.2px; }
.brand img { width: 46px; height: auto; }
.bar nav { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.bar nav a, .bar nav button {
  all: unset; cursor: pointer; padding: 8px 14px; border-radius: 999px; color: var(--chalk-dim); font-size: 15px; line-height: 1.2;
}
.bar nav a:hover, .bar nav button:hover { color: var(--chalk); background: rgba(255, 255, 255, 0.08); }
.bar nav a:focus-visible, .bar nav button:focus-visible { outline: 3px solid var(--accent); }
.bar nav .en { color: inherit; opacity: 0.7; }

/* ---------- chalkboard band */
.board {
  position: relative;
  color: var(--chalk);
  background:
    radial-gradient(1200px 400px at 15% -10%, rgba(255, 255, 255, 0.07), transparent 60%),
    radial-gradient(700px 300px at 95% 120%, rgba(242, 193, 78, 0.08), transparent 60%),
    linear-gradient(180deg, var(--slate) 0%, var(--slate-2) 100%);
  overflow: hidden;
}
.board::after {
  /* faint ruled lines, like a classroom board */
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 44px);
  pointer-events: none;
}
.board > * { position: relative; z-index: 1; }
.hero { padding: 56px 0 64px; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-weight: 600; font-size: 15px; letter-spacing: 0.3px; }
.eyebrow .en { color: inherit; opacity: 0.75; }
.h1 { margin: 0; font-family: var(--head); font-weight: 700; font-size: clamp(32px, 5.2vw, 56px); line-height: 1.12; letter-spacing: -0.3px; max-width: 18ch; }
.h1 em { font-style: normal; color: var(--accent); }
.lede { margin: 16px 0 0; color: var(--chalk-dim); font-size: clamp(17px, 2vw, 20px); max-width: 52ch; }
.lede .en { color: inherit; opacity: 0.75; display: block; font-size: 0.82em; margin-top: 2px; }
.trust { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.trust li {
  display: flex; align-items: center; gap: 9px; padding: 9px 14px 9px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.1); font-size: 15px; line-height: 1.3;
}
.trust svg { width: 20px; height: 20px; flex: none; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- headings */
.sec { margin: 56px 0; }
.sec-h { margin: 0 0 6px; font-family: var(--head); font-weight: 700; font-size: clamp(24px, 3.2vw, 34px); line-height: 1.2; }
.sec-p { margin: 0 0 24px; color: var(--muted); max-width: 62ch; }

/* ---------- how it works */
.how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: how; }
.how li {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px 22px;
  box-shadow: var(--shadow);
}
.how .num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; margin-bottom: 10px;
  background: var(--slate); color: var(--accent); font-family: var(--head); font-weight: 700; font-size: 20px;
}
.how h3 { margin: 0 0 4px; font-family: var(--head); font-size: 19px; line-height: 1.3; }
.how p { margin: 0; color: var(--muted); font-size: 15.5px; }
.how p.en { margin-top: 6px; font-size: 13.5px; }
.how li.key { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(242, 193, 78, 0.25), var(--shadow); }

/* ---------- notices */
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; margin: 24px 0; border: 1px solid; }
.notice svg { width: 24px; height: 24px; flex: none; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.notice b { display: block; font-family: var(--head); font-size: 18px; }
.notice p { margin: 2px 0 0; }
.notice.warn { background: var(--warn-bg); border-color: rgba(156, 82, 8, 0.25); color: var(--warn); }
.notice.warn p { color: var(--ink); }
.notice.ok { background: var(--ok-bg); border-color: rgba(43, 122, 82, 0.25); color: var(--ok); }
.notice.ok p { color: var(--ink); }
.notice.err { background: var(--err-bg); border-color: rgba(179, 38, 30, 0.25); color: var(--err); }
.notice.err p { color: var(--ink); }
.notice.info { background: var(--card); border-color: var(--line); color: var(--ink); }

/* ---------- order layout */
.order-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.panel { background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
form.panel { padding: 8px 0; }
.step { border: 0; margin: 0; padding: 26px 28px; border-bottom: 1px solid var(--line); min-width: 0; }
.step:last-child { border-bottom: 0; }
.step legend { padding: 0; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; font-family: var(--head); font-weight: 700; font-size: 21px; line-height: 1.2; }
.step legend small { display: block; font-family: var(--body); font-weight: 500; font-size: 14px; color: var(--faint); }
.step .num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: var(--slate); color: var(--accent); font-size: 17px;
}
.step.done .num { background: var(--ok); color: #fff; }

.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); margin-bottom: 16px; }
.seg button {
  all: unset; cursor: pointer; padding: 8px 18px; border-radius: 999px; font-weight: 600; color: var(--muted); font-size: 15.5px; line-height: 1.2;
}
.seg button[aria-pressed="true"] { background: var(--slate); color: var(--chalk); }
.seg button:focus-visible { outline: 3px solid var(--focus); }
.seg .count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 10px; margin-left: 6px; font-size: 12px; background: var(--accent); color: var(--accent-ink); padding: 0 6px; }

.subj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.subj { position: relative; display: block; cursor: pointer; }
.subj input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.tile {
  height: 100%; display: flex; flex-direction: column; gap: 2px; padding: 16px 16px 14px 18px; border-radius: 14px;
  border: 1.5px solid var(--line-2); background: var(--card); transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  position: relative; overflow: hidden;
}
.tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--cc, var(--c-orange)); }
.tile .lvl { font-size: 13px; color: var(--faint); font-weight: 600; letter-spacing: 0.3px; }
.tile .nm { font-family: var(--head); font-weight: 700; font-size: 20px; line-height: 1.25; }
.tile .nm .en { display: block; font-family: var(--body); font-size: 13.5px; }
.tile .pr { margin-top: 8px; font-weight: 700; font-size: 18px; }
.tile .pr small { font-weight: 500; color: var(--faint); font-size: 13px; }
.tile .tag { margin-top: 6px; align-self: flex-start; font-size: 12.5px; padding: 2px 9px; border-radius: 999px; background: var(--paper); color: var(--muted); border: 1px solid var(--line); }
.tile .tag.on { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.tile .tick {
  position: absolute; right: 12px; top: 12px; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line-2);
  display: grid; place-items: center; background: var(--card);
}
.tile .tick svg { width: 15px; height: 15px; stroke: #fff; stroke-width: 3; fill: none; opacity: 0; }
.subj:hover .tile { border-color: var(--faint); }
.subj input:checked + .tile { border-color: var(--slate); box-shadow: 0 0 0 3px rgba(242, 193, 78, 0.55); }
@media (prefers-color-scheme: dark) { .subj input:checked + .tile { border-color: var(--accent); } }
.subj input:checked + .tile .tick { background: var(--slate); border-color: var(--slate); }
.subj input:checked + .tile .tick svg { opacity: 1; }
.subj input:focus-visible + .tile { outline: 3px solid var(--focus); outline-offset: 2px; }
.subj.off { cursor: default; }
.subj.off .tile { opacity: 0.55; border-style: dashed; }
.c-orange { --cc: var(--c-orange); }
.c-cyan { --cc: var(--c-cyan); }
.c-lime { --cc: var(--c-lime); }
.c-violet { --cc: var(--c-violet); }

/* ---------- form fields */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.fields .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15.5px; }
.field .en { font-weight: 500; }
.field input, .field select {
  font: inherit; font-weight: 500; font-size: 17px; color: var(--ink); background: var(--card);
  border: 1.5px solid var(--line-2); border-radius: 12px; padding: 12px 14px; min-height: 50px; width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input::placeholder { color: var(--faint); opacity: 0.8; }
.field input:focus, .field select:focus { outline: none; border-color: var(--slate); box-shadow: 0 0 0 3px rgba(42, 125, 225, 0.25); }
@media (prefers-color-scheme: dark) { .field input:focus, .field select:focus { border-color: var(--accent); } }
.field input[aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.15); }
.field .err { color: var(--err); font-size: 14px; font-weight: 500; min-height: 0; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
.mono { font-family: var(--mono) !important; letter-spacing: 1px; text-transform: uppercase; }
.hint { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; font-weight: 500; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; cursor: pointer; padding: 6px 0; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--slate); }
@media (prefers-color-scheme: dark) { .check input { accent-color: var(--accent); } }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; opacity: 0; }

details.more { margin-top: 16px; border: 1px dashed var(--line-2); border-radius: 12px; padding: 0 16px; }
details.more summary { cursor: pointer; padding: 12px 0; font-weight: 600; color: var(--muted); }
details.more[open] { padding-bottom: 16px; }

.me-box { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.me-box .av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--slate); color: var(--accent); font-family: var(--head); font-weight: 700; font-size: 20px; flex: none; }
.me-box b { display: block; font-family: var(--head); font-size: 18px; }
.me-box span { color: var(--muted); font-size: 14.5px; }
.me-box a { margin-left: auto; font-size: 14px; color: var(--muted); }

/* ---------- payment guide */
.pay-guide { margin: 16px 0 20px; border-radius: 16px; background: var(--slate); color: var(--chalk); padding: 20px 22px; }
.pay-guide h3 { margin: 0 0 12px; font-family: var(--head); font-size: 18px; color: var(--accent); }
.pay-guide ol { margin: 0; padding: 0; list-style: none; counter-reset: pg; display: grid; gap: 12px; }
.pay-guide li { counter-increment: pg; display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.pay-guide li::before {
  content: counter(pg); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--chalk-dim); color: var(--chalk-dim); font-size: 13px; font-weight: 700; margin-top: 2px;
}
.pay-guide .val { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.pay-guide .big { font-family: var(--mono); font-size: 21px; font-weight: 700; color: #fff; letter-spacing: 0.5px; }
.pay-guide .pill { font-size: 12.5px; padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); }
.pay-guide .en { color: var(--chalk-dim); opacity: 0.85; }
.pay-guide .safe { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 14.5px; color: var(--chalk-dim); display: flex; gap: 8px; }
.pay-guide .safe svg { width: 20px; height: 20px; flex: none; stroke: var(--accent); fill: none; stroke-width: 2; }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none;
  font: inherit; font-weight: 700; font-size: 17px; line-height: 1.2; padding: 13px 22px; min-height: 50px; border-radius: 12px;
  border: 0; background: var(--accent); color: var(--accent-ink); transition: background 0.15s, transform 0.05s;
}
.btn:hover { background: var(--accent-2); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn .en { color: inherit; opacity: 0.75; }
.btn.dark { background: var(--slate); color: var(--chalk); }
.btn.dark:hover { background: var(--slate-3); }
.btn.line { background: transparent; color: var(--ink); border: 1.5px solid var(--line-2); }
.btn.line:hover { border-color: var(--muted); background: transparent; }
.btn.small { min-height: 38px; padding: 8px 14px; font-size: 15px; border-radius: 10px; }
.btn.tiny { min-height: 30px; padding: 4px 10px; font-size: 13.5px; border-radius: 8px; font-weight: 600; }
.btn.ghost { background: rgba(255, 255, 255, 0.12); color: var(--chalk); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.2); }
.btn.big { width: 100%; min-height: 58px; font-size: 19px; }
.btn.danger { background: transparent; color: var(--err); border: 1.5px solid currentColor; }
.msg { margin: 12px 0 0; font-weight: 600; white-space: pre-line; }
.msg.err { color: var(--err); }
.msg.ok { color: var(--ok); }
.ts { margin: 14px 0 4px; min-height: 0; }

/* ---------- summary */
.summary { position: sticky; top: 20px; padding: 24px; }
.summary h2 { margin: 0 0 14px; font-family: var(--head); font-size: 20px; }
.summary ul { list-style: none; margin: 0; padding: 0; }
.summary li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 15.5px; }
.summary li span:last-child { font-weight: 700; white-space: nowrap; }
.summary .empty { color: var(--faint); border: 0; }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; font-family: var(--head); font-weight: 700; font-size: 26px; }
.summary .total small { font-family: var(--body); font-size: 14px; color: var(--faint); font-weight: 500; }
.summary .incl { list-style: none; padding: 16px 0 0; margin: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.summary .incl li { border: 0; padding: 0; justify-content: flex-start; color: var(--muted); font-size: 14.5px; }
.summary .incl svg { width: 18px; height: 18px; flex: none; stroke: var(--ok); stroke-width: 2.5; fill: none; margin-top: 3px; }

/* ---------- done */
.done { max-width: 720px; margin: 40px auto 0; padding: 36px 32px; text-align: center; }
.done .tickbig { width: 72px; height: 72px; margin: 0 auto 10px; border-radius: 50%; background: var(--ok-bg); display: grid; place-items: center; }
.done .tickbig svg { width: 38px; height: 38px; stroke: var(--ok); stroke-width: 3; fill: none; }
.done h2 { margin: 0; font-family: var(--head); font-size: 30px; }
.done .ord { color: var(--muted); margin: 4px 0 0; }
.codebox { margin: 26px 0 8px; padding: 22px; border-radius: 16px; background: var(--slate); color: var(--chalk); }
.codebox .lbl { color: var(--accent); font-weight: 600; font-size: 15px; }
.codebox .code { display: block; margin: 8px 0 14px; font-family: var(--mono); font-weight: 700; font-size: clamp(22px, 5vw, 34px); letter-spacing: 2px; color: #fff; user-select: all; word-break: break-all; }
.codebox .row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.keep { color: var(--warn); font-weight: 600; margin: 10px 0 0; }
.timeline { list-style: none; padding: 0; margin: 28px 0 0; text-align: left; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding-bottom: 18px; position: relative; }
.timeline li::after { content: ""; position: absolute; left: 17px; top: 36px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline .dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 2px solid var(--line-2); font-weight: 700; color: var(--muted); }
.timeline li.now .dot { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.timeline b { display: block; font-family: var(--head); font-size: 17.5px; }
.timeline p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; font-family: var(--head); font-size: 17.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* ---------- sign in */
.signin-wrap { display: grid; place-items: center; padding: 48px 0 64px; }
.signin { width: min(520px, 100% - 32px); padding: 34px 30px 30px; }
.signin h1 { margin: 0; font-family: var(--head); font-size: 30px; line-height: 1.2; }
.signin .sub { margin: 4px 0 24px; color: var(--muted); }
.codein { font-family: var(--mono) !important; font-size: clamp(16px, 5.2vw, 22px) !important; padding-inline: 8px !important; text-align: center; letter-spacing: 1.5px; text-transform: uppercase; }
.signin .alt { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 15.5px; color: var(--muted); }
.signin .alt a { color: var(--ink); font-weight: 600; }
.devs { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 8px; }
.devs label { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 12px; cursor: pointer; }
.devs input { width: 20px; height: 20px; accent-color: var(--slate); }
.devs b { display: block; }
.devs span { color: var(--muted); font-size: 14px; }

/* ---------- my subscription */
.welcome { padding: 40px 0 44px; }
.welcome .h1 { font-size: clamp(28px, 4.4vw, 44px); max-width: none; }
.lic { margin-top: 10px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; color: var(--chalk-dim); font-size: 15px; }
.lic code { font-family: var(--mono); background: rgba(255, 255, 255, 0.1); padding: 2px 8px; border-radius: 6px; color: var(--chalk); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.scard { padding: 22px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.scard::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--cc, var(--c-orange)); }
.scard .lvl { font-size: 13px; font-weight: 600; color: var(--faint); letter-spacing: 0.3px; }
.scard h3 { margin: 0; font-family: var(--head); font-size: 24px; line-height: 1.2; }
.scard h3 .en { display: block; font-family: var(--body); font-size: 14px; }
.chip { align-self: flex-start; font-size: 13.5px; font-weight: 600; padding: 3px 11px; border-radius: 999px; }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.wait { background: var(--warn-bg); color: var(--warn); }
.chip.end { background: var(--err-bg); color: var(--err); }
.chip.life { background: var(--slate); color: var(--accent); }
.meter { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--cc, var(--ok)); border-radius: inherit; width: 0; }
.scard .facts { color: var(--muted); font-size: 14.5px; margin: 0; }
.scard .go { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.add { display: grid; place-items: center; text-align: center; border: 2px dashed var(--line-2); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--muted); min-height: 200px; }
.add:hover { border-color: var(--muted); color: var(--ink); }
.add b { display: block; font-family: var(--head); font-size: 20px; color: var(--ink); }
.add .plus { font-size: 36px; line-height: 1; margin-bottom: 6px; }
.two { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.box { padding: 22px 24px; }
.box h2 { margin: 0 0 4px; font-family: var(--head); font-size: 21px; }
.box > p { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.dlist { list-style: none; margin: 0; padding: 0; }
.dlist li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.dlist li:first-child { border-top: 0; }
.dlist .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; flex: none; }
.dlist .ic svg { width: 22px; height: 22px; stroke: var(--muted); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dlist b { display: block; }
.dlist span { color: var(--muted); font-size: 14px; }
.dlist .act { margin-left: auto; }
.badge { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); margin-left: 6px; vertical-align: 2px; }
.badge.live { background: var(--accent); color: var(--accent-ink); }

/* ---------- chapters */
.subj-head { padding: 34px 0 38px; }
.subj-head .back { display: inline-flex; gap: 6px; color: var(--chalk-dim); text-decoration: none; font-size: 15px; margin-bottom: 14px; }
.subj-head .back:hover { color: var(--chalk); }
.subj-head .h1 { font-size: clamp(30px, 4.6vw, 48px); max-width: none; }
.subj-head .bar2 { margin-top: 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.subj-head .stripe { height: 5px; width: 80px; border-radius: 3px; background: var(--cc); }
.chlist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.chlist a {
  display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line);
  text-decoration: none; box-shadow: var(--shadow); transition: transform 0.12s, border-color 0.12s; height: 100%;
}
.chlist a:hover { transform: translateY(-2px); border-color: var(--cc); }
.chlist .no { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--slate); color: var(--accent); font-family: var(--head); font-weight: 700; font-size: 19px; flex: none; }
.chlist b { font-family: var(--head); font-size: 17.5px; line-height: 1.3; }
.chlist span { display: block; color: var(--faint); font-size: 13px; }

/* ---------- footer */
.foot { margin-top: 64px; background: var(--slate); color: var(--chalk-dim); font-size: 14.5px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; padding: 22px 0; }
.foot a { color: var(--chalk); }
.foot .safe { display: flex; gap: 8px; align-items: center; }
.foot svg { width: 18px; height: 18px; stroke: var(--accent); fill: none; stroke-width: 2; }
.foot .r { margin-left: auto; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--slate); color: var(--chalk); padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow); transition: 0.2s; z-index: 50; font-weight: 600;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.loading { color: var(--faint); padding: 40px 0; text-align: center; }

@media (max-width: 920px) {
  .order-grid { grid-template-columns: 1fr; }
  .summary { position: static; order: -1; }
  .how { grid-template-columns: 1fr 1fr; }
  .two { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .wrap { width: min(1120px, 100% - 28px); }
  .hero { padding: 36px 0 44px; }
  .how { grid-template-columns: 1fr; }
  .step { padding: 22px 18px; }
  .fields { grid-template-columns: 1fr; }
  .summary { padding: 18px; }
  .done { padding: 28px 18px; }
  .bar nav .en { display: none; }
  .foot .r { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print {
  .bar, .foot, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
  .codebox { background: #fff; color: #000; border: 2px solid #000; }
  .codebox .code { color: #000; }
}

/* chapters that can't be opened (expired / not bought) */
.chlist > li > div { display: flex; gap: 14px; align-items: center; padding: 16px 18px; opacity: 0.55; height: 100%; }
.welcome .eyebrow, .subj-head .eyebrow { margin-bottom: 6px; }
.subj-head .lic { margin: 0; }
.notice > span { display: contents; }
