@font-face {
  font-family: Heebo;
  src: url('fonts/Heebo-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: Plex;
  src: url('fonts/plex-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root,
:root[data-theme='light'] {
  color-scheme: light;
  --paper: #f8f9fb;
  --surface: #fff;
  --ink: #161b22;
  --muted: #5f6977;
  --line: #dfe4eb;
  --blue: #70d1fe;
  --blue-ink: #07628c;
  --feature-mail: #c8e6ff;
  --feature-calendar: #fbd3e0;
  --feature-tasks: #b3efd3;
  --feature-contacts: #ffdeb5;
  --feature-flows: #e3d7ff;
  --feature-cache: #ffc8af;
  --bg-1: var(--paper);
  --bg-2: var(--paper);
  --surface-line: var(--line);
  --text: var(--ink);
  --text-soft: var(--muted);
  --text-faint: var(--muted);
  --accent: var(--blue-ink);
  --accent-bright: var(--blue);
  --accent-glow: #70d1fe30;
  --btn-ink: #1d2128;
  --fill-line: var(--line);
  --shadow-card: none;
  --shadow-btn: none;
  --success: #186747;
  --success-bg: #b3efd34d;
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --paper: #171b20;
  --surface: #1c2128;
  --ink: #f3f6fa;
  --muted: #b1bac7;
  --line: #353e49;
  --blue: #70d1fe;
  --blue-ink: #70d1fe;
  --bg-1: var(--paper);
  --bg-2: var(--paper);
  --surface-line: var(--line);
  --text: var(--ink);
  --text-soft: var(--muted);
  --text-faint: var(--muted);
  --accent: var(--blue-ink);
  --accent-bright: var(--blue);
  --accent-glow: #70d1fe30;
  --btn-ink: #1d2128;
  --fill-line: var(--line);
  --shadow-card: none;
  --shadow-btn: none;
  --success: #b3efd3;
  --success-bg: #b3efd31a;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

.site-page {
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: Heebo, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.site-page * {
  letter-spacing: 0 !important;
}

.site-page a:focus-visible,
.site-page button:focus-visible,
.site-page summary:focus-visible {
  outline: 3px solid var(--blue-ink);
  outline-offset: 4px;
}

.site-page > nav {
  width: 100%;
  min-height: 72px;
  padding: 0 max(32px, calc((100% - 1160px) / 2));
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  backdrop-filter: blur(16px);
}

.nav-logo {
  color: var(--ink);
  font-size: 20px;
  font-weight: 750;
  line-height: 1.2;
}

.nav-logo:hover { text-decoration: none; }
.nav-logo img { width: 32px; height: 32px; }
.nav-links { gap: 28px; margin-left: auto; }
.nav-download svg,
.nav-mobile-download svg,
.nav-burger svg { width: 19px; height: 19px; flex-shrink: 0; }
.nav-link { font-size: 13px; font-weight: 550; }
.nav-link.active { color: var(--ink); }

.theme-toggle,
.nav-burger {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: var(--surface);
  color: var(--ink);
}

.theme-toggle svg { width: 19px; height: 19px; }
.nav-download,
.nav-mobile-menu .nav-mobile-download,
.pricing-cta,
.cta,
.dl-btn,
.download-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid var(--blue);
  border-radius: 2rem;
  background: var(--blue);
  color: #1d2128;
  font-family: Heebo, sans-serif;
  font-size: 13px;
  font-weight: 600;
  box-shadow: none;
  text-decoration: none;
}

.nav-download:hover,
.pricing-cta:hover,
.cta:hover {
  transform: none;
  filter: brightness(.96);
  color: #1d2128;
  text-decoration: none;
}

.pricing-cta-outline {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.pricing-cta-outline:hover { color: var(--ink); border-color: var(--blue); }
.nav-mobile-menu { padding: 12px 20px 20px; background: var(--paper); }
.nav-mobile-menu a { border: 0; border-radius: 0; padding: 10px 0; font-size: 14px; }
.nav-mobile-menu a.active { color: var(--ink); }
.nav-mobile-menu .nav-mobile-download { margin-top: 8px; }

.site-page h1,
.site-page h2,
.site-page h3 {
  color: var(--ink);
  font-family: Heebo, sans-serif;
}

.site-page h1 { font-size: 44px; line-height: 1.15; font-weight: 600; }
.site-page h2 { font-size: 24px; line-height: 1.3; font-weight: 600; }
.site-page h3 { font-weight: 600; }
.page-label,
.section-label {
  color: var(--blue-ink);
  font-family: Plex, monospace;
  font-size: 11px;
  font-weight: 400;
  text-transform: none;
}

.legal-page main {
  width: min(780px, calc(100% - 64px));
  max-width: none;
  margin: 0 auto;
  padding: 68px 0 80px;
}

.legal-page h1 { margin: 16px 0; }
.legal-page h2 { margin-top: 38px; padding-bottom: 13px; }
.legal-page p,
.legal-page li { font-size: 14px; line-height: 1.8; }
.legal-page .last-updated { font-family: Plex, monospace; font-size: 11px; margin-bottom: 28px; }
.legal-page .summary-box,
.legal-page .highlight,
.legal-page .intro-box {
  border: 0;
  border-left: 3px solid var(--blue);
  border-radius: 0;
  padding: 18px 22px;
  background: color-mix(in srgb, var(--feature-mail) 18%, var(--surface));
  box-shadow: none;
}

.legal-page .highlight { background: var(--surface); }
.legal-page .summary-box p { margin-bottom: 0; }
.legal-page .summary-box { --accent-bright: var(--blue-ink); }
.legal-page .summary-box strong { color: var(--ink); }
.legal-page code { font-family: Plex, monospace; overflow-wrap: anywhere; }
.legal-page a { overflow-wrap: anywhere; }
.legal-page table { width: 100%; border-collapse: collapse; }
.legal-page th,
.legal-page td { padding: 14px; font-size: 13px; }
.legal-page .plan-table th { font-family: Heebo, sans-serif; text-transform: none; font-weight: 550; color: var(--muted); }
.legal-page .contact-box { border-radius: 0; box-shadow: none; background: transparent; border: 0; border-top: 1px solid var(--line); padding: 24px 0 0; }

.pricing-page .hero {
  padding: 64px 24px 40px;
  background: transparent;
  text-align: center;
}

.pricing-page .hero h1 { margin: 16px 0; font-size: 44px; }
.pricing-page .hero .section-label { color: var(--blue-ink); font-family: Plex, monospace; font-size: 11px; }
.pricing-page .hero > p:not(.section-label) { color: var(--muted); font-size: 14px; line-height: 1.7; }
.pricing-wrap { width: min(1160px, calc(100% - 64px)); max-width: none; margin: 0 auto; padding: 0 0 64px; }
.pricing-cards { gap: 24px; align-items: stretch; }
.pricing-card { border: 1px solid var(--line); border-radius: 8px; padding: 28px; background: var(--surface); box-shadow: none; }
.pricing-card.featured { border-color: var(--blue); background: color-mix(in srgb, var(--feature-mail) 10%, var(--surface)); box-shadow: none; }
.pricing-plan { font-family: Heebo, sans-serif; font-size: 16px; font-weight: 600; text-transform: none; }
.pricing-price { font-size: 44px; font-weight: 600; }
.pricing-badge { background: var(--feature-mail); color: #1d2128; font-family: Heebo, sans-serif; text-transform: none; box-shadow: none; }
.pricing-savings { background: var(--feature-tasks); color: #1d2128; }
.pricing-cta { width: 100%; }
.pricing-features li { font-size: 13px; line-height: 1.5; }
.pricing-features li::before { color: var(--blue-ink); }
.pricing-trial { font-size: 12px; }
.pricing-page .faq-wrap { max-width: 780px; padding: 0 32px 80px; }
.pricing-page .faq-title { text-align: left; font-size: 29px; margin-bottom: 28px; }
.faq-q { font-size: 15px; font-weight: 550; }
.faq-a { font-size: 13px; }

.releases-page main { width: min(900px, calc(100% - 64px)); max-width: none; margin: 0 auto; padding: 64px 0 80px; }
.releases-page .page-title { font-size: 44px; }
.release-card { border-radius: 0; box-shadow: none; border: 0; border-top: 1px solid var(--line); background: transparent; }
.release-version { font-family: Heebo, sans-serif; }
.releases-page .page-header { max-width: none; margin: 0; padding: 0 0 36px; }
.releases-page .page-sub { font-size: 14px; }
.releases-page .timeline { max-width: none; margin: 0; padding: 0; }
.releases-page .timeline::before { left: 95px; width: 1px; }
.releases-page .tl-entry { grid-template-columns: 80px minmax(0, 1fr); padding-bottom: 32px; }
.releases-page .tl-right { min-width: 0; overflow-wrap: anywhere; }
.releases-page .tl-divider { margin: 0 0 32px; }
.releases-page .tl-date { font-family: Plex, monospace; font-size: 11px; font-weight: 400; }
.releases-page .tl-version { font-size: 23px; font-weight: 600; }
.releases-page .tl-section-label { font-family: Heebo, sans-serif; text-transform: none; font-size: 11px; font-weight: 550; color: #1d2128; }
.releases-page .tl-section-label.new { background: var(--feature-mail); }
.releases-page .tl-section-label.fixed { background: var(--feature-contacts); }
.releases-page .tl-section-label.improved { background: var(--feature-tasks); }
.releases-page .tl-items li { font-size: 13px; line-height: 1.7; }
.legal-page .badge-yes { background: var(--feature-tasks); color: #1d2128; }
.legal-page .badge-no { background: var(--feature-calendar); color: #1d2128; }
.legal-page .step-num { background: var(--feature-mail); color: #1d2128; }
.legal-page .contact-box-icon { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; background: var(--feature-contacts); color: #1d2128; }
.legal-page .contact-box-icon svg { width: 19px; height: 19px; }

.reset-page main { padding: 64px 24px; }
.reset-page .card { max-width: 440px; padding: 32px; border-radius: 8px; box-shadow: none; }
.reset-page .card h1 { font-size: 28px; font-weight: 600; }
.reset-page input[type='password'] { border-radius: 2rem; border-width: 1px; font-size: 14px; min-height: 44px; }
.reset-page .cta { width: 100%; }
.reset-page .state-icon { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-bottom: 18px; border-radius: 8px; color: #1d2128; background: var(--feature-cache); }
.reset-page .state-icon svg { width: 21px; height: 21px; }
.reset-page .center-text .state-icon { margin-inline: auto; }
.reset-page #state-success .state-icon { background: var(--feature-tasks); }
.reset-page #state-error .state-icon { background: var(--feature-contacts); }
.verification-page { background: transparent; color: var(--ink); font-family: Heebo, sans-serif; }

.site-page > footer {
  padding: 32px max(32px, calc((100% - 1160px) / 2));
  border-top: 1px solid var(--line);
  font-size: 11px;
  line-height: 2;
  color: var(--muted);
  background: var(--paper);
}

.site-page > footer a { color: var(--muted); }
.site-page > footer a:hover { color: var(--ink); }

@media (max-width: 960px) {
  .pricing-cards { gap: 16px; }
  .pricing-card { padding: 22px; }
}

@media (max-width: 780px) {
  .pricing-cards { max-width: 500px; }
}

@media (max-width: 680px) {
  .site-page > nav { min-height: 64px; padding: 0 20px; gap: 12px; }
  .nav-burger { align-items: center; padding: 10px; }
  .nav-links { display: none; }
  .site-page > nav > .theme-toggle { margin-left: auto; }
  .nav-logo { font-size: 20px; }
  .legal-page main,
  .releases-page main { width: calc(100% - 40px); padding: 40px 0 56px; }
  .site-page h1,
  .pricing-page .hero h1,
  .releases-page .page-title { font-size: 32px; }
  .legal-page h2 { font-size: 21px; }
  .legal-page .summary-box { padding: 16px; }
  .legal-page th,
  .legal-page td { padding: 10px 8px; font-size: 12px; }
  .pricing-page .hero { padding: 40px 20px 30px; }
  .pricing-wrap { width: calc(100% - 40px); padding-bottom: 48px; }
  .pricing-page .faq-wrap { padding: 0 20px 56px; }
  .pricing-page .faq-title { font-size: 26px; }
  .reset-page main { padding: 40px 20px; }
  .reset-page .card { padding: 26px 22px; }
  .site-page > footer { padding: 24px 20px; }
}

@media (max-width: 600px) {
  .releases-page .timeline::before { left: 69px; }
  .releases-page .tl-entry { grid-template-columns: 56px minmax(0, 1fr); }
}

@media (min-width: 681px) {
  .nav-mobile-menu.open { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-page *,
  .site-page *::before,
  .site-page *::after { animation: none !important; transition: none !important; }
}

.site-header,
.site-footer { font-family: Heebo, sans-serif; color: var(--ink); }
.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); background: rgba(248, 249, 251, .96); backdrop-filter: blur(16px); }
:root[data-theme='dark'] .site-header { background: rgba(23, 27, 32, .96); }
.site-header .container,
.site-footer .container { width: min(1160px, calc(100% - 64px)); margin: auto; }
.site-header .nav-inner { height: 72px; display: flex; align-items: center; gap: 32px; }
.site-header .brand,
.site-footer .brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 20px; font-weight: 750; text-decoration: none; line-height: normal; }
.site-header .brand img,
.site-footer .brand img { display: block; width: 32px; height: 32px; }
.site-header nav,
.site-footer nav { position: static; top: auto; min-height: 0; border: 0; padding: 0; background: none; backdrop-filter: none; }
.site-header .nav-links { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.site-header .nav-links a,
.site-footer .footer-links a { color: var(--muted); font-size: 13px; font-weight: 550; text-decoration: none; }
.site-header a:hover,
.site-footer a:hover { text-decoration: none; }
.site-header .nav-links a:hover,
.site-footer .footer-links a:hover { color: var(--ink); }
.site-header .button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 18px; border: 1px solid var(--blue); border-radius: 2rem; background: var(--blue); color: #1d2128 !important; font: 600 13px Heebo, sans-serif; text-decoration: none; }
.site-header .button:hover { filter: brightness(.95); }
.site-header .icon-button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; flex-shrink: 0; border: 1px solid var(--line); border-radius: 2rem; background: var(--surface); color: var(--ink); }
.site-header svg { width: 19px; height: 19px; flex-shrink: 0; }
.site-header .menu-button { display: none; }
.site-header .mobile-menu { display: block; padding: 12px 24px 20px; border-top: 1px solid var(--line); }
.site-header .mobile-menu a { display: block; padding: 10px 0; color: var(--ink); text-decoration: none; font-size: 14px; }
.site-header [hidden] { display: none !important; }
.site-page > .site-footer,
.site-footer { padding: 40px 0 24px; border-top: 0; background: var(--paper); text-align: left; line-height: normal; }
.site-footer .footer-main { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; }
.site-footer p { margin: 13px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; max-width: 350px; }
.site-footer .footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 15px 24px; max-width: 420px; justify-content: flex-end; }
.site-footer .footer-bottom { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 30px; color: var(--muted); font-size: 10px; line-height: normal; }
.site-header a:focus-visible,
.site-header button:focus-visible,
.site-footer a:focus-visible { outline: 3px solid var(--blue-ink); outline-offset: 5px; }
@media (max-width: 1000px) {
  .site-header .nav-links { gap: 20px; }
}
@media (max-width: 960px) {
  .site-header .nav-links { display: none; }
  .site-header .menu-button { display: inline-flex; }
  .site-header .nav-inner > .button { margin-left: auto; }
  .site-header .nav-inner { gap: 18px; }
}
@media (min-width: 961px) {
  .site-header .mobile-menu { display: none; }
}
@media (max-width: 760px) {
  .site-header .container,
  .site-footer .container { width: calc(100% - 40px); }
  .site-header .nav-inner { height: 64px; gap: 10px; }
  .site-header .nav-inner > .button { display: none; }
  .site-header .theme-button { margin-left: auto; }
  .site-footer .footer-main { flex-direction: column; gap: 26px; }
  .site-footer .footer-links { justify-content: flex-start; }
  .site-footer .footer-bottom { flex-direction: column; gap: 9px; }
}
@media (max-width: 360px) {
  .site-header .container,
  .site-footer .container { width: calc(100% - 28px); }
  .site-header .brand { font-size: 18px; gap: 7px; }
  .site-header .brand img { width: 28px; height: 28px; }
}