/* RepairSpot Community — Landing Pages Shared CSS
   Apple/Linear-inspired premium design system */

:root {
  --brand-orange: #ff6b35;
  --brand-orange-light: #ff8c42;
  --brand-orange-soft: #fff4ee;
  --ink-900: #1d1d1f;
  --ink-700: #2a2a2e;
  --ink-500: #4a4a4f;
  --ink-300: #86868b;
  --line: #e8e8ed;
  --line-soft: #f0f0f3;
  --bg: #ffffff;
  --bg-soft: #fafafc;
  --bg-tint: #f5f5f7;
  --success: #00c853;
  --warn: #ff9500;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--brand-orange); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--brand-orange-light); }

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

/* ─── Top-Bar (Discourse-Header-Clone) ─── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #0a0a0f;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid #1c1c1e;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  height: 88px;
  display: flex;
  align-items: center;
}
.topbar-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #f5f5f7;
  text-decoration: none;
  flex-shrink: 0;
}
.topbar-brand img {
  height: 64px;
  width: auto;
  display: block;
}
.topbar-nav {
  display: flex;
  gap: 4px;
  align-items: center;
}
.topbar-nav a {
  color: #f5f5f7;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.15s ease;
  text-decoration: none;
}
.topbar-nav a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.topbar-nav a.cta {
  background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-orange-light) 100%);
  color: #fff;
  padding: 8px 16px;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(255,107,53,0.25);
  margin-left: 8px;
}
.topbar-nav a.cta:hover { color: #fff; background: linear-gradient(135deg, #ff7a47 0%, #ff9b53 100%); box-shadow: 0 4px 14px rgba(255,107,53,0.4); transform: translateY(-1px); }

/* ─── Hero ─── */
.hero {
  position: relative;
  padding: 80px 24px 60px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(255,107,53,0.10), transparent 60%),
    radial-gradient(700px 400px at 10% 0%, rgba(0,122,255,0.06), transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-orange-soft);
  color: var(--brand-orange);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  letter-spacing: -0.005em;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--brand-orange);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255,107,53,0.15);
}
.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink-900);
  margin: 0 0 20px;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-orange-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--ink-500);
  line-height: 1.5;
  max-width: 680px;
  margin: 0 auto 36px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: all 0.15s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-orange-light) 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255,107,53,0.3);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,107,53,0.4);
}
.btn-secondary {
  background: #fff;
  color: var(--ink-900);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  color: var(--ink-900);
  border-color: var(--ink-300);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-arrow { transition: transform 0.15s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ─── Sections ─── */
.section {
  padding: 70px 24px;
}
.section-tinted {
  background: var(--bg-tint);
}
.section-inner {
  max-width: 1080px;
  margin: 0 auto;
}
.section-head {
  text-align: center;
  margin-bottom: 56px;
}
.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-orange);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin: 0 0 14px;
  line-height: 1.15;
}
.section-lead {
  font-size: 18px;
  color: var(--ink-500);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ─── Cards ─── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all 0.2s ease;
}
.card:hover {
  border-color: var(--ink-300);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.card-icon {
  width: 46px; height: 46px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand-orange-soft) 0%, #ffe8db 100%);
  color: var(--brand-orange);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}
.card h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  margin: 0 0 8px;
}
.card p {
  font-size: 15px;
  color: var(--ink-500);
  line-height: 1.55;
  margin: 0;
}

/* ─── Steps ─── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.step {
  position: relative;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.step-num {
  display: inline-flex;
  width: 32px; height: 32px;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-orange-light) 100%);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(255,107,53,0.3);
}
.step h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-900);
  margin: 0 0 6px;
  letter-spacing: -0.005em;
}
.step p {
  font-size: 15px;
  color: var(--ink-500);
  margin: 0;
  line-height: 1.55;
}

/* ─── Rule items ─── */
.rules {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
}
.rule {
  display: flex;
  gap: 18px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease;
}
.rule:hover { border-color: var(--brand-orange-light); }
.rule-mark {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--brand-orange-soft);
  color: var(--brand-orange);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 15px;
}
.rule-mark.do { background: #e6f7eb; color: var(--success); }
.rule-mark.dont { background: #fde8e8; color: #d32f2f; }
.rule-body { flex: 1; }
.rule h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-900);
  margin: 0 0 4px;
  letter-spacing: -0.005em;
}
.rule p {
  font-size: 15px;
  color: var(--ink-500);
  margin: 0;
  line-height: 1.55;
}

/* ─── Quote / Callout ─── */
.callout {
  background: linear-gradient(135deg, #fff8f3 0%, #fff 100%);
  border: 1px solid #ffd5c2;
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.callout-icon {
  font-size: 32px;
  margin-bottom: 14px;
}
.callout p {
  font-size: 19px;
  font-weight: 500;
  color: var(--ink-700);
  line-height: 1.5;
  letter-spacing: -0.005em;
  margin: 0 0 8px;
}
.callout-by {
  font-size: 14px;
  color: var(--ink-500);
}

/* ─── Final CTA ─── */
.final-cta {
  background: linear-gradient(135deg, #0a0a0f 0%, #1c1c1e 100%);
  color: #fff;
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 400px at 50% 100%, rgba(255,107,53,0.20), transparent 60%);
  pointer-events: none;
}
.final-cta-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}
.final-cta h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 14px;
  line-height: 1.15;
}
.final-cta p {
  font-size: 18px;
  color: #c5c5c7;
  margin: 0 0 28px;
}

/* ─── Footer ─── */
.footer {
  background: #0a0a0f;
  color: #86868b;
  padding: 40px 24px;
  text-align: center;
  font-size: 13px;
  border-top: 1px solid #1c1c1e;
}
.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.footer-links a { color: #c5c5c7; }
.footer-links a:hover { color: #fff; }
.footer-copy { opacity: 0.7; }

/* ─── Helpers ─── */
.text-center { text-align: center; }
.mt-l { margin-top: 36px; }
.mt-xl { margin-top: 56px; }

/* ─── Mobile ─── */
@media (max-width: 640px) {
  .topbar-nav a:not(.cta) { display: none; }
  .topbar-nav a.cta { padding: 6px 12px; font-size: 13px; }
  .hero { padding: 50px 20px 40px; }
  .section { padding: 50px 20px; }
  .final-cta { padding: 56px 20px; }
  .card, .step, .rule, .callout { padding: 22px; }
  .callout { padding: 28px 22px; }
}
