/**
 * 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;
}

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;
}

.models-main {
  padding-top: 1.5rem;
  padding-bottom: 0;
}

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

.models-intro {
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
}

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

@media (min-width: 768px) {
  .models-title {
    font-size: 2rem;
  }
}

.models-lead {
  margin: 0.75rem 0 0;
  color: #5c6675;
  font-size: 0.95rem;
  line-height: 1.5;
}

.models-lead a {
  color: #1f2328;
  text-underline-offset: 0.15em;
}

.models-status {
  max-width: 40rem;
  margin: 1.5rem auto 0;
  text-align: center;
  color: #717780;
}

.models-status[hidden] {
  display: none;
}

.models-status.is-error {
  color: #dc2626;
}

.models-scroll {
  margin-top: 1.5rem;
  overflow-x: auto;
  border: 1px solid rgba(37, 47, 61, 0.08);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(37, 47, 61, 0.04);
}

.models-table {
  width: 100%;
  min-width: 40rem;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.875rem;
  line-height: 1.35;
}

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

.models-table th,
.models-table td {
  padding: 0.55rem 0.85rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(37, 47, 61, 0.06);
}

.models-table thead th {
  background: #f4f3ef;
  color: #5c6675;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.models-table tbody tr:last-child th,
.models-table tbody tr:last-child td {
  border-bottom: 0;
}

.models-table tbody tr:hover th,
.models-table tbody tr:hover td {
  background: #fafaf8;
}

.models-name,
.models-table thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 13rem;
  background: #fff;
  box-shadow: 8px 0 12px -12px rgba(37, 47, 61, 0.45);
}

.models-table thead th:first-child {
  z-index: 3;
  background: #f4f3ef;
}

.models-table tbody tr:hover .models-name {
  background: #fafaf8;
}

.models-name-row {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 22rem;
}

.models-label {
  font-weight: 600;
  color: #1f2328;
}

.models-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.models-toggle::after {
  content: "";
  flex-shrink: 0;
  width: 0.32rem;
  height: 0.32rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  opacity: 0.4;
  transform: rotate(45deg) translateY(-0.08rem);
}

.models-toggle[aria-expanded="true"]::after {
  transform: rotate(-135deg) translateY(-0.04rem);
}

.models-vision {
  display: inline-flex;
  flex-shrink: 0;
  color: #8b95a5;
}

.models-detail {
  max-width: 28rem;
  margin-top: 0.35rem;
}

.models-detail[hidden] {
  display: none;
}

.models-blurb {
  margin: 0;
  color: #5c6675;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.45;
}

.models-context {
  white-space: nowrap;
}

.models-badge {
  display: inline-flex;
  align-items: center;
  height: 1.25rem;
  padding: 0 0.4rem;
  border-radius: 0.375rem;
  background: #f3f2ee;
  color: #5c6675;
  font-size: 0.75rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.models-num {
  text-align: right;
  white-space: nowrap;
}

.models-price {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #1f2328;
}

.models-next {
  margin: 0.35rem 0 0;
  color: #8b95a5;
  font-size: 0.75rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.models-blurb + .models-next {
  margin-top: 0.3rem;
}

.models-missing {
  color: #8b95a5;
}

.models-disclaimer {
  max-width: 42rem;
  margin: 1.25rem auto 0;
  color: #8b95a5;
  font-size: 0.8125rem;
  line-height: 1.5;
  text-align: center;
}
