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

:root {
  --bg:      #f6f4ef;
  --bg2:     #edebe3;
  --bg3:     #e3dfd6;
  --ink:     #1c1825;
  --accent:  #c2410c;
  --accent-hover: #9a3412;
  --text:    #2d2a38;
  --muted:   #6e6a62;
  --border:  #d4cfc7;
  --radius:  5px;
  --max:     960px;

  --bet:  #166534;
  --test: #92400e;
  --drop: #991b1b;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  opacity: 0;
  transition: opacity 0.2s ease;
}
body.ready { opacity: 1; }

a { color: var(--accent); text-decoration: none; }

/* ─── NAV ─── */
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.875rem 2rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.nav-logo span { color: var(--accent); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-block;
  padding: 0.575rem 1.3rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  border: none;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; pointer-events: none; }

.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: #2e2a3e; }

.btn-hero {
  display: inline-block;
  padding: 0.8rem 2.25rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none;
}
.btn-hero:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-hero:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ─── LAYOUT ─── */
section { padding: 5rem 2rem; }
.container { max-width: var(--max); margin: 0 auto; }

/* ─── HERO ─── */
#hero {
  padding: 6.5rem 2rem 5.5rem;
  text-align: center;
}

#hero h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  color: var(--ink);
}

#hero p.sub {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

.bucket-demo {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 auto 1.5rem;
}

.badge {
  padding: 0.28rem 0.8rem;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge-bet  { background: rgba(22,101,52,0.1);  color: var(--bet);  border: 1px solid rgba(22,101,52,0.22); }
.badge-test { background: rgba(146,64,14,0.1);  color: var(--test); border: 1px solid rgba(146,64,14,0.22); }
.badge-drop { background: rgba(153,27,27,0.1);  color: var(--drop); border: 1px solid rgba(153,27,27,0.22); }

#hero .proof {
  font-size: 0.875rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 1.75rem;
}

/* ─── SECTION HEADINGS ─── */
#problem h2, #solution h2, #how h2, #testimonials h2, #waitlist h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--ink);
}

/* ─── PROBLEM ─── */
#problem { background: var(--bg2); }

#problem .container {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 5rem;
  align-items: start;
}

#problem h2 { margin-bottom: 0; }

.problem-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.problem-list li {
  padding: 0.875rem 0 0.875rem 1.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  position: relative;
  font-size: 0.95rem;
  line-height: 1.6;
}
.problem-list li:first-child { border-top: 1px solid var(--border); }
.problem-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--drop);
  font-weight: 700;
}

/* ─── SOLUTION: feature rows ─── */
#solution {
  padding-bottom: 3rem;
}

#solution h2 {
  text-align: left;
  margin-bottom: 3.5rem;
}

/* Each feature row: text + video, alternating */
.feature-row {
  --feature-max: 1120px;
  max-width: var(--feature-max);
  margin: 0 auto 5rem;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
}

.feature-row--flip {
  grid-template-columns: 7fr 5fr;
}
.feature-row--flip .feature-text  { order: 2; }
.feature-row--flip .feature-media { order: 1; }

.feature-text {
  padding: 1rem 0;
}

.feature-num {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.feature-text h3 {
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.65rem;
  line-height: 1.25;
}

.feature-text p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
}

.feature-media {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  line-height: 0;
}

.feature-media video {
  width: 100%;
  height: auto;
  display: block;
}

/* ─── Full dashboard reveal ─── */
.dashboard-reveal {
  max-width: 1120px;
  margin: 1rem auto 0;
  padding: 0 2rem;
}

.dashboard-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  text-align: left;
}

.dashboard-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  line-height: 0;
}

.dashboard-wrap video {
  width: 100%;
  height: auto;
  display: block;
}

/* ─── HOW IT WORKS ─── */
#how { background: var(--bg2); }
#how h2 { text-align: left; margin-bottom: 2.5rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  counter-reset: steps;
}

.step-card { text-align: left; }

.step-num {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.step-card h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.step-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.7; }

/* ─── TESTIMONIALS ─── */
#testimonials { background: var(--bg); }

#testimonials h2 { text-align: left; }

.testimonials-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  gap: 1rem;
}

.testimonial-nav {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  padding-bottom: 0.2rem;
}

.testimonial-nav button {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--ink);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, color 0.15s;
  font-family: inherit;
}
.testimonial-nav button:hover { border-color: var(--accent); color: var(--accent); }
.testimonial-nav button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.testimonial-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 0.25rem;
  cursor: grab;
  user-select: none;
}
.testimonial-track::-webkit-scrollbar { display: none; }
.testimonial-track.is-dragging { cursor: grabbing; scroll-behavior: auto; scroll-snap-type: none; user-select: none; }
.testimonial-track.is-dragging * { user-select: none; pointer-events: none; }

.testimonial-card {
  flex: 0 0 calc(30% - 0.75rem);
  min-width: 280px;
  scroll-snap-align: start;
  background: var(--bg2);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.testimonial-quote {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text);
  flex: 1;
  margin-bottom: 1.5rem;
}

.testimonial-quote::before {
  content: "\201C";
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 3.5rem;
  color: var(--accent);
  line-height: 0.75;
  display: block;
  margin-bottom: 0.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.testimonial-role {
  font-size: 0.775rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

@media (max-width: 768px) {
  .testimonial-card { flex: 0 0 85vw; }
}

/* ─── VIDEO LIGHTBOX ─── */
#video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(28, 24, 37, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
#video-lightbox.open {
  opacity: 1;
  pointer-events: all;
}
#lightbox-video {
  max-width: min(90vw, 1280px);
  max-height: 85vh;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid rgba(246,244,239,0.15);
  display: block;
}
#lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(246,244,239,0.1);
  border: 1px solid rgba(246,244,239,0.2);
  color: var(--bg);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  font-family: inherit;
}
#lightbox-close:hover { background: rgba(246,244,239,0.22); }
#lightbox-close:focus-visible { outline: 2px solid rgba(246,244,239,0.5); outline-offset: 3px; }

/* Clickable video containers */
.feature-media,
.dashboard-wrap {
  cursor: zoom-in;
  position: relative;
}
.feature-media::after,
.dashboard-wrap::after {
  content: "⤢";
  position: absolute;
  bottom: 0.6rem;
  right: 0.7rem;
  font-size: 1rem;
  color: rgba(246,244,239,0.75);
  background: rgba(28,24,37,0.55);
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
}
.feature-media:hover::after,
.dashboard-wrap:hover::after { opacity: 1; }

/* ─── WAITLIST ─── */
#waitlist {
  text-align: center;
  background: var(--ink);
  color: var(--bg);
  padding: 6rem 2rem;
}

#waitlist h2 { color: var(--bg); margin-bottom: 0.75rem; }

#waitlist p.sub {
  color: rgba(246,244,239,0.6);
  margin-bottom: 2rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.95rem;
}

.waitlist-form {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 440px;
  margin: 0 auto;
}

.waitlist-form input {
  flex: 1;
  min-width: 210px;
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(246,244,239,0.2);
  background: rgba(246,244,239,0.07);
  color: var(--bg);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s;
}
.waitlist-form input::placeholder { color: rgba(246,244,239,0.35); }
.waitlist-form input:focus { border-color: rgba(246,244,239,0.45); }
.waitlist-form input:focus-visible { outline: 2px solid rgba(246,244,239,0.4); outline-offset: 2px; }

#waitlist .btn-primary {
  background: var(--bg);
  color: var(--ink);
}
#waitlist .btn-primary:hover { background: var(--bg2); }
#waitlist .btn-primary:focus-visible { outline-color: var(--bg); }

.waitlist-success {
  display: none;
  color: rgba(246,244,239,0.9);
  font-weight: 600;
  margin-top: 1rem;
}

.waitlist-error {
  display: none;
  color: #fca5a5;
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

/* ─── FOOTER ─── */
footer {
  padding: 1.75rem 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  #problem .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  #problem h2 { margin-bottom: 1.5rem; }

  .feature-row,
  .feature-row--flip {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
  }
  .feature-row--flip .feature-text  { order: 0; }
  .feature-row--flip .feature-media { order: 0; }

  .steps { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 600px) {
  nav { padding: 0.75rem 1.25rem; }
  section { padding: 3.5rem 1.25rem; }
  #hero { padding: 5rem 1.25rem 3.5rem; }
  #waitlist { padding: 4rem 1.25rem; }

  .feature-row { padding: 0 1.25rem; }
  .dashboard-reveal { padding: 0 1.25rem; }
}
