/*==================================================================================
    Pocket Expenses / Pocket Apps Hub - Custom Theme Stylesheet
    Matching the design system from ss-mobile-app (Figma Style Guide Tokens)
    - Deep Plum: #42224A
    - Dark Velvet: #120216
    - Vibrant Coral: #D4552A
    - Mauve Purple: #8F659A
    - Surface Canvas: #F7F4F7 / #FFFFFF
====================================================================================*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
  /* Brand Tokens matching ss-mobile-app */
  --bg-color: #F7F4F7;
  --surface-card: #FFFFFF;
  --primary-deep: #42224A;
  --primary-dark: #120216;
  --primary-gradient: linear-gradient(135deg, #42224A 0%, #25102C 100%);
  --accent-mauve: #8F659A;
  --accent-mauve-soft: #F3EDF5;
  --accent-coral: #D4552A;
  --accent-coral-hover: #BF4820;
  --accent-coral-soft: #FAECE7;
  --text-main: #120216;
  --text-muted: #6E6875;
  --text-light: #9B94A3;
  --border-subtle: #EDE8EF;
  --border-card: rgba(66, 34, 74, 0.08);
  --success-color: #2ECC71;
  --warning-color: #F39C12;

  /* Typography */
  --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Elevation Shadows */
  --shadow-sm: 0 4px 12px rgba(66, 34, 74, 0.04);
  --shadow-card: 0 10px 30px rgba(66, 34, 74, 0.07);
  --shadow-hover: 0 18px 45px rgba(66, 34, 74, 0.13);
  --shadow-coral: 0 8px 24px rgba(212, 85, 42, 0.35);
  --shadow-phone: 0 25px 60px -10px rgba(66, 34, 74, 0.28);

  /* Radii */
  --radius-xs: 8px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 26px;
  --radius-xl: 34px;
  --radius-pill: 999px;
}

/* Base Overrides */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main) !important;
  background-color: var(--bg-color) !important;
  color: var(--text-main) !important;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main) !important;
  color: var(--primary-deep);
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  font-family: var(--font-main) !important;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* Header & Navigation */
.header-glass {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(247, 244, 247, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
  padding: 14px 0;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  object-fit: cover;
  transition: transform 0.2s ease;
}

.brand-wrapper:hover .brand-icon {
  transform: scale(1.05);
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-deep);
  margin: 0;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent-mauve);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link-item {
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none !important;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link-item:hover {
  color: var(--accent-coral);
}

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-deep);
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  text-decoration: none !important;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.nav-cta-btn:hover {
  background: var(--accent-coral);
  box-shadow: var(--shadow-coral);
  transform: translateY(-2px);
  color: #FFFFFF !important;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding-top: 140px;
  padding-bottom: 90px;
  overflow: hidden;
  background: radial-gradient(circle at 10% 20%, rgba(143, 101, 154, 0.12) 0%, transparent 40%),
              radial-gradient(circle at 90% 40%, rgba(212, 85, 42, 0.10) 0%, transparent 45%);
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: var(--accent-mauve-soft);
  color: var(--primary-deep);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(143, 101, 154, 0.2);
  margin-bottom: 22px;
}

.pill-badge-coral {
  background: var(--accent-coral-soft);
  color: var(--accent-coral);
  border-color: rgba(212, 85, 42, 0.25);
}

.free-highlight-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent-coral) 0%, #FF7F50 100%);
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 1rem;
  box-shadow: var(--shadow-coral);
  margin-bottom: 20px;
  animation: pulseShadow 2s infinite;
}

.free-highlight-banner strong {
  font-weight: 700;
}

.free-highlight-banner i {
  font-size: 1.2rem;
}

@keyframes pulseShadow {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 85, 42, 0.4);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(212, 85, 42, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(212, 85, 42, 0);
  }
}

.hero-heading {
  font-size: 3.4rem;
  line-height: 1.15;
  font-weight: 800;
  color: var(--primary-deep);
  margin-bottom: 20px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-coral) 0%, #FF7F50 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtext {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 580px;
}

/* Store Download Buttons */
.store-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  text-decoration: none !important;
  transition: all 0.25s ease;
  font-family: var(--font-main);
}

.store-btn-primary {
  background: var(--primary-gradient);
  color: #FFFFFF !important;
  box-shadow: 0 10px 25px rgba(66, 34, 74, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.store-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(66, 34, 74, 0.35);
  background: linear-gradient(135deg, #532b5e 0%, #2d1436 100%);
}

.store-btn-coral {
  background: linear-gradient(135deg, var(--accent-coral) 0%, #E85D36 100%);
  color: #FFFFFF !important;
  box-shadow: var(--shadow-coral);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.store-btn-coral:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(212, 85, 42, 0.5);
  background: linear-gradient(135deg, #C04921 0%, #D8542F 100%);
}

.store-btn-icon {
  font-size: 1.9rem;
  line-height: 1;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.store-btn-small {
  font-size: 0.72rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.1;
}

.store-btn-big {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}

/* Trust Badges / Social Proof */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid var(--border-subtle);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
}

.trust-item i {
  color: var(--accent-coral);
  font-size: 1rem;
}

/* Realistic Phone Mockup Frame */
.hero-phone-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}

.phone-mockup {
  position: relative;
  width: 320px;
  height: 650px;
  background: #0D0410;
  border-radius: 52px;
  border: 11px solid #28162E;
  box-shadow: var(--shadow-phone), inset 0 0 0 2px rgba(255, 255, 255, 0.15);
  overflow: hidden;
  z-index: 2;
  transition: transform 0.4s ease;
}

.phone-mockup:hover {
  transform: translateY(-6px) scale(1.01);
}

.dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 25px;
  background: #000000;
  border-radius: 20px;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Floating Feature Badges */
.floating-chip {
  position: absolute;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  box-shadow: 0 12px 30px rgba(66, 34, 74, 0.14);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 4;
  animation: floatUpDown 4s ease-in-out infinite;
}

.floating-chip-1 {
  top: 15%;
  left: -20px;
  animation-delay: 0s;
}

.floating-chip-2 {
  bottom: 20%;
  right: -25px;
  animation-delay: 2s;
}

.chip-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.chip-icon-coral {
  background: var(--accent-coral-soft);
  color: var(--accent-coral);
}

.chip-icon-mauve {
  background: var(--accent-mauve-soft);
  color: var(--accent-mauve);
}

.chip-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-deep);
  margin: 0;
  line-height: 1.2;
}

.chip-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin: 0;
}

@keyframes floatUpDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Section Header Utility */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 55px auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-coral);
  background: var(--accent-coral-soft);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.section-title {
  font-size: 2.5rem;
  line-height: 1.22;
  margin-bottom: 16px;
}

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

/* Features Section */
.features-section {
  padding: 90px 0;
  background: #FFFFFF;
  position: relative;
}

.feature-card {
  background: var(--bg-color);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  height: 100%;
  border: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-hover);
  background: #FFFFFF;
  border-color: rgba(66, 34, 74, 0.15);
}

.feature-icon-wrapper {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  margin-bottom: 22px;
  transition: transform 0.25s ease;
}

.feature-card:hover .feature-icon-wrapper {
  transform: scale(1.1);
}

.icon-plum {
  background: var(--primary-deep);
  color: #FFFFFF;
}

.icon-coral {
  background: var(--accent-coral-soft);
  color: var(--accent-coral);
}

.icon-mauve {
  background: var(--accent-mauve-soft);
  color: var(--accent-mauve);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary-deep);
}

.feature-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Screenshots Showcase Section */
.screenshots-section {
  padding: 100px 0;
  background: var(--bg-color);
  position: relative;
}

.showcase-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 45px;
  list-style: none;
  padding: 0;
}

.showcase-tab-btn {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.showcase-tab-btn:hover {
  color: var(--accent-coral);
  border-color: rgba(212, 85, 42, 0.3);
}

.showcase-tab-btn.active {
  background: var(--primary-deep);
  color: #FFFFFF;
  border-color: var(--primary-deep);
  box-shadow: 0 6px 18px rgba(66, 34, 74, 0.22);
}

.showcase-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  padding: 48px;
  overflow: hidden;
}

.showcase-phone-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.showcase-phone {
  width: 285px;
  height: 590px;
  background: #000;
  border-radius: 46px;
  border: 9px solid #28162E;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
}

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

.showcase-content {
  padding-left: 20px;
}

.showcase-badge {
  display: inline-block;
  background: var(--accent-coral-soft);
  color: var(--accent-coral);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.showcase-headline {
  font-size: 2.1rem;
  line-height: 1.25;
  margin-bottom: 16px;
}

.showcase-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.showcase-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.showcase-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.98rem;
  color: var(--text-main);
  font-weight: 500;
}

.showcase-feature-list li i {
  color: var(--accent-coral);
  margin-top: 4px;
  font-size: 1.05rem;
}

/* Comparison / Why Us Section */
.why-us-section {
  padding: 90px 0;
  background: #FFFFFF;
}

.comparison-box {
  border-radius: var(--radius-lg);
  padding: 38px 30px;
  height: 100%;
}

.comparison-box-traditional {
  background: var(--bg-color);
  border: 1px dashed #D2CAD5;
}

.comparison-box-pocket {
  background: linear-gradient(145deg, #42224A 0%, #241129 100%);
  color: #FFFFFF;
  box-shadow: 0 16px 40px rgba(66, 34, 74, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.comparison-box-pocket h3,
.comparison-box-pocket .comparison-item {
  color: #FFFFFF;
}

.comparison-box-pocket p {
  color: rgba(255, 255, 255, 0.8);
}

.comparison-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.96rem;
  font-weight: 500;
}

.comparison-item i.fa-check-circle {
  color: var(--accent-coral);
  font-size: 1.2rem;
  margin-top: 2px;
}

.comparison-item i.fa-times-circle {
  color: #A49EA8;
  font-size: 1.2rem;
  margin-top: 2px;
}

/* Steps / How It Works */
.steps-section {
  padding: 90px 0;
  background: var(--bg-color);
}

.step-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  position: relative;
  height: 100%;
  transition: all 0.3s ease;
}

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

.step-number {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 2.8rem;
  font-weight: 800;
  color: rgba(66, 34, 74, 0.08);
  line-height: 1;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-coral-soft);
  color: var(--accent-coral);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

/* FAQ Accordion Section */
.faq-section {
  padding: 90px 0;
  background: #FFFFFF;
}

.faq-item {
  background: var(--bg-color);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: all 0.25s ease;
}

.faq-header {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-deep);
  margin: 0;
}

.faq-toggle-icon {
  font-size: 1.1rem;
  color: var(--accent-coral);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(180deg);
}

.faq-body {
  padding: 0 24px 20px 24px;
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.65;
  display: none;
}

.faq-item.active .faq-body {
  display: block;
}

/* CTA Banner */
.cta-banner-section {
  padding: 80px 0 100px 0;
  background: var(--bg-color);
}

.cta-banner-card {
  background: linear-gradient(135deg, #42224A 0%, #26102D 100%);
  border-radius: var(--radius-xl);
  padding: 60px 48px;
  color: #FFFFFF;
  box-shadow: 0 24px 60px rgba(66, 34, 74, 0.3);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-banner-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(212, 85, 42, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-title {
  color: #FFFFFF;
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.cta-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  line-height: 1.65;
  margin-bottom: 34px;
  max-width: 620px;
}

/* Footer */
.modern-footer {
  background: #120216;
  color: #EDE8EF;
  padding: 70px 0 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand-title {
  color: #FFFFFF;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-desc {
  color: #9B94A3;
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 24px;
}

.footer-heading {
  color: #FFFFFF;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-list li {
  margin-bottom: 10px;
}

.footer-links-list a {
  color: #9B94A3;
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.footer-links-list a:hover {
  color: var(--accent-coral);
}

.footer-bottom-bar {
  margin-top: 50px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
  color: #7A7282;
}

.footer-bottom-bar a {
  color: #7A7282;
  text-decoration: none;
}

.footer-bottom-bar a:hover {
  color: #EDE8EF;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent-coral);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-coral);
  z-index: 999;
  text-decoration: none !important;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--accent-coral-hover);
  color: #FFFFFF;
  transform: translateY(-3px);
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
  .hero-heading {
    font-size: 2.6rem;
  }
  .hero-phone-container {
    margin-top: 40px;
  }
  .showcase-content {
    padding-left: 0;
    margin-top: 40px;
  }
  .cta-banner-card {
    padding: 40px 28px;
  }
  .cta-title {
    font-size: 2.2rem;
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 576px) {
  .hero-heading {
    font-size: 2.1rem;
  }
  .section-title {
    font-size: 1.95rem;
  }
  .store-btn-group {
    flex-direction: column;
  }
  .store-btn {
    width: 100%;
    justify-content: center;
  }
  .phone-mockup {
    width: 290px;
    height: 590px;
  }
  .floating-chip {
    display: none; /* Hide floating chips on narrow mobile screens to avoid overlap */
  }
  .showcase-card {
    padding: 24px 18px;
  }
  .showcase-phone {
    width: 250px;
    height: 515px;
  }
}
