/* ============================================
   JUBLI LANDING — Premium CSS
   Primary: #FF6B2C (Orange)
   Dark: #0A0A0A
   Warm: #FAF8F5
   Apple/Nike aesthetic
   ============================================ */

/* --- Global --- */
html { scroll-behavior: smooth; }
::selection { background: rgba(255,107,44,0.25); color: inherit; }
* { box-sizing: border-box; }

/* --- Grain texture overlay --- */
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}

/* --- Hero --- */
.hero-glow {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 100vw);
  height: 600px;
  background: radial-gradient(
    ellipse at center,
    rgba(255,107,44,0.12) 0%,
    rgba(255,107,44,0.04) 40%,
    transparent 70%
  );
  pointer-events: none;
}

.gradient-text {
  background: linear-gradient(135deg, #FF8F5C 0%, #FF6B2C 40%, #E55A1B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Hero Showcase (intent bubble + phone carousel) --- */
.hero-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.intent-stack {
  position: relative;
  width: 100%;
  max-width: 340px;
  min-height: 110px;
}
.intent-bubble {
  position: absolute;
  inset: 0;
  padding: 14px 18px 16px;
  border-radius: 20px 20px 20px 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 420ms cubic-bezier(0.22, 0.6, 0.36, 1),
              transform 420ms cubic-bezier(0.22, 0.6, 0.36, 1);
  pointer-events: none;
  text-align: left;
  overflow: hidden;
}
.intent-bubble.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.intent-you {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FF6B2C;
  margin-bottom: 6px;
}
.intent-text {
  font-size: 15px;
  line-height: 1.4;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}

/* Phone container */
.phone-container {
  position: relative;
  display: inline-block;
}

.phone-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(255,107,44,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.phone {
  position: relative;
  width: 240px;
  height: 480px;
  background: #1a1a1a;
  border-radius: 36px;
  border: 2px solid rgba(255,255,255,0.08);
  padding: 8px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03),
    0 30px 80px rgba(0,0,0,0.6),
    0 0 60px rgba(255,107,44,0.08);
}

.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 22px;
  background: #0A0A0A;
  border-radius: 0 0 14px 14px;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #111;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
}

/* --- App slide carousel inside the phone --- */
.app-slide {
  position: absolute;
  inset: 0;
  background: var(--screen-bg, #111);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateX(14px) scale(0.985);
  transition: opacity 260ms cubic-bezier(0.22, 0.6, 0.36, 1),
              transform 260ms cubic-bezier(0.22, 0.6, 0.36, 1);
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.app-slide.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
  z-index: 2;
}

.app-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px 6px;
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}
.app-bat {
  width: 14px; height: 8px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 2px;
  position: relative;
}
.app-bat > div {
  position: absolute;
  inset: 1px 2px 1px 1px;
  background: rgba(255,255,255,0.5);
  border-radius: 1px;
}

.app-head {
  padding: 4px 16px 10px;
}
.app-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.app-sub {
  font-size: 9px;
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
}

.app-hero {
  margin: 0 12px 8px;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.22), rgba(var(--accent-rgb), 0.05));
  border: 1px solid rgba(var(--accent-rgb), 0.16);
}
.app-hero.warn {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.24), rgba(var(--accent-rgb), 0.06));
  border: 1px solid rgba(var(--accent-rgb), 0.28);
}
.app-hero-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.app-hero-icon {
  width: 36px; height: 36px;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.app-hero-meta { flex: 1; min-width: 0; }
.app-hero-title {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-hero-desc {
  font-size: 9px;
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
}
.app-rating {
  margin-top: 8px;
  display: flex;
  gap: 3px;
  font-size: 11px;
}
.app-rating .on { color: rgb(var(--accent-rgb)); }
.app-rating span { color: rgba(255,255,255,0.15); }

.app-chips {
  margin-top: 8px;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.chip {
  font-size: 9px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.14);
  color: rgb(var(--accent-rgb));
  font-weight: 500;
}

.app-ring {
  position: relative;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.app-ring svg { width: 48px; height: 48px; }
.app-ring-num {
  position: absolute;
  font-size: 9px;
  font-weight: 700;
  color: rgb(var(--accent-rgb));
}
.app-macros {
  display: flex;
  gap: 10px;
  margin-top: 4px;
  font-size: 9px;
  color: rgba(255,255,255,0.45);
}
.app-macros b { color: rgba(255,255,255,0.75); font-weight: 600; }

.app-warn-cta {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgb(var(--accent-rgb));
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.app-list {
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.app-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
}
.app-row.warn {
  background: rgba(var(--accent-rgb), 0.08);
  border-color: rgba(var(--accent-rgb), 0.18);
}
.app-row .app-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgb(var(--accent-rgb));
  flex-shrink: 0;
  opacity: 0.7;
}
.app-row-body { flex: 1; min-width: 0; }
.app-row-title {
  font-size: 10px;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-row-desc {
  font-size: 8px;
  color: rgba(255,255,255,0.3);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-row-tag {
  font-size: 9px;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  flex-shrink: 0;
}
.app-row-tag.good { color: rgb(var(--accent-rgb)); }
.app-row-tag.warn { color: rgb(var(--accent-rgb)); font-weight: 600; }

.app-tabs {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
}
.app-tabs::before,
.app-tabs::after {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  align-self: center;
}
.app-tabs::before {
  width: 16px; height: 16px;
  border-radius: 4px;
  background: rgb(var(--accent-rgb));
}

/* Dots indicator below phone */
.app-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 4px;
}
.app-dot-btn {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background 180ms, width 180ms;
}
.app-dot-btn.is-active {
  background: #FF6B2C;
  width: 18px;
  border-radius: 999px;
}
.app-dot-btn:hover { background: rgba(255,255,255,0.35); }
.app-dot-btn.is-active:hover { background: #FF6B2C; }

/* Desktop: intent bubble beside phone */
@media (min-width: 1024px) {
  .hero-showcase {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 64px;
  }
  .intent-stack {
    flex: 0 0 300px;
    width: 300px;
    max-width: 300px;
    min-height: 150px;
  }
  .intent-bubble {
    padding: 18px 22px 20px;
    border-radius: 20px 20px 6px 20px;
  }
  .intent-text { font-size: 17px; }
  /* Dots beneath phone, centered under it only */
  .hero-showcase .app-dots {
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
  }
}

.cal-ring {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cal-num {
  position: absolute;
  font-size: 9px;
  font-weight: 700;
  color: #FF6B2C;
}

.meal-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
}

.meal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tab-item {
  color: rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.tab-item.active {
  color: #FF6B2C;
}

/* --- Intent cards (Why Jubli story section) --- */
.intent-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 14px 16px 16px;
  transition: border-color 180ms, background 180ms, transform 180ms;
}
.intent-card:hover {
  border-color: rgba(255,107,44,0.2);
  background: rgba(255,255,255,0.04);
  transform: translateY(-1px);
}
.intent-card-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FF6B2C;
  background: rgba(255,107,44,0.1);
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.intent-card p {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,0.82);
  font-weight: 500;
}

/* --- Step Blocks (How it Works) --- */
.step-num {
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 800;
  font-size: 64px;
  line-height: 1;
  color: rgba(255,107,44,0.08);
  display: block;
  margin-bottom: 16px;
}

.step-block {
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* --- Bento Grid --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.bento-card {
  border-radius: 20px;
  padding: 32px;
}

.bento-big {
  grid-column: span 2;
}

.bento-orb {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255,107,44,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.theme-swatch {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  flex-shrink: 0;
}

/* --- Use Case Cards (Dark) --- */
.usecase-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}

.usecase-card:hover {
  border-color: rgba(255,107,44,0.2);
  transform: translateY(-2px);
}

/* --- CTA Glow --- */
.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(255,107,44,0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* --- How It Works Visual Flow --- */
.flow-step {
  position: relative;
  padding: 32px;
  border-radius: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

.flow-num {
  position: absolute;
  top: -16px;
  left: 24px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FF6B2C;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: white;
}

.flow-connector {
  display: none;
}

/* --- Mini Phone Mockup (for use cases) --- */
.mini-phone {
  width: 120px;
  height: 220px;
  border-radius: 18px;
  border: 1.5px solid rgba(255,255,255,0.1);
  background: #111;
  padding: 4px;
  flex-shrink: 0;
  overflow: hidden;
}

.mini-phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mini-phone-header {
  padding: 10px 8px 6px;
}

.mini-phone-bar {
  height: 3px;
  border-radius: 2px;
  margin-bottom: 3px;
}

.mini-phone-card {
  margin: 0 6px 4px;
  border-radius: 6px;
  height: 28px;
  opacity: 0.8;
}

.mini-phone-tabs {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  padding: 5px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.mini-phone-tabs span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}

.mini-phone-tabs span.active {
  width: 5px;
  height: 5px;
}

/* --- Pricing / Free banner --- */
.free-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 999px;
  background: rgba(255,107,44,0.1);
  border: 1px solid rgba(255,107,44,0.2);
  font-size: 14px;
  font-weight: 600;
  color: #FF6B2C;
}

/* ============================================
   RESPONSIVE — Mobile First
   ============================================ */

/* Base (mobile) adjustments */
@media (max-width: 639px) {
  .phone {
    width: 200px;
    height: 400px;
    border-radius: 28px;
  }
  .phone-notch {
    width: 60px;
    height: 18px;
    border-radius: 0 0 10px 10px;
  }
  .phone-screen {
    border-radius: 22px;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-big {
    grid-column: span 1;
  }
  .bento-card {
    padding: 24px;
  }
  .flow-steps-grid {
    grid-template-columns: 1fr !important;
  }
  .mini-phone {
    width: 100px;
    height: 180px;
    border-radius: 14px;
  }
  .usecase-inner {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}

@media (min-width: 640px) and (max-width: 767px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bento-big {
    grid-column: span 2;
  }
}

@media (max-width: 767px) {
  .flow-connector {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .flow-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.15);
    font-size: 24px;
    padding: 0 4px;
  }
}
