/* ==========================================================================
   TastyPay Delivery Landing Styles (landing/assets/delivery.css)
   Focused on high-converting delivery landing for restaurants, cafes, and shops.
   ========================================================================== */

/* Highlight gradients and accents */
.hl-delivery {
  background: linear-gradient(135deg, #10b981 0%, #059669 40%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hl-orange {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #e11d48 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero delivery modifications */
.hero-delivery {
  padding-top: 40px;
  padding-bottom: 60px;
  position: relative;
  overflow: visible;
  z-index: 30;
}

.delivery-body {
  overflow-x: clip;
}

.hero-delivery::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, rgba(14, 165, 233, 0.05) 50%, transparent 70%);
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-delivery .hero-grid {
  position: relative;
  z-index: 2;
}

/* Hero CTAs & Demo Dropdown Alignment */
.delivery-body .hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  position: relative;
}

.delivery-body .demo-dropdown-wrap {
  position: relative;
  display: inline-block;
  margin-left: 0;
  z-index: 100;
}

.delivery-body .demo-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.delivery-body .demo-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: auto;
  min-width: 330px;
  max-width: 90vw;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.05);
  padding: 8px;
  z-index: 1050;
  animation: dropdownFadeIn 0.15s ease-out;
}

.delivery-body .demo-dropdown-wrap.open .demo-dropdown-menu {
  display: block;
}

.delivery-body .demo-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: #0f172a;
  transition: background 0.15s ease, transform 0.15s ease;
}

.delivery-body .demo-dropdown-item:hover {
  background: #f8fafc;
  transform: translateX(2px);
}

.hero-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  margin-bottom: 32px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.trust-badge svg {
  color: #10b981;
  flex-shrink: 0;
}

.trust-badge.highlight {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

/* Mockup delivery phone */
.delivery-mockup-wrap {
  position: relative;
  max-width: 380px;
  margin: 0 auto;
}

.delivery-phone {
  background: #0f172a;
  border-radius: 44px;
  padding: 12px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
}

.delivery-phone-screen {
  background: #f8fafc;
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  font-size: 13px;
  color: #0f172a;
}

.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px 6px;
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  background: #ffffff;
}

.phone-notch {
  width: 90px;
  height: 18px;
  background: #0f172a;
  border-radius: 10px;
}

.phone-app-header {
  padding: 12px 16px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-shop-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone-shop-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #10b981;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
}

.phone-shop-title {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
}

.phone-shop-status {
  font-size: 11px;
  color: #10b981;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.phone-shop-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.phone-delivery-tabs {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  margin: 10px 14px;
  border-radius: 10px;
}

.phone-del-tab {
  flex: 1;
  text-align: center;
  padding: 6px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 7px;
  color: #64748b;
}

.phone-del-tab.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.phone-menu-card {
  background: #ffffff;
  border-radius: 14px;
  margin: 0 14px 10px;
  padding: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  border: 1px solid #f1f5f9;
}

.phone-menu-img {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.phone-menu-info {
  flex: 1;
}

.phone-menu-name {
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 2px;
}

.phone-menu-desc {
  font-size: 10px;
  color: #64748b;
  line-height: 1.3;
  margin-bottom: 4px;
}

.phone-menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-menu-price {
  font-weight: 800;
  font-size: 13px;
  color: #0f172a;
}

.phone-menu-add {
  background: #10b981;
  color: #fff;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
}

.phone-cart-pill {
  background: #1e293b;
  color: #ffffff;
  margin: 8px 14px 12px;
  padding: 10px 14px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.phone-cart-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
}

.phone-cart-badge {
  background: #10b981;
  color: #fff;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
}

.phone-cart-btn {
  background: #10b981;
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
}

/* Floating badge over mockup */
.mockup-floater {
  position: absolute;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
  font-size: 12px;
  line-height: 1.3;
}

.mockup-floater.floater-top {
  top: 30px;
  left: -24px;
}

.mockup-floater.floater-bottom {
  bottom: 24px;
  right: -24px;
}

.mockup-floater-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mockup-floater-icon.sbp {
  background: #e0f2fe;
  color: #0284c7;
}

.mockup-floater-icon.ads {
  background: #fef3c7;
  color: #d97706;
}

/* Comparison section: Aggregators vs Tastypay */
.compare-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 36px;
}

.compare-card {
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}

.compare-card.aggregator {
  background: #fff1f2;
  border: 1px solid #fecdd3;
}

.compare-card.tastypay {
  background: #ecfdf5;
  border: 2px solid #10b981;
  box-shadow: 0 12px 30px -10px rgba(16, 185, 129, 0.2);
}

.compare-card-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.compare-card.aggregator .compare-card-badge {
  background: #fecdd3;
  color: #9f1239;
}

.compare-card.tastypay .compare-card-badge {
  background: #10b981;
  color: #ffffff;
}

.compare-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.compare-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.compare-item {
  display: flex;
  gap: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.compare-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 13px;
  margin-top: 2px;
}

.compare-card.aggregator .compare-icon {
  background: #fda4af;
  color: #881337;
}

.compare-card.tastypay .compare-icon {
  background: #10b981;
  color: #ffffff;
}

/* Interactive Calculator */
.calc-wrapper {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
  margin-top: 40px;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.calc-slider-box {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.calc-label {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
}

.calc-val-display {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--brand);
}

.calc-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 10px;
  border-radius: 5px;
  background: #e2e8f0;
  outline: none;
  transition: background 0.2s;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #10b981;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
  border: 3px solid #ffffff;
  transition: transform 0.1s;
}

.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.calc-quick-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.calc-pill {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.calc-pill:hover,
.calc-pill.active {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
}

.calc-results-box {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calc-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.calc-result-row.highlight-saving {
  border-bottom: none;
  padding-bottom: 0;
  padding-top: 8px;
}

.calc-result-label {
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.calc-result-val {
  font-weight: 700;
  font-size: 1.15rem;
}

.calc-result-val.agg-loss {
  color: #e11d48;
}

.calc-result-val.tp-cost {
  color: #2563eb;
}

.calc-result-val.saving-num {
  color: #059669;
  font-size: 1.8rem;
  font-weight: 800;
}

.calc-yearly-note {
  font-size: 0.85rem;
  color: #059669;
  font-weight: 700;
  text-align: right;
  margin-top: -8px;
}

/* Sales & Ads Machine (The Key Differentiator) */
.ads-machine-box {
  background: linear-gradient(135deg, #090e17 0%, #172554 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 50px 40px;
  margin-top: 36px;
  position: relative;
  overflow: hidden;
}

.ads-machine-box::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.ads-machine-head {
  max-width: 720px;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}

.ads-machine-head h2 {
  color: #ffffff;
  margin-bottom: 12px;
}

.ads-machine-head p {
  color: #94a3b8;
  font-size: 1.1rem;
}

.ads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  position: relative;
  z-index: 1;
}

.ads-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ads-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.3);
}

.ads-card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 6px;
  width: fit-content;
}

.ads-card.yd .ads-card-tag {
  background: #fef08a;
  color: #854d0e;
}

.ads-card.vk .ads-card-tag {
  background: #bfdbfe;
  color: #1e40af;
}

.ads-card.tg .ads-card-tag {
  background: #bae6fd;
  color: #0369a1;
}

.ads-card.seo .ads-card-tag {
  background: #a7f3d0;
  color: #065f46;
}

.ads-card h3 {
  color: #ffffff;
  font-size: 1.15rem;
  margin: 0;
}

.ads-card p {
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0;
}

/* Fast Launch Steps (5 Minutes) */
.launch-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.launch-step-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.launch-step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.launch-step-num {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  color: #e2e8f0;
  margin-bottom: 16px;
}

.launch-step-card:nth-child(1) .launch-step-num {
  color: #10b981;
}

.launch-step-card:nth-child(2) .launch-step-num {
  color: #0ea5e9;
}

.launch-step-card:nth-child(3) .launch-step-num {
  color: #8b5cf6;
}

.launch-step-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.launch-step-card p {
  font-size: 0.94rem;
  color: var(--ink-secondary);
  line-height: 1.55;
  margin: 0;
}

/* Audience Grid (Who it fits) */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.audience-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}

.audience-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f0fdf4;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.audience-body h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.audience-body p {
  font-size: 0.9rem;
  color: var(--ink-secondary);
  line-height: 1.5;
  margin: 0;
}

/* Delivery & Couriers Features */
.logistics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.logistics-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.logistics-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.logistics-card p {
  font-size: 0.92rem;
  color: var(--ink-secondary);
  line-height: 1.55;
  margin: 0;
}

/* Floating Bottom Bar for Mobile Conversion */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 12px 16px;
  z-index: 99;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

.mobile-sticky-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.mobile-sticky-info {
  display: flex;
  flex-direction: column;
}

.mobile-sticky-title {
  font-weight: 800;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.2;
}

.mobile-sticky-sub {
  font-size: 11px;
  color: #10b981;
  font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .compare-container {
    grid-template-columns: 1fr;
  }

  .calc-grid {
    grid-template-columns: 1fr;
  }

  .launch-steps-grid {
    grid-template-columns: 1fr;
  }

  .logistics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-sticky-bar {
    display: block;
  }

  body {
    padding-bottom: 74px; /* Space for mobile sticky bar */
  }

  .calc-wrapper {
    padding: 24px;
  }

  .ads-machine-box {
    padding: 32px 20px;
  }

  .mockup-floater {
    display: none; /* Hide floaters on smaller screens to prevent overlap */
  }

  .delivery-body .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 12px;
  }

  .delivery-body .hero-ctas .btn,
  .delivery-body .demo-dropdown-wrap,
  .delivery-body .demo-dropdown-toggle {
    width: 100% !important;
    justify-content: center !important;
  }

  .delivery-body .demo-dropdown-menu {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
  }
}
