:root {
    --primary: #212529;
    --primary-hover: #000000;
    --primary-light: #f1f3f5;
    --dark: #111827;
    --dark-muted: #4b5563;
    --bg-light: #f8fafc;
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.03), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
    --border-color: #e2e8f0;
  }

  body {
    color: var(--dark);
    background-color: #ffffff;
    line-height: 1.6;
  }

  h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
  }

  /* Utility classes */
  .text-primary-clip {
    color: var(--primary) !important;
  }
  .bg-light-clip {
    background-color: var(--bg-light) !important;
  }

  /* Button styles */
  .btn-primary-clip {
    background-color: var(--primary);
    color: #ffffff !important;
    border: 1px solid var(--primary);
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 6px;
    transition: all 0.2s ease;
  }
  .btn-primary-clip:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 37, 41, 0.15);
  }

  .btn-secondary-clip {
    background-color: #ffffff;
    color: var(--dark-muted) !important;
    border: 1px solid var(--border-color);
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 6px;
    transition: all 0.2s ease;
  }
  .btn-secondary-clip:hover {
    background-color: var(--bg-light);
    color: var(--dark) !important;
    border-color: var(--dark-muted);
  }

  /* Collapsed navbar (phone/tablet): center the links and stack the auth
     actions full-width under a subtle divider; desktop layout unchanged. */
  @media (max-width: 991.98px) {
    #navbarNav .navbar-nav { text-align: center; }
    #navbarNav .nav-auth {
      flex-direction: column;
      align-items: stretch;
      text-align: center;
      gap: 10px;
      border-top: 1px solid rgba(255, 255, 255, 0.15);
      padding-top: 14px;
      margin-top: 10px;
      padding-bottom: 6px;
    }
  }

  /* Hero Section */
  .hero-section {
    padding: 80px 0;
    background: radial-gradient(circle at 90% 10%, rgba(248, 249, 250, 0.7) 0%, rgba(255, 255, 255, 0) 60%);
  }

  .hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--dark);
    margin-bottom: 20px;
  }

  @media (max-width: 991px) {
    .hero-section {
      padding: 40px 0;
    }
    .hero-title {
      font-size: 2.25rem;
      text-align: center;
    }
    .hero-desc {
      text-align: center;
    }
    .hero-btns {
      justify-content: center;
    }
  }

  /* Sign-up Sheet Mockup Widget (participant view) */
  .sheet-mockup {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    font-size: 0.85rem;
    max-width: 440px;
    margin: 0 auto;
    text-align: left;
  }

  .sheet-header {
    background: #1e293b;
    color: #f8fafc;
    padding: 14px 18px;
    border-bottom: 1px solid #334155;
  }

  .sheet-body {
    padding: 16px 18px;
    background: #ffffff;
  }

  .sheet-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 10px;
    background: #ffffff;
  }

  .sheet-row.full {
    background: var(--bg-light);
    opacity: 0.75;
  }

  .slot-meter {
    display: flex;
    gap: 3px;
    margin-top: 4px;
  }

  .slot-dot {
    width: 14px;
    height: 6px;
    border-radius: 3px;
    background: var(--border-color);
  }

  .slot-dot.filled {
    background: var(--primary);
  }

  .sheet-btn {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
    white-space: nowrap;
  }

  .sheet-btn.open {
    background: var(--primary);
    color: #ffffff;
  }

  .sheet-btn.closed {
    background: transparent;
    color: #94a3b8;
    border: 1px solid var(--border-color);
    text-decoration: line-through;
  }

  /* Process Flow Steps */
  .step-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px;
    box-shadow: var(--card-shadow);
    height: 100%;
  }

  .step-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: var(--primary-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 12px;
  }

  .step-flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1.5rem;
  }

  @media (max-width: 768px) {
    .step-flow-arrow {
      transform: rotate(90deg);
      margin: 10px 0;
    }
  }

  /* Limit example cards */
  .limit-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 18px;
    box-shadow: var(--card-shadow);
    height: 100%;
    text-align: left;
  }

  .limit-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
  }

  .limit-tag.open {
    background: var(--primary-light);
    color: var(--primary);
  }

  .limit-tag.full {
    background: var(--dark);
    color: #ffffff;
  }

  /* Everyday-examples Grid */
  .built-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    height: 100%;
  }

  .built-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
  }

  /* Value Prop Cards on Right */
  .value-prop-card {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    background: #ffffff;
    box-shadow: var(--card-shadow);
    text-align: left;
  }

  /* Pricing Cards */
  .pricing-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    background: #ffffff;
    box-shadow: var(--card-shadow);
  }
  .pricing-card.premium {
    border-color: var(--primary);
    position: relative;
  }
  .pricing-card.premium::before {
    content: "Best for most organizers";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    text-transform: uppercase;
  }

  /* Homepage template explorer. The sheet inside each slide intentionally
     mirrors the participant-facing simplified view at a compact scale. */
  .home-template-examples { scroll-margin-top: 4.75rem; }
  .home-template-eyebrow {
    color: #7d6316;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .home-template-carousel { position: relative; }
  .home-template-scroll-cue {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.65rem;
    color: var(--dark-muted);
    font-size: 0.75rem;
    font-weight: 700;
  }
  .home-template-scroll-cue svg { animation: home-template-cue 1.5s ease-in-out infinite; }
  @keyframes home-template-cue {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
  }

  .home-template-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 0 2.5rem 0.8rem 0.1rem;
    scroll-behavior: smooth;
    scroll-padding-inline: 0.1rem;
    scroll-snap-type: x mandatory;
    scrollbar-color: #8d897f #e4e1d8;
    scrollbar-width: thin;
  }
  .home-template-track:focus-visible {
    outline: 3px solid #b8860b;
    outline-offset: 4px;
  }
  .home-template-track::-webkit-scrollbar { height: 8px; }
  .home-template-track::-webkit-scrollbar-track { background: #e4e1d8; border-radius: 999px; }
  .home-template-track::-webkit-scrollbar-thumb { background: #8d897f; border-radius: 999px; }

  .home-template-carousel::after {
    position: absolute;
    z-index: 2;
    top: 2rem;
    right: 0;
    bottom: 0.8rem;
    width: 3.5rem;
    pointer-events: none;
    content: "";
    background: linear-gradient(90deg, rgba(248,250,252,0), rgba(248,250,252,.97));
    opacity: 1;
    transition: opacity 0.15s ease;
  }
  .home-template-carousel.is-at-end::after { opacity: 0; }

  .home-template-slide {
    flex: 0 0 355px;
    max-width: calc(100vw - 3rem);
    scroll-snap-align: start;
  }
  .home-template-sheet {
    overflow: hidden;
    height: 385px;
    background: #fff;
    border: 2px solid #cbc8c0;
    border-radius: 16px;
  }
  .home-template-sheet-header {
    min-height: 82px;
    padding: 1rem 1.15rem;
    color: #fff;
    background: #22252a;
  }
  .home-template-sheet-header h3 {
    margin: 0 0 0.25rem;
    color: #fff;
    font-size: 1rem;
    line-height: 1.2;
  }
  .home-template-sheet-header div { color: rgba(255,255,255,.63); font-size: 0.7rem; }
  .home-template-sheet-body { padding: 1rem; }
  .home-template-sheet-label {
    margin-bottom: 0.65rem;
    color: #646970;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
  }
  .home-template-list-stack { display: grid; gap: 0.55rem; }
  .home-template-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    min-height: 55px;
    padding: 0.55rem 0.65rem;
    background: #fff;
    border: 2px solid #e0e4ea;
    border-radius: 10px;
  }
  .home-template-list-copy { min-width: 0; }
  .home-template-list-row h4 {
    overflow: hidden;
    margin: 0;
    color: #22252a;
    font-size: 0.76rem !important;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .home-template-capacity { display: flex; align-items: center; gap: 0.35rem; margin-top: 0.28rem; }
  .home-template-meter { display: inline-flex; gap: 2px; }
  .home-template-meter span { width: 9px; height: 4px; background: #e4e1d8; border-radius: 999px; }
  .home-template-status {
    color: #22252a;
    background: #e4e1d8;
    border-radius: 999px;
    font-size: 0.48rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1;
    padding: 0.2rem 0.34rem;
    white-space: nowrap;
  }
  .home-template-signup {
    flex: 0 0 auto;
    min-width: 4.6rem;
    padding: 0.43rem 0.5rem;
    color: #fff;
    background: #22252a;
    border: 2px solid #22252a;
    border-radius: 8px;
    font-size: 0.66rem;
    font-weight: 800;
    text-align: center;
  }
  .home-template-more { padding: 0.55rem 0.2rem 0; color: #646970; font-size: 0.66rem; font-weight: 700; }
  .home-template-mobile-more { display: none; }
  .home-template-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.25rem;
    padding-top: 0.55rem;
    color: #8d897f;
    font-size: 0.76rem;
  }
  .home-template-links a { color: #22252a; font-weight: 700; }
  .home-template-links a:hover { text-decoration-thickness: 2px; }

  .home-template-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.65rem;
    height: 2.65rem;
    padding: 0;
    color: #22252a;
    background: #fff;
    border: 2px solid #22252a;
    border-radius: 50%;
  }
  .home-template-arrow:hover,
  .home-template-arrow:focus-visible { color: #fff; background: #22252a; }
  .home-template-arrow:focus-visible { outline: 3px solid #c9a227; outline-offset: 2px; }
  .home-template-arrow:disabled { color: #a4a09a; background: #f1f0eb; border-color: #cbc8c0; cursor: default; }

  @media (max-width: 767.98px) {
    .home-template-slide { flex-basis: calc(100vw - 3.8rem); }
    .home-template-track {
      gap: 0.8rem;
      margin-right: calc(var(--bs-gutter-x) * -0.5);
      padding-right: 3rem;
    }
    .home-template-carousel::after { width: 2.75rem; }
    .home-template-sheet { height: 370px; }
    .home-template-sheet-body {
      position: relative;
      height: calc(100% - 82px);
    }
    .home-template-list-row:nth-child(n+4) { display: none; }
    .home-template-more { display: none; }
    .home-template-mobile-more {
      position: absolute;
      z-index: 1;
      right: 0;
      bottom: 0;
      left: 0;
      display: flex;
      align-items: flex-end;
      justify-content: center;
      height: 4.75rem;
      padding: 2.5rem 1rem 0.8rem;
      color: #646970;
      background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0.92) 46%,
        #fff 68%
      );
      font-size: 0.7rem;
      font-weight: 800;
      letter-spacing: 0.01em;
      text-align: center;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .home-template-track { scroll-behavior: auto; }
    .home-template-scroll-cue svg { animation: none; }
  }
