@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600;700&display=swap');

:root {
  --bg: #0a0a14;
  --surface: #12121f;
  --surface-2: #181828;
  --fg: #f0f4f8;
  --muted: #8b9cb3;
  --muted-2: rgba(240, 244, 248, 0.62);
  --border: rgba(255, 255, 255, 0.12);
  --border-soft: rgba(255, 255, 255, 0.08);
  --accent: #00d4ff;
  --accent-warm: #e8a649;
  --success: #2ed573;
  --danger: #ff5c6c;
  --warning: #feca57;
  --font-display: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --max: 1280px;
  --nav-h: 56px;
  --sprocket: 10px;
  --gutter: clamp(1rem, 4vw, 1.5rem);
  --section-y: clamp(3rem, 7vw, 5rem);
  --head-gap: clamp(1.5rem, 4vw, 2.5rem);
  --inset: max(var(--gutter), calc((100vw - var(--max)) / 2));
}

body.lb-refresh {
  margin: 0;
  min-height: 100vh;
  display: block;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 0.88rem + 0.25vw, 1.0625rem);
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body.lb-refresh::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.lb-refresh img,
body.lb-refresh video {
  max-width: 100%;
  display: block;
}

body.lb-refresh a {
  color: inherit;
}

body.lb-refresh button {
  font: inherit;
}

body.lb-refresh :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  z-index: 10000;
  padding: 8px 16px;
  border-radius: 0 0 4px 0;
  background: var(--accent-warm);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

.kicker,
.lb-kicker {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
}

.topbar > a {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.topbar img {
  width: auto;
  height: 28px;
  max-width: none;
  object-fit: contain;
}

.topbar-nav {
  display: none;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.topbar-nav a:not(.pill) {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.topbar-nav a:not(.pill):hover {
  color: var(--fg);
}

.pill,
body.lb-refresh .btn-primary,
body.lb-refresh .cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--accent);
  border-radius: 2px;
  background: var(--accent);
  color: #051018;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.pill:hover,
body.lb-refresh .btn-primary:hover,
body.lb-refresh .cta-button:hover {
  filter: brightness(1.08);
}

.pill:active,
body.lb-refresh .btn-primary:active,
body.lb-refresh .cta-button:active {
  transform: scale(0.97);
}

.btn-outline,
body.lb-refresh .btn:not(.btn-primary):not(.btn-logout),
body.lb-refresh .back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: transparent;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.btn-outline:hover,
body.lb-refresh .btn:not(.btn-primary):not(.btn-logout):hover,
body.lb-refresh .back-link:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--accent);
  transform: none;
}

.menu-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
}

.menu-btn span {
  width: 16px;
  height: 2px;
  background: var(--fg);
  position: relative;
  display: block;
}

.menu-btn span::before,
.menu-btn span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--fg);
}

.menu-btn span::before {
  top: -5px;
}

.menu-btn span::after {
  top: 5px;
}

.drawer {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0;
  z-index: 199;
  flex-direction: column;
  gap: 0;
  padding: 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.drawer.open {
  display: flex;
}

.drawer a:not(.pill) {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.drawer .pill {
  width: 100%;
  margin-top: 1.25rem;
  padding: 0.875rem 1.25rem;
  border-bottom: none;
}

.lb-main {
  min-height: calc(100vh - var(--nav-h));
}

.chapter {
  position: relative;
  padding-block: var(--section-y);
}

.chapter-head {
  display: grid;
  gap: 0.65rem;
  margin-bottom: var(--head-gap);
  padding-inline: var(--gutter);
}

.chapter-head h1,
.chapter-head h2,
body.lb-refresh .article-title,
body.lb-refresh .title,
.document-shell h1,
.finale h2 {
  max-width: 16ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}

.chapter-head p,
body.lb-refresh .article-subtitle,
body.lb-refresh .subtitle,
.document-shell p,
.document-shell li {
  max-width: 66ch;
  color: var(--muted);
  text-wrap: pretty;
}

.bento,
.pro-grid,
.lb-grid,
body.lb-refresh .price-callout,
body.lb-refresh .comparison-grid,
body.lb-refresh .download-layout {
  display: grid;
  gap: 1px;
  margin-inline: var(--gutter);
  border: 1px solid var(--border);
  background: var(--border);
}

.bento-cell,
.pro-cell,
.frame-card,
.ticket,
body.lb-refresh .price-callout-item,
body.lb-refresh .comparison-card,
body.lb-refresh .download-card,
body.lb-refresh .beta-features,
body.lb-refresh .user-info,
body.lb-refresh .feedback-item,
body.lb-refresh .system-requirements {
  border-radius: 0;
  background: var(--surface);
  border: 0;
  box-shadow: none;
}

.frame-card,
.ticket,
body.lb-refresh .download-card,
body.lb-refresh .price-callout-item,
body.lb-refresh .comparison-card,
body.lb-refresh .beta-features,
body.lb-refresh .user-info,
body.lb-refresh .feedback-item,
body.lb-refresh .system-requirements {
  padding: 1.25rem;
}

body.lb-refresh .download-card--recommended,
body.lb-refresh .ticket.featured {
  border: 1px solid var(--accent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 6%, var(--surface)) 0%, var(--surface) 55%);
}

body.lb-refresh .download-card__title,
body.lb-refresh .price-callout-name,
body.lb-refresh .comparison-card h3,
body.lb-refresh .beta-features h3,
body.lb-refresh .user-info h3,
body.lb-refresh h3 {
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
}

body.lb-refresh .download-card__meta,
body.lb-refresh .price-callout-price,
body.lb-refresh .comparison-card p,
body.lb-refresh .features-list,
body.lb-refresh .user-info p,
body.lb-refresh .feedback-item,
body.lb-refresh p,
body.lb-refresh li {
  color: var(--muted);
}

body.lb-refresh .version-chip,
body.lb-refresh .rec-badge-pill,
body.lb-refresh .beta-badge,
body.lb-refresh .portal-badge,
body.lb-refresh .article-tag,
body.lb-refresh .section-title,
body.lb-refresh .last-updated {
  display: inline-flex;
  width: fit-content;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.lb-refresh .rec-badge-pill {
  color: var(--accent-warm);
}

body.lb-refresh input,
body.lb-refresh textarea,
body.lb-refresh select {
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--surface-2);
  color: var(--fg);
  font-family: var(--font-body);
  box-shadow: none;
}

body.lb-refresh input::placeholder,
body.lb-refresh textarea::placeholder {
  color: var(--muted-2);
}

body.lb-refresh label {
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.lb-refresh .message,
body.lb-refresh .error-message,
body.lb-refresh .success-message,
body.lb-refresh .thank-you-banner,
body.lb-refresh .hint-banner {
  border-radius: 0;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
}

body.lb-refresh .message.success,
body.lb-refresh .success-message {
  border-color: color-mix(in srgb, var(--success) 50%, var(--border));
  color: #c8f7d8;
}

body.lb-refresh .message.error,
body.lb-refresh .error-message {
  border-color: color-mix(in srgb, var(--danger) 55%, var(--border));
  color: #ffd0d6;
}

body.lb-refresh .file-upload-area {
  border: 2px dashed var(--border);
  border-radius: 0;
  background: var(--surface);
}

body.lb-refresh .file-upload-area:hover,
body.lb-refresh .file-upload-area.dragover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
}


.lb-public .container,
.lb-account .container {
  width: min(calc(100% - 2 * var(--gutter)), 980px);
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) 0;
  text-align: left;
}

.lb-download .container {
  max-width: 1040px;
}

.lb-download .glass-panel {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.lb-download .glass-panel::before {
  display: none;
}

.lb-download .hero {
  display: grid;
  justify-items: start;
  gap: 0.65rem;
  padding: 0 0 var(--head-gap);
  text-align: left;
}

.lb-download .logo {
  width: 72px;
  height: 72px;
  margin: 0 0 0.75rem;
}

.lb-download .title {
  max-width: 13ch;
}

.lb-download .subtitle {
  max-width: 46ch;
  margin: 0;
}

.lb-download .version-pill {
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--surface);
  color: var(--accent);
}

.lb-download .body-pad {
  padding: 0;
}

.lb-download .download-layout {
  margin-inline: 0;
}

.lb-download .download-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
}

.lb-download .download-card__action {
  grid-column: 1 / -1;
}

.lb-download .system-requirements {
  margin-top: 1.25rem;
  border: 1px solid var(--border);
}

.lb-download .back-link {
  margin-top: 1.25rem;
}

.lb-alternatives main > .container {
  max-width: 1040px;
}

.lb-alternatives .breadcrumb {
  padding-top: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lb-alternatives .article-header {
  display: grid;
  gap: 0.75rem;
  padding: clamp(2rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3rem);
}

.lb-alternatives .article-body > h2,
.lb-alternatives .content-section h2 {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.1;
}

.lb-alternatives .article-body > p,
.lb-alternatives .content-section p {
  max-width: 72ch;
}

.document-shell {
  width: min(calc(100% - 2 * var(--gutter)), 860px);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) 0;
}

.document-shell .back-link {
  margin-bottom: 1.5rem;
}

.document-shell h1 {
  max-width: none;
  margin-bottom: 0.5rem;
}

.document-shell h2 {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--fg);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 400;
}

.document-shell ul {
  padding-left: 1.25rem;
}

.document-shell a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.lb-account {
  min-height: 100vh;
}

.account-shell {
  width: min(calc(100% - 2 * var(--gutter)), 880px);
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  max-height: none;
  overflow: visible;
  text-align: left;
}

.account-shell::before {
  display: none;
}

.account-shell > .title,
.account-shell .login-section > .title,
.account-shell .main-content > .title {
  margin: 0.5rem 0 0.75rem;
}

.account-shell .subtitle {
  margin: 0 0 2rem;
}

.account-shell .login-section,
.account-shell .main-content,
.account-shell .tab-content.active {
  margin: 1.5rem 0;
}

.account-shell form,
.account-shell .tab-container,
.account-shell .beta-features,
.account-shell .user-info {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1.25rem;
}

.account-shell .tab-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--border);
}

.account-shell .tab-button {
  border-radius: 0;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.account-shell .tab-button.active {
  background: var(--accent);
  color: #051018;
  box-shadow: none;
}

.lb-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 2rem var(--gutter);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lb-footer a {
  color: var(--muted);
  text-decoration: none;
}

.lb-footer a:hover {
  color: var(--fg);
}

.lb-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}


@media (min-width: 768px) {
  .topbar-nav {
    display: flex;
  }

  .menu-btn {
    display: none;
  }

  .bento,
  .pro-grid,
  .lb-grid,
  body.lb-refresh .price-callout,
  body.lb-refresh .comparison-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lb-download .download-card {
    grid-template-columns: auto 1fr auto;
  }

  .lb-download .download-card__action {
    grid-column: auto;
  }
}

@media (min-width: 1024px) {
  .chapter-head,
  .lb-footer {
    padding-inline: var(--inset);
  }

  .bento,
  .pro-grid,
  .lb-grid,
  body.lb-refresh .price-callout,
  body.lb-refresh .comparison-grid,
  body.lb-refresh .download-layout {
    margin-inline: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
