/* ==========================================================================
   RideCleaner public (logged-out) experience — nav, footer, homepage.
   Tokens mirror auth.css / app-shell.css / Marketing's site.css so the
   logged-out site, the auth screens and the authenticated app all read as
   one product. Scoped to Views/Shared/_Layout.cshtml and its pages.
   ========================================================================== */

:root {
  --brand-blue: #2f6fed;
  --brand-blue-dark: #1d54c4;
  --brand-blue-light: #eaf1ff;
  --ink: #0b0f19;
  --ink-soft: #4b5567;
  --ink-faint: #8891a3;
  --bg-soft: #f6f8fb;
  --border: #e7eaf2;
  --success: #16a34a;
  --success-bg: #e7f8ee;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 2px 8px rgba(15, 23, 42, 0.05);
}

body.pub-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

/* ===== Nav ===== */
.pub-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.pub-nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.pub-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}
.pub-logo svg { color: var(--ink); flex-shrink: 0; }
.pub-logo .dot { color: var(--brand-blue); }
.pub-logo-img { height: 48px; width: auto; display: block; }

.pub-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
}
.pub-nav-links a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.15s ease;
}
.pub-nav-links a:hover { color: var(--ink); }

.pub-nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.pub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.pub-btn-ghost { color: var(--ink); border-color: var(--border); background: #fff; }
.pub-btn-ghost:hover { border-color: #c9d1e0; background: var(--bg-soft); }
.pub-btn-primary { background: var(--brand-blue); color: #fff; box-shadow: 0 8px 20px rgba(47, 111, 237, 0.24); }
.pub-btn-primary:hover { background: var(--brand-blue-dark); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(47, 111, 237, 0.3); }
.pub-btn-lg { padding: 13px 26px; font-size: 0.98rem; }

/* ===== Hero ===== */
.pub-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 24px 96px;
  text-align: center;
  background:
    radial-gradient(900px 420px at 50% -12%, var(--brand-blue-light) 0%, transparent 65%);
}
.pub-hero-inner { max-width: 720px; margin: 0 auto; position: relative; z-index: 1; }

.pub-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand-blue-light);
  color: var(--brand-blue-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}
.pub-eyebrow svg { width: 13px; height: 13px; }

.pub-hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 20px;
  color: var(--ink);
}
.pub-hero h1 .accent { color: var(--brand-blue); }

.pub-hero-lede {
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 34px;
}

.pub-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.pub-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--ink-faint);
  font-size: 0.82rem;
  font-weight: 600;
}
.pub-trust-row svg { width: 14px; height: 14px; color: var(--success); flex-shrink: 0; }
.pub-trust-row .sep { color: var(--border); }

/* ===== Sections ===== */
.pub-section { padding: 72px 24px; }
.pub-section-inner { max-width: 1080px; margin: 0 auto; }
.pub-section-alt { background: var(--bg-soft); }

.pub-section-head { text-align: center; max-width: 560px; margin: 0 auto 44px; }
.pub-section-head h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 10px;
}
.pub-section-head p { color: var(--ink-soft); font-size: 1rem; margin: 0; }

/* Steps */
.pub-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pub-step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pub-step:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.pub-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-blue-light);
  color: var(--brand-blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.92rem;
  margin-bottom: 16px;
}
.pub-step h3 { font-size: 1.04rem; font-weight: 800; color: var(--ink); margin: 0 0 8px; }
.pub-step p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.55; margin: 0; }

/* Two-column feature blocks */
.pub-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.pub-feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pub-feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.pub-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.pub-feature-icon.blue { background: var(--brand-blue-light); color: var(--brand-blue); }
.pub-feature-icon.green { background: var(--success-bg); color: var(--success); }
.pub-feature-icon svg { width: 22px; height: 22px; }
.pub-feature-card h3 { font-size: 1.2rem; font-weight: 800; color: var(--ink); margin: 0 0 8px; }
.pub-feature-card p { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.6; margin: 0 0 18px; }
.pub-feature-list { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pub-feature-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; color: var(--ink-soft); font-weight: 500; }
.pub-feature-list svg { width: 17px; height: 17px; color: var(--success); flex-shrink: 0; margin-top: 1px; }
.pub-feature-card .pub-btn { width: 100%; }

/* CTA band */
.pub-cta-band {
  margin: 0 24px 72px;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  background: linear-gradient(180deg, #0c1120 0%, #0a0e1a 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.pub-cta-band h2 { font-size: 1.6rem; font-weight: 800; margin: 0 0 12px; }
.pub-cta-band p { color: #b7c0d6; font-size: 0.98rem; margin: 0 0 26px; }
.pub-cta-band .pub-btn-primary { background: var(--brand-blue); }

/* ===== Footer ===== */
.pub-footer { border-top: 1px solid var(--border); padding: 36px 24px; }
.pub-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--ink-faint);
  font-size: 0.84rem;
}
.pub-footer-links { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.pub-footer-links a { color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.pub-footer-links a:hover { text-decoration: underline; }

/* ===== Entrance animation ===== */
@keyframes pub-fade-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.pub-animate { animation: pub-fade-in 0.5s ease-out both; }
.pub-animate-delay-1 { animation-delay: 0.08s; }
.pub-animate-delay-2 { animation-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
  .pub-animate, .pub-animate-delay-1, .pub-animate-delay-2 { animation: none; }
  .pub-step:hover, .pub-feature-card:hover, .pub-btn-primary:hover { transform: none; }
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
  .pub-nav-links { display: none; }
  .pub-steps { grid-template-columns: 1fr; }
  .pub-features { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
  .pub-hero { padding: 56px 20px 64px; }
  .pub-section { padding: 52px 20px; }
  .pub-nav-inner { padding: 0 16px; }
  .pub-nav-actions .pub-btn span.pub-btn-text-full { display: none; }
  .pub-cta-band { margin-left: 16px; margin-right: 16px; padding: 36px 24px; }
}
