/* ─── Home page ───
   Quiet chrome, monospace metadata, one accent. All colours come from the
   shared theme tokens so light and dark stay in sync. */

:root {
  --home-warn: oklch(0.58 0.14 65);
  --home-grid: color-mix(in oklab, var(--foreground) 4%, transparent);
}

.dark {
  --home-warn: oklch(0.78 0.13 75);
  --home-grid: color-mix(in oklab, var(--foreground) 5%, transparent);
}

[id='assistant'],
[id='pubspec-check'],
[id='how-it-works'],
[id='ranking'] {
  scroll-margin-top: 72px;
}

/* ─── Header ─── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--background) 86%, transparent);
  backdrop-filter: blur(10px);
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 1120px;
  height: 56px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--foreground);
  text-decoration: none;
}

.site-brand-mark {
  width: 24px;
  height: 24px;
  flex: none;
}

.site-brand-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.site-brand-badge {
  padding: 2px 4px;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav-link {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 9px;
  border-radius: 6px;
  color: var(--muted-foreground);
  font-size: 13px;
  text-decoration: none;
  transition:
    color 140ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 140ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-nav-link:hover {
  background: color-mix(in oklab, var(--secondary) 60%, transparent);
  color: var(--foreground);
}

.site-nav-link.is-active {
  color: var(--foreground);
}

.site-header-spacer {
  flex: 1;
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 3px;
}

.site-login {
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--primary);
  border-radius: 6px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 140ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 140ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-login:hover {
  border-color: color-mix(in oklab, var(--primary) 86%, var(--foreground) 14%);
  background: color-mix(in oklab, var(--primary) 86%, var(--foreground) 14%);
}

/* ─── Layout ─── */

.home-page {
  display: flex;
  flex-direction: column;
}

.home-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.home-container-narrow {
  max-width: 800px;
}

/* ─── Hero ─── */

.home-hero {
  position: relative;
  overflow: hidden;
}

.home-hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--home-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--home-grid) 1px, transparent 1px);
  background-size: 32px 32px;
  content: '';
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 82%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 82%);
  pointer-events: none;
}

.home-hero .home-container {
  position: relative;
  z-index: 1;
}

.home-hero-copy {
  min-width: 0;
}

.home-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 56px;
  align-items: center;
  padding: 64px 0 72px;
}

.home-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
}

.home-eyebrow::before {
  color: var(--primary);
  content: '›';
  font-size: 14px;
  line-height: 1;
}

.home-title {
  margin: 16px 0 0;
  color: var(--foreground);
  font-size: clamp(2.25rem, 4.4vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.06;
}

.home-title-accent {
  color: var(--primary);
}

.home-lede {
  max-width: 34rem;
  margin: 20px 0 0;
  color: var(--muted-foreground);
  font-size: 16px;
  line-height: 1.65;
}

.home-composer {
  max-width: 36rem;
  margin-top: 28px;
}

.home-trust {
  margin: 14px 0 0;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
}

.home-composer-hint {
  margin: 10px 0 0;
  color: var(--muted-foreground);
  font-size: 11px;
}

/* Search field overrides only on the home page. These mirror the chat
   composer metrics so the hero field and the follow-up field read as the
   same control. */
.home-search-field {
  scroll-margin-top: 80px;
}

.home-search-field.search-field,
.home-cta-field.search-field {
  gap: 6px;
  padding: 4px 4px 4px 6px;
  border: 1px solid color-mix(in oklab, var(--border) 75%, transparent);
  border-radius: 10px;
  background: var(--card);
  backdrop-filter: none;
  box-shadow: 0 1px 2px color-mix(in oklab, var(--foreground) 5%, transparent);
  transition:
    border-color 140ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 140ms cubic-bezier(0.22, 1, 0.36, 1);
}

.home-search-field.search-field:focus-within,
.home-cta-field.search-field:focus-within {
  border-color: color-mix(in oklab, var(--primary) 45%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 12%, transparent);
}

.home-search-field .search-field-row,
.home-cta-field .search-field-row {
  gap: 6px;
}

.home-search-field .search-field-input,
.home-cta-field .search-field-input {
  padding: 9px 0;
  font-size: 14px;
  line-height: 1.5;
}

.home-search-field .search-field-input::placeholder,
.home-cta-field .search-field-input::placeholder {
  color: color-mix(in oklab, var(--muted-foreground) 75%, transparent);
}

.home-search-field .search-field-submit,
.home-cta-field .search-field-submit {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: none;
}

.home-search-field .search-field-attach,
.home-cta-field .search-field-attach {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.home-search-field .search-field-attach-wide,
.home-cta-field .search-field-attach-wide {
  width: auto;
  padding: 0 8px;
}

.home-search-field .search-field-chip,
.home-cta-field .search-field-chip {
  max-width: 8rem;
}

.search-field-attach-wide {
  width: auto;
  gap: 6px;
  padding: 0 8px;
}

.search-field-attach-label {
  color: currentColor;
  font-family: var(--font-mono);
  font-size: 10px;
  white-space: nowrap;
}

.home-examples {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.home-example-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.home-example-label {
  min-width: 32px;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 10px;
}

.home-example {
  display: -webkit-box;
  overflow: hidden;
  padding: 4px 7px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: transparent;
  color: var(--muted-foreground);
  font-size: 11px;
  line-height: 1.4;
  text-align: left;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition:
    color 140ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 140ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 140ms cubic-bezier(0.22, 1, 0.36, 1);
}

.home-example:hover {
  border-color: color-mix(in oklab, var(--primary) 35%, var(--border));
  background: color-mix(in oklab, var(--primary) 5%, transparent);
  color: var(--foreground);
}

/* ─── Example result panel ─── */

.home-preview {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 24px 48px -40px oklch(0% 0 0 / 0.45);
}

.home-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--secondary) 40%, transparent);
}

.home-preview-query {
  display: flex;
  min-width: 0;
  gap: 8px;
  color: var(--foreground);
  font-family: var(--font-mono);
  font-size: 11px;
}

.home-preview-caret {
  color: var(--primary);
}

.home-preview-tags {
  display: flex;
  flex: none;
  gap: 4px;
}

.home-preview-tag {
  flex: none;
  padding: 2px 5px;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 10px;
  white-space: nowrap;
}

.home-result {
  padding: 14px 16px;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
}

.home-result-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.home-result-name {
  color: var(--foreground);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
}

.home-result-match {
  margin-left: auto;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.home-result-reason {
  margin: 6px 0 0;
  color: var(--secondary-foreground);
  font-size: 12px;
  line-height: 1.55;
}

.home-result-evidence {
  margin: 8px 0 0;
  padding-left: 8px;
  border-left: 2px solid var(--border);
  color: var(--muted-foreground);
  font-size: 11px;
  line-height: 1.55;
}

.home-result-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: color-mix(in oklab, var(--secondary) 35%, transparent);
}

.home-result-line {
  color: var(--foreground);
  font-family: var(--font-mono);
  font-size: 10px;
}

.home-copy {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--muted-foreground);
  font-size: 10px;
  cursor: pointer;
  transition: color 140ms cubic-bezier(0.22, 1, 0.36, 1);
}

.home-copy:hover {
  color: var(--foreground);
}

.home-copy.is-copied {
  color: var(--primary);
}

.home-result-meta {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.home-dot {
  opacity: 0.6;
}

.home-preview-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 16px;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 10px;
}

/* ─── Sections ─── */

.home-section {
  padding: 88px 0;
  border-top: 1px solid var(--border);
}

.home-section-alt {
  background: color-mix(in oklab, var(--card) 55%, var(--background));
}

.home-section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.home-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 11px;
}

.home-kicker::before {
  content: '›';
  font-size: 14px;
  line-height: 1;
}

.home-h2 {
  margin: 10px 0 0;
  color: var(--foreground);
  font-size: clamp(1.6rem, 2.8vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.home-sub {
  max-width: 38rem;
  margin: 12px 0 0;
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 1.65;
}

/* ─── Workflow cards ─── */

.home-workflows {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.home-workflow {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
}

.home-workflow-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-workflow-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted-foreground);
}

.home-workflow-index {
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 10px;
}

.home-workflow-title {
  margin: 16px 0 0;
  color: var(--foreground);
  font-size: 16px;
  font-weight: 600;
}

.home-workflow-text {
  margin: 8px 0 0;
  color: var(--muted-foreground);
  font-size: 12px;
  line-height: 1.65;
}

.home-mini {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 16px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in oklab, var(--secondary) 30%, transparent);
}

.home-mini-row {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 10px;
}

.home-mini-name {
  overflow: hidden;
  color: var(--foreground);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-mini-value {
  margin-left: auto;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.home-mini-dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--muted-foreground);
}

.home-mini-dot-warn {
  background: var(--home-warn);
}

.home-mini-dot-error {
  background: var(--destructive);
}

.home-mini-dot-info {
  background: var(--primary);
}

.home-workflow-foot {
  margin-top: auto;
  padding-top: 16px;
}

.home-workflow-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--primary);
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
}

.home-workflow-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-workflow-action {
  font-weight: 500;
}

.home-upload-error {
  margin: 8px 0 0;
  color: var(--destructive);
  font-size: 11px;
}

/* ─── Split showcases ─── */

.home-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.home-split-reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
}

.home-split-copy {
  min-width: 0;
}

.home-split-copy .home-section-head {
  margin-bottom: 0;
}

.home-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.home-point {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--secondary-foreground);
  font-size: 13px;
  line-height: 1.5;
}

.home-point svg {
  flex: none;
  margin-top: 2px;
  color: var(--primary);
}

.home-actions {
  margin-top: 28px;
}

.home-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 13px;
  border: 1px solid var(--primary);
  border-radius: 7px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms cubic-bezier(0.22, 1, 0.36, 1);
}

.home-button:hover {
  background: color-mix(in oklab, var(--primary) 86%, var(--foreground) 14%);
}

/* ─── Demo panels ─── */

.home-demo {
  min-width: 0;
}

.home-demo-label {
  margin-bottom: 10px;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 11px;
}

.home-health {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
}

/* ─── Pubspec report panel ─── */

.home-health {
  overflow: hidden;
}

.home-health-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--secondary) 30%, transparent);
}

.home-file {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  color: var(--foreground);
  font-family: var(--font-mono);
  font-size: 11px;
}

.home-file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-file-kind {
  padding: 1px 4px;
  border-radius: 3px;
  background: color-mix(in oklab, var(--primary) 12%, transparent);
  color: var(--primary);
  font-size: 9px;
}

.home-health-summary {
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 10px;
  white-space: nowrap;
}

.home-issue {
  padding: 11px 16px;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
}

.home-issue-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--foreground);
  font-size: 12px;
}

.home-issue-icon {
  display: flex;
  flex: none;
}

.home-issue-icon-warn {
  color: var(--home-warn);
}

.home-issue-icon-error {
  color: var(--destructive);
}

.home-issue-icon-info {
  color: var(--primary);
}

.home-issue-detail {
  margin: 4px 0 0 22px;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 10px;
}

.home-fix {
  padding: 12px 16px;
  background: color-mix(in oklab, var(--primary) 6%, var(--card));
}

.home-fix-head {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 10px;
}

.home-fix-result {
  margin: 6px 0 0;
  color: var(--muted-foreground);
  font-size: 11px;
}

.home-fix-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.home-fix-line {
  padding: 3px 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--card);
  color: var(--foreground);
  font-family: var(--font-mono);
  font-size: 10px;
}

/* ─── Popular packages ─── */

.home-popular {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
}

.home-popular-head,
.home-popular-row {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 0.7fr)) 72px;
  gap: 16px;
  align-items: center;
  padding: 11px 16px;
}

.home-popular-head {
  border-bottom: 1px solid var(--border);
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 10px;
}

.home-popular-head > span:not(:first-child) {
  text-align: right;
}

.home-popular-row {
  border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
}

.home-popular-row:last-child {
  border-bottom: 0;
}

.home-popular-name-cell {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.home-popular-name {
  color: var(--foreground);
  font-family: var(--font-mono);
  font-size: 12px;
  text-decoration: none;
}

.home-popular-name:hover {
  color: var(--primary);
}

.home-popular-runtimes {
  overflow: hidden;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-popular-num {
  color: var(--secondary-foreground);
  font-family: var(--font-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.home-popular-ask {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  color: var(--primary);
  font-size: 10px;
  text-decoration: none;
}

.home-popular-ask:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─── Ranking pipeline ─── */

.home-pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.home-step {
  padding: 20px 20px 20px 0;
  border-right: 1px solid var(--border);
}

.home-step:not(:first-child) {
  padding-left: 20px;
}

.home-step:last-child {
  padding-right: 0;
  border-right: 0;
}

.home-step-index {
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 10px;
}

.home-step-title {
  margin: 7px 0 0;
  color: var(--foreground);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}

.home-step-text {
  margin: 6px 0 0;
  color: var(--muted-foreground);
  font-size: 11px;
  line-height: 1.6;
}

/* ─── FAQ ─── */

.home-faq {
  border-top: 1px solid var(--border);
}

.home-faq-item {
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}

.home-faq-question {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--foreground);
  font-size: 13px;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

.home-faq-question::-webkit-details-marker {
  display: none;
}

.home-faq-question::after {
  color: var(--muted-foreground);
  content: '+';
  font-family: var(--font-mono);
}

.home-faq-item[open] .home-faq-question::after {
  content: '−';
}

.home-faq-answer {
  max-width: 42rem;
  margin: 9px 0 0;
  color: var(--muted-foreground);
  font-size: 12px;
  line-height: 1.7;
}

/* ─── Closing CTA ─── */

.home-cta {
  padding: 72px 0;
}

.home-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in oklab, var(--card) 70%, var(--background));
}

.home-cta-copy .home-h2 {
  margin: 0;
}

.home-cta-copy .home-sub {
  margin-top: 10px;
}

.home-cta-form {
  min-width: 0;
}

/* ─── Footer ─── */

.site-footer {
  padding: 48px 0 24px;
  border-top: 1px solid var(--border);
}

.site-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer-tagline {
  max-width: 20rem;
  margin: 0;
  color: var(--muted-foreground);
  font-size: 12px;
  line-height: 1.6;
}

.site-footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.site-footer-title {
  margin: 0 0 4px;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
}

.site-footer-link {
  color: var(--secondary-foreground);
  font-size: 12px;
  text-decoration: none;
}

.site-footer-link:hover {
  color: var(--primary);
}

.site-footer-action {
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.site-footer-note {
  max-width: 18rem;
  margin: 4px 0 0;
  color: var(--muted-foreground);
  font-size: 11px;
  line-height: 1.6;
}

.site-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 1120px;
  margin: 32px auto 0;
  padding: 16px 24px 0;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 10px;
}

.site-footer-support {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
}

/* ─── Responsive ─── */

@media (max-width: 960px) {
  .home-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding: 48px 0 56px;
  }

  .home-title {
    max-width: 18ch;
  }

  .home-split,
  .home-split-reverse {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .home-workflows {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-pipeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-step:nth-child(2) {
    border-right: 0;
  }

  .home-step:nth-child(3),
  .home-step:nth-child(4) {
    border-top: 1px solid var(--border);
  }

  .home-step:nth-child(3) {
    padding-left: 0;
  }

  .home-cta-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

@media (max-width: 720px) {
  .site-header-inner {
    gap: 8px;
    padding: 0 18px;
  }

  .site-header-optional {
    display: none;
  }

  .home-preview-tags .home-preview-tag:first-child {
    display: none;
  }

  .home-container {
    padding: 0 18px;
  }

  .home-section {
    padding: 64px 0;
  }

  .home-section-head {
    margin-bottom: 28px;
  }

  .home-example {
    min-height: 34px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .home-workflows {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-popular-head,
  .home-popular-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr) 56px;
    gap: 10px;
    padding: 10px 12px;
  }

  .home-popular-head > span:nth-child(3),
  .home-popular-head > span:nth-child(4),
  .home-popular-row > *:nth-child(3),
  .home-popular-row > *:nth-child(4) {
    display: none;
  }

  .home-pipeline {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-step,
  .home-step:not(:first-child) {
    padding: 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .home-step:last-child {
    border-bottom: 0;
  }

  .home-cta {
    padding: 56px 0;
  }

  .home-cta-inner {
    padding: 24px;
  }

  .site-footer {
    padding-top: 32px;
  }

  .site-footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 18px;
  }

  .site-footer-brand {
    grid-column: 1 / -1;
  }

  .site-footer-bottom {
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page *,
  .site-header *,
  .site-footer * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ─── Signed-in user menu ─── */

.site-user-menu {
  position: relative;
}

.site-user-trigger {
  display: flex;
  align-items: center;
  cursor: pointer;
  list-style: none;
  padding: 2px;
  border-radius: 999px;
}

.site-user-trigger::-webkit-details-marker {
  display: none;
}

.site-user-trigger:hover {
  background: color-mix(in oklab, var(--secondary) 60%, transparent);
}

.site-user-avatar {
  width: 28px;
  height: 28px;
  display: block;
  border-radius: 999px;
  object-fit: cover;
}

.site-user-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in oklab, var(--primary) 14%, transparent);
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
}

.site-user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 60;
  min-width: 220px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  box-shadow: 0 16px 40px -16px rgb(0 0 0 / 0.35);
}

.site-user-meta {
  padding: 8px 10px 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.site-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--foreground);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-user-email {
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted-foreground);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-user-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--foreground);
  text-align: left;
  cursor: pointer;
}

.site-user-item:hover {
  background: var(--secondary);
}

.site-user-item-button {
  font: inherit;
}
