/* StitchBase — download site styles */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f5f7fb;
  --color-surface: #ffffff;
  --color-border: #e2e5ee;
  --color-text: #1a1d29;
  --color-text-muted: #5b6072;
  --color-primary: #3452eb;
  --color-primary-dark: #2538b5;
  --color-primary-contrast: #ffffff;
  --color-accent: #0d9488;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, 0.08);
  --max-width: 1120px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.88rem;
}

/* Header / nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--color-text);
}

.wordmark .dot {
  color: var(--color-primary);
}

.badge-beta {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  padding: 2px 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--color-text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-menu-toggle {
  display: none;
}

/* Hero */

.hero {
  padding: 72px 0 56px;
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
}

.hero .container {
  max-width: 1280px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) 1.2fr;
  align-items: center;
  gap: 56px;
}

.hero-copy {
  max-width: 520px;
}

.hero-media {
  width: 100%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 10%, transparent);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  text-wrap: balance;
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--color-text-muted);
  margin: 0 0 28px;
  max-width: 44ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.hero-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.hero-note svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Trust bar */

.trust-bar {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}

.trust-bar ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  list-style: none;
  margin: 0;
  padding: 20px 0;
  justify-content: center;
}

.trust-bar li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.trust-bar svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  flex-shrink: 0;
}

/* Sections */

.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.section-head p {
  color: var(--color-text-muted);
  font-size: 1.02rem;
  margin: 0;
}

/* Feature cards */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--color-primary) 12%, white);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin: 0 0 8px;
}

.feature-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* How it works */

.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.step-list li {
  counter-increment: step;
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-border);
}

.step-list li:last-child {
  border-bottom: none;
}

.step-list li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-body h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.step-body p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

/* Media placeholders */

.media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1.5px dashed var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-alt);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--color-text-muted);
  text-align: center;
  padding: 24px;
}

.media-frame svg {
  width: 36px;
  height: 36px;
  color: var(--color-border);
}

.media-frame .media-caption {
  font-size: 0.85rem;
  font-weight: 600;
}

.media-frame .media-subcaption {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  opacity: 0.85;
}

.media-frame--square {
  aspect-ratio: 4 / 3;
}

.screenshot-frame {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.hero-media .screenshot-frame {
  box-shadow: 0 20px 50px rgba(16, 24, 40, 0.14), 0 4px 12px rgba(16, 24, 40, 0.08);
}

.screenshot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* Real video embeds (replace .media-frame placeholders) */

.video-frame {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #000;
}

.video-frame video {
  display: block;
  width: 100%;
  height: auto;
}

.install-video {
  max-width: 720px;
  margin: 0 auto;
}

.video-caption {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  margin: 14px 0 40px;
}

/* Install / OS tabs */

.tabs {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.tablist {
  display: flex;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}

.tab {
  flex: 1;
  padding: 16px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.tab[aria-selected="true"] {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  background: var(--color-surface);
}

.tabpanel {
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 640px;
  margin: 0 auto;
}

.tabpanel[hidden] {
  display: none;
}

.install-steps {
  list-style: none;
  counter-reset: install-step;
  margin: 0 0 20px;
  padding: 0;
}

.install-steps li {
  counter-increment: install-step;
  position: relative;
  padding: 0 0 16px 34px;
  font-size: 0.94rem;
}

.install-steps li::before {
  content: counter(install-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.install-steps code {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: var(--font-mono);
  font-size: 0.85em;
}

.callout {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fff8e6;
  border: 1px solid #f2d98a;
  color: #6b5205;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 0.85rem;
  margin-top: 12px;
}

.callout svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Manual install details */

details.manual-install {
  margin-top: 20px;
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
}

details.manual-install summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-primary);
  list-style: none;
}

details.manual-install summary::-webkit-details-marker {
  display: none;
}

details.manual-install summary::before {
  content: "▸ ";
}

details.manual-install[open] summary::before {
  content: "▾ ";
}

.path-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 0.85rem;
}

.path-table th,
.path-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.path-table code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  word-break: break-all;
}

/* Requirements strip */

.requirements {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  text-align: center;
}

.requirements li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.94rem;
  color: var(--color-text-muted);
}

.requirements svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
}

/* FAQ */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  padding: 4px 20px;
}

.faq-item summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  font-size: 0.98rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0 0 18px;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

/* CTA band */

.cta-band {
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 14px;
}

.cta-band p {
  color: var(--color-text-muted);
  margin: 0 0 28px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 40px 0;
  background: var(--color-bg-alt);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: var(--color-text);
}

.footer-meta {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* Responsive */

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .tabpanel {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 56px 0;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .tablist {
    flex-direction: column;
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }
}
