/* Vendr marketing site — aligned with app design tokens */

:root {
  --primary: #e02e24;
  --primary-dark: #c4241c;
  --primary-light: #fff0ef;
  --success: #2eaf6f;
  --bg: #ffffff;
  --surface: #f7f7f7;
  --surface-alt: #fafafa;
  --border: #eeeeee;
  --border-light: #f0f0f0;
  --text: #1a1a1a;
  --text-secondary: #666666;
  --text-muted: #999999;
  --text-inverse: #ffffff;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 999px;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 20px;
  --space-xxl: 24px;
  --space-xxxl: 32px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max-width: 1120px;
  --nav-height: 56px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
  --transition: 0.18s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

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

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

button {
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: var(--space-lg);
  top: -48px;
  z-index: 100;
  background: var(--text);
  color: var(--text-inverse);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
}

.skip-link:focus {
  top: var(--space-md);
}

.wrap {
  width: min(var(--max-width), calc(100% - var(--space-xxl) * 2));
  margin-inline: auto;
}

/* ── Header / Nav ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  height: var(--nav-height);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand img,
.brand svg {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-md);
}

.brand-mark {
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xxl);
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}

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

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  min-height: 40px;
  padding: 0 var(--space-lg);
  border: 0;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: var(--text-inverse);
  font-size: 14px;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}

.btn:hover,
.nav-cta:hover {
  background: var(--primary-dark);
}

.btn:active,
.nav-cta:active {
  transform: scale(0.98);
}

.btn.secondary {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn.secondary:hover {
  background: var(--surface);
  border-color: #ddd;
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text);
  font-size: 18px;
}

/* ── Typography ── */

.eyebrow {
  display: inline-block;
  margin-bottom: var(--space-md);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  max-width: 14ch;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}

h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
}

.lede {
  max-width: 52ch;
  margin: var(--space-lg) 0 0;
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.text-muted {
  color: var(--text-muted);
}

/* ── Hero ── */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xxxl);
  align-items: center;
  padding: 64px 0 72px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-xxl);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xxxl);
  padding-top: var(--space-xxl);
  border-top: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-frame {
  width: 280px;
  padding: 10px;
  border-radius: var(--radius-xl);
  background: var(--text);
  box-shadow: var(--shadow-lg);
}

.phone-screen {
  overflow: hidden;
  border-radius: calc(var(--radius-xl) - 4px);
  background: var(--bg);
}

.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-light);
}

.phone-status strong {
  font-size: 14px;
  font-weight: 600;
}

.phone-badge {
  padding: 2px var(--space-sm);
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
}

.phone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  padding: var(--space-md);
}

.mini-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-alt);
}

.mini-card-thumb {
  height: 72px;
  background: var(--surface);
}

.mini-card-body {
  padding: var(--space-sm) var(--space-md) var(--space-md);
}

.mini-card-title {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.35;
}

.mini-card-price {
  margin: var(--space-xs) 0 0;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

/* ── Campus strip ── */

.campus-strip {
  padding: var(--space-lg) 0;
  border-block: 1px solid var(--border);
  background: var(--surface-alt);
}

.campus-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-md) var(--space-xxl);
}

.campus-strip-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.campus-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.campus-badge {
  padding: var(--space-xs) var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ── Sections ── */

.section {
  padding: 72px 0;
}

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

.section-header {
  max-width: 640px;
  margin-bottom: var(--space-xxxl);
}

.section-header p {
  margin: var(--space-md) 0 0;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.section-header-center {
  margin-inline: auto;
  text-align: center;
}

.section-header-center p {
  margin-inline: auto;
}

/* ── Feature cards ── */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-xxl);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  border-color: #ddd;
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.feature-card-wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: flex-start;
  gap: var(--space-xxl);
}

.feature-card-wide .feature-copy {
  flex: 1;
}

.kicker {
  margin: 0 0 var(--space-sm);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}

/* ── Steps ── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.step {
  padding: var(--space-xxl);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: var(--space-lg);
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--text-inverse);
  font-size: 14px;
  font-weight: 700;
  font-style: normal;
}

.step p {
  margin: var(--space-sm) 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

/* ── Demo marketplace ── */

.demo-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  padding: var(--space-xl);
}

.panel + .panel {
  margin-top: var(--space-lg);
}

.panel-title {
  margin: 0 0 var(--space-lg);
  font-size: 15px;
  font-weight: 600;
}

label {
  display: block;
  margin-bottom: var(--space-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px var(--space-md);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  transition: border-color var(--transition);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.chip {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: var(--radius-full);
  padding: var(--space-sm) var(--space-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.chip:hover {
  border-color: #ddd;
  color: var(--text);
}

.chip.active {
  background: var(--primary);
  color: var(--text-inverse);
  border-color: var(--primary);
}

.listings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.listing {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.listing:hover {
  border-color: #ddd;
  box-shadow: var(--shadow-sm);
}

.listing-media {
  height: 112px;
  background: var(--surface);
}

.listing-body {
  padding: var(--space-lg);
}

.listing-body > p:not(.kicker):not(.price) {
  margin: var(--space-sm) 0 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.price {
  margin: var(--space-md) 0 var(--space-lg);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.listing .btn {
  width: 100%;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}

.cart-item button {
  border: 0;
  background: none;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
}

.total {
  display: flex;
  justify-content: space-between;
  margin: var(--space-lg) 0;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  font-size: 15px;
  font-weight: 600;
}

.empty {
  color: var(--text-muted);
  font-size: 14px;
}

/* ── FAQ ── */

.faq-list {
  max-width: 720px;
}

.faq-list details {
  border-bottom: 1px solid var(--border);
  padding: var(--space-lg) 0;
}

.faq-list summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}

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

.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--text-muted);
  font-weight: 400;
}

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

.faq-list p {
  margin: var(--space-md) 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.faq-list a {
  color: var(--primary);
  font-weight: 500;
}

/* ── CTA ── */

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

.cta-card {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 360px);
  gap: var(--space-xxxl);
  align-items: center;
  padding: var(--space-xxxl);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface-alt);
}

.cta-card h2 {
  margin-bottom: var(--space-sm);
}

.cta-card > div > p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.55;
}

/* ── Footer ── */

.site-footer {
  padding: var(--space-xxxl) 0 48px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-xxxl);
}

.footer-brand p {
  margin: var(--space-md) 0 0;
  max-width: 28ch;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-col h4 {
  margin-bottom: var(--space-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
  margin-top: var(--space-xxxl);
  padding-top: var(--space-xxl);
  border-top: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Legal / Support pages ── */

.page-hero {
  padding: 48px 0 32px;
}

.page-content {
  padding-bottom: 80px;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  padding: var(--space-xxl);
}

.card h3 {
  margin: var(--space-xxl) 0 var(--space-sm);
  font-size: 15px;
}

.card h3:first-child {
  margin-top: 0;
}

.card p {
  margin: 0 0 var(--space-md);
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.card a {
  color: var(--primary);
  font-weight: 500;
}

.form-card {
  max-width: 560px;
}

.form-row {
  margin-bottom: var(--space-lg);
}

.form-status {
  min-height: 20px;
  margin-top: var(--space-md);
  font-size: 13px;
  font-weight: 500;
}

.form-status.ok {
  color: var(--success);
}

.form-status.err {
  color: var(--primary);
}

.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 0;
}

/* ── Toast ── */

.toast {
  position: fixed;
  right: var(--space-lg);
  bottom: var(--space-lg);
  z-index: 60;
  display: none;
  max-width: 320px;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  background: var(--text);
  color: var(--text-inverse);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
}

.toast.show {
  display: block;
}

/* ── Responsive ── */

@media (max-width: 960px) {
  .hero,
  .feature-grid,
  .demo-layout,
  .listings,
  .steps,
  .cta-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-card-wide {
    flex-direction: column;
  }

  .hero-visual {
    order: -1;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

@media (max-width: 720px) {
  .wrap {
    width: min(var(--max-width), calc(100% - var(--space-lg) * 2));
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav.is-open .nav-links {
    display: flex;
    position: absolute;
    inset: var(--nav-height) var(--space-lg) auto;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-md);
    padding: var(--space-lg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg);
    box-shadow: var(--shadow-md);
  }

  .nav.is-open .nav-cta {
    display: inline-flex;
    margin-top: var(--space-sm);
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

  .section {
    padding: 56px 0;
  }

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

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
