/* style.css - Premium Wholesome Cream & Ochre Theme for One Thing Daily Landing Page */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600&display=swap');

/* --- Custom Variables & Theme --- */
:root {
  --font-primary: 'Outfit', sans-serif;
  --font-serif: 'Playfair Display', serif;
  
  /* Color Palette - Warm & Wholesome Scheme */
  --color-bg: #FAF8F5;            /* Warm Off-white / Cream */
  --color-bg-secondary: #F4EFE6;  /* Soft Sandy Beige */
  --color-card-bg: #FFFFFF;       /* Pure White for panels */
  --color-primary: #CF6E14;       /* Warm Terracotta / Orange */
  --color-primary-hover: #B25A0C; /* Deeper Orange */
  --color-accent-gold: #D97706;   /* Rich Golden Amber */
  --color-accent-green: #3B7A57;  /* Sage Green for foliage */
  --color-border: #E8E3D7;        /* Light Beige Border */
  
  /* Text Colors */
  --color-text-main: #292524;     /* Warm Charcoal */
  --color-text-secondary: #57534E;/* Muted Stone */
  --color-text-muted: #878680;    /* Soft Grey-Stone */

  /* Shadows & Glows */
  --shadow-sm: 0 4px 12px rgba(28, 25, 23, 0.03);
  --shadow-md: 0 12px 24px rgba(28, 25, 23, 0.06);
  --shadow-lg: 0 20px 40px rgba(207, 110, 20, 0.08);
  --shadow-phone: 0 24px 64px -16px rgba(28, 25, 23, 0.16);
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--color-bg);
  color: var(--color-text-main);
  font-family: var(--font-primary);
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}

/* --- Decorative Ambient Shapes (Wholesome Sun Glows) --- */
body::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, rgba(207, 110, 20, 0.06) 0%, rgba(250,248,245,0) 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(80px);
}

body::after {
  content: '';
  position: absolute;
  top: 40%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(59, 122, 87, 0.05) 0%, rgba(250,248,245,0) 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(100px);
}

/* --- Typography Helpers --- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

.serif-text {
  font-family: var(--font-serif);
}

.gradient-text {
  /* Rich warm brand gradient */
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ochre-text {
  color: var(--color-primary);
}

.green-text {
  color: var(--color-accent-green);
}

/* --- Header / Navbar --- */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
}

/* Floating Join Button (appears on scroll) */
.btn-floating-join {
  position: fixed;
  top: 1.25rem;
  right: 2rem;
  z-index: 200;
  background: var(--color-primary);
  color: #fff;
  padding: 0.6rem 1.35rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(207, 110, 20, 0.25);
  transition: opacity 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
}

.btn-floating-join.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.45rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--color-primary);
  font-family: var(--font-primary);
}

.logo svg {
  color: var(--color-primary);
}

.logo:hover {
  opacity: 0.9;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  position: relative;
}

.nav-link:hover {
  color: var(--color-text-main);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition-smooth);
}

.nav-link:hover::after {
  width: 100%;
}

.btn-nav {
  background: var(--color-primary);
  color: #fff;
  padding: 0.6rem 1.35rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(207, 110, 20, 0.2);
  transition: var(--transition-smooth);
  text-decoration: none;
}

.btn-nav:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(207, 110, 20, 0.3);
}

/* --- Hero Section --- */
.hero {
  padding: 10rem 2rem 6rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(207, 110, 20, 0.08);
  border: 1px solid rgba(207, 110, 20, 0.15);
  color: var(--color-primary);
  padding: 0.45rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  width: max-content;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-primary);
  box-shadow: 0 0 8px var(--color-primary);
}

.hero-title {
  font-size: 3.5rem;
  letter-spacing: -0.02em;
  font-weight: 800;
  line-height: 1.15;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  max-width: 540px;
}

/* Signup Form */
.signup-form-container {
  margin-top: 1rem;
  max-width: 480px;
}

.signup-form {
  display: flex;
  gap: 0.75rem;
  background: var(--color-card-bg);
  border: 1.5px solid var(--color-border);
  padding: 0.5rem;
  border-radius: 9999px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.signup-form:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(207, 110, 20, 0.12);
}

.signup-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0 1.25rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  color: var(--color-text-main);
}

.signup-input::placeholder {
  color: var(--color-text-muted);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 0.9rem 1.75rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: scale(1.02);
}

.form-feedback {
  font-size: 0.9rem;
  color: var(--color-accent-green);
  font-weight: 600;
  display: none;
}

.form-feedback.success {
  display: block;
  background: rgba(59, 122, 87, 0.08);
  border: 1px solid rgba(59, 122, 87, 0.18);
  padding: 1rem 1.5rem;
  border-radius: 9999px;
  text-align: center;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
  margin-top: 0;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.avatars {
  display: flex;
}

.avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 2px solid var(--color-bg);
  background-color: var(--color-bg-secondary);
  margin-right: -0.75rem;
  object-fit: cover;
}

.avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-gold));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.proof-text {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.proof-text strong {
  color: var(--color-text-main);
}

/* Phone Frame Mockups */
.phone-frame {
  border: 10px solid #3C3835;
  border-radius: 36px;
  box-shadow: var(--shadow-phone);
  background: #FAF8F5;
  overflow: hidden;
  width: 260px;
  aspect-ratio: 390 / 844; /* iPhone standard ratio */
  flex-shrink: 0;
  margin: 0 auto;
  position: relative;
}

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

/* Hero Media Stack */
.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 520px;
}

.hero-phone-container {
  position: relative;
  width: 100%;
  max-width: 320px;
}

.hero-phone-main {
  transform: rotate(-3deg);
  z-index: 2;
  position: relative;
}

.hero-phone-backdrop {
  position: absolute;
  top: 20px;
  left: 60px;
  transform: rotate(6deg) scale(0.95);
  opacity: 0.6;
  z-index: 1;
}

.hero-phone-container .phone-frame {
  width: 260px;
  aspect-ratio: 390 / 844;
}

.hero-phone-container .phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Sections --- */


.section {
  padding: 5rem 2rem;
  scroll-margin-top: 80px;
}

.hero {
  scroll-margin-top: 0;
}

.section-bg {
  background-color: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.section-subtitle {
  color: var(--color-primary);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-title {
  font-size: 2.75rem;
  letter-spacing: -0.02em;
  font-family: var(--font-serif);
  font-weight: 700;
}

.section-description {
  color: var(--color-text-secondary);
  font-size: 1.1rem;
}

/* Grid layout for step-by-step showcase */
.grid-showcase {
  display: flex;
  flex-direction: column;
  gap: 8rem;
}

.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.showcase-row.reverse .showcase-col-image {
  order: -1;
}
.showcase-row.reverse .showcase-col-text {
  order: 1;
}

.showcase-col-image {
  display: flex;
  justify-content: center;
}

.showcase-col-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.step-num {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
  background: rgba(207, 110, 20, 0.1);
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  width: max-content;
}

.showcase-heading {
  font-size: 2.25rem;
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
}

.showcase-desc {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.showcase-accent-box {
  background-color: var(--color-bg-secondary);
  border-left: 4px solid var(--color-primary);
  padding: 1.25rem 1.5rem;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--color-text-secondary);
}

/* Feature Cards (Small Features List) */
.grid-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 4rem;
}

.feature-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  padding: 2.5rem 2rem;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(207, 110, 20, 0.2);
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(207, 110, 20, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon-wrapper {
  background: var(--color-primary);
  color: #fff;
}

.feature-card-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.feature-card-desc {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

/* --- Showcase / Interactive Visualizer Redesign --- */
.showcase-container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: center;
}

.canopy-visualizer {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.visualizer-screen {
  aspect-ratio: 1.5;
  background: #FAF8F5; /* Matches layout */
  border-radius: 16px;
  border: 1.5px dashed var(--color-border);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.canopy-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  width: 85%;
  height: 80%;
}

.canopy-node {
  background: #FFFFFF;
  border: 1.5px solid var(--color-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--color-text-muted);
  transition: all 0.4s ease;
  position: relative;
  cursor: pointer;
}

.canopy-node:hover {
  transform: scale(1.08);
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(207, 110, 20, 0.05);
}

.canopy-node.active {
  background: #FEF3C7; /* Soft gold */
  border-color: var(--color-accent-gold);
  color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.canopy-node.active::after {
  content: '';
  position: absolute;
  top: -4px;
  right: -4px;
  width: 8px;
  height: 8px;
  background: var(--color-accent-green);
  border-radius: 50%;
}

.canopy-legend {
  display: flex;
  justify-content: space-around;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 4px;
}

.legend-active {
  background: #FEF3C7;
  border: 1.5px solid var(--color-accent-gold);
}

.legend-empty {
  background: #FFFFFF;
  border: 1.5px solid var(--color-border);
}

.legend-special {
  background: rgba(59, 122, 87, 0.15);
  border: 1.5px solid var(--color-accent-green);
}

.showcase-bullets {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.showcase-bullet {
  display: flex;
  gap: 1.25rem;
}

.bullet-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(207, 110, 20, 0.1);
  border: 1px solid rgba(207, 110, 20, 0.2);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.bullet-content h4 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.bullet-content p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

/* --- CTA (Call to Action) Section --- */
.cta-wrapper {
  background: linear-gradient(135deg, #F4EFE6 0%, #EAE3D2 100%);
  border: 1px solid var(--color-border);
  border-radius: 32px;
  padding: 6rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cta-content .signup-form-container {
  margin: 1.5rem auto 0;
  width: 100%;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 4rem 2rem;
  background-color: #FAF8F5;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 320px;
}

.footer-tagline {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

.footer-nav {
  display: flex;
  gap: 4rem;
}

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

.footer-col-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-main);
}

.footer-link {
  text-decoration: none;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.footer-link:hover {
  color: var(--color-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.footer-socials {
  display: flex;
  gap: 1.25rem;
}

.social-icon {
  color: var(--color-text-secondary);
  transition: var(--transition-smooth);
}

.social-icon:hover {
  color: var(--color-primary);
  transform: translateY(-2px);
}

/* --- Preview + CTA combined --- */
.preview-bullets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.cta-inline {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  margin-top: 1rem;
}

.cta-inline .signup-form-container {
  margin: 1.5rem auto 0;
  width: 100%;
  max-width: 480px;
}

/* ==============================================
   MOBILE — Full overhaul for phones (≤ 768px)
   ============================================== */

/* Fix horizontal overflow everywhere */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Scroll arrow — hidden on desktop */
.hero-scroll-arrow {
  display: none;
}

/* Dots — hidden on desktop */
.steps-dots {
  display: none;
}

@media (max-width: 768px) {

  /* ── Fix horizontal page shifting ── */
  html, body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
  }

  /* ── Header: clean logo + compact button ── */
  .header {
    position: absolute;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border-bottom: none;
  }
  
  .nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
  }

  .nav-link {
    display: none; /* Hide text links */
  }

  .btn-nav {
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
    box-shadow: 0 2px 8px rgba(207, 110, 20, 0.15);
  }

  /* Floating Join Button Mobile override */
  .btn-floating-join {
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
    top: 0.75rem;
    right: 1.25rem;
    box-shadow: 0 2px 10px rgba(207, 110, 20, 0.2);
  }

  /* ── Hero Section ── */
  .hero {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5.5rem 1.25rem 2rem;
    position: relative;
    box-sizing: border-box;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero-media {
    display: none; /* Keep hero image hidden on mobile for clean minimalist start */
  }

  .hero-title {
    font-size: 2.25rem;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
  }

  .hero-description {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto 2rem;
  }

  /* ── Stacking signup form for all mobile/tablet viewports ── */
  .signup-form-container {
    width: 100%;
    max-width: 440px;
    margin: 0 auto 2rem;
  }

  .signup-form {
    flex-direction: column;
    border-radius: 16px;
    padding: 0.6rem;
    gap: 0.6rem;
    border: 1.5px solid var(--color-border);
    background: var(--color-card-bg);
  }

  .signup-input {
    padding: 0.8rem 1rem;
    text-align: center;
    font-size: 0.95rem;
    width: 100%;
    border-radius: 12px;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 0.9rem;
    border-radius: 12px;
    font-size: 0.95rem;
    white-space: normal;
  }

  .hero-social-proof {
    margin: 0 auto;
    justify-content: center;
  }

  /* ── Scroll arrow: Outline style ── */
  .hero-scroll-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid var(--color-border);
    color: var(--color-text-secondary);
    margin: 1.5rem auto 0;
    cursor: pointer;
    animation: bounce 1.8s ease-in-out infinite;
    flex-shrink: 0;
    transition: var(--transition-smooth);
  }

  @keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(6px); }
  }

  /* ── Steps section: Premium Card Carousel ── */
  #how-it-works {
    padding: 4rem 0 3rem;
  }

  #how-it-works .section-container {
    padding: 0;
    max-width: 100%;
    overflow: hidden;
  }

  #how-it-works .section-header {
    text-align: center;
    padding: 0 1.5rem 2rem;
    margin-bottom: 2rem;
  }

  .section-title {
    font-size: 2rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
  }

  .grid-showcase {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 0;
    padding: 0.5rem 0;
  }

  .grid-showcase::-webkit-scrollbar {
    display: none;
  }

  /* Slide cards: center aligned, with peek-a-boo gaps */
  .showcase-row,
  .showcase-row.reverse {
    width: calc(100vw - 3.5rem);
    min-width: calc(100vw - 3.5rem);
    margin: 0 0.5rem;
    flex-shrink: 0;
    scroll-snap-align: center;
    grid-template-columns: 1fr;
    flex-direction: column;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
    padding: 1.25rem 1rem;
    box-sizing: border-box;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
  }

  /* Add spacing for first and last slides so they snap nicely */
  .showcase-row:first-child {
    margin-left: 1.25rem;
  }

  .showcase-row:last-child {
    margin-right: 1.25rem;
  }

  .showcase-col-image {
    order: 1;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .showcase-col-image .phone-frame {
    width: 32vw;
    max-width: 110px;
    aspect-ratio: 390 / 844;
  }

  .showcase-col-text {
    order: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .showcase-heading {
    font-size: 1.25rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .showcase-desc {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .step-num {
    margin-left: auto;
    margin-right: auto;
    font-size: 0.75rem;
    padding: 0.15rem 0.6rem;
  }

  .showcase-accent-box {
    margin: 0.25rem auto 0;
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    width: 100%;
    max-width: 280px;
    border-radius: 8px;
    text-align: center;
    border-left: none;
    border-top: 2px solid var(--color-primary);
  }

  .steps-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 1.5rem 0 0.5rem;
  }

  .steps-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-border);
    transition: background 0.3s, transform 0.3s;
    cursor: pointer;
    border: none;
    padding: 0;
  }

  .steps-dot.active {
    background: var(--color-primary);
    transform: scale(1.3);
  }

  /* ── Rest of the page ── */
  .section {
    padding: 3.5rem 1.25rem;
  }

  .preview-bullets-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    margin-bottom: 2.5rem;
  }

  .showcase-bullet {
    text-align: left;
    gap: 1rem;
  }

  .bullet-number {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .bullet-content h4 {
    font-size: 1.1rem;
  }

  .cta-inline {
    padding: 2.25rem 1.25rem;
    border-radius: 20px;
  }

  .cta-inline .section-title {
    font-size: 1.95rem;
  }

  .grid-features {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cta-wrapper {
    padding: 3.5rem 1.25rem;
  }

  .footer-top {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-nav {
    width: 100%;
    justify-content: space-between;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .footer-nav {
    flex-direction: column;
    gap: 1.5rem;
  }
}
