/* Lecture Mode — lecturemode.com
   Brand tokens mirror the extension (options.css): dark violet surfaces,
   #6c63ff accent, Segoe UI. */
:root {
  color-scheme: dark;
  --bg: #14131f;
  --surface: #1b1a2e;
  --surface-2: #24223d;
  --border: #34325a;
  --border-strong: #4a4787;
  --text: #f0f0f5;
  --muted: #b8b6d9;
  --dim: #8f8db3;
  --accent: #6c63ff;
  --accent-hover: #837cff;
  --magna: #7b6ae0;
  --summa: #d4863a;
  --ok: #7ee0a8;
  --err: #ff9a9a;
}

* { box-sizing: border-box; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a { color: #b8b6ff; text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* Header / nav */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(20, 19, 31, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--text); }
.brand img { height: 28px; width: auto; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-actions a { color: var(--muted); font-size: 14px; }
.nav-actions a:hover { color: var(--text); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn.secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn.secondary:hover { background: var(--border); }
.btn.ghost { background: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--surface-2); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.block { width: 100%; }

.gsi-icon { width: 18px; height: 18px; }

/* Hero */
.hero { text-align: center; padding: 72px 0 48px; }
.hero h1 { font-size: 40px; line-height: 1.15; margin: 0 0 14px; letter-spacing: -0.02em; }
.hero p { font-size: 18px; color: var(--muted); max-width: 620px; margin: 0 auto 28px; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.section { padding: 40px 0; }
.section h2 { font-size: 24px; margin: 0 0 8px; }
.section .lead { color: var(--muted); margin: 0 0 28px; }

/* Cards / plans */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
}
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan { display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--accent); }
.plan-name { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.plan.free .plan-name { color: var(--dim); }
.plan.magna .plan-name { color: var(--magna); }
.plan.summa .plan-name { color: var(--summa); }
.plan-price { font-size: 30px; font-weight: 700; margin: 6px 0 16px; }
.plan-price .per { font-size: 13px; font-weight: 400; color: var(--muted); }
.plan-benefits { list-style: none; padding: 0; margin: 0 0 20px; font-size: 13px; color: var(--muted); flex: 1; }
.plan-benefits li { position: relative; padding-left: 20px; margin: 7px 0; }
.plan-benefits li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); }
.plan-benefits li.soon::before { content: "◔"; color: var(--summa); }

.interval-toggle { display: inline-flex; gap: 4px; background: var(--surface-2); border-radius: 8px; padding: 4px; margin-bottom: 22px; }
.interval-toggle button { border: none; background: transparent; color: var(--muted); font: inherit; font-weight: 600; font-size: 13px; padding: 7px 16px; border-radius: 6px; cursor: pointer; }
.interval-toggle button.active { background: var(--border); color: var(--text); }

/* Account */
.account-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.account-row:last-child { border-bottom: none; }
.account-label { color: var(--muted); font-size: 13px; }
.account-value { font-weight: 600; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 20px; padding: 4px 12px; }
.pill.free { background: #34325a; color: var(--text); }
.pill.magna { background: var(--magna); color: #fff; }
.pill.summa { background: var(--summa); color: #fff; }

/* Status / misc */
.status { min-height: 22px; margin: 14px 0; font-weight: 600; }
.status.ok { color: var(--ok); }
.status.error { color: var(--err); }
.muted { color: var(--muted); }
.center { text-align: center; }

.notice { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 28px 30px; max-width: 520px; margin: 60px auto; text-align: center; }
.notice h1 { font-size: 22px; margin: 0 0 10px; }
.notice p { color: var(--muted); margin: 0 0 18px; }

.spinner { width: 26px; height: 26px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }

footer { border-top: 1px solid var(--border); color: var(--dim); font-size: 13px; padding: 28px 0; margin-top: 40px; text-align: center; }

@media (max-width: 720px) {
  .plan-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
}
