/* RunTheFundraiser — platform brand (marketing + app shell) */

:root {
  --rtf-navy: #141820;
  --rtf-coral: #b87333;
  --rtf-coral-hover: #9a6129;
  --rtf-cream: #faf8f4;
  --rtf-slate: #5e646c;
  --rtf-green: #3a5c48;
  --rtf-border: #e4e0d8;
  --rtf-white: #ffffff;
  --rtf-navy-muted: #252b36;
  --rtf-max: 68rem;
  --rtf-radius: 10px;
  --rtf-font-display: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --rtf-font-body: system-ui, -apple-system, "Segoe UI", sans-serif;
  --rtf-font-mono: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--rtf-font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--rtf-navy);
  background: var(--rtf-cream);
}

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

a {
  color: var(--rtf-coral);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--rtf-coral-hover);
}

h1,
h2,
h3 {
  font-family: var(--rtf-font-display);
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h3 {
  font-size: 1.125rem;
}

p {
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.125rem;
  color: var(--rtf-slate);
  max-width: 38rem;
}

.muted {
  color: var(--rtf-slate);
  font-size: 0.9375rem;
}

.mono {
  font-family: var(--rtf-font-mono);
  font-size: 0.875rem;
}

.container {
  width: min(100% - 2rem, var(--rtf-max));
  margin-inline: auto;
}

/* Header */

.site-header {
  background: var(--rtf-navy);
  color: var(--rtf-white);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--rtf-navy-muted);
}

.site-header a {
  color: inherit;
  text-decoration: none;
}

.site-header a:hover {
  color: var(--rtf-cream);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 0;
  min-height: 3.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--rtf-font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
}

.brand img {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9375rem;
}

.nav-desktop .active {
  color: var(--rtf-cream);
  font-weight: 500;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--rtf-navy-muted);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.125rem;
  height: 2px;
  margin-inline: auto;
  background: var(--rtf-white);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding-bottom: 1rem;
  border-top: 1px solid var(--rtf-navy-muted);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  padding: 0.625rem 0;
  font-size: 1rem;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  min-height: 2.75rem;
  padding: 0.5rem 1.125rem;
  font-family: var(--rtf-font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--rtf-coral);
  color: var(--rtf-white);
  border-color: var(--rtf-coral);
}

.btn-primary:hover {
  background: var(--rtf-coral-hover);
  border-color: var(--rtf-coral-hover);
  color: var(--rtf-white);
}

.btn-ghost {
  background: transparent;
  color: var(--rtf-white);
  border-color: var(--rtf-navy-muted);
}

.btn-ghost:hover {
  background: var(--rtf-navy-muted);
  color: var(--rtf-white);
}

.btn-ghost-light {
  background: var(--rtf-white);
  color: var(--rtf-navy);
  border-color: var(--rtf-border);
}

.btn-ghost-light:hover {
  background: var(--rtf-cream);
  color: var(--rtf-navy);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Hero */

.hero-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-brand img {
  width: 3.5rem;
  height: 3.5rem;
}

.hero-brand-name {
  font-family: var(--rtf-font-display);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--rtf-navy);
}

.hero {
  padding: 3.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.callout {
  padding: 1rem 1.125rem;
  border-radius: var(--rtf-radius);
  border: 1px solid var(--rtf-border);
  background: var(--rtf-white);
  margin: 1.5rem 0;
}

.callout-success {
  border-color: #b8ccc0;
  background: #f0f5f2;
}

.callout-success strong {
  color: var(--rtf-green);
}

/* Cards */

.card-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--rtf-white);
  border: 1px solid var(--rtf-border);
  border-radius: var(--rtf-radius);
  padding: 1.25rem 1.375rem;
}

.card h3 {
  margin-bottom: 0.375rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  background: var(--rtf-cream);
  border: 1px solid var(--rtf-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--rtf-font-display);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--rtf-coral);
  margin-bottom: 0.75rem;
}

/* Sections */

.section {
  padding: 3rem 0;
}

.section-alt {
  background: var(--rtf-white);
  border-block: 1px solid var(--rtf-border);
}

.section-header {
  margin-bottom: 1.75rem;
  max-width: 40rem;
}

/* Steps */

.steps {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .steps-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step {
  padding: 1.25rem;
  background: var(--rtf-cream);
  border: 1px solid var(--rtf-border);
  border-radius: var(--rtf-radius);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: var(--rtf-navy);
  color: var(--rtf-white);
  font-family: var(--rtf-font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.625rem;
}

/* Surface preview (hero aside) */

.surface-preview {
  display: grid;
  gap: 0.75rem;
}

.surface {
  border: 1px solid var(--rtf-border);
  border-radius: var(--rtf-radius);
  overflow: hidden;
  background: var(--rtf-white);
}

.surface-bar {
  padding: 0.5rem 0.75rem;
  background: var(--rtf-cream);
  border-bottom: 1px solid var(--rtf-border);
  font-family: var(--rtf-font-mono);
  font-size: 0.75rem;
  color: var(--rtf-slate);
}

.surface-body {
  padding: 1rem 1.125rem;
}

.surface-body .stat {
  font-family: var(--rtf-font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--rtf-coral);
}

.surface-tracker {
  background: var(--rtf-navy);
  color: var(--rtf-white);
}

.surface-tracker .surface-bar {
  background: #0d1015;
  border-color: #0d1015;
  color: #9aa3ae;
}

.surface-tracker .stat {
  color: var(--rtf-white);
  font-size: 2rem;
}

/* FAQ */

.faq-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--rtf-border);
  border-radius: var(--rtf-radius);
  overflow: hidden;
  background: var(--rtf-white);
}

.faq-item {
  padding: 1.125rem 1.25rem;
  border-bottom: 1px solid var(--rtf-border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  font-size: 1rem;
  margin-bottom: 0.375rem;
}

.faq-item p {
  margin: 0;
  color: var(--rtf-slate);
  font-size: 0.9375rem;
}

/* Pricing */

.price-hero {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--rtf-white);
  border: 1px solid var(--rtf-border);
  border-radius: var(--rtf-radius);
  margin-bottom: 2rem;
}

.price-amount {
  font-family: var(--rtf-font-display);
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 700;
  color: var(--rtf-green);
  line-height: 1;
  margin: 0.5rem 0;
}

/* Not list */

.not-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.not-list li {
  padding-left: 1.375rem;
  position: relative;
  color: var(--rtf-slate);
}

.not-list li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: var(--rtf-coral);
}

/* Auth */

.auth-page {
  padding-top: 1rem;
}

.auth-layout {
  display: grid;
  gap: 2rem;
  max-width: var(--rtf-max);
  margin: 0 auto 2rem;
  padding: 0 1.25rem;
  align-items: start;
}

@media (min-width: 900px) {
  .auth-layout {
    grid-template-columns: 1fr 26rem;
    gap: 3rem;
    padding: 1rem 1.5rem 2rem;
  }
  .auth-layout-narrow {
    grid-template-columns: 1fr;
    max-width: 28rem;
  }
}

.auth-aside {
  padding: 1rem 0;
}

.auth-aside-logo {
  margin-bottom: 1.25rem;
}

.auth-aside h1 {
  font-family: var(--rtf-font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  color: var(--rtf-navy);
}

.auth-aside-lead {
  color: var(--rtf-slate);
  font-size: 1.0625rem;
  line-height: 1.55;
  margin: 0 0 1.25rem;
}

.auth-aside-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--rtf-slate);
  line-height: 1.7;
}

.auth-panel {
  max-width: 26rem;
  margin: 0 auto;
  padding: 2rem;
  background: var(--rtf-white);
  border: 1px solid var(--rtf-border);
  border-radius: calc(var(--rtf-radius) + 4px);
  box-shadow: 0 12px 40px rgba(20, 24, 32, 0.06);
}

.auth-panel-signup {
  width: 100%;
}

.auth-panel-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.auth-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rtf-coral);
  margin: 0 0 0.35rem;
}

.auth-panel-title {
  font-family: var(--rtf-font-display);
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  margin: 0 0 0.35rem;
  color: var(--rtf-navy);
}

.auth-panel-sub {
  text-align: center;
  color: var(--rtf-slate);
  font-size: 0.9375rem;
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

.auth-terms-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--rtf-slate);
  margin: 0 0 1rem;
  padding: 0.75rem 0.875rem;
  background: var(--rtf-cream);
  border: 1px solid var(--rtf-border);
  border-radius: var(--rtf-radius);
  cursor: pointer;
}

.auth-terms-label input[type="checkbox"] {
  margin-top: 0.15rem;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  accent-color: var(--rtf-coral);
}

.auth-terms-hint {
  text-align: center;
  color: var(--rtf-slate);
  font-size: 0.875rem;
  margin: 0.5rem 0;
}

.clerk-mount {
  min-height: 12rem;
}

.auth-footer-link {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  text-align: center;
}

.auth-next-steps {
  margin-top: 1rem;
}

.terms-inline {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 1rem 0 1.25rem;
  font-size: 0.9375rem;
  cursor: pointer;
}

.terms-inline input {
  margin-top: 0.2rem;
  accent-color: var(--rtf-coral);
}

/* Legacy auth-panel label (manage) */

.manage-body .auth-panel label:not(.auth-terms-label):not(.terms-inline) {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--rtf-slate);
  margin: 1rem 0 1.25rem;
  cursor: pointer;
}

.auth-panel input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* Footer */

.site-footer {
  background: var(--rtf-navy);
  color: #a8adb8;
  padding: 2.5rem 0 2rem;
  margin-top: 2rem;
  font-size: 0.875rem;
}

.site-footer a {
  color: var(--rtf-cream);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--rtf-white);
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer-brand {
  color: var(--rtf-white);
  font-family: var(--rtf-font-display);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rtf-navy-muted);
  color: #6e7682;
}

.page-title {
  padding: 2.5rem 0 1rem;
}

.page-main {
  padding-bottom: 2rem;
}

/* Product demo (how-it-works) */
.demo-video-wrap {
  max-width: 42rem;
  margin: 0 auto 2rem;
}
.demo-video-frame {
  position: relative;
  background: var(--rtf-navy);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 20px 50px rgba(20, 24, 32, 0.18);
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.demo-screens {
  position: relative;
  height: 100%;
}
.demo-screen {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}
.demo-screen.active {
  opacity: 1;
  transform: translateY(0);
}
.demo-phone,
.demo-board,
.demo-console {
  width: min(88%, 20rem);
  background: #faf8f4;
  border-radius: 12px;
  padding: 1.25rem;
  color: var(--rtf-navy);
  text-align: center;
}
.demo-phone-bar {
  width: 2.5rem;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
  margin: 0 auto 1rem;
}
.demo-event-name {
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.demo-amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--rtf-coral);
  margin: 0 0 1rem;
}
.demo-btn {
  display: block;
  width: 100%;
  padding: 0.65rem;
  border: none;
  border-radius: 8px;
  background: var(--rtf-coral);
  color: #fff;
  font-weight: 600;
}
.demo-fine {
  font-size: 0.75rem;
  color: var(--rtf-slate);
  margin: 0.75rem 0 0;
}
.demo-board {
  background: #1a2230;
  color: #faf8f4;
  text-align: left;
}
.demo-board-title {
  margin: 0 0 0.5rem;
  opacity: 0.85;
}
.demo-board-total {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--rtf-coral);
  margin: 0;
}
.demo-board-sub {
  margin: 0 0 1rem;
  opacity: 0.75;
}
.demo-feed {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
}
.demo-feed li {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.demo-feed span {
  color: var(--rtf-coral);
  font-weight: 600;
}
.demo-console {
  text-align: left;
}
.demo-console-title {
  font-weight: 600;
  margin: 0 0 0.75rem;
}
.demo-console-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.demo-console-stats strong {
  display: block;
  font-size: 1.25rem;
}
.demo-console-row,
.demo-console-health {
  font-size: 0.875rem;
  color: var(--rtf-slate);
  margin: 0.35rem 0;
}
.demo-caption {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 0.8125rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}
