:root {
  --color-white: #ffffff;
  --color-black: #050505;
  --color-ink: #070b3f;
  --color-ink-soft: #4b5563;
  --color-muted: #5e635f;
  --color-line: #e6e8ee;
  --color-line-strong: #cfd5e4;
  --color-surface: #ffffff;
  --color-surface-muted: #f8faff;
  --color-accent: #4f46e5;
  --color-accent-strong: #4338ca;
  --color-accent-soft: #edebfd;
  --color-focus: #4f46e5;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1056px;
  --radius-6: 6px;
  --radius-8: 8px;
  --radius-pill: 999px;
  --button-height: 46px;
  --button-height-mobile: 48px;
  --link-button-height: 38px;
  --brand-link-height: 36px;
  --toc-link-height: 44px;
  --shadow-menu: 0 14px 36px rgba(7, 11, 63, 0.12);
  --space-page: clamp(20px, 4vw, 56px);
  --text-label: 11px;
  --text-meta: 12px;
  --text-small: 13px;
  --text-body: 16px;
  --text-body-lg: 20px;
  --text-section: 44px;
  --text-hero: clamp(38px, 7vw, 72px);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--color-white);
  color: var(--color-black);
  font-family: var(--font-sans);
  font-size: 16px;
  letter-spacing: 0;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--color-white);
  color: var(--color-black);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--color-accent);
}

button {
  font: inherit;
}

.site-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--color-line);
}
.site-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  width: min(var(--container), calc(100% - var(--space-page) * 2));
  margin: 0 auto;
  padding: 13px 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  width: 148px;
  min-height: var(--brand-link-height);
}

.brand-logo {
  display: block;
  width: 148px;
  height: auto;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 3vw, 32px);
  color: var(--color-ink-soft);
  font-size: 14px;
}

.primary-nav a[aria-current="page"] {
  color: var(--color-ink);
  font-weight: 700;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
}

/* Hamburger (shown on narrow headers instead of wrapping the nav to two lines) */
.site-header-inner { position: relative; }
.nav-burger {
  display: none;
  align-items: center; justify-content: center;
  width: 38px; height: 38px; flex: none;
  border: 1px solid var(--color-line); border-radius: 9px;
  background: #fff; color: var(--color-ink); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-burger:hover { background: var(--color-soft); border-color: var(--color-line-strong); }
.nav-burger svg { stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
.nav-burger svg path { transition: transform .18s ease, opacity .18s ease; transform-origin: center; }
.site-header.nav-open .nav-burger .nb-top { transform: translateY(5px) rotate(45deg); }
.site-header.nav-open .nav-burger .nb-mid { opacity: 0; }
.site-header.nav-open .nav-burger .nb-bot { transform: translateY(-5px) rotate(-45deg); }

.language-menu {
  position: relative;
}

.language-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: var(--radius-6);
  background: transparent;
  color: var(--color-ink-soft);
  padding: 0 8px;
  cursor: pointer;
}

.language-trigger:hover,
.language-trigger:focus-visible {
  border-color: var(--color-line);
  color: var(--color-ink);
  outline: none;
}

.language-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.language-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: none;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 2px;
  width: min(360px, calc(100vw - 28px));
  border: 1px solid var(--color-line);
  border-radius: var(--radius-8);
  background: var(--color-white);
  padding: 8px;
  box-shadow: var(--shadow-menu);
}

.language-menu.is-open .language-popover {
  display: grid;
}

.language-popover a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-radius: var(--radius-6);
  padding: 9px 10px;
}

.language-popover a:hover,
.language-popover a[aria-current="true"] {
  background: var(--color-surface);
  color: var(--color-ink);
}

.language-popover small {
  color: var(--color-muted);
  font-size: 11px;
}

main {
  flex: 1;
}

.hero-section,
.why-section,
.install-section,
.plain-page,
.legal-page {
  width: min(var(--container), calc(100% - var(--space-page) * 2));
  margin: 0 auto;
}

.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(72px, 11vw, 148px) 0 clamp(34px, 6vw, 76px);
  text-align: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--color-accent);
  font-size: var(--text-label);
  font-weight: 820;
  line-height: 1.2;
  text-transform: uppercase;
}

h1 {
  max-width: 900px;
  margin: 0;
  color: var(--color-black);
  font-size: var(--text-hero);
  font-weight: 820;
  line-height: 0.98;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.hero-copy {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--color-ink-soft);
  font-size: var(--text-body-lg);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--button-height);
  border-radius: var(--radius-8);
  padding: 0 18px;
  font-size: 14px;
  font-weight: 760;
  text-align: center;
  white-space: normal;
}

.button.primary {
  background: var(--color-black);
  color: var(--color-white);
}

.button.primary:hover {
  background: var(--color-accent-strong);
  color: var(--color-white);
}

.button.secondary {
  border: 1px solid var(--color-line-strong);
  color: var(--color-ink);
}

.trust-line {
  margin: 22px 0 0;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.5;
}

.product-strip {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0;
  width: min(760px, calc(100% - var(--space-page) * 2));
  margin: 0 auto clamp(70px, 9vw, 116px);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-8);
  overflow: hidden;
  background: var(--color-white);
}

.mail-column,
.mentor-column {
  min-height: 190px;
  padding: 22px;
}

.mail-column {
  border-inline-end: 1px solid var(--color-line);
}

.mentor-column {
  background: var(--color-surface-muted);
}

.mini-label {
  margin-bottom: 24px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.mail-line {
  height: 10px;
  width: 88%;
  margin-top: 14px;
  border-radius: var(--radius-pill);
  background: var(--color-line);
}

.mail-line.strong {
  width: 72%;
  background: var(--color-line-strong);
}

.mail-line.short {
  width: 44%;
}

.mentor-line {
  display: flex;
  align-items: center;
  min-height: 34px;
  border-bottom: 1px solid var(--color-line);
  color: var(--color-ink);
  font-size: 14px;
  font-weight: 700;
}

/* Hero preview: left column lists real apps (proves multi-app), not an email skeleton */
.app-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  color: var(--color-ink);
  font-size: 14px;
  font-weight: 700;
}
.app-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  flex: 0 0 auto;
}

/* Integrations showcase — the multi-app differentiator, made visible */
.integrations-section {
  width: min(760px, calc(100% - var(--space-page) * 2));
  margin: 0 auto clamp(70px, 9vw, 116px);
  text-align: center;
}
.integrations-section h2 {
  margin-bottom: 10px;
}
.integrations-section > p {
  color: var(--color-muted);
  margin: 0 auto 26px;
  max-width: 52ch;
}
.integration-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
}
.integration-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-block: 7px;
  padding-inline: 11px 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  background: var(--color-white);
  color: var(--color-ink);
  font-size: 14px;
  font-weight: 600;
}
.integration-ic {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: 0 0 auto;
}
.integrations-section .trust-line {
  margin: 0 auto;
}

.faq-section {
  width: min(760px, calc(100% - var(--space-page) * 2));
  margin: 0 auto clamp(70px, 9vw, 116px);
}
.faq-section h2 {
  margin: 0 0 22px;
  text-align: center;
}
.faq-list {
  display: grid;
  gap: 10px;
}
.faq-item {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-8);
  background: var(--color-white);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 650;
  color: var(--color-ink);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 20px;
  font-weight: 400;
  color: var(--color-accent);
  transition: transform .15s ease;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item summary:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: var(--radius-8);
}
.faq-a {
  padding: 0 18px 18px;
}
.faq-a p {
  margin: 0;
  color: var(--color-ink-soft);
  line-height: 1.65;
  max-width: none;
}
[dir="rtl"] .faq-item summary {
  flex-direction: row-reverse;
}

/* Inline CTA arrow — mirror it in RTL so it points with the reading direction. */
.lar {
  display: inline-block;
}
[dir="rtl"] .lar {
  transform: scaleX(-1);
}

.mentor-line:last-child {
  border-bottom: 0;
}

.why-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 7vw, 96px);
  padding: 0 0 clamp(72px, 10vw, 132px);
}

.why-section h2,
.install-section h2,
.plain-page h1,
.legal-page h1 {
  margin: 0;
  color: var(--color-black);
  font-size: var(--text-section);
  font-weight: 820;
  line-height: 1.05;
  letter-spacing: 0;
}

.why-section ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--color-line);
}

.why-section li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  border-bottom: 1px solid var(--color-line);
  padding: 20px 0;
  color: var(--color-ink);
  font-size: 22px;
  font-weight: 720;
  line-height: 1.25;
}

.why-section li span {
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 780;
}

.why-section p {
  grid-column: 2;
  margin: 20px 0 0;
  color: var(--color-ink-soft);
  font-size: 17px;
  line-height: 1.65;
}

.install-section {
  border-top: 1px solid var(--color-line);
  padding: clamp(42px, 7vw, 88px) 0;
}

.install-section p,
.plain-page p,
.legal-page p {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--color-ink-soft);
  font-size: var(--text-body);
  line-height: 1.7;
}

.text-link {
  display: inline-flex;
  margin-top: 24px;
  color: var(--color-accent);
  font-weight: 760;
}

.plain-page,
.legal-page {
  padding: clamp(74px, 12vw, 148px) 0;
}

.legal-page {
  max-width: 820px;
}

.legal-meta {
  max-width: 760px;
}

.legal-toc {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 34px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-8);
  background: var(--color-white);
  overflow: hidden;
}

.legal-toc a {
  min-height: var(--toc-link-height);
  border-bottom: 1px solid var(--color-line);
  padding: 13px 16px;
  color: var(--color-ink-soft);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.3;
}

.legal-toc a:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.legal-toc a:nth-child(odd) {
  border-right: 1px solid var(--color-line);
}

.legal-toc a:hover {
  background: var(--color-white);
  color: var(--color-accent);
}

.legal-page section {
  border-top: 1px solid var(--color-line);
  padding: 30px 0 0;
  margin-top: 30px;
}

.legal-page h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.legal-list {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin: 18px 0 0;
  padding-left: 22px;
  color: var(--color-ink-soft);
  font-size: var(--text-body);
  line-height: 1.65;
}

.legal-list li::marker {
  color: var(--color-accent);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.legal-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--link-button-height);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-6);
  padding: 0 12px;
  color: var(--color-ink);
  font-size: 13px;
  font-weight: 760;
}

.legal-links a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.legal-note {
  border-inline-start: 3px solid var(--color-accent);
  padding-inline-start: 14px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--container), calc(100% - var(--space-page) * 2));
  margin: 0 auto;
  border-top: 1px solid var(--color-line);
  padding: 24px 0 34px;
  color: var(--color-muted);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

[dir="rtl"] .site-header,
[dir="rtl"] .why-section,
[dir="rtl"] .site-footer {
  direction: rtl;
}

[dir="rtl"] .language-popover {
  left: 0;
  right: auto;
}

@media (max-width: 780px) {
  .site-header-inner {
    grid-template-columns: 1fr auto;
    gap: 12px 16px;
  }

  /* Logo on its own row; nav + language share the next row, on one line. */
  .brand-link {
    grid-column: 1 / -1;
  }

  .primary-nav {
    grid-column: 1;
    justify-content: flex-start;
    flex-wrap: wrap;
    row-gap: 6px;
    min-width: 0;
    padding-bottom: 4px;
  }

  .header-actions {
    grid-column: 2;
    justify-content: flex-end;
    align-self: center;
  }

  .product-strip,
  .why-section {
    grid-template-columns: 1fr;
  }

  .mail-column {
    border-right: 0;
    border-bottom: 1px solid var(--color-line);
  }

  .why-section p {
    grid-column: auto;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-toc {
    grid-template-columns: 1fr;
  }

  .legal-toc a,
  .legal-toc a:nth-child(odd) {
    border-right: 0;
  }

  .legal-toc a:nth-last-child(2) {
    border-bottom: 1px solid var(--color-line);
  }
}

@media (max-width: 640px) {
  .site-header-inner {
    gap: 12px 14px;
  }

  h1 {
    max-width: 330px;
    font-size: 38px;
    line-height: 1.08;
  }

  .hero-section {
    align-items: flex-start;
    text-align: left;
  }

  .hero-copy,
  .trust-line {
    max-width: 330px;
  }

  .why-section h2,
  .install-section h2,
  .plain-page h1,
  .legal-page h1 {
    max-width: 330px;
    font-size: 34px;
    line-height: 1.12;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .button {
    width: 100%;
    min-height: var(--button-height-mobile);
  }

  .language-popover {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .why-section li {
    grid-template-columns: 38px 1fr;
  }
}

/* What's new — changelog */
.changelog {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
}

.changelog-entry {
  display: grid;
  grid-template-columns: 196px 1fr;
  gap: 28px;
  border-top: 1px solid var(--color-line);
  padding: 30px 0;
}

.changelog-entry:first-child {
  border-top: 0;
  padding-top: 0;
}

.changelog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: start;
  gap: 10px;
}

.changelog-meta time {
  color: var(--color-muted);
  font-size: var(--text-small);
  font-weight: 680;
}

.changelog-version {
  color: var(--color-ink-soft);
  font-size: var(--text-meta);
  font-weight: 720;
  font-variant-numeric: tabular-nums;
}

.changelog-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  font-size: var(--text-label);
  font-weight: 760;
  letter-spacing: 0.02em;
}

.tag-new {
  background: #e7f6ec;
  color: #0a7d33;
}

.tag-improved {
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
}

.tag-fixed {
  background: #fdeede;
  color: #9a5b06;
}

.changelog-text h2 {
  margin: 0;
  color: var(--color-ink);
  font-size: 22px;
  font-weight: 720;
  line-height: 1.3;
}

.changelog-text p {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--color-ink-soft);
  font-size: var(--text-body);
  line-height: 1.65;
}

@media (max-width: 640px) {
  .changelog-entry {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px 0;
  }
}

/* Pricing plans */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(212px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.plan-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-8);
  background: var(--color-surface);
  padding: 22px;
}

.plan-card .plan-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.plan-card .plan-head span {
  color: var(--color-muted);
  font-size: var(--text-small);
  font-weight: 760;
  letter-spacing: 0.01em;
}

.plan-card .plan-head strong {
  color: var(--color-ink);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.plan-card > p {
  max-width: none;
  margin: 0;
  color: var(--color-ink-soft);
  font-size: var(--text-small);
  line-height: 1.55;
}

.plan-card ul {
  list-style: none;
  display: grid;
  gap: 9px;
  margin: 4px 0 0;
  padding: 0;
}

.plan-card li {
  position: relative;
  padding-left: 22px;
  color: var(--color-ink-soft);
  font-size: var(--text-small);
  line-height: 1.45;
}

.plan-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 800;
}

/* Hidden native scrollbar — replaced by the auto-hide overlay in site.js. Only on
   pointer devices: touch screens keep their own auto-hiding overlay scrollbar. */
@media (hover: hover) {
  html {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  html::-webkit-scrollbar {
    width: 0;
    height: 0;
  }
}

.nk-scrollbar {
  position: fixed;
  top: 0;
  right: 3px;
  width: 10px;
  height: 100%;
  z-index: 1200;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

[dir="rtl"] .nk-scrollbar {
  right: auto;
  left: 3px;
}

.nk-scrollbar.is-visible {
  opacity: 1;
}

.nk-scrollbar.is-visible .nk-scrollbar__thumb {
  pointer-events: auto;
}

.nk-scrollbar__thumb {
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  border-radius: var(--radius-pill);
  background: rgba(7, 11, 63, 0.26);
  transition: width 0.15s ease, background 0.15s ease;
}

[dir="rtl"] .nk-scrollbar__thumb {
  right: auto;
  left: 0;
}

.nk-scrollbar__thumb:hover {
  width: 9px;
  background: rgba(7, 11, 63, 0.42);
}

@media (hover: none) {
  .nk-scrollbar {
    display: none;
  }
}

/* What's new — editorial highlights (distinct from the versioned release notes) */
.post-list {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
}

.post {
  max-width: 760px;
  border-top: 1px solid var(--color-line);
  padding: 34px 0;
}

.post:first-child {
  border-top: 0;
  padding-top: 6px;
}

.post-date {
  display: block;
  color: var(--color-muted);
  font-size: var(--text-small);
  font-weight: 680;
  letter-spacing: 0.01em;
}

.post h2 {
  margin: 10px 0 0;
  color: var(--color-ink);
  font-size: 28px;
  font-weight: 740;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.post p {
  max-width: none;
  margin: 12px 0 0;
  color: var(--color-ink-soft);
  font-size: 17px;
  line-height: 1.65;
}

/* Features — grid used on the home capabilities section and the features page */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.feature-card {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-8);
  background: var(--color-surface);
  padding: 20px;
}

.feature-card h3 {
  margin: 0;
  color: var(--color-ink);
  font-size: 17px;
  font-weight: 740;
  line-height: 1.3;
}

.feature-card p {
  max-width: none;
  margin: 8px 0 0;
  color: var(--color-ink-soft);
  font-size: var(--text-small);
  line-height: 1.55;
}

.capabilities-section {
  border-top: 1px solid var(--color-line);
  padding: clamp(42px, 7vw, 88px) 0;
}

.capabilities-section > h2 {
  margin: 0;
  color: var(--color-ink);
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 760;
  letter-spacing: -0.01em;
}

.capabilities-section > .text-link {
  margin-top: 22px;
}

.feature-group {
  margin-top: 44px;
}

.feature-group-title {
  margin: 0 0 14px;
  color: var(--color-muted);
  font-size: var(--text-small);
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.feature-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 44px;
}

.feature-cta .text-link {
  margin-top: 0;
}

/* ===== Comprehensive legal documents (Terms / Privacy / Cookies) ===== */
.legal-doc .legal-lead {
  max-width: 760px;
  margin-top: 18px;
  color: var(--color-ink-soft);
  font-size: var(--text-body);
  line-height: 1.7;
}
.legal-doc .legal-toc { margin-bottom: 8px; }
.legal-doc .legal-sec h2 { font-size: 19px; }
.legal-doc .legal-sec p {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--color-ink-soft);
  font-size: var(--text-body);
  line-height: 1.7;
}
.legal-doc .legal-sub {
  margin-top: 18px;
  padding-inline-start: 16px;
  border-inline-start: 2px solid var(--color-line);
}
.legal-doc .legal-sub h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  color: var(--color-ink);
}
.legal-doc .legal-sub p { margin-top: 8px; }
.legal-doc .legal-list { margin-top: 14px; }

/* ============================================================================
   HERO REDESIGN — dark, art-directed, with a hand-coded product mock.
   ============================================================================ */
.hero {
  position: relative;
  overflow: hidden;
  margin: 0 calc(50% - 50vw) clamp(64px, 9vw, 120px);
  padding: clamp(56px, 7vw, 104px) var(--space-page) clamp(48px, 6vw, 84px);
  background: radial-gradient(120% 130% at 78% 8%, #1b1f57 0%, #0a0d33 42%, #06081f 100%);
  color: #eef0ff;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  width: min(1240px, 100%);
  margin: 0 auto;
}
.hero .eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 5px 11px;
  border: 1px solid rgba(165, 170, 255, 0.28);
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  color: #b9beff;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 720;
  line-height: 1.03;
  letter-spacing: -0.025em;
}
.hero .hero-copy {
  margin: 22px 0 0;
  max-width: 33em;
  color: #c3c7ee;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.62;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .button.primary {
  background: #fff; color: #0a0d33; border-color: #fff;
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.35);
}
.hero .button.primary:hover { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.hero .button.ghost {
  background: transparent; color: #eef0ff;
  border: 1px solid rgba(190, 194, 255, 0.32);
}
.hero .button.ghost:hover { border-color: #fff; background: rgba(255,255,255,0.06); }
.hero-proof { margin: 22px 0 0; color: #8d92c8; font-size: 13px; line-height: 1.6; }

.hero-logos {
  position: relative; z-index: 2;
  width: min(1240px, 100%); margin: clamp(40px, 5vw, 64px) auto 0;
  display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
}
.hero-logos-label { color: #7e83bd; font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.hero-logos-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(16px, 2.4vw, 30px); }
.hero-logo { width: 22px; height: 22px; object-fit: contain; opacity: 0.82; transition: opacity .15s, transform .15s; }
.hero-logo:hover { opacity: 1; transform: translateY(-2px); }

.hero-visual { position: relative; min-width: 0; }
.hero-mock { width: 100%; }
.rk-glow {
  position: absolute; inset: -12% -8% -18% -8%; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 60% at 60% 40%, rgba(118, 122, 255, 0.45) 0%, rgba(99,102,241,0) 70%);
  filter: blur(8px);
}

.hero-mock { position: relative; z-index: 1; }
.rk-win {
  text-align: left; /* the hero centers its copy below 1100px; keep the mock UI left-aligned so email names sit next to their avatar */
  border-radius: 14px; overflow: hidden;
  background: #0e1133;
  border: 1px solid rgba(150, 156, 230, 0.18);
  box-shadow: 0 40px 90px -30px rgba(2, 4, 20, 0.8), 0 0 0 1px rgba(255,255,255,0.02) inset;
}
.rk-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #151944; border-bottom: 1px solid rgba(150,156,230,0.14); }
.rk-dot { width: 10px; height: 10px; border-radius: 50%; background: #3a3f73; }
.rk-dot:nth-child(1){ background:#ff5f57; } .rk-dot:nth-child(2){ background:#febc2e; } .rk-dot:nth-child(3){ background:#28c840; }
.rk-url { margin-left: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: #0c0f30; color: #9ea3da; font-size: 11.5px; }
.rk-body { display: grid; grid-template-columns: 1fr 232px; }
@media (min-width: 1100px){ .rk-body { grid-template-columns: 1fr 252px; } }

.rk-gmail { min-width: 0; padding: 10px 8px; background: #0b0e2b; }
.rk-mail-row { display: flex; align-items: center; gap: 14px; padding: 11px 12px; border-radius: 8px; opacity: 0.55; }
.rk-mail-row:first-child { opacity: 0.9; background: rgba(118,122,255,0.08); }
.rk-av { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; }
.rk-mail-txt { flex: 1 1 0; min-width: 0; display: grid; gap: 3px; }
.rk-mail-txt b { color: #d7daf6; font-size: 12.5px; font-weight: 650; }
.rk-mail-txt i { color: #b6bae6; font-size: 12px; font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-mail-txt u { color: #777cb0; font-size: 11.5px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.rk-panel { display: grid; grid-template-columns: 1fr 44px; grid-template-rows: auto; column-gap: 10px; background: #0f1235; border-left: 1px solid rgba(150,156,230,0.16); }
.rk-rail { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 12px 0; background: #0c0f2c; border-left: 1px solid rgba(150,156,230,0.12); }
.rk-rail-brand, .rk-rail-app { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: rgba(255,255,255,0.04); }
.rk-rail-brand { background: rgba(118,122,255,0.16); }
.rk-rail-app.is-on { background: rgba(118,122,255,0.22); box-shadow: 0 0 0 1px rgba(150,156,255,0.4); }
.rk-rail-app img, .rk-rail-brand img { width: 16px; height: 16px; object-fit: contain; }
.rk-rail-add { margin-top: 2px; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #8d92c8; font-size: 18px; border: 1px dashed rgba(150,156,230,0.3); }
.rk-main { grid-column: 1; grid-row: 1; min-width: 0; padding: 14px 13px; display: grid; gap: 11px; align-content: start; }
.rk-head { display: flex; align-items: center; justify-content: space-between; }
.rk-head span:first-child { color: #fff; font-weight: 700; font-size: 14px; }
.rk-head-x { color: #b9beff; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: rgba(118,122,255,0.18); }
.rk-card { border-radius: 11px; padding: 12px; background: #161a45; border: 1px solid rgba(150,156,230,0.16); }
.rk-summary { background: linear-gradient(180deg, #1a1f55 0%, #141845 100%); border-color: rgba(150,156,255,0.3); }
.rk-card-top { display: flex; align-items: center; gap: 7px; color: #b9beff; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; margin-bottom: 8px; }
.rk-glyph { color: #8b8fff; }
.rk-card p { margin: 0; color: #dcdef6; font-size: 12.5px; line-height: 1.5; }
.rk-card p b { color: #fff; }
.rk-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rk-chips span { font-size: 10.5px; color: #c3c7ee; padding: 3px 8px; border-radius: 999px; background: rgba(118,122,255,0.14); border: 1px solid rgba(150,156,230,0.22); }
.rk-draft-foot { display: flex; align-items: center; gap: 8px; margin-top: 11px; }
.rk-send { font-size: 11px; font-weight: 700; color: #0a0d33; background: #fff; padding: 5px 12px; border-radius: 7px; }
.rk-mini { font-size: 11px; color: #9ea3da; padding: 5px 9px; border-radius: 7px; border: 1px solid rgba(150,156,230,0.22); }
.rk-compose { padding: 10px 12px; border-radius: 9px; background: #0c0f2c; border: 1px solid rgba(150,156,230,0.18); }
.rk-compose-ph { color: #6f74ab; font-size: 12px; }

/* scroll-reveal — robust: no JS class => content visible; with JS, hide then reveal */
.js .reveal { opacity: 0; transform: translateY(18px); }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
}
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal.is-delay { transition-delay: .1s; }

/* ---- cross-vendor wedge band ---- */
.xv { width: min(1000px, calc(100% - var(--space-page) * 2)); margin: 0 auto clamp(60px, 8vw, 110px); text-align: center; }
.xv-inner { display: flex; flex-direction: column; align-items: center; }
.xv h2 { margin: 0; color: var(--color-black); font-size: clamp(26px, 3.4vw, 40px); font-weight: 720; letter-spacing: -0.02em; line-height: 1.1; max-width: 16ch; }
.xv-lead { margin: 16px auto 0; max-width: 56ch; color: var(--color-ink-soft); font-size: 17px; line-height: 1.6; }
.xv-diagram { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 40px; width: 100%; }
.xv-apps { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.xv-app { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--color-surface-muted); border: 1px solid var(--color-line); }
.xv-app img { width: 22px; height: 22px; object-fit: contain; }
.xv-flow { display: flex; gap: 7px; height: 26px; align-items: stretch; }
.xv-flow span { width: 2px; background: linear-gradient(var(--color-line-strong), var(--color-accent)); border-radius: 2px; }
.xv-flow.one span { width: 2px; background: linear-gradient(var(--color-accent), var(--color-line-strong)); }
.xv-layer { display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; border-radius: 12px; background: linear-gradient(135deg, #4f46e5, #6f74ff); color: #fff; font-weight: 700; font-size: 16px; box-shadow: 0 14px 34px -12px rgba(79,70,229,0.6); }
.xv-layer img { width: 20px; height: 20px; }
.xv-you { color: var(--color-muted); font-size: 13.5px; font-weight: 600; }

/* ---- feature showcase (image-rich, alternating) ---- */
.showcase { width: min(1100px, calc(100% - var(--space-page) * 2)); margin: 0 auto clamp(56px, 7vw, 100px); }
.showcase-h { margin: 0 0 clamp(28px, 4vw, 46px); text-align: center; color: var(--color-black); font-size: clamp(24px, 3vw, 34px); font-weight: 720; letter-spacing: -0.02em; }
.showcase-rows { display: flex; flex-direction: column; gap: clamp(36px, 5vw, 64px); }
.show-row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(28px, 5vw, 64px); }
.show-row.is-flip .show-copy { order: 2; }
.show-copy h3 { margin: 0; color: var(--color-black); font-size: clamp(20px, 2.4vw, 27px); font-weight: 700; letter-spacing: -0.015em; }
.show-copy p { margin: 12px 0 0; color: var(--color-ink-soft); font-size: 16.5px; line-height: 1.62; max-width: 40ch; }
.show-visual { display: flex; justify-content: center; }
/* the small product mocks live on a soft dark card so they read as "product" */
.sm { width: 100%; max-width: 340px; border-radius: 16px; padding: 16px; color: #dcdef6; background: radial-gradient(120% 120% at 80% 0%, #1a1f55 0%, #0e1133 60%, #0a0d2c 100%); border: 1px solid rgba(150,156,230,0.2); box-shadow: 0 30px 60px -28px rgba(6,8,30,0.7); }
.sm-top { display: flex; align-items: center; gap: 7px; color: #b9beff; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; margin-bottom: 10px; }
.sm p { margin: 0; color: #dcdef6; font-size: 13.5px; line-height: 1.55; }
.sm p b { color: #fff; }
.sm-summary, .sm-draft { background: radial-gradient(120% 120% at 80% 0%, #1d2360 0%, #11164a 60%, #0c1036 100%); }
.sm-bubble { padding: 10px 12px; border-radius: 12px; font-size: 13px; line-height: 1.5; }
.sm-src { background: rgba(255,255,255,0.06); color: #c8cbf0; }
.sm-out { background: rgba(118,122,255,0.18); color: #fff; border: 1px solid rgba(150,156,255,0.3); }
.sm-arrow { text-align: center; color: #8b8fff; font-size: 16px; margin: 7px 0; }
.sm-brief-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 10px; }
.sm-wx, .sm-clk { padding: 11px; border-radius: 12px; background: rgba(255,255,255,0.05); }
.sm-wx b, .sm-clk b { display: block; color: #fff; font-size: 22px; font-weight: 750; line-height: 1; }
.sm-wx i, .sm-clk i { display: block; color: #9ea3da; font-size: 11px; font-style: normal; margin-top: 4px; }
.sm-agenda { display: grid; gap: 6px; }
.sm-agenda span { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #c8cbf0; }
.sm-agenda i { width: 6px; height: 6px; border-radius: 50%; background: #8b8fff; flex: 0 0 auto; }
.show-all { display: inline-flex; margin-top: clamp(30px, 4vw, 48px); justify-content: center; width: 100%; }

/* ---- dark final CTA band ---- */
.cta-band { position: relative; overflow: hidden; margin: 0 calc(50% - 50vw) clamp(0px, 2vw, 16px); padding: clamp(56px, 8vw, 100px) var(--space-page); background: radial-gradient(120% 140% at 50% 0%, #1b1f57 0%, #0a0d33 50%, #06081f 100%); color: #eef0ff; text-align: center; }
.cta-inner { width: min(720px, 100%); margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.cta-band h2 { margin: 0; color: #fff; font-size: clamp(28px, 4vw, 46px); font-weight: 720; letter-spacing: -0.02em; line-height: 1.08; }
.cta-band > .cta-inner > p { margin: 16px 0 0; color: #c3c7ee; font-size: 17px; line-height: 1.6; max-width: 48ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.cta-band .button.primary { background: #fff; color: #0a0d33; border-color: #fff; }
.cta-band .button.primary:hover { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.cta-band .button.ghost { background: transparent; color: #eef0ff; border: 1px solid rgba(190,194,255,0.32); }
.cta-band .button.ghost:hover { border-color: #fff; background: rgba(255,255,255,0.06); }
.cta-proof { margin: 22px 0 0; color: #8d92c8; font-size: 13px; }

@media (max-width: 760px) {
  .show-row { grid-template-columns: 1fr; gap: 22px; }
  .show-row.is-flip .show-copy { order: 0; }
  .show-copy { text-align: center; }
  .show-copy p { margin-inline: auto; }
}

/* ---- art-direction cohesion: a tinted showcase band + a dark integrations beat ---- */
.showcase {
  width: auto; max-width: none;
  margin: 0 calc(50% - 50vw) clamp(56px, 7vw, 100px);
  padding: clamp(48px, 6vw, 84px) var(--space-page);
  background: linear-gradient(180deg, #fff 0%, var(--color-surface-muted) 24%, var(--color-surface-muted) 76%, #fff 100%);
}
.showcase > * { max-width: 1100px; margin-inline: auto; }

/* faint indigo wash behind the wedge diagram */
.xv { position: relative; }
.xv::before {
  content: ""; position: absolute; left: 50%; top: 30%; width: min(620px, 80%); height: 300px;
  transform: translateX(-50%); z-index: -1; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(118,122,255,0.14) 0%, rgba(118,122,255,0) 70%);
}
.xv-flow span { width: 3px; }
.xv-app { box-shadow: 0 6px 18px -10px rgba(79,70,229,0.4); }

/* the dark mid-page beat */
.integrations-section {
  width: auto; max-width: none;
  margin: 0 calc(50% - 50vw) clamp(64px, 9vw, 116px);
  padding: clamp(60px, 7vw, 96px) var(--space-page);
  background: radial-gradient(120% 140% at 50% 0%, #161a4d 0%, #0a0d33 52%, #06081f 100%);
  color: #eef0ff;
}
.integrations-section > * { max-width: 820px; margin-inline: auto; }
.integrations-section h2 { color: #fff; }
.integrations-section > p { color: #c3c7ee; }
.integrations-section .integration-chip {
  background: rgba(255,255,255,0.05);
  border-color: rgba(150,156,230,0.22);
  color: #eef0ff;
}
.integrations-section .integration-chip:hover { background: rgba(118,122,255,0.14); border-color: rgba(150,156,255,0.4); }
.integrations-section .trust-line { color: #8d92c8; }

/* retire dead styles from the old hero (kept the page lean) */
.product-strip, .mail-column, .mentor-column, .mail-line, .app-row, .app-dot, .mini-label, .mentor-line, .hero-section { display: none !important; }

/* Below 1100px (e.g. with the Nakama side panel open) the hero stacks into a
   single centered column — copy centered, mock centered and full-width — so the
   2-column layout never gets cramped or clips the mock's rail. */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; text-align: center; justify-items: center; }
  .hero .eyebrow { margin-inline: auto; }
  .hero .hero-copy { margin-inline: auto; }
  .hero-proof { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  /* Narrow the MAIL column only (the wide part). The panel keeps its full size,
     the mock shrinks to fit its content and centers, so the right-edge rail is
     pulled left and never runs off the viewport edge. */
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .hero-mock { width: -moz-fit-content; width: fit-content; max-width: 100%; margin-inline: auto; }
  .rk-body { grid-template-columns: minmax(0, 226px) minmax(0, 248px); }
}
/* Keep the mock fully intact as it narrows — never hide the mail column; just
   let everything shrink (min-width:0 on the tracks) so the rail is never clipped. */
@media (max-width: 560px) {
  .rk-body { grid-template-columns: minmax(0, 206px) minmax(0, 232px); }
  .rk-summary .rk-chips { gap: 5px; }
}

/* ---- inner page hero (features/etc) ---- */
.page-hero { position: relative; overflow: hidden; margin: 0 calc(50% - 50vw) clamp(44px, 6vw, 76px); padding: clamp(56px, 7vw, 96px) var(--space-page) clamp(48px, 6vw, 80px); background: radial-gradient(120% 130% at 50% 0%, #1b1f57 0%, #0a0d33 50%, #06081f 100%); color: #eef0ff; text-align: center; }
.page-hero-inner { width: min(820px, 100%); margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.page-hero .eyebrow { display: inline-block; margin: 0 0 16px; padding: 5px 11px; border: 1px solid rgba(165,170,255,0.28); border-radius: 999px; background: rgba(99,102,241,0.12); color: #b9beff; font-size: 12.5px; font-weight: 600; }
.page-hero h1 { margin: 0; color: #fff; font-size: clamp(32px, 5vw, 54px); font-weight: 720; letter-spacing: -0.025em; line-height: 1.06; }
.page-hero-inner > p { margin: 18px 0 0; color: #c3c7ee; font-size: 18px; line-height: 1.6; max-width: 54ch; }
.page-hero .hero-actions { justify-content: center; margin-top: 28px; }
.page-hero .button.primary { background: #fff; color: #0a0d33; border-color: #fff; }
.page-hero .button.primary:hover { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.page-hero .button.ghost { background: transparent; color: #eef0ff; border: 1px solid rgba(190,194,255,0.32); }
.page-hero .button.ghost:hover { border-color: #fff; background: rgba(255,255,255,0.06); }

/* ---- roadmap grid ---- */
.roadmap { width: min(1100px, calc(100% - var(--space-page) * 2)); margin: 0 auto clamp(56px, 7vw, 100px); }
.road-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; margin-top: clamp(22px, 3vw, 38px); }
.road-card { padding: 22px; border: 1px solid var(--color-line); border-radius: 14px; background: var(--color-surface-muted); transition: border-color .15s, transform .15s; }
.road-card:hover { border-color: var(--color-line-strong); transform: translateY(-2px); }
.road-card h3 { margin: 0; color: var(--color-black); font-size: 17px; font-weight: 700; }
.road-card p { margin: 9px 0 0; color: var(--color-ink-soft); font-size: 14.5px; line-height: 1.58; }

/* ---- extra mocks: panel + todo ---- */
.sm-panel .smp { display: grid; grid-template-columns: 1fr 32px; gap: 10px; }
.smp-rail { grid-column: 2; display: flex; flex-direction: column; gap: 7px; }
.smp-i { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; background: rgba(255,255,255,0.05); }
.smp-i.on { background: rgba(118,122,255,0.22); box-shadow: 0 0 0 1px rgba(150,156,255,0.4); }
.smp-i img { width: 14px; height: 14px; object-fit: contain; }
.smp-body { grid-column: 1; display: grid; gap: 9px; align-content: start; }
.smp-h { display: flex; justify-content: space-between; align-items: center; }
.smp-h span:first-child { width: 54px; height: 9px; border-radius: 5px; background: rgba(255,255,255,0.2); }
.smp-x { color: #b9beff; font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 999px; background: rgba(118,122,255,0.2); }
.smp-line { height: 9px; border-radius: 5px; background: rgba(255,255,255,0.1); }
.smp-line.w90 { width: 90%; } .smp-line.w80 { width: 80%; } .smp-line.w70 { width: 70%; } .smp-line.w50 { width: 50%; }
.smp-card2 { padding: 11px; border-radius: 9px; background: rgba(118,122,255,0.1); border: 1px solid rgba(150,156,230,0.2); display: grid; gap: 7px; margin-top: 2px; }
.sm-todo .sm-task { display: flex; gap: 10px; padding: 11px; border-radius: 10px; background: rgba(255,255,255,0.05); margin-bottom: 8px; }
.sm-todo .sm-task:last-child { margin-bottom: 0; }
.sm-task.is-done { opacity: 0.55; }
.sm-check { flex: 0 0 auto; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid rgba(150,156,230,0.5); display: grid; place-items: center; color: #fff; font-size: 11px; }
.sm-check.on { background: var(--color-accent); border-color: var(--color-accent); }
.sm-task-b b { color: #fff; font-size: 13px; display: block; }
.sm-task-b s { color: #9ea3da; font-size: 13px; }
.sm-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.sm-pill { font-size: 10.5px; color: #c3c7ee; padding: 2px 8px; border-radius: 999px; background: rgba(118,122,255,0.14); border: 1px solid rgba(150,156,230,0.2); }

/* ---- pricing plans (redesigned) ---- */
.pricing-wrap { width: min(1080px, calc(100% - var(--space-page) * 2)); margin: 0 auto clamp(48px, 6vw, 84px); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px 24px; border: 1px solid var(--color-line); border-radius: 18px; background: #fff; }
.plan.is-featured { border-color: var(--color-accent); box-shadow: 0 24px 60px -28px rgba(79,70,229,0.45); }
@media (min-width: 821px) { .plan.is-featured { transform: translateY(-8px); } }
.plan-badge { position: absolute; top: -12px; left: 24px; padding: 5px 12px; border-radius: 999px; background: var(--color-accent); color: #fff; font-size: 11.5px; font-weight: 700; }
.plan-name { color: var(--color-ink-soft); font-size: 14px; font-weight: 760; }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: 8px; }
.plan-price strong { color: var(--color-black); font-size: 38px; font-weight: 800; letter-spacing: -0.02em; }
.plan-price span { color: var(--color-muted); font-size: 12.5px; }
.plan-desc { margin: 12px 0 0; color: var(--color-ink-soft); font-size: 14.5px; line-height: 1.55; }
.plan-cta { margin: 20px 0 0; width: 100%; }
.plan-list { list-style: none; padding: 20px 0 0; margin: 20px 0 0; display: grid; gap: 10px; border-top: 1px solid var(--color-line); }
.plan-list li { position: relative; padding-left: 24px; color: var(--color-ink-soft); font-size: 14px; line-height: 1.5; }
.plan-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--color-accent); font-weight: 700; }
.pricing-wrap .page-note { text-align: center; color: var(--color-muted); font-size: 13.5px; margin: clamp(28px, 4vw, 44px) auto 0; max-width: 64ch; }
@media (max-width: 820px) { .plans { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }

/* ============================================================================
   DOCS — sidebar guide layout (chaton-style)
   ============================================================================ */
.docs-layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); align-items: start; width: min(1180px, calc(100% - var(--space-page) * 2)); margin: 0 auto; }
.docs-side { position: sticky; top: 62px; align-self: start; }
.docs-side-inner { padding: 34px 22px 34px 0; max-height: calc(100vh - 62px); overflow-y: auto; }
.ds-title { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-muted); padding: 0 12px; margin-bottom: 12px; }
.ds-nav { display: flex; flex-direction: column; gap: 1px; }
.ds-link { display: block; padding: 8px 12px; border-radius: 8px; font-size: 14.5px; color: var(--color-ink-soft); }
.ds-link:hover { background: var(--color-surface-muted); color: var(--color-ink); }
.ds-link.is-active { background: var(--color-accent-soft); color: var(--color-accent); font-weight: 650; }
.ds-top { font-weight: 600; color: var(--color-ink); }
.ds-sub { display: none; flex-direction: column; gap: 1px; margin: 3px 0 5px 14px; padding-left: 8px; border-left: 1px solid var(--color-line); }
.ds-sub.is-open { display: flex; }
.ds-subitem { font-size: 13.5px; padding: 6px 10px; font-weight: 500; }
.docs-content { min-width: 0; padding: 40px 0 80px 44px; border-left: 1px solid var(--color-line); }
.docs-content h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 760; letter-spacing: -0.02em; max-width: none; line-height: 1.1; }
.docs-content h2 { font-size: 20px; font-weight: 700; margin-top: 34px; color: var(--color-black); }
.docs-content p { color: var(--color-ink-soft); line-height: 1.7; margin: 14px 0 0; max-width: 70ch; }
.docs-content .guide-lede { font-size: 18px; color: var(--color-ink-soft); margin-top: 12px; }
.docs-content ul { margin: 14px 0 0; padding-left: 20px; }
.docs-content li { margin: 8px 0; line-height: 1.65; color: var(--color-ink-soft); }
.docs-content li strong { color: var(--color-ink); }
.docs-content .docs-app-head { display: flex; align-items: center; gap: 14px; }
.docs-content .docs-app-head img { width: 44px; height: 44px; border-radius: 11px; object-fit: contain; }
.docs-content .legal-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--color-line); }
.docs-content .legal-links a { color: var(--color-accent); font-weight: 600; font-size: 14px; }
.docs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 16px; margin: 24px 0; }
.docs-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--color-line); border-radius: 14px; background: #fff; color: var(--color-ink); transition: border-color .12s, box-shadow .12s, transform .12s; }
.docs-card:hover { border-color: var(--color-line-strong); box-shadow: 0 8px 22px rgba(7,11,63,0.07); transform: translateY(-2px); }
.docs-card-top { display: flex; align-items: center; gap: 12px; }
.docs-card-top img { width: 36px; height: 36px; border-radius: 9px; object-fit: contain; }
.docs-card-top strong { font-size: 16px; font-weight: 700; }
.docs-card-desc { color: var(--color-ink-soft); font-size: 13.5px; line-height: 1.5; }
.docs-card-cta { color: var(--color-accent); font-size: 13px; font-weight: 650; margin-top: auto; }
/* Keep the menu-left / content-right two-column layout even as the window
   narrows (e.g. with the Nakama side panel open) — just tighten the rail and
   gutter. Only stack on true mobile widths. */
@media (max-width: 960px) {
  .docs-layout { grid-template-columns: 200px minmax(0, 1fr); }
  .docs-side-inner { padding-right: 16px; }
  .docs-content { padding-left: 28px; }
}
@media (max-width: 720px) {
  .docs-layout { grid-template-columns: 168px minmax(0, 1fr); }
  .docs-content { padding-left: 20px; }
  .ds-link { font-size: 13.5px; }
}
@media (max-width: 560px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-side { position: static; }
  .docs-side-inner { padding: 14px 0 6px; max-height: none; overflow: visible; }
  .ds-sub { display: flex; }
  .docs-content { border-left: 0; padding: 18px 0 60px; }
}

/* ============================================================
   HELP CENTER (support.google.com-style)
   ============================================================ */
.help-hero {
  background: linear-gradient(160deg, #4f46e5 0%, #4338ca 52%, #3730a3 100%);
  color: #fff;
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}
.help-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(620px 320px at 78% -8%, rgba(255,255,255,.20), transparent 60%),
    radial-gradient(520px 300px at 8% 120%, rgba(118,122,255,.40), transparent 60%);
  pointer-events: none;
}
.help-hero-inner {
  position: relative;
  width: min(var(--container), calc(100% - var(--space-page) * 2));
  margin: 0 auto;
  text-align: center;
}
.help-hero .eyebrow { color: rgba(255,255,255,.82); }
.help-hero h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 10px 0 0;
  color: #fff;
}
.help-hero-sub {
  margin: 14px auto 0;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,.88);
}
.help-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 28px;
}
.help-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}
.help-chip:hover { background: rgba(255,255,255,.22); transform: translateY(-1px); }

.help-topics {
  width: min(var(--container), calc(100% - var(--space-page) * 2));
  margin: 0 auto;
  padding: 56px 0 12px;
}
.help-topics .help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.help-card {
  scroll-margin-top: 96px;
  padding: 24px 22px 22px;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.help-card:hover {
  border-color: var(--color-line-strong);
  box-shadow: 0 14px 34px -22px rgba(15,18,40,.35);
  transform: translateY(-2px);
}
.help-card-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(150deg, #eef0ff, #e3e6ff);
  color: #4f46e5;
  margin-bottom: 15px;
}
.help-card-ico svg { display: block; flex: none; width: 24px; height: 24px; }
.help-card h2 {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 7px;
  color: var(--color-ink);
}
.help-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.help-contact {
  width: min(var(--container), calc(100% - var(--space-page) * 2));
  margin: 0 auto;
  padding: 44px 0 80px;
}
.help-contact-card {
  text-align: center;
  padding: 44px 28px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f7f8ff, #eef0ff);
  border: 1px solid #e2e5ff;
}
.help-contact-card h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--color-ink);
}
.help-contact-card p {
  margin: 9px auto 0;
  max-width: 440px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--color-text-muted);
}
.help-contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}
@media (max-width: 640px) {
  .help-hero { padding: 56px 0 48px; }
  .help-topics { padding: 40px 0 8px; }
}

/* ---- hero mock: premium ambient motion (reduced-motion-safe) ---- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rk-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
  @keyframes rk-glow-pulse { 0%,100% { opacity: .85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }
  .js .hero-visual.is-in .rk-win { animation: rk-float 7s ease-in-out 0.8s infinite; }
  .js .hero-visual.is-in .rk-glow { animation: rk-glow-pulse 7s ease-in-out 0.8s infinite; }
}

/* ============================================================
   HELP CENTER v2 — search, browse, category/article pages
   ============================================================ */
.help-search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(600px, 100%);
  margin: 28px auto 0;
}
.help-search-ico {
  position: absolute;
  inset-inline-start: 18px;
  width: 20px; height: 20px;
  color: #6b70c9;
  pointer-events: none;
}
#help-search-input {
  width: 100%;
  height: 56px;
  padding: 0 48px 0 48px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.5);
  background: #fff;
  color: var(--color-ink);
  font-size: 16px;
  box-shadow: 0 18px 40px -22px rgba(8,10,40,.6);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
#help-search-input::placeholder { color: #8b90b8; }
#help-search-input:focus { border-color: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.28), 0 18px 40px -22px rgba(8,10,40,.6); }
#help-search-input::-webkit-search-cancel-button { display: none; }
.help-search-clear {
  position: absolute;
  inset-inline-end: 16px;
  width: 26px; height: 26px;
  border: 0; border-radius: 50%;
  background: #eceef7; color: #555b86;
  font-size: 18px; line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
}
.help-search-clear:hover { background: #e0e3f2; }

.help-results-wrap { width: min(var(--container), calc(100% - var(--space-page) * 2)); margin: 0 auto; }
.help-results { padding: 28px 0 4px; display: flex; flex-direction: column; gap: 10px; }
.help-result {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.help-result:hover { border-color: var(--color-line-strong); box-shadow: 0 10px 26px -18px rgba(15,18,40,.35); }
.help-result strong { display: block; font-size: 15.5px; font-weight: 700; color: var(--color-ink); }
.help-result span { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.55; color: var(--color-text-muted); }
.help-noresults { padding: 28px 4px; font-size: 15px; color: var(--color-text-muted); }

.help-browse, .help-popular {
  width: min(var(--container), calc(100% - var(--space-page) * 2));
  margin: 0 auto;
}
.help-browse { padding: 52px 0 8px; }
.help-popular { padding: 36px 0 8px; }
/* Browse-by-topic: two roomy cards per row (the .help-grid base is otherwise
   only styled under .help-topics). */
.help-browse .help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 720px) { .help-browse .help-grid { grid-template-columns: 1fr; } }
.help-h2 {
  font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #6b70a0; margin: 0 0 18px; text-align: start;
}
/* card as link */
a.help-card { text-decoration: none; color: inherit; display: block; }
.help-card h3 {
  font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em;
  margin: 0 0 7px; color: var(--color-ink);
}

/* popular questions list */
.help-q-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 10px; }
.help-q-link {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--color-line); border-radius: 12px;
  background: #fff; text-decoration: none;
  font-size: 15px; font-weight: 600; color: var(--color-ink);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.help-q-link:hover { border-color: var(--color-line-strong); box-shadow: 0 10px 26px -18px rgba(15,18,40,.32); transform: translateY(-1px); }
.help-q-link svg { width: 18px; height: 18px; color: #9aa0c8; flex: none; }
[dir="rtl"] .help-q-link svg { transform: scaleX(-1); }

/* category / article page */
.help-article-head {
  width: min(820px, calc(100% - var(--space-page) * 2));
  margin: 0 auto;
  padding: 44px 0 0;
}
.help-crumbs {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--color-text-muted); margin-bottom: 18px;
}
.help-crumbs a { color: #4f46e5; text-decoration: none; font-weight: 600; }
.help-crumbs a:hover { text-decoration: underline; }
.help-crumbs span[aria-hidden] { color: #c2c6dd; }
[dir="rtl"] .help-crumbs span[aria-hidden] { transform: scaleX(-1); }
.help-article-title { display: flex; align-items: center; gap: 14px; }
.help-article-title h1 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; letter-spacing: -0.02em; margin: 0; color: var(--color-ink); }
.help-article-lead { margin: 16px 0 0; font-size: 17px; line-height: 1.6; color: var(--color-text); }

.help-article-body {
  width: min(820px, calc(100% - var(--space-page) * 2));
  margin: 0 auto;
  padding: 32px 0 8px;
}
.help-related-h { margin-top: 40px; }

/* accordion */
.help-acc { display: flex; flex-direction: column; gap: 10px; }
.help-acc-item {
  border: 1px solid var(--color-line); border-radius: 12px; background: #fff;
  overflow: hidden;
}
.help-acc-item summary {
  list-style: none; cursor: pointer;
  padding: 17px 20px; font-size: 16px; font-weight: 700; color: var(--color-ink);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.help-acc-item summary::-webkit-details-marker { display: none; }
.help-acc-item summary::after {
  content: ""; flex: none; width: 11px; height: 11px;
  border-right: 2px solid #9aa0c8; border-bottom: 2px solid #9aa0c8;
  transform: rotate(45deg); transition: transform .18s ease; margin-top: -3px;
}
.help-acc-item[open] summary::after { transform: rotate(-135deg); margin-top: 2px; }
.help-acc-body { padding: 0 20px 18px; }
.help-acc-body p { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--color-text-muted); }

/* related categories */
.help-related { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.help-related-link {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 15px; border: 1px solid var(--color-line); border-radius: 12px;
  background: #fff; text-decoration: none; font-size: 14.5px; font-weight: 600; color: var(--color-ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.help-related-link:hover { border-color: var(--color-line-strong); box-shadow: 0 8px 22px -16px rgba(15,18,40,.3); }
.help-card-ico.sm { width: 34px; height: 34px; border-radius: 10px; margin-bottom: 0; }
.help-card-ico.sm svg { width: 18px; height: 18px; }

@media (max-width: 640px) {
  #help-search-input { height: 52px; }
  .help-article-head { padding-top: 32px; }
  .help-q-list, .help-related { grid-template-columns: 1fr; }
}

/* ============================================================
   Header hamburger — collapse the primary nav into a dropdown
   below ~880px so it never wraps onto a second line.
   ============================================================ */
@media (max-width: 880px) {
  .nav-burger { display: inline-flex; }
  .site-header-inner { grid-template-columns: 1fr auto auto; gap: 12px; }
  /* undo the older "brand on its own row, nav wraps" rules */
  .brand-link { grid-column: auto; }
  .header-actions { grid-column: auto; }
  .primary-nav {
    grid-column: auto;
    position: absolute; top: calc(100% + 8px); right: 0;
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    flex-wrap: nowrap; gap: 2px; row-gap: 2px;
    min-width: 220px; max-width: 280px; padding: 8px;
    background: #fff; border: 1px solid var(--color-line); border-radius: 14px;
    box-shadow: 0 22px 50px -18px rgba(8,10,40,0.32);
    font-size: 15px;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
    z-index: 120;
  }
  .site-header.nav-open .primary-nav { opacity: 1; visibility: visible; transform: none; }
  .primary-nav a { display: block; width: 100%; padding: 11px 12px; border-radius: 9px; color: var(--color-ink); }
  .primary-nav a:hover { background: var(--color-soft); }
  .primary-nav a[aria-current="page"] { background: var(--color-blue-soft, #edebfd); color: var(--color-accent, #4f46e5); }
}
