/* bugsradar.com — the product site.
   Tokens are the web app's (BugsRadarWebApp/app.bugsradar.com, src/styles/_tokens.scss): light theme, blue accent
   #1F6FEB, the red of the logo's bug for errors. Self-contained: no framework, no web fonts, nothing is loaded
   from other servers. */

:root {
  color-scheme: light;

  --bg: #f6f8fa;
  --surface: #ffffff;
  --surface-2: #f3f5f8;
  --line: #d8dee4;
  --line-strong: #c1c8d0;

  --text: #1f2328;
  --text-2: #4d5761;
  --text-3: #6e7781;

  --accent: #1f6feb;
  --accent-700: #1a5ed0;
  --accent-800: #154aa6;
  --accent-100: #e8f0fe;
  --on-accent: #ffffff;

  --danger: #cf222e;
  --danger-100: #ffebe9;
  --success: #1a7f37;
  --success-100: #dafbe1;
  --warning: #9a6700;
  --warning-100: #fff8c5;

  /* Avatar of the sample Telegram chat. */
  --telegram: #229ed9;

  --shadow: 0 12px 32px rgba(31, 35, 40, 0.14);
  --shadow-sm: 0 1px 2px rgba(31, 35, 40, 0.08);

  --r-card: 12px;
  --r-field: 8px;
  --r-pill: 999px;

  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'Cascadia Mono', Consolas, 'Liberation Mono', monospace;

  --topbar-h: 64px;
  --page-max: 1120px;
  --content-max: 760px;
  --gutter: 20px;

  /* Site only: code panels are dark, like a terminal; message samples sit on a Telegram-like background. */
  --code-bg: #0d1117;
  --code-line: #30363d;
  --code-text: #e6edf3;
  --code-muted: #8b949e;
  --code-focus: #58a6ff;
  --code-keyword: #ff7b72;
  --code-type: #ffa657;
  --code-string: #a5d6ff;
  --code-comment: #8b949e;
  --chat-bg: #e3ebf3;
}

@media (max-width: 600px) {
  :root {
    --gutter: 16px;
  }
}

/* ── Base ── */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-800);
  text-decoration: underline;
}

img,
svg {
  max-width: 100%;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

code,
pre {
  font-family: var(--font-mono);
}

:not(pre) > code {
  padding: 0.12em 0.36em;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  font-size: 0.875em;
  overflow-wrap: anywhere;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: var(--r-field);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: calc(var(--page-max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── Buttons (the web app's set) ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0.45rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-field);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.btn:hover {
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
}

.btn--primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.btn--primary:hover {
  border-color: var(--accent-700);
  background: var(--accent-700);
  color: var(--on-accent);
}

.btn--white {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--accent-800);
}

.btn--white:hover {
  border-color: var(--accent-100);
  background: var(--accent-100);
  color: var(--accent-800);
}

.btn--outline-white {
  border-color: rgba(255, 255, 255, 0.6);
  background: transparent;
  color: #ffffff;
}

.btn--outline-white:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.btn--lg {
  min-height: 46px;
  padding-inline: 1.4rem;
  font-size: 15px;
}

.btn--block {
  width: 100%;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ── Header ── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
}

.topbar__row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--topbar-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
  white-space: nowrap;
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
  text-decoration: none;
}

.brand img {
  display: block;
  width: 32px;
  height: 32px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 20px;
}

.nav a:not(.btn) {
  padding: 8px 12px;
  border-radius: var(--r-field);
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
}

.nav a:not(.btn):hover {
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
}

.nav a[aria-current='page'] {
  color: var(--text);
  font-weight: 600;
}

/* The sign-in button inside the menu: only on the narrowest phones, where the bar has no room for it. */
.nav__signin {
  display: none;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* The menu button. site.js shows it; without scripts the pages are still reachable from the footer. */
.menu-toggle {
  display: none;
  flex: none;
  place-items: center;
  width: 40px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-field);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle:hover {
  background: var(--surface-2);
}

.menu-toggle svg {
  display: block;
  width: 20px;
  height: 20px;
}

.menu-toggle__close,
.menu-toggle[aria-expanded='true'] .menu-toggle__open {
  display: none;
}

.menu-toggle[aria-expanded='true'] .menu-toggle__close {
  display: block;
}

/* Up to 880px the links move into a panel under the header, opened by the menu button. */
@media (max-width: 880px) {
  .menu-toggle:not([hidden]) {
    display: inline-grid;
  }

  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 8px var(--gutter) 16px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 12px 24px rgba(31, 35, 40, 0.12);
  }

  .topbar.is-open .nav {
    display: flex;
  }

  .nav a:not(.btn) {
    padding: 12px;
    font-size: 16px;
  }
}

@media (max-width: 380px) {
  .brand {
    gap: 8px;
    font-size: 17px;
  }

  .topbar__signin {
    padding-inline: 0.75rem;
    font-size: 13px;
  }
}

/* The narrowest phones: the sign-in button moves from the bar into the menu. */
@media (max-width: 374px) {
  .topbar__signin {
    display: none;
  }

  .nav .nav__signin {
    display: flex;
    margin-top: 8px;
  }
}

/* ── Sections ── */

.section {
  padding: 96px 0;
}

.section--alt {
  border-block: 1px solid var(--line);
  background: var(--bg);
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.section-head {
  max-width: 720px;
  margin-bottom: 44px;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2,
.h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

/* The first section of a page of its own (Channels, Pricing): its head is the page title. */
.section--first {
  padding-top: 72px;
  background:
    radial-gradient(760px 420px at 88% 0%, rgba(31, 111, 235, 0.1), transparent 70%),
    var(--surface);
}

.section-head h1 {
  font-size: clamp(32px, 4.6vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-head > p:not(.eyebrow),
.section-lead {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 18px;
}

.more-link {
  display: inline-block;
  margin-top: 28px;
  font-weight: 600;
}

@media (max-width: 600px) {
  .section {
    padding: 64px 0;
  }

  .section--first {
    padding-top: 44px;
  }

  .section-head {
    margin-bottom: 32px;
  }
}

/* ── Hero ── */

.hero {
  padding: 72px 0 96px;
  background:
    radial-gradient(760px 420px at 88% 0%, rgba(31, 111, 235, 0.12), transparent 70%),
    radial-gradient(560px 320px at 0% 100%, rgba(207, 34, 46, 0.05), transparent 70%),
    var(--surface);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.07;
  letter-spacing: -0.03em;
}

.hero__lead {
  max-width: 590px;
  margin-top: 22px;
  color: var(--text-2);
  font-size: 19px;
}

.hero__note {
  margin-top: 18px;
  color: var(--text-3);
  font-size: 14px;
}

.install {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  margin-top: 28px;
  padding: 7px 7px 7px 16px;
  border-radius: var(--r-field);
  background: var(--code-bg);
  color: var(--code-text);
  font-family: var(--font-mono);
  font-size: 14px;
}

.install__prompt {
  color: var(--code-muted);
  user-select: none;
}

.install code {
  min-width: 0;
  padding: 0;
  overflow-x: auto;
  border: 0;
  background: none;
  font-size: inherit;
  white-space: nowrap;
  overflow-wrap: normal;
}

@media (max-width: 980px) {
  .hero {
    padding: 48px 0 72px;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
}

/* ── Copy button (added by site.js) ── */

.copy {
  flex: none;
  padding: 5px 10px;
  border: 1px solid rgba(240, 246, 252, 0.18);
  border-radius: 6px;
  background: rgba(240, 246, 252, 0.06);
  color: var(--code-muted);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}

.copy:hover {
  border-color: rgba(240, 246, 252, 0.4);
  color: var(--code-text);
}

.copy:focus-visible {
  outline-color: var(--code-focus);
}

.copy.is-done {
  border-color: rgba(126, 226, 168, 0.5);
  color: #7ee2a8;
}

/* ── Message samples (Telegram-like) ── */

.chat {
  width: 100%;
  max-width: 520px;
  margin: 0 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--chat-bg);
  box-shadow: var(--shadow);
}

.chat__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.chat__avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--telegram);
  color: #ffffff;
  font-weight: 700;
}

.chat__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
}

.chat__subtitle {
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.25;
}

.chat__service {
  display: block;
  flex: none;
  width: 24px;
  height: 24px;
  margin-left: auto;
}

.chat__body,
.samples {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 16px 14px 18px;
}

.chat__day {
  justify-self: center;
  padding: 2px 10px;
  border-radius: var(--r-pill);
  background: rgba(31, 35, 40, 0.3);
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
}

.chat__caption {
  padding: 10px 16px 12px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-3);
  font-size: 13px;
}

.samples {
  margin-top: 18px;
  border-radius: var(--r-card);
  background: var(--chat-bg);
}

.msg {
  justify-self: start;
  max-width: 100%;
  padding: 9px 12px 7px;
  border-radius: 14px 14px 14px 4px;
  background: var(--surface);
  box-shadow: 0 1px 1px rgba(31, 35, 40, 0.1);
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.msg b {
  font-weight: 600;
}

.msg__sub {
  color: var(--text-2);
}

.msg pre {
  margin: 6px 0 2px;
  padding: 7px 9px;
  overflow-x: auto;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 12px;
  line-height: 1.5;
  white-space: pre;
  overflow-wrap: normal;
}

.msg__time {
  display: block;
  margin-top: 2px;
  color: var(--text-3);
  font-size: 11.5px;
  text-align: right;
}

@media (max-width: 980px) {
  .chat {
    margin: 0 auto;
  }
}

/* ── How it works ── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
}

.step__num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--accent-100);
  color: var(--accent-800);
  font-size: 15px;
  font-weight: 700;
}

.step h2 {
  font-size: 18px;
}

.step p {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 15.5px;
}

@media (max-width: 880px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ── One package: text and code ── */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: start;
}

.checklist {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 32px;
  color: var(--text-2);
  font-size: 15.5px;
}

.checklist li::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--success-100)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%231a7f37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

@media (max-width: 980px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
}

/* ── Code ── */

.code-card {
  overflow: hidden;
  border: 1px solid #1f2630;
  border-radius: var(--r-card);
  background: var(--code-bg);
  box-shadow: var(--shadow);
}

.tabs {
  display: flex;
  gap: 4px;
  padding: 6px 8px 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--code-line);
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tabs[hidden] {
  display: none;
}

.tab {
  flex: none;
  margin-bottom: -1px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--code-muted);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.tab:hover {
  color: var(--code-text);
}

.tab[aria-selected='true'] {
  border-bottom-color: var(--code-focus);
  color: var(--code-text);
}

.tab:focus-visible {
  border-radius: 6px;
  outline-color: var(--code-focus);
  outline-offset: -2px;
}

.code-panel[hidden] {
  display: none;
}

.code-panel:focus-visible {
  outline: 2px solid var(--code-focus);
  outline-offset: -2px;
}

/* Without scripts every panel is shown, each under its own title. */
.code-panel + .code-panel {
  border-top: 1px solid var(--code-line);
}

.code-panel__title {
  padding: 14px 16px 0;
  color: var(--code-muted);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.is-tabbed .code-panel + .code-panel {
  border-top: 0;
}

.is-tabbed .code-panel__title {
  display: none;
}

.code-block {
  position: relative;
}

.code-block__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 6px 8px 6px 16px;
  border-bottom: 1px solid var(--code-line);
  color: var(--code-muted);
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.code {
  margin: 0;
  padding: 18px 20px 20px;
  overflow-x: auto;
  color: var(--code-text);
  font-size: 13.5px;
  line-height: 1.7;
  white-space: pre;
  tab-size: 4;
}

.code code {
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
}

.code .k {
  color: var(--code-keyword);
}

.code .t {
  color: var(--code-type);
}

.code .s {
  color: var(--code-string);
}

.code .c {
  color: var(--code-comment);
}

/* ── Features ── */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 10px;
  background: var(--accent-100);
  color: var(--accent-800);
}

.feature__icon--danger {
  background: var(--danger-100);
  color: var(--danger);
}

.feature__icon svg {
  width: 22px;
  height: 22px;
}

.feature h3 {
  font-size: 17.5px;
}

.feature p {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 15.5px;
}

@media (max-width: 980px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .features {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ── Channels ── */

.channels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.channel {
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
}

.channel__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.channel__head h2 {
  font-size: 19px;
}

.channel > p {
  margin-top: 14px;
  color: var(--text-2);
  font-size: 15.5px;
}

.channel__need strong {
  display: block;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.channel__more {
  margin-top: auto;
  padding-top: 18px;
  font-size: 14.5px;
  font-weight: 600;
}

/* The services' official logos, unchanged: their brand rules forbid recoloring or reshaping them,
   so a non-square logo (Discord) keeps its proportions inside the square. */
.ch-logo {
  display: block;
  flex: none;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.note {
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg);
  color: var(--text-2);
  font-size: 15px;
}

.note strong {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 880px) {
  .channels,
  .notes {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ── Pricing ── */

.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
}

.plan--current {
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px var(--accent),
    var(--shadow-sm);
}

.plan__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 26px;
}

.plan__name {
  font-size: 18px;
}

.plan__tag {
  padding: 2px 9px;
  border-radius: var(--r-pill);
  background: var(--success-100);
  color: var(--success);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.plan__price {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin-top: 12px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.plan__price--soon {
  color: var(--text-3);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.plan__for {
  margin-top: 2px;
  color: var(--text-2);
  font-size: 14.5px;
}

.plan ul {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--text-2);
  font-size: 14.5px;
}

.plan li {
  position: relative;
  padding-left: 24px;
}

.plan li::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 0;
  width: 15px;
  height: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7.5' fill='none' stroke='%231f6feb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.plan__cta {
  margin-top: auto;
  padding-top: 24px;
}

.plans-note {
  max-width: 760px;
  margin: 32px auto 0;
  color: var(--text-2);
  font-size: 15px;
  text-align: center;
}

@media (max-width: 1080px) {
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ── Plan comparison ── */

/* overflow: clip keeps the rounded corners without making the wrapper a scroll container,
   so the header row can stick under the site header while the page scrolls. */
.compare-wrap {
  overflow: hidden;
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
}

.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14.5px;
}

.compare th,
.compare td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
}

.compare thead th {
  position: sticky;
  top: calc(var(--topbar-h) + 1px);
  z-index: 2;
  padding-top: 16px;
  padding-bottom: 14px;
  background: var(--surface);
  font-size: 16px;
  font-weight: 700;
}

.compare thead th:nth-child(2) {
  color: var(--accent);
}

.compare thead small {
  display: block;
  margin-top: 2px;
  color: var(--text-3);
  font-size: 12.5px;
  font-weight: 500;
}

.compare tbody th[scope='row'] {
  width: 36%;
  color: var(--text);
  font-weight: 400;
  text-align: left;
}

.compare td {
  color: var(--text-2);
}

.compare__group th {
  padding-top: 20px;
  background: var(--bg);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

.compare__group span {
  position: sticky;
  left: 16px;
  display: inline-block;
}

.compare tbody:last-child tr:last-child > * {
  border-bottom: 0;
}

.mark {
  display: inline-block;
  vertical-align: middle;
}

.mark--yes {
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7.5' fill='none' stroke='%231f6feb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.mark--no {
  width: 12px;
  height: 2px;
  border-radius: 1px;
  background: var(--line-strong);
}

.soon {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--warning-100);
  color: var(--warning);
  font-size: 12px;
  font-weight: 600;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* A narrow screen: the table scrolls sideways, the feature names stay in view, the header row no longer sticks. */
@media (max-width: 760px) {
  .compare-wrap {
    overflow-x: auto;
  }

  .compare {
    min-width: 620px;
  }

  .compare thead th {
    position: static;
  }

  .compare tbody th[scope='row'] {
    position: sticky;
    left: 0;
    z-index: 1;
    width: 150px;
    min-width: 150px;
    background: var(--surface);
  }
}

/* ── FAQ ── */

.faq {
  display: grid;
  gap: 12px;
  max-width: var(--content-max);
  margin: 0 auto;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
}

.faq summary {
  position: relative;
  padding: 18px 52px 18px 22px;
  font-size: 16.5px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 24px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.15s ease;
}

.faq details[open] summary::after {
  transform: translateY(-25%) rotate(225deg);
}

.faq summary:focus-visible {
  border-radius: var(--r-card);
  outline-offset: -2px;
}

.faq details > p {
  padding: 0 22px 20px;
  color: var(--text-2);
}

/* ── Closing call to action ── */

.cta-card {
  padding: 56px 32px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-800) 100%);
  color: #ffffff;
  text-align: center;
}

.cta-card h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: -0.02em;
}

.cta-card p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.cta-card .actions {
  justify-content: center;
}

@media (max-width: 600px) {
  .cta-card {
    padding: 40px 20px;
  }
}

/* ── Footer ── */

.footer {
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  color: var(--text-3);
  font-size: 14px;
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}

.footer .brand {
  gap: 8px;
  font-size: 16px;
}

.footer .brand img {
  width: 24px;
  height: 24px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-left: auto;
}

.footer__links a {
  color: var(--text-2);
}

.footer__links a:hover {
  color: var(--accent);
}

.footer__legal {
  margin-top: 20px;
}

@media (max-width: 600px) {
  .footer__links {
    width: 100%;
    margin-left: 0;
  }
}

/* ── Docs ── */

.docs {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 64px;
  padding-top: 48px;
  padding-bottom: 96px;
}

.toc {
  position: sticky;
  top: calc(var(--topbar-h) + 32px);
  align-self: start;
  max-height: calc(100vh - var(--topbar-h) - 64px);
  overflow-y: auto;
  font-size: 14px;
}

.toc__group + .toc__group {
  margin-top: 22px;
}

.toc__title {
  margin-bottom: 8px;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc a {
  display: block;
  padding: 4px 0 4px 12px;
  border-left: 2px solid var(--line);
  color: var(--text-2);
}

.toc a:hover {
  border-left-color: var(--line-strong);
  color: var(--text);
  text-decoration: none;
}

.toc a.is-active {
  border-left-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.prose {
  min-width: 0;
  max-width: var(--content-max);
}

.prose h1 {
  font-size: clamp(32px, 4.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.prose .lead {
  margin-top: 14px;
  color: var(--text-2);
  font-size: 19px;
}

.prose h2 {
  margin-top: 64px;
  font-size: 27px;
  letter-spacing: -0.02em;
}

.prose h3 {
  margin-top: 36px;
  font-size: 19px;
}

/* A heading with the service's logo in front of its name. */
.prose .with-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.with-logo img {
  display: block;
  flex: none;
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.prose p {
  margin-top: 14px;
}

.prose ul,
.prose ol {
  margin: 14px 0 0;
  padding-left: 24px;
}

.prose li {
  margin-top: 8px;
}

.prose li::marker {
  color: var(--text-3);
}

.prose strong {
  font-weight: 600;
}

.prose .code-block {
  margin-top: 18px;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--code-bg);
}

.prose .msg p {
  margin-top: 0;
}

.table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.prose th,
.prose td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--bg);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
}

.prose tr:last-child td {
  border-bottom: 0;
}

.prose td:first-child code {
  white-space: nowrap;
}

@media (max-width: 980px) {
  .docs {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-top: 32px;
    padding-bottom: 72px;
  }

  .toc {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
    max-height: none;
    padding: 18px 20px;
    overflow: visible;
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: var(--bg);
  }

  .toc__group + .toc__group {
    margin-top: 0;
  }
}

@media (max-width: 480px) {
  .toc {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ── Single-column pages: contact, privacy policy, terms of use ── */

.page {
  padding-top: 56px;
  padding-bottom: 96px;
}

.page .prose {
  margin: 0 auto;
}

.prose .updated {
  margin-top: 10px;
  color: var(--text-3);
  font-size: 14px;
}

.box {
  margin-top: 20px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg);
}

.box > :first-child {
  margin-top: 0;
}

.contact-email {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  .page {
    padding-top: 36px;
    padding-bottom: 64px;
  }
}

/* ── Stub pages (404) ── */

.stub-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  background: var(--bg);
  text-align: center;
}

.stub {
  max-width: 440px;
}

.stub img {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
}

.stub h1 {
  font-size: 30px;
}

.stub p {
  margin-top: 12px;
  color: var(--text-2);
}

.stub .actions {
  justify-content: center;
  margin-top: 28px;
}
