:root {
  --stone: #e7e5e4;
  --taupe: #a8a29e;
  --black: #1c1917;
  --rose: #f4d6cf;
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

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

body {
  background-color: var(--taupe);
  background-image: radial-gradient(circle at top right, #c2bcba, var(--taupe));
  font-family: var(--font-body);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

.phone-mockup {
  width: 100%;
  max-width: 440px;
  background-color: var(--stone);
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
}

@media (min-width: 480px) {
  .phone-mockup {
    margin: 40px auto;
    min-height: auto;
    border-radius: 40px;
    border: 12px solid var(--black);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    outline: 2px solid rgba(255,255,255,0.2);
    outline-offset: -14px;
  }
}

#main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  padding: 30px 20px 20px;
  text-align: center;
}
.brand {
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  color: var(--black);
}

/* Hero Text */
.hero-text {
  padding: 10px 30px 20px;
  text-align: center;
}
.micro-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(28,25,23,0.6);
  margin-bottom: 16px;
}
.hero-text h1 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1;
  font-weight: 600;
  font-style: italic;
  color: var(--black);
}

/* Carousel */
.carousel-container {
  margin-bottom: 40px;
}
.carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0 30px;
  gap: 16px;
}
.carousel::-webkit-scrollbar { display: none; }
.story-card {
  flex: 0 0 75%;
  aspect-ratio: 9/16;
  scroll-snap-align: center;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 15px 35px rgba(28, 25, 23, 0.15);
  background: var(--taupe);
}
.story-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* How It Works */
.how-it-works {
  padding: 0 30px 40px;
}
.step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.step:last-child {
  margin-bottom: 0;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--rose);
  background: var(--black);
  padding: 6px 8px;
  border-radius: 6px;
  flex-shrink: 0;
  line-height: 1;
}
.step p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(28,25,23,0.85);
  margin-top: -2px;
}
.step a {
  color: var(--black);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--black);
}

/* Form Section */
.form-section {
  padding: 30px 24px;
  background: var(--rose);
  margin: 0 20px 40px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(244, 214, 207, 0.4);
}
.input-group {
  margin-bottom: 24px;
}
.input-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  color: var(--black);
  font-weight: 700;
}
.input-group input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(28, 25, 23, 0.2);
  padding: 8px 0;
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--black);
  transition: border-color 0.3s;
}
.input-group input:focus {
  outline: none;
  border-bottom-color: var(--black);
}
.input-group input::placeholder {
  color: rgba(28, 25, 23, 0.4);
}

button[type="submit"] {
  width: 100%;
  background: var(--black);
  color: var(--stone);
  border: none;
  padding: 16px;
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: transform 0.2s ease, background 0.3s ease, box-shadow 0.2s ease;
}
button[type="submit"]:hover {
  background: #2a2623;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(28, 25, 23, 0.2);
}
button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

#error-message {
  color: #e11d48;
  font-size: 0.85rem;
  margin-top: 16px;
  text-align: center;
  font-weight: 500;
  padding: 10px;
  background: rgba(225, 29, 72, 0.1);
  border-radius: 8px;
}

/* Thank You */
#thank-you {
  text-align: center;
}
#thank-you h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  margin-bottom: 16px;
  line-height: 1.1;
  font-style: italic;
}
#thank-you p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
  color: rgba(28,25,23,0.8);
}
.share-panel {
  background: rgba(255,255,255,0.4);
  padding: 20px;
  border-radius: 16px;
  text-align: left;
}
.share-panel p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--black);
}
.share-actions {
  display: flex;
  gap: 8px;
}
.share-actions input {
  flex: 1;
  padding: 12px;
  border: 1px solid rgba(28,25,23,0.15);
  border-radius: 10px;
  background: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--black);
}
.share-actions button {
  background: var(--black);
  color: #fff;
  border: none;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.share-actions button:hover {
  background: #333;
}

/* Feed Section */
.feed-section {
  padding: 0 0 40px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  margin-bottom: 20px;
}
.section-heading h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-style: italic;
  font-weight: 600;
}
.live-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background: var(--black);
  color: var(--stone);
  padding: 4px 10px;
  border-radius: 99px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}
.live-badge::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: #e11d48;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(225, 29, 72, 0); }
  100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); }
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.grid-item {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--taupe);
}
.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.grid-item:hover img {
  transform: scale(1.08);
}

/* Timeline */
.timeline-section {
  padding: 0 30px 40px;
}
.timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 24px;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: rgba(28,25,23,0.15);
  z-index: 1;
}
.timeline-item {
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 1;
}
.timeline-item::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  background: var(--stone);
  border: 2px solid var(--black);
  border-radius: 50%;
  margin: 10px auto 12px;
  transition: all 0.3s ease;
}
.timeline-item.active::before {
  background: var(--black);
  box-shadow: 0 0 0 4px rgba(28,25,23,0.1);
}
.tl-date {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}
.tl-desc {
  font-size: 0.75rem;
  color: rgba(28,25,23,0.7);
}

#countdown {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(28,25,23,0.05);
  padding: 14px;
  border-radius: 12px;
  color: rgba(28,25,23,0.8);
}
.cd-vals {
  font-weight: 700;
  color: var(--black);
  margin-left: 6px;
}
.ended {
  color: #e11d48;
  font-weight: 700;
}

#campaign-status {
  text-align: center;
  padding: 40px 20px;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-style: italic;
  color: var(--black);
  background: var(--stone);
  border-radius: 20px;
  margin: 0 20px 40px;
}

/* Powered By Slot Padding */
#wbx-powered-by-slot {
  margin-top: auto;
  padding: 20px;
}
