/* ── GarageBru Website — Design Tokens ────────────────────────────── */
:root {
  /* Colour */
  --bg: #0b0d12;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.22);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.68);
  --faint: rgba(255, 255, 255, 0.30);
  --accent: #7c5cff;
  --accent2: #4be1d8;
  --green: #34c759;
  --orange: #ff9f0a;

  /* Spacing (matches app 8-pt grid) */
  --sp-xxs: 4px;
  --sp-xs: 6px;
  --sp-sm: 8px;
  --sp-md: 12px;
  --sp-lg: 16px;
  --sp-xl: 24px;
  --sp-xxl: 32px;

  /* Corner radii (matches app tokens) */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 24px;

  /* Shadows (matches app shadow system) */
  --shadow-subtle: 0 1px 2px rgba(0, 0, 0, 0.10);
  --shadow-card: 0 4px 8px rgba(0, 0, 0, 0.10);
  --shadow-elevated: 0 8px 14px rgba(0, 0, 0, 0.18);
  --shadow-hero: 0 22px 60px rgba(0, 0, 0, 0.55);

  /* Layout */
  --max: 1040px;

  /* Typography */
  --sans: ui-sans-serif, system-ui, -apple-system, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --rounded: -apple-system-body, ui-rounded, "SF Pro Rounded", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

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

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  background:
    radial-gradient(1200px 700px at 20% 0%, rgba(124, 92, 255, 0.25), transparent 60%),
    radial-gradient(900px 600px at 90% 20%, rgba(75, 225, 216, 0.18), transparent 55%),
    linear-gradient(180deg, #0b0d12 0%, #06070a 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ── Layout ───────────────────────────────────────────────────────── */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 18px 64px;
}

/* ── Nav ──────────────────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  padding: var(--sp-md) var(--sp-lg);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.navlinks {
  display: flex;
  gap: var(--sp-sm);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pill {
  padding: var(--sp-sm) var(--sp-md);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  font-size: 14px;
  color: var(--muted);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.pill:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  text-decoration: none;
}

.pill.active {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(124, 92, 255, 0.12);
}

/* ── Hero (landing page) ─────────────────────────────────────────── */
.hero {
  margin-top: var(--sp-xl);
  padding: var(--sp-xxl) var(--sp-xl);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-radius: calc(var(--radius-lg) + 4px);
  box-shadow: var(--shadow-hero);
}

.hero-header {
  display: flex;
  align-items: center;
  gap: var(--sp-xl);
  margin-bottom: var(--sp-xl);
}

.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
  flex-shrink: 0;
}

.hero-text h1 {
  margin: 0 0 var(--sp-sm);
  font-family: var(--rounded);
  font-size: 44px;
  line-height: 1.05;
  font-weight: 700;
}

.hero-text p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 60ch;
}

.cta {
  margin-top: var(--sp-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-md);
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
}

.btn.primary {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.92) 0%, rgba(75, 225, 216, 0.75) 100%);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 20px rgba(124, 92, 255, 0.3);
}

.btn.primary:hover {
  background: linear-gradient(135deg, rgba(124, 92, 255, 1) 0%, rgba(75, 225, 216, 0.9) 100%);
  box-shadow: 0 4px 28px rgba(124, 92, 255, 0.45);
}

.appstore-badge {
  height: 40px;
  transition: opacity 0.2s;
}

.appstore-badge:hover {
  opacity: 0.85;
}

/* ── Feature Grid ────────────────────────────────────────────────── */
.section-title {
  font-family: var(--rounded);
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 var(--sp-lg);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--sp-lg);
  margin-top: var(--sp-xl);
}

.card {
  grid-column: span 6;
  padding: var(--sp-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.045);
  transition: border-color 0.2s, background 0.2s;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.card-icon {
  font-size: 28px;
  margin-bottom: var(--sp-sm);
  line-height: 1;
}

.card h3 {
  margin: 0 0 var(--sp-xs);
  font-family: var(--rounded);
  font-size: 16px;
  font-weight: 600;
}

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

/* ── How It Works ────────────────────────────────────────────────── */
.steps-section {
  margin-top: var(--sp-xxl);
  padding: var(--sp-xl);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius-lg) + 4px);
  background: rgba(255, 255, 255, 0.03);
}

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

.step {
  text-align: center;
  padding: var(--sp-lg);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  font-weight: 700;
  font-size: 18px;
  margin-bottom: var(--sp-md);
}

.step-icon {
  font-size: 32px;
  margin-bottom: var(--sp-sm);
}

.step h3 {
  margin: 0 0 var(--sp-xs);
  font-family: var(--rounded);
  font-size: 16px;
  font-weight: 600;
}

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

/* ── Screenshots Section ─────────────────────────────────────────── */
.screenshots-section {
  margin-top: var(--sp-xxl);
  padding: var(--sp-xl);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius-lg) + 4px);
  background: rgba(255, 255, 255, 0.03);
}

.phone-grid {
  display: flex;
  gap: var(--sp-lg);
  justify-content: center;
  margin-top: var(--sp-xl);
  overflow-x: auto;
  padding-bottom: var(--sp-sm);
}

.phone-frame {
  width: 180px;
  height: 360px;
  border-radius: 28px;
  border: 2px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.10);
}

.phone-frame span {
  color: var(--faint);
  font-size: 12px;
  text-align: center;
  padding: var(--sp-sm);
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 26px;
}

/* ── Bottom CTA ──────────────────────────────────────────────────── */
.bottom-cta {
  margin-top: var(--sp-xxl);
  padding: var(--sp-xxl) var(--sp-xl);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius-lg) + 4px);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.10) 0%, rgba(75, 225, 216, 0.08) 100%);
  text-align: center;
}

.bottom-cta h2 {
  font-family: var(--rounded);
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 var(--sp-sm);
}

.bottom-cta p {
  color: var(--muted);
  margin: 0 0 var(--sp-xl);
  font-size: 16px;
}

.bottom-cta .cta {
  justify-content: center;
}

/* ── Content Pages (privacy, terms, support) ─────────────────────── */
.content {
  margin-top: var(--sp-xl);
  padding: var(--sp-xl);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius-lg) + 4px);
  background: rgba(255, 255, 255, 0.04);
}

.content h1 {
  margin: 0 0 var(--sp-sm);
  font-family: var(--rounded);
  font-size: 28px;
  font-weight: 700;
}

.date-badge {
  display: inline-block;
  padding: var(--sp-xxs) var(--sp-md);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  margin-bottom: var(--sp-xl);
}

.content h2 {
  margin: var(--sp-xl) 0 var(--sp-sm);
  font-family: var(--rounded);
  font-size: 18px;
  font-weight: 600;
}

.content p,
.content li {
  color: var(--muted);
  line-height: 1.65;
  font-size: 15px;
}

.content ul {
  padding-left: var(--sp-xl);
}

.content li + li {
  margin-top: var(--sp-sm);
}

.content code {
  font-family: var(--mono);
  font-size: 0.92em;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
}

.content-note {
  margin-top: var(--sp-xl);
  padding: var(--sp-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}

/* ── Contact Card (support page) ─────────────────────────────────── */
.contact-card {
  padding: var(--sp-xl);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(124, 92, 255, 0.25);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.08) 0%, rgba(75, 225, 216, 0.06) 100%);
  text-align: center;
  margin-bottom: var(--sp-xl);
}

.contact-card h2 {
  margin: 0 0 var(--sp-sm) !important;
  font-family: var(--rounded);
}

.contact-card p {
  margin: 0 0 var(--sp-lg);
}

/* ── FAQ (details/summary) ───────────────────────────────────────── */
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.2s, border-color 0.2s;
}

.faq details + details {
  margin-top: var(--sp-sm);
}

.faq details[open] {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.18);
}

.faq summary {
  padding: var(--sp-lg);
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
}

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

.faq summary::after {
  content: "+";
  font-size: 18px;
  color: var(--muted);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq .faq-body {
  padding: 0 var(--sp-lg) var(--sp-lg);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.faq .faq-body p { margin: 0; }
.faq .faq-body p + p { margin-top: var(--sp-sm); }

/* ── Footer ──────────────────────────────────────────────────────── */
.footer {
  margin-top: var(--sp-xxl);
  padding: var(--sp-lg) 0 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: var(--sp-md);
  flex-wrap: wrap;
}

.footer a {
  transition: color 0.2s;
}

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

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero { padding: var(--sp-xl) var(--sp-lg); }

  .hero-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-lg);
  }

  .hero-icon { width: 72px; height: 72px; }

  .hero-text h1 { font-size: 32px; }

  .card { grid-column: span 12; }

  .steps {
    grid-template-columns: 1fr;
    gap: var(--sp-md);
  }

  .phone-frame {
    width: 140px;
    height: 280px;
  }

  .bottom-cta { padding: var(--sp-xl) var(--sp-lg); }
}

@media (max-width: 480px) {
  .wrap { padding: var(--sp-lg) var(--sp-md) var(--sp-xxl); }

  .nav {
    flex-direction: column;
    gap: var(--sp-sm);
  }

  .navlinks { justify-content: center; }

  .hero-text h1 { font-size: 26px; }

  .phone-frame {
    width: 120px;
    height: 240px;
    border-radius: 20px;
  }

  .phone-frame::before { width: 36px; height: 5px; }

  .section-title { font-size: 22px; }
}
