/**
 * Shared public-site chrome — landing (/) and SPA (/pricing, /models, /releases).
 * Class names: packages/web/src/app/lib/public-site-chrome.ts
 */
:root {
  --public-site-content-max: 80rem;
  --public-site-page-gutter: clamp(1.5rem, 4vw, 2.5rem);
  --public-site-content-width: min(
    var(--public-site-content-max),
    calc(100% - 2 * var(--public-site-page-gutter))
  );
  --public-site-header-height: 3.5rem;
  --public-site-header-offset: var(--public-site-header-height);
  --public-site-chrome-edge-padding: 0.625rem;
  --public-site-chrome-font-size: 14px;
  --public-site-chrome-line-height: 1.25;
  --public-site-chrome-font-weight: 400;
  --public-site-chrome-font-family:
    "Inter", "Inter Variable", ui-sans-serif, system-ui, sans-serif;
  --public-site-nav-color: #5c6675;
  --public-site-nav-hover-color: #252f3d;
  --public-site-main-color: #252f3d;
  --public-site-header-bg: rgba(247, 247, 244, 0.85);
}

.container,
.public-site-container {
  width: var(--public-site-content-width);
  margin-inline: auto;
}

.public-site-header-offset {
  padding-top: var(--public-site-header-offset);
}

.site-header,
.public-site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--public-site-header-bg);
  backdrop-filter: blur(8px);
  font-family: var(--public-site-chrome-font-family);
  font-size: var(--public-site-chrome-font-size);
  font-weight: var(--public-site-chrome-font-weight);
  line-height: var(--public-site-chrome-line-height);
  -webkit-font-smoothing: antialiased;
}

.header-inner,
.public-site-header-row {
  position: relative;
  display: flex;
  min-height: var(--public-site-header-height);
  box-sizing: border-box;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--public-site-chrome-edge-padding);
  gap: 1rem;
}

.brand,
.public-site-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--public-site-main-color);
  line-height: var(--public-site-chrome-line-height);
}

.brand-mark,
.public-site-brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
}

.brand-name,
.public-site-brand-name {
  font-size: var(--public-site-chrome-font-size);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: var(--public-site-chrome-line-height);
}

.site-nav,
.public-site-nav {
  display: none;
  align-items: center;
  gap: 1.25rem;
  font-size: var(--public-site-chrome-font-size);
  font-weight: var(--public-site-chrome-font-weight);
  line-height: var(--public-site-chrome-line-height);
  color: var(--public-site-nav-color);
}

@media (min-width: 768px) {
  .site-nav,
  .public-site-nav {
    display: flex;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
  }

  .brand,
  .public-site-brand,
  .header-actions,
  .public-site-header-actions {
    position: relative;
    z-index: 1;
  }
}

@media (min-width: 1100px) {
  .site-nav,
  .public-site-nav {
    gap: 2rem;
  }
}

@media (max-width: 767px) {
  :root {
    --public-site-header-offset: 5.75rem;
  }

  .header-inner,
  .public-site-header-row {
    flex-wrap: wrap;
    row-gap: 0.15rem;
  }

  .site-nav,
  .public-site-nav {
    display: flex;
    position: static;
    top: auto;
    left: auto;
    transform: none;
    order: 3;
    flex: 1 0 100%;
    justify-content: center;
    gap: 1.1rem;
    padding-bottom: 0.4rem;
  }
}

.site-nav-tab,
.site-nav-current,
.public-site-nav-link,
.public-site-nav-current {
  font-family: inherit;
  font-size: var(--public-site-chrome-font-size);
  font-weight: var(--public-site-chrome-font-weight);
  line-height: var(--public-site-chrome-line-height);
  text-decoration: none;
  color: var(--public-site-nav-color);
  transition: color 0.15s;
}

.site-nav-tab:hover,
.public-site-nav-link:hover {
  color: var(--public-site-nav-hover-color);
}

.site-nav-current,
.public-site-nav-current {
  cursor: default;
}

.header-actions,
.public-site-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.public-site-chrome-text,
.btn-login,
.btn-header-download,
.public-site-btn-login,
.public-site-btn-download {
  font-family: inherit;
  font-size: var(--public-site-chrome-font-size);
  line-height: var(--public-site-chrome-line-height);
}

.btn-login,
.public-site-btn-login {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  background: #fff;
  text-decoration: none;
  color: var(--public-site-main-color);
  font-weight: var(--public-site-chrome-font-weight);
  transition: background 0.15s;
}

.btn-login:hover,
.public-site-btn-login:hover {
  background: #f0f0f4;
}

.btn-header-download,
.public-site-btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding-block: 0.5rem;
  padding-inline: 0.6875rem 1rem;
  border: none;
  border-radius: 6px;
  background: #0f172a;
  color: #fff;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: background 0.15s;
}

.btn-header-download .btn-primary-icon,
.public-site-btn-download-icon {
  display: flex;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  align-items: center;
  justify-content: center;
}

.btn-header-download .btn-primary-icon svg,
.public-site-btn-download-icon svg {
  display: block;
  width: 1rem;
  height: 1rem;
}

.btn-header-download:hover,
.public-site-btn-download:hover {
  background: #1e293b;
}

.btn-header-download.is-pending {
  opacity: 0.6;
  pointer-events: none;
}

/* Touch-only devices (phones, tablets) cannot run the desktop app; the landing
 * hero offers «send yourself the link» there instead. */
@media (hover: none) and (pointer: coarse) {
  .btn-header-download,
  .public-site-btn-download {
    display: none;
  }
}

.site-feedback-dialog[hidden] {
  display: none !important;
}

.site-feedback-dialog {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  font-family: var(--public-site-chrome-font-family);
}

.site-feedback-dialog-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgb(15 23 42 / 0.45);
  cursor: pointer;
}

.site-feedback-dialog-panel {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  max-width: 26rem;
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 18px 50px rgb(15 23 42 / 0.18);
}

.site-feedback-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.site-feedback-dialog-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  color: #1f2328;
}

.site-feedback-dialog-close {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-size: 1.25rem;
  line-height: 1;
  color: #8b95a5;
  cursor: pointer;
}

.site-feedback-dialog-close:hover {
  color: #1f2328;
}

.site-feedback-dialog-lead {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #8b95a5;
}

.site-feedback-dialog.is-authenticated [data-feedback-anon],
.site-feedback-dialog:not(.is-authenticated) [data-feedback-signed-in],
.site-feedback-dialog.is-authenticated [data-feedback-auth-field] {
  display: none;
}

.site-feedback-form {
  position: relative;
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.site-feedback-input,
.site-feedback-textarea {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid rgb(0 0 0 / 0.12);
  padding: 0.75rem 1rem;
  font: inherit;
  font-size: 0.9375rem;
  color: #1f2328;
  background: #fff;
}

.site-feedback-input {
  border-radius: 9999px;
}

.site-feedback-textarea {
  min-height: 6.5rem;
  border-radius: 1.25rem;
  resize: vertical;
}

.site-feedback-input:focus,
.site-feedback-textarea:focus {
  outline: 2px solid rgb(15 23 42 / 0.18);
  outline-offset: 1px;
}

.site-feedback-input::placeholder,
.site-feedback-textarea::placeholder {
  color: #8b95a5;
}

.site-feedback-submit {
  width: 100%;
  border: 0;
  border-radius: 6px;
  padding: 0.8rem 1.25rem;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: #0f172a;
  cursor: pointer;
}

.site-feedback-submit:hover:not(:disabled) {
  background: #1e293b;
}

.site-feedback-submit:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.site-feedback-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-feedback-status {
  margin: 0.75rem 0 0;
  min-height: 1.25rem;
  font-size: 0.875rem;
}

.site-feedback-dialog.is-sent .site-feedback-dialog-lead,
.site-feedback-dialog.is-sent .site-feedback-form {
  display: none;
}

.site-feedback-dialog.is-sent .site-feedback-status {
  margin-top: 1.25rem;
  min-height: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.site-feedback-status[data-state="ok"] {
  color: #17663a;
}

.site-feedback-status[data-state="error"] {
  color: #b42318;
}

.site-cookie-notice {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 50;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 40rem;
  margin-inline: auto;
  padding: 0.875rem 1rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 12px 36px rgb(15 23 42 / 0.16);
  font-family: var(--public-site-chrome-font-family);
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #5c6675;
}

.site-cookie-notice[hidden] {
  display: none;
}

.site-cookie-notice-text {
  flex: 1;
  margin: 0;
}

.site-cookie-notice-text a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-cookie-notice-accept {
  flex-shrink: 0;
  border: 0;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: #0f172a;
  cursor: pointer;
}

.site-cookie-notice-accept:hover {
  background: #1e293b;
}

@media (max-width: 767px) {
  .site-cookie-notice {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
}

html {
  overflow-x: clip;
  overscroll-behavior-y: none;
}

body {
  overscroll-behavior-y: none;
}

body {
  margin: 0;
  background: #f7f7f4;
}

.page {
  --content-width: var(--public-site-content-width);
  box-sizing: border-box;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: var(--public-site-header-offset);
  font-family: var(--public-site-chrome-font-family);
  font-size: var(--public-site-chrome-font-size);
  font-weight: var(--public-site-chrome-font-weight);
  line-height: var(--public-site-chrome-line-height);
  background: #f7f7f4;
  color: #252f3d;
  -webkit-font-smoothing: antialiased;
}

.main-content {
  flex: 1 0 auto;
  padding-bottom: 2rem;
}

.site-footer {
  padding: 2rem 0 calc(var(--public-site-chrome-edge-padding) * 2);
  text-align: center;
  font-size: var(--public-site-chrome-font-size);
  color: #8b95a5;
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.site-footer-nav a,
.site-footer-nav .site-footer-action {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-footer-nav a:hover,
.site-footer-nav .site-footer-action:hover {
  color: #5c6675;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer-action {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.site-footer-copy {
  margin: 0;
}

/* Primary download CTA: landing hero/bottom and search landing pages. */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding-block: 0.875rem;
  padding-inline: 1.375rem 1.75rem;
  border: none;
  border-radius: 6px;
  background: #0f172a;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-primary-icon {
  display: flex;
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  align-items: center;
  justify-content: center;
}

.btn-primary-icon svg {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
}

.btn-primary:hover {
  background: #1e293b;
}

.btn-primary.is-pending {
  opacity: 0.6;
  pointer-events: none;
}

/* Landing pages for search queries (plan 0044, track 5). */

.seo-main {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.seo-container {
  max-width: 46rem;
}

.seo-hero {
  text-align: center;
}

.seo-title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #1f2328;
}

@media (min-width: 768px) {
  .seo-main {
    padding-top: 3.5rem;
  }

  .seo-title {
    font-size: 2.25rem;
  }
}

.seo-lead {
  margin: 1rem auto 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #5c6675;
}

.seo-cta {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
}

.seo-cta-secondary {
  color: #252f3d;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.seo-platforms {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: #8b95a5;
}

.seo-section {
  margin-top: 3rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #3d4654;
}

.seo-section p {
  margin: 0.75rem 0 0;
}

.seo-section-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #1f2328;
}

.seo-section a {
  color: inherit;
  text-underline-offset: 2px;
}

.seo-section code {
  padding: 0.05em 0.3em;
  border-radius: 4px;
  background: rgb(15 23 42 / 0.06);
  font-size: 0.9em;
}

.seo-list,
.seo-steps {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
}

.seo-list li + li,
.seo-steps li + li {
  margin-top: 0.5rem;
}

.seo-table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
}

.seo-table {
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.seo-table th,
.seo-table td {
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid rgb(15 23 42 / 0.1);
  text-align: left;
  vertical-align: top;
}

.seo-table thead th {
  font-weight: 600;
  color: #1f2328;
}

.seo-table tbody th {
  width: 34%;
  font-weight: 500;
  color: #1f2328;
}

.seo-note {
  font-size: 0.9375rem;
  color: #5c6675;
}

.seo-faq {
  margin-top: 0.75rem;
}

.seo-faq-item {
  border-bottom: 1px solid rgb(15 23 42 / 0.1);
}

.seo-faq-item summary {
  padding: 0.875rem 0;
  font-weight: 500;
  color: #1f2328;
  cursor: pointer;
}

.seo-faq-item p {
  margin: 0 0 1rem;
}

.seo-main > .container > .seo-cta {
  margin-top: 3rem;
}
