/* --------------------------------------------------
   1. PrepYard Design System & Variables
   -------------------------------------------------- */
:root {
  --bg-color: #EDECEA;
  --sec-bg: #F5F5F5;
  --card-bg: var(--sec-bg);
  --text-primary: #1A1A1A;
  --text-secondary: #605E59;
  --accent-color: #7A7060;
  --accent-light: #FFFFFF;
  --border-color: rgba(26, 26, 26, 0.08);

  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Playfair Display', Georgia, Cambria, "Times New Roman", Times, serif;

  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;

  /* Shared site chrome (see site-chrome.css) — map this theme onto the
     theme-agnostic variables the shared nav stylesheet consumes. */
  --chrome-text: var(--text-primary);
  --chrome-muted: var(--text-secondary);
  --chrome-border: var(--border-color);
  --chrome-transition: var(--transition-fast);
  --chrome-font: var(--font-sans);
}

/* Reset & Base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 0 0 60px 0;
  margin: 0;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  background: none;
  transition: var(--transition-smooth);
}

/* Centered content wrapper */
.content-container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Container */
.container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Page sections — unified background, subtle dividers for separation */
.section-1-wrapper,
.section-2-wrapper,
.section-3-wrapper {
  background-color: var(--bg-color);
  width: 100%;
}

.section-1,
.section-2,
.section-3 {
  background-color: var(--bg-color);
  width: 100%;
  overflow: hidden;
}

.section-4 {
  background-color: var(--bg-color);
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Premium gradient divider between sections.
   Two hairlines (dark + light) create a subtle embossed depth at center;
   both fade to transparent at the edges and stop short of the viewport. */
.section-divider {
  position: relative;
  height: 6px;
  /* clamp() uses viewport units so the margin is always resolved correctly */
  margin: 0 clamp(24px, 10vw, 96px);
  /* Faint ambient shadow underneath the center — adds depth without bulk */
  background: radial-gradient(ellipse 70% 100% at 50% 100%, rgba(26, 26, 26, 0.04) 0%, transparent 100%);
}

/* Dark hairline — the "groove" */
.section-divider::before {
  content: '';
  position: absolute;
  top: 1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(26, 26, 26, 0.06) 10%,
    rgba(26, 26, 26, 0.18) 35%,
    rgba(26, 26, 26, 0.22) 50%,
    rgba(26, 26, 26, 0.18) 65%,
    rgba(26, 26, 26, 0.06) 90%,
    transparent 100%
  );
}

/* Light hairline directly below — the "highlight" that lifts the groove */
.section-divider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255, 255, 255, 0.0) 10%,
    rgba(255, 255, 255, 0.55) 35%,
    rgba(255, 255, 255, 0.70) 50%,
    rgba(255, 255, 255, 0.55) 65%,
    rgba(255, 255, 255, 0.0) 90%,
    transparent 100%
  );
}


/* --------------------------------------------------
   2. Navbar (Inside Card 1)
   The header nav (.navbar, .navbar-inner, .site-nav, .nav-*) is styled by the
   shared /site-chrome.css — the single source of truth across every page.
   Only page-local helpers remain below.
   -------------------------------------------------- */
.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.email-text {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-primary);
}

.pill-btn {
  background-color: var(--accent-light);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.pill-btn:hover {
  background-color: #E2E1DD;
  transform: translateY(-1px);
}

.pill-btn:active {
  transform: translateY(0);
}

.nav-right {
  display: flex;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.nav-separator {
  color: var(--border-color);
  margin: 0 4px;
}

/* --------------------------------------------------
   3. Landing Hero (Inside Card 1)
   -------------------------------------------------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

.logo-wrapper {
  position: relative;
  margin-bottom: 32px;
  display: inline-block;
}

.logo-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #D6D5D1;
  object-fit: cover;
  display: block;
  border: 2px solid #FFFFFF;
}

.tagline-badge {
  position: absolute;
  top: -6px;
  right: -95px;
  background-color: #FFFFFF;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid rgba(26, 26, 26, 0.08);
  transform: rotate(5deg);
  animation: float-badge 3s ease-in-out infinite alternate;
}

@keyframes float-badge {
  0% {
    transform: rotate(5deg) translateY(0);
  }

  100% {
    transform: rotate(4deg) translateY(-3px);
  }
}

.hero-title {
  font-size: clamp(2rem, 7vw, 3.8rem);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  max-width: 720px;
  margin-bottom: 32px;
}

.hero-title span.text-accent {
  color: var(--accent-color);
  font-family: var(--font-serif);
  font-weight: 400;
}

.cta-btn-dark {
  background-color: var(--text-primary);
  color: #FFFFFF;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cta-btn-dark:hover {
  background-color: #333333;
  transform: translateY(-2px);
}

.cta-btn-dark:active {
  transform: translateY(0);
}

/* --------------------------------------------------
   4. Features Section
   -------------------------------------------------- */
.features-section {
  width: 100%;
  padding: 80px 0;
}

.features-section .content-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.features-title {
  font-size: clamp(1.6rem, 5vw, 2.3rem);
  line-height: 1.3;
  font-weight: 600;
  text-align: center;
  max-width: 620px;
  margin-bottom: 48px;
  letter-spacing: -0.02em;
}

.features-title span.text-accent {
  color: var(--accent-color);
  font-family: var(--font-serif);
  font-weight: 400;
}

.features-divider-container {
  width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 48px;
}

.features-divider-line {
  position: absolute;
  width: 100%;
  height: 1px;
  background-color: rgba(26, 26, 26, 0.08);
  z-index: 1;
}

.features-badge {
  background-color: #FFFFFF;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  z-index: 2;
  border: 1px solid rgba(26, 26, 26, 0.06);
  transform: rotate(-3deg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
}

.feature-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  transition: var(--transition-smooth);
  padding: 20px;
  border-radius: 16px;
  background-color: var(--sec-bg);
}

.feature-col:hover {
  transform: translateY(-4px);
}

.feature-icon-box {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
}

.feature-icon-box svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
}

.feature-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.feature-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  font-weight: 400;
}

/* --------------------------------------------------
   5. How It Works (Steps)
   -------------------------------------------------- */
.steps-section {
  width: 100%;
  padding: 80px 0;
}

.steps-section .content-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.steps-title {
  text-align: center;
  font-size: clamp(1.6rem, 5vw, 2.3rem);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.steps-title span.text-accent {
  color: var(--accent-color);
  font-family: var(--font-serif);
  font-weight: 400;
}

.steps-sub {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 100%;
}

.step {
  text-align: center;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--text-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 auto 14px;
}

.step h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.step p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* --------------------------------------------------
   6. CTA Section & Footer
   -------------------------------------------------- */
.cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

.cta-title {
  font-size: clamp(1.6rem, 5vw, 2.3rem);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.02em;
  max-width: 500px;
  margin-bottom: 32px;
}

.cta-title span.text-accent {
  color: var(--accent-color);
  font-family: var(--font-serif);
  font-weight: 400;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline:hover {
  background-color: var(--accent-light);
  border-color: #CFCFCB;
  transform: translateY(-2px);
}

.btn-outline:active {
  transform: translateY(0);
}

/* Footer separator */
.footer-line {
  height: 1px;
  background-color: var(--border-color);
  width: 100%;
}

/* Footer structure */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  padding-bottom: 24px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------
   7. Animations & Transitions
   -------------------------------------------------- */
.animate-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

.delay-4 {
  animation-delay: 0.4s;
}

@keyframes fade-in-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------
   8. Toast Notification
   -------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: var(--text-primary);
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  opacity: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-icon {
  font-size: 1.1rem;
}

/* --------------------------------------------------
   9. Responsive Adaptability
   -------------------------------------------------- */
@media (max-width: 768px) {
  body {
    padding: 0 0 40px 0;
  }

  .container {
    gap: 0;
  }

  .hero {
    padding: 60px 20px;
  }

  .tagline-badge {
    position: relative;
    top: 0;
    right: 0;
    display: inline-block;
    margin-top: 12px;
    transform: none;
    animation: none;
  }

  .logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
  }

  .features-section {
    padding: 40px 10px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .steps-section {
    padding: 48px 10px;
  }

  .step-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 20px;
  }

  .cta-content {
    padding: 60px 20px;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
  }

  .btn-outline,
  .cta-btn-dark {
    justify-content: center;
    width: 100%;
  }

  .footer-line {
    width: 100%;
  }

  .footer {
    padding: 20px;
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .step-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .feature-col {
    align-items: center;
    text-align: center;
  }
}

/* --------------------------------------------------
   10. Shared Site Chrome (header + footer)
   Rendered by /site-chrome.js into [data-site-nav] and [data-site-footer].
   The header nav (.site-nav, .nav-brand, .nav-menu, .nav-toggle, …) is styled
   by the shared /site-chrome.css — one source of truth across every page.
   Footer and authenticated user-menu styles live here (page-local).
   -------------------------------------------------- */

/* User menu (authenticated) */
.user-menu {
  position: relative;
  margin-left: 8px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-light);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  transition: var(--transition-fast);
}

.user-avatar:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,0.08); }

.user-avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.user-avatar-initials {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-color);
  letter-spacing: 0.02em;
}

.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 190px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 1200;
}

.user-dropdown[hidden] { display: none; }

.user-dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-primary);
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.user-dropdown-item:hover { background: var(--sec-bg); }

.user-dropdown-logout {
  color: #d64045;
  margin-top: 4px;
  border-top: 1px solid var(--border-color);
  border-radius: 0 0 9px 9px;
  padding-top: 12px;
}

/* Footer panel — flat 2D, bottom corners rounded only, square top that tucks
   Shares the unified page background; top divider applied above. */
.section-footer {
  background: var(--bg-color);
  overflow: hidden;
  width: 100%;
}

.site-footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 48px;
  padding-bottom: 36px;
}

.site-footer-brand { align-self: flex-start; }

.site-footer-cols {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.site-footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.875rem;
}

.site-footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin: 0 0 4px;
}

.site-footer-col .nav-link { color: var(--text-secondary); }
.site-footer-col .nav-link:hover { color: var(--text-primary); }

.site-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 20px;
  padding-bottom: 24px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Footer + user-menu responsiveness. The header nav's mobile behaviour lives
   in the shared /site-chrome.css. */
@media (max-width: 768px) {
  /* On mobile the user menu expands inline rather than as an overlay. */
  .user-menu { width: 100%; margin-left: 0; margin-top: 6px; display: flex; flex-direction: column; align-items: center; }
  .user-dropdown {
    position: static;
    width: 100%;
    box-shadow: none;
    margin-top: 8px;
  }

  /* Footer: clean, centered single column on mobile */
  .site-footer-top {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    text-align: center;
    gap: 28px;
    padding: 40px 0 28px;
  }
  .site-footer-brand { align-self: center; order: 0; }
  .site-footer-cols {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    gap: 28px;
    width: 100%;
  }
  .site-footer-col { align-items: center; gap: 12px; }
  .site-footer-bottom {
    justify-content: center;
    text-align: center;
    padding: 8px 0 28px;
  }
}
