:root {
  --paper: #f6f8f4;
  --paper-2: #eef3ed;
  --surface: #ffffff;
  --surface-2: #f8faf7;
  --ink: #18201c;
  --ink-2: #52605a;
  --ink-3: #7e8a84;
  --line: #d9e1dc;
  --line-2: #c6d0ca;
  --accent: #167a6a;
  --accent-2: #0f5d52;
  --accent-soft: #dceee9;
  --warm: #e36d4d;
  --warm-soft: #f8dfd6;
  --gold: #b47714;
  --gold-soft: #f7e9c8;
  --risk: #b9473e;
  --risk-soft: #f6d9d5;
  --ok: #287a50;
  --ok-soft: #dcefe4;
  --radius: 8px;
  --radius-sm: 6px;
  --max: 1180px;
  --shadow: 0 1px 2px rgba(24, 32, 28, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 max(20px, calc((100vw - var(--max)) / 2));
  background: rgba(246, 248, 244, 0.82);
  border-bottom: 1px solid transparent;
  backdrop-filter: saturate(140%) blur(18px);
}

.site-nav.is-scrolled {
  border-color: var(--line);
}

.brand,
.sidebar-brand,
.site-footer div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand img,
.sidebar-brand img,
.site-footer img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

.site-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.site-links a {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
}

.site-links a:hover {
  color: var(--ink);
}

.nav-download {
  height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 14px;
  font-weight: 700;
}

/* "JTR Labs" back-to-studio card next to the Onda logo (matches other app pages). */
.jtr-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.jtr-back:hover {
  color: var(--ink);
  border-color: var(--line-2);
  background: var(--surface);
}
.jtr-back svg { opacity: 0.8; }

.hero {
  position: relative;
  min-height: 92svh;
  overflow: hidden;
  padding: 150px max(22px, calc((100vw - var(--max)) / 2)) 72px;
  background:
    linear-gradient(180deg, rgba(246, 248, 244, 0.2), var(--paper) 92%),
    radial-gradient(circle at 80% 22%, rgba(227, 109, 77, 0.18), transparent 34%),
    radial-gradient(circle at 18% 70%, rgba(22, 122, 106, 0.18), transparent 36%);
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.78;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(680px, 100%);
}

.hero-mark {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 4px 0 14px;
  font-size: clamp(64px, 12vw, 148px);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin: 8px 0 12px;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 6px;
  font-size: 17px;
  line-height: 1.2;
}

.hero-lede {
  max-width: 620px;
  margin-bottom: 24px;
  color: #33413b;
  font-size: clamp(19px, 2.4vw, 26px);
  line-height: 1.28;
  font-weight: 650;
}

.download-inline {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.platform-choice {
  min-width: 76px;
  height: 34px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}

.platform-choice.is-selected {
  background: var(--ink);
  color: #fff;
}

.hero-actions,
.row-actions,
.toolbar-actions,
.empty-actions,
.button-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 800;
  line-height: 1;
}

.button.primary {
  background: var(--ink);
  color: #fff;
}

.button.primary:hover {
  background: #26312c;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.76);
  border-color: var(--line-2);
  color: var(--ink);
}

.button.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink-2);
}

.button.small {
  min-height: 34px;
  padding: 0 11px;
  font-size: 13px;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.icon {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 5px;
  font-weight: 900;
}

.release-line {
  margin: 13px 0 0;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 650;
}

.hero-product {
  position: absolute;
  right: max(22px, calc((100vw - var(--max)) / 2));
  bottom: 46px;
  z-index: 1;
  width: min(43vw, 520px);
  pointer-events: none;
}

.hero-window {
  overflow: hidden;
  border: 1px solid rgba(24, 32, 28, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 50px rgba(24, 32, 28, 0.12);
  backdrop-filter: blur(10px);
}

.window-bar {
  display: flex;
  gap: 7px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-2);
}

.window-body {
  display: grid;
  grid-template-columns: 116px 1fr;
  min-height: 280px;
}

.mini-side {
  padding: 18px 14px;
  border-right: 1px solid var(--line);
  background: var(--surface-2);
}

.mini-side b {
  display: block;
  margin-bottom: 22px;
}

.mini-side span {
  display: block;
  height: 24px;
  margin-bottom: 8px;
  border-radius: var(--radius-sm);
  background: #e9efeb;
}

.mini-side span.active {
  background: var(--accent-soft);
}

.mini-main {
  padding: 24px;
}

.mini-kicker {
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mini-title {
  margin-top: 8px;
  font-size: 34px;
  font-weight: 850;
}

.mini-sub {
  color: var(--ink-2);
  font-weight: 650;
}

.mini-meter {
  height: 8px;
  margin: 24px 0 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6ece8;
}

.mini-meter i {
  display: block;
  height: 100%;
  background: var(--accent);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mini-grid span,
.mini-action {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 13px;
  font-weight: 800;
}

.mini-action {
  margin-top: 12px;
  background: var(--ink);
  color: #fff;
  text-align: center;
}

.download-band,
.feature-band,
.app-section,
.privacy-band {
  padding: 86px max(22px, calc((100vw - var(--max)) / 2));
}

.section-head {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-head.compact {
  max-width: 850px;
}

.section-head p:not(.eyebrow) {
  color: var(--ink-2);
  font-size: 18px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.download-card,
.feature-list article,
.privacy-list div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.download-card {
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 18px;
}

.download-card.is-primary {
  border-color: var(--ink);
}

.platform-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: var(--radius-sm);
  background: var(--paper-2);
  color: var(--ink);
  font-weight: 900;
}

.download-card h3 {
  margin: 0 0 4px;
}

.download-card p {
  min-height: 44px;
  margin-bottom: 18px;
  color: var(--ink-2);
  font-size: 14px;
}

.download-card .button {
  width: 100%;
  margin-top: auto;
}

.download-meta {
  margin-top: 10px;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 650;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.feature-list article {
  padding: 18px;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 28px;
  margin-bottom: 18px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 900;
}

.feature-list p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
}

.app-section {
  background: #edf2ee;
  scroll-margin-top: 76px;
}

.app-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 780px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.app-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 12px;
  border-right: 1px solid var(--line);
  background: var(--surface-2);
}

.sidebar-brand {
  padding: 0 8px 12px;
  border-bottom: 1px solid var(--line);
}

.sidebar-brand span {
  display: block;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 650;
}

.app-tabs {
  display: grid;
  gap: 3px;
}

.app-tab {
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  text-align: left;
  font-weight: 750;
}

.app-tab.is-active {
  background: var(--accent-soft);
  color: var(--accent-2);
}

.sidebar-status {
  margin-top: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 650;
}

.app-main {
  min-width: 0;
  background: var(--paper);
}

.app-toolbar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 84px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 248, 244, 0.92);
  backdrop-filter: blur(12px);
}

.app-toolbar h2 {
  margin: 3px 0 0;
  font-size: 28px;
}

.icon-button {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  color: var(--ink-2);
  font-weight: 900;
}

.view-region {
  padding: 22px;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 16px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.panel.padded {
  padding: 18px;
}

.answer-panel {
  padding: 22px;
}

.model-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.provider {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--paper-2);
  color: var(--accent-2);
  font-weight: 900;
}

.model-name {
  margin: 0;
  font-size: 30px;
  line-height: 1.05;
}

.subtle {
  color: var(--ink-2);
}

.muted {
  color: var(--ink-3);
}

.rating-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.badge,
.pill,
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.badge {
  padding: 0 8px;
}

.pill,
.status-badge {
  padding: 0 7px;
}

.badge.smooth,
.status-badge.downloaded {
  background: var(--ok-soft);
  color: var(--ok);
}

.badge.acceptable,
.status-badge.builtin {
  background: var(--accent-soft);
  color: var(--accent-2);
}

.badge.constrained,
.status-badge.downloading {
  background: var(--gold-soft);
  color: var(--gold);
}

.badge.risky,
.status-badge.failed {
  background: var(--risk-soft);
  color: var(--risk);
}

.status-badge.not-started,
.status-badge.queued {
  background: var(--paper-2);
  color: var(--ink-2);
}

.pill {
  background: var(--paper-2);
  color: var(--ink-2);
}

.interpretation {
  margin: 18px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.interpretation h3 {
  margin: 0 0 5px;
}

.interpretation p {
  margin: 0;
  color: var(--ink-2);
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--line);
}

.fact {
  padding: 12px;
  background: var(--surface-2);
}

.fact strong {
  display: block;
  font-size: 17px;
}

.fact span {
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 700;
}

.setup-row,
.group-row,
.model-row,
.conversation-row,
.storage-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

button.group-row,
button.model-row,
button.conversation-row {
  width: 100%;
  border-top: 0;
  border-right: 0;
  border-left: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.setup-row:last-child,
.group-row:last-child,
.model-row:last-child,
.conversation-row:last-child,
.storage-row:last-child {
  border-bottom: 0;
}

.row-main {
  min-width: 0;
  flex: 1;
}

.row-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 2px;
  font-weight: 800;
}

.row-sub {
  overflow: hidden;
  color: var(--ink-2);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.next-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.section-label {
  margin: 22px 2px 8px;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.setup-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 800;
}

.field input,
.field select,
.field textarea,
.chat-input input,
.search-input {
  min-height: 40px;
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  padding: 0 10px;
}

.field textarea {
  min-height: 90px;
  padding: 10px;
  resize: vertical;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.segment {
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 800;
}

.segment.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-2);
}

.models-tools {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) auto auto;
  gap: 8px;
  margin-bottom: 12px;
}

.model-row {
  cursor: pointer;
}

.model-row:hover {
  background: var(--surface-2);
}

.model-row .provider {
  width: 34px;
  height: 34px;
  font-size: 13px;
}

.model-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.progress {
  width: 58px;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5eae7;
}

.progress i {
  display: block;
  height: 100%;
  background: var(--accent);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 14px;
}

.score-bars {
  display: grid;
  gap: 10px;
}

.bar-row {
  display: grid;
  grid-template-columns: 90px 1fr 42px;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 750;
}

.bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7ece9;
}

.bar i {
  display: block;
  height: 100%;
  background: var(--accent);
}

.reason-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reason-list li {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 14px;
}

.chat-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.conversation-list {
  border-right: 1px solid var(--line);
  background: var(--surface-2);
}

.conversation-row {
  cursor: pointer;
}

.conversation-row.is-active {
  background: var(--accent-soft);
}

.chat-thread {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  overflow: auto;
}

.message {
  max-width: min(640px, 88%);
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 15px;
}

.message.user {
  align-self: flex-end;
  background: var(--ink);
  color: #fff;
}

.message.assistant,
.message.system {
  align-self: flex-start;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.message.system {
  color: var(--ink-2);
  font-size: 13px;
}

.chat-input {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.empty-state,
.loading-state {
  display: grid;
  place-items: center;
  min-height: 330px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

.empty-state div,
.loading-state div {
  max-width: 440px;
}

.empty-state h3,
.loading-state h3 {
  font-size: 22px;
}

.empty-state p,
.loading-state p {
  color: var(--ink-2);
}

.empty-actions {
  justify-content: center;
}

.benchmark-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 14px;
}

.benchmark-meter {
  display: grid;
  place-items: center;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.dial {
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  border: 12px solid var(--accent-soft);
  border-top-color: var(--accent);
  border-radius: 50%;
}

.dial strong {
  font-size: 26px;
}

.privacy-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.privacy-list div {
  padding: 18px;
}

.privacy-list strong,
.privacy-list span {
  display: block;
}

.privacy-list span {
  margin-top: 4px;
  color: var(--ink-2);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 32px max(22px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
  color: var(--ink-2);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 80;
  transform: translate(-50%, 16px);
  max-width: min(480px, calc(100vw - 32px));
  padding: 11px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  font-size: 14px;
  font-weight: 700;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 980px) {
  .site-links {
    display: none;
  }

  .hero-product {
    opacity: 0.42;
    right: -80px;
    width: 600px;
  }

  .download-grid,
  .feature-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .app-shell,
  .home-grid,
  .detail-grid,
  .chat-layout,
  .benchmark-card {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .app-tabs {
    grid-template-columns: repeat(3, 1fr);
  }

  .conversation-list {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .site-nav {
    padding: 0 14px;
  }

  .nav-download {
    display: none;
  }

  .hero {
    min-height: 88svh;
    padding: 118px 18px 52px;
  }

  .hero-product {
    display: none;
  }

  .download-band,
  .feature-band,
  .app-section,
  .privacy-band {
    padding: 60px 16px;
  }

  .download-grid,
  .feature-list,
  .privacy-list,
  .setup-form,
  .fact-grid {
    grid-template-columns: 1fr;
  }

  .models-tools {
    grid-template-columns: 1fr;
  }

  .app-toolbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }

  .view-region {
    padding: 14px;
  }

  .app-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .row-actions {
    justify-content: flex-end;
  }

  .model-row,
  .setup-row,
  .group-row,
  .storage-row {
    align-items: flex-start;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 26px 16px;
  }
}

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

  .toast {
    transition: none;
  }
}
