/* ============================================================
   TRIPKAWAN — LANDING PAGE STYLES
   Author: TripKawan Team
   Stack:  Pure CSS (no framework)
   Palette: Teal Blue #0EA5E9 | Sunset Orange #F97316 | White #FFFFFF
   Font:   Poppins (Google Fonts)
   ============================================================ */

/* ======================== CSS VARIABLES ======================== */
:root {
  /* Brand Colours */
  --teal:         #0EA5E9;
  --teal-dark:    #0284C7;
  --teal-darker:  #075985;
  --teal-light:   #E0F2FE;
  --orange:       #F97316;
  --orange-dark:  #EA580C;
  --orange-light: #FFF7ED;
  --purple:       #8B5CF6;
  --purple-light: #EDE9FE;
  --green:        #10B981;
  --green-light:  #D1FAE5;
  --red:          #EF4444;

  /* Neutrals */
  --white:        #FFFFFF;
  --off-white:    #F8FAFC;
  --gray-50:      #F1F5F9;
  --gray-100:     #E2E8F0;
  --gray-300:     #CBD5E1;
  --gray-400:     #94A3B8;
  --gray-500:     #64748B;
  --gray-700:     #334155;
  --dark:         #0F172A;

  /* Typography */
  --font:         'Poppins', sans-serif;
  --text-xs:      0.75rem;
  --text-sm:      0.875rem;
  --text-base:    1rem;
  --text-lg:      1.125rem;
  --text-xl:      1.25rem;
  --text-2xl:     1.5rem;
  --text-3xl:     1.875rem;
  --text-4xl:     2.25rem;
  --text-5xl:     3rem;
  --text-6xl:     3.75rem;

  /* Spacing */
  --sp-xs:   0.25rem;
  --sp-sm:   0.5rem;
  --sp-md:   1rem;
  --sp-lg:   1.5rem;
  --sp-xl:   2rem;
  --sp-2xl:  3rem;
  --sp-3xl:  4rem;
  --sp-4xl:  6rem;

  /* Radius */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg:  0 10px 40px rgba(0,0,0,0.10), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-xl:  0 20px 60px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.08);
  --shadow-teal: 0 8px 32px rgba(14,165,233,0.30);

  /* Transitions */
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Section spacing */
  --section-py: 5rem;
}

/* ======================== RESET & BASE ======================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* Skip to content — visually hidden, shown on focus */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-weight: 600;
  font-size: var(--text-sm);
  z-index: 9999;
  transition: top 0.2s ease;
  text-decoration: none;
}
.skip-to-content:focus {
  top: 0;
}

/* ======================== INLINE SVG ICONS ======================== */
.icon-svg {
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  display: inline-block;
  flex-shrink: 0;
}

/* Solution/How-it-works section icons */
.solution-icon-wrap .icon-svg,
.step-icon-wrap .icon-svg {
  width: 1.5em;
  height: 1.5em;
}

/* Form label icons */
.form-label-icon {
  width: 0.9em;
  height: 0.9em;
  margin-right: 0.3rem;
}

/* FAQ toggle icon */
.faq-icon {
  width: 0.75em;
  height: 0.75em;
  transition: transform var(--transition);
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

/* Spinner animation */
@keyframes icon-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.icon-spin {
  animation: icon-spin 1s linear infinite;
}

/* Hamburger icon */
.hamburger .icon-svg {
  width: 1.25em;
  height: 1.25em;
}

/* ======================== TYPOGRAPHY ======================== */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ======================== LAYOUT UTILITIES ======================== */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

.mt-sm { margin-top: var(--sp-sm); }

/* Gradient text utility */
.gradient-text {
  background: linear-gradient(135deg, var(--teal), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ======================== BUTTONS ======================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: var(--text-lg);
}

.btn-full {
  width: 100%;
}

/* Primary — teal gradient */
.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: var(--white);
  box-shadow: var(--shadow-teal);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal-darker));
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(14,165,233,0.40);
}
.btn-primary:active { transform: translateY(0); }

/* Outline — for hero secondary CTA */
.btn-outline {
  background: transparent;
  border-color: var(--teal);
  color: var(--teal);
}
.btn-outline:hover {
  background: var(--teal-light);
  transform: translateY(-2px);
}

/* White — on dark gradient sections */
.btn-white {
  background: var(--white);
  color: var(--teal-dark);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--teal-light);
  transform: translateY(-2px);
}

/* Outline white — on dark sections */
.btn-outline-white {
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

.btn-hint {
  font-size: var(--text-sm);
  opacity: 0.75;
  font-weight: 400;
}

/* ======================== SECTION HEADERS ======================== */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--sp-3xl);
}

.section-tag {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: var(--teal-light);
  color: var(--teal-dark);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--sp-md);
}

.section-title {
  font-size: var(--text-4xl);
  color: var(--dark);
  margin-bottom: var(--sp-md);
}

.section-title .highlight {
  color: var(--orange);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--gray-500);
  max-width: 520px;
  margin: 0 auto;
}

/* ======================== SCROLL REVEAL ANIMATION ======================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children when parent is revealed */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-stagger.visible > *:nth-child(1) { opacity:1; transform:none; transition-delay:0.0s; }
.reveal-stagger.visible > *:nth-child(2) { opacity:1; transform:none; transition-delay:0.1s; }
.reveal-stagger.visible > *:nth-child(3) { opacity:1; transform:none; transition-delay:0.2s; }
.reveal-stagger.visible > *:nth-child(4) { opacity:1; transform:none; transition-delay:0.3s; }

/* ======================== NAVBAR ======================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: 0.6rem 0;
}

.nav-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--sp-lg);
  display: flex;
  align-items: center;
  gap: var(--sp-xl);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--dark);
  white-space: nowrap;
}
.logo-icon { font-size: 1.5rem; }
.logo-text  { color: var(--teal-dark); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-xl);
  margin-left: auto;
}
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-700);
  transition: color var(--transition);
}
.nav-links a:hover, .nav-links .nav-cta-link { color: var(--teal); }

.nav-btn {
  margin-left: var(--sp-md);
  padding: 0.5rem 1.2rem;
  font-size: var(--text-sm);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--dark);
  margin-left: auto;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-lg) var(--sp-lg) var(--sp-xl);
  background: var(--white);
  border-top: 1px solid var(--gray-100);
}
.mobile-menu.open { display: flex; }
.mobile-link {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--gray-700);
}
.mobile-cta { width: 100%; justify-content: center; }

/* ======================== HERO ======================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--teal-darker) 0%, var(--teal-dark) 40%, #0369A1 100%);
  position: relative;
  overflow: hidden;
  padding: 8rem 0 5rem;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--sp-3xl);
  position: relative;
  z-index: 2;
}

/* Floating decorative elements */
.hero-floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.float-el {
  position: absolute;
  font-size: 2.5rem;
  opacity: 0.15;
  animation: floatAnim 6s ease-in-out infinite;
  user-select: none;
}
.float-1  { top: 10%; left: 5%;  animation-delay: 0s;   font-size: 3rem; }
.float-2  { top: 20%; right: 8%; animation-delay: 1.5s; font-size: 2.8rem; }
.float-3  { top: 55%; left: 3%;  animation-delay: 0.8s; font-size: 2rem; }
.float-4  { top: 65%; right: 5%; animation-delay: 2.2s; font-size: 2.4rem; }
.float-5  { bottom: 20%; left: 12%; animation-delay: 1s; font-size: 2.2rem; }
.float-6  { bottom: 15%; right: 15%; animation-delay: 3s; font-size: 2.6rem; }

@keyframes floatAnim {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50%       { transform: translateY(-20px) rotate(5deg); }
}

/* Hero text */
.hero-content { color: var(--white); }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--sp-lg);
  backdrop-filter: blur(8px);
}
.badge-dot {
  width: 8px;
  height: 8px;
  background: #4ADE80;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(1.4); }
}

.hero-title {
  font-size: var(--text-5xl);
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--sp-lg);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.hero-title .gradient-text {
  background: linear-gradient(90deg, #FCD34D, #F97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--sp-2xl);
  max-width: 480px;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md);
  margin-bottom: var(--sp-xl);
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}
.proof-avatars {
  display: flex;
  font-size: 1.5rem;
}
.proof-avatar { margin-left: -8px; }
.proof-avatar:first-child { margin-left: 0; }
.proof-text {
  color: rgba(255,255,255,0.85);
  font-size: var(--text-sm);
}

/* Hero mock app card */
.hero-visual {
  perspective: 1000px;
}
.mock-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transform: rotateY(-5deg) rotateX(3deg);
  transition: transform var(--transition-slow);
  animation: heroCardFloat 5s ease-in-out infinite;
}
.mock-card:hover {
  transform: rotateY(0) rotateX(0);
}
@keyframes heroCardFloat {
  0%, 100% { transform: rotateY(-5deg) rotateX(3deg) translateY(0); }
  50%       { transform: rotateY(-5deg) rotateX(3deg) translateY(-10px); }
}

.mock-card-header {
  background: var(--gray-50);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid var(--gray-100);
}
.mock-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.mock-dot.red    { background: #FF5F56; }
.mock-dot.yellow { background: #FFBD2E; }
.mock-dot.green  { background: #27C93F; }
.mock-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-700);
  margin-left: 0.5rem;
}

.mock-card-body { padding: 1rem; }

.mock-itinerary { margin-bottom: 1rem; }
.mock-day {
  margin-bottom: 0.75rem;
}
.mock-day-label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.35rem;
}
.mock-activity {
  background: var(--teal-light);
  color: var(--teal-darker);
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.mock-expense-bar {
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  border: 1px solid var(--gray-100);
}
.mock-expense-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}
.mock-expense-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--gray-500);
  margin-bottom: 0.25rem;
}
.mock-amount { font-weight: 600; color: var(--dark); }
.mock-settle-btn {
  margin-top: 0.5rem;
  text-align: center;
  background: var(--green-light);
  color: var(--green);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 0.4rem;
  border-radius: var(--radius-sm);
}

/* ======================== PROBLEM ======================== */
.problem {
  padding: var(--section-py) 0;
  background: var(--off-white);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-lg);
}

.problem-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--sp-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: transform var(--transition), box-shadow var(--transition);
}
.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.problem-icon {
  font-size: 2.5rem;
  margin-bottom: var(--sp-md);
}
.problem-card h3 {
  font-size: var(--text-xl);
  color: var(--dark);
  margin-bottom: var(--sp-sm);
}
.problem-card p {
  color: var(--gray-500);
  font-size: var(--text-base);
}

/* ======================== SOLUTION ======================== */
.solution {
  padding: var(--section-py) 0;
  background: var(--white);
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-lg);
}

.solution-card {
  text-align: center;
  padding: var(--sp-xl) var(--sp-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.solution-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.solution-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto var(--sp-lg);
}
.solution-icon-wrap.teal   { background: var(--teal-light); color: var(--teal-dark); }
.solution-icon-wrap.orange { background: var(--orange-light); color: var(--orange-dark); }
.solution-icon-wrap.purple { background: var(--purple-light); color: var(--purple); }
.solution-icon-wrap.green  { background: var(--green-light); color: var(--green); }

.solution-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--sp-sm);
  color: var(--dark);
}
.solution-card p {
  font-size: var(--text-sm);
  color: var(--gray-500);
  line-height: 1.6;
}

/* ======================== HOW IT WORKS ======================== */
.how-it-works {
  padding: var(--section-py) 0;
  background: var(--gray-50);
}

.steps-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--sp-lg);
}

.step {
  flex: 1;
  max-width: 280px;
  text-align: center;
  padding: var(--sp-xl);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.step-number {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: var(--white);
  font-size: var(--text-sm);
  font-weight: 800;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-teal);
}

.step-icon-wrap {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--teal-light), #BAE6FD);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--teal-dark);
  margin: var(--sp-md) auto var(--sp-lg);
}

.step h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--sp-sm);
  color: var(--dark);
}
.step p {
  font-size: var(--text-sm);
  color: var(--gray-500);
}

.step-connector {
  color: var(--teal);
  font-size: 1.4rem;
  margin-top: 4rem;
  opacity: 0.5;
}

/* ======================== FEEDBACK FORM ======================== */
.feedback-section {
  padding: var(--section-py) 0;
  background: linear-gradient(160deg, var(--off-white) 0%, var(--teal-light) 100%);
}

.form-card {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--sp-3xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-100);
}

.form-group {
  margin-bottom: var(--sp-xl);
}

.form-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.75rem;
  cursor: pointer;
}
.form-label-icon { color: var(--teal); margin-top: 2px; flex-shrink: 0; }
.optional { font-weight: 400; color: var(--gray-400); font-size: var(--text-sm); }

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: var(--text-base);
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: vertical;
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(14,165,233,0.12);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-400);
}

/* Radio & Checkbox card groups */
.radio-group,
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.feature-radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.radio-card,
.checkbox-card {
  cursor: pointer;
}

.radio-card input[type="radio"],
.checkbox-card input[type="checkbox"] {
  display: none; /* hidden — we style the label */
}

.radio-body,
.checkbox-body {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-700);
  background: var(--white);
  transition: all var(--transition);
  user-select: none;
}
.radio-body:hover,
.checkbox-body:hover {
  border-color: var(--teal);
  background: var(--teal-light);
}

/* Selected state via JS — adds .selected class to the card */
.radio-card.selected .radio-body,
.checkbox-card.selected .checkbox-body {
  border-color: var(--teal);
  background: var(--teal-light);
  color: var(--teal-dark);
}

/* Selected state via :has() for supported browsers (progressive enhancement) */
.radio-card:has(input:checked) .radio-body,
.checkbox-card:has(input:checked) .checkbox-body {
  border-color: var(--teal);
  background: var(--teal-light);
  color: var(--teal-dark);
}

.radio-emoji { font-size: 1.2rem; }

/* Submit button inside form */
#submit-btn {
  margin-top: var(--sp-sm);
  font-size: var(--text-lg);
  padding: 1rem 2rem;
}

/* Error */
.form-error {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--sp-md);
  padding: 0.75rem 1rem;
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  border-radius: var(--radius-md);
  color: var(--red);
  font-size: var(--text-sm);
}

/* Success panel */
.form-success {
  text-align: center;
  padding: var(--sp-2xl);
}
.success-icon {
  font-size: 4rem;
  margin-bottom: var(--sp-lg);
  animation: bounceIn 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
@keyframes bounceIn {
  0%  { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.15); opacity: 1; }
  100%{ transform: scale(1); }
}
.form-success h3 {
  font-size: var(--text-2xl);
  color: var(--dark);
  margin-bottom: var(--sp-md);
}
.form-success p {
  color: var(--gray-500);
  margin-bottom: var(--sp-xl);
}
.success-share { margin-top: var(--sp-xl); }
.success-share-text {
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin-bottom: var(--sp-md);
}

/* ======================== SHARE BUTTONS ======================== */
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-sm);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: all var(--transition);
  color: var(--white);
}
.share-btn:hover { opacity: 0.9; transform: translateY(-2px); }
.share-btn.whatsapp  { background: #25D366; }
.share-btn.facebook  { background: #1877F2; }
.share-btn.twitter   { background: #000000; }

/* ======================== FINAL CTA ======================== */
.final-cta {
  padding: var(--section-py) 0;
  background: linear-gradient(160deg, var(--teal-darker) 0%, var(--teal-dark) 50%, #0369A1 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-bg-blobs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.cta-blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
  background: var(--white);
  animation: blobMove 8s ease-in-out infinite alternate;
}
.blob-1 { width: 400px; height: 400px; top: -100px; left: -100px; }
.blob-2 { width: 300px; height: 300px; bottom: -80px; right: -80px; animation-delay: 2s; }
@keyframes blobMove {
  0%   { transform: scale(1) translate(0,0); }
  100% { transform: scale(1.2) translate(20px, 10px); }
}

.cta-content { position: relative; z-index: 2; }

.cta-title {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--sp-lg);
}
.cta-subtitle {
  font-size: var(--text-xl);
  color: rgba(255,255,255,0.85);
  max-width: 500px;
  margin: 0 auto var(--sp-2xl);
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-md);
  margin-bottom: var(--sp-2xl);
}

.cta-share {
  margin-top: var(--sp-xl);
}
.cta-share-label {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--sp-md);
}

/* ======================== FOOTER ======================== */
.footer {
  background: var(--dark);
  padding: var(--sp-2xl) 0;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-md);
}

.footer-logo { color: var(--white); }
.footer-logo .logo-text { color: var(--teal); }

.footer-tagline {
  color: var(--gray-400);
  font-size: var(--text-sm);
}

.footer-copy {
  color: var(--gray-500);
  font-size: var(--text-xs);
  line-height: 1.8;
}
.footer-copy a {
  color: var(--teal);
  transition: color var(--transition);
}
.footer-copy a:hover { color: var(--teal-light); }

/* ======================== STICKY CTA ======================== */
.sticky-cta {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 900;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition), transform var(--transition);
  pointer-events: none;
}
.sticky-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.sticky-cta-btn {
  box-shadow: 0 8px 32px rgba(14,165,233,0.45);
  font-size: var(--text-sm);
  padding: 0.7rem 1.4rem;
}

/* ======================== EXIT INTENT POPUP ======================== */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-lg);
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.popup-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--sp-2xl) var(--sp-2xl);
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-xl);
  position: relative;
  animation: slideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--gray-100);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gray-500);
  font-size: 0.85rem;
  transition: background var(--transition);
}
.popup-close:hover { background: var(--gray-300); }

.popup-emoji { font-size: 3.5rem; margin-bottom: var(--sp-md); }
.popup-title {
  font-size: var(--text-2xl);
  color: var(--dark);
  margin-bottom: var(--sp-sm);
}
.popup-text {
  color: var(--gray-500);
  margin-bottom: var(--sp-xl);
}

.popup-email-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-sm);
}
.popup-email-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: var(--text-base);
  color: var(--dark);
  outline: none;
  transition: border-color var(--transition);
}
.popup-email-input:focus { border-color: var(--primary); }
.popup-submit-btn { width: 100%; }
.popup-success-msg {
  font-size: var(--text-base);
  color: var(--success, #10B981);
  font-weight: 600;
  text-align: center;
  padding: var(--sp-sm) 0;
  margin-bottom: var(--sp-sm);
}
.popup-no {
  display: block;
  margin-top: var(--sp-md);
  background: none;
  border: none;
  color: var(--gray-400);
  font-size: var(--text-sm);
  cursor: pointer;
  font-family: var(--font);
  text-decoration: underline;
  transition: color var(--transition);
}
.popup-no:hover { color: var(--gray-700); }

/* ======================== FAQ SECTION ======================== */
.faq-section {
  padding: var(--section-py) 0;
  background: var(--off-white);
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.faq-item {
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow var(--transition);
}
.faq-item:hover {
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  padding: var(--sp-lg);
  background: none;
  border: none;
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  text-align: left;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--gray-50); }

.faq-icon {
  color: var(--teal);
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 var(--sp-lg);
}
.faq-item.open .faq-answer {
  max-height: 200px;
  padding: 0 var(--sp-lg) var(--sp-lg);
}

.faq-answer p {
  color: var(--gray-500);
  font-size: var(--text-base);
  line-height: 1.7;
  border-top: 1px solid var(--gray-100);
  padding-top: var(--sp-md);
}

/* ======================== RESPONSIVE ======================== */

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
  .solution-grid { grid-template-columns: repeat(2, 1fr); }
  .hero .container { gap: var(--sp-2xl); }
  .hero-title { font-size: var(--text-4xl); }
}

/* Tablet portrait (≤ 768px) */
@media (max-width: 768px) {
  :root { --section-py: 3.5rem; }

  /* Nav */
  .nav-links, .nav-btn { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content { order: 1; }
  .hero-visual  { order: 2; display: none; } /* Hide mock card on mobile */
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-social-proof { justify-content: center; }
  .hero-title { font-size: var(--text-4xl); }

  /* Problem */
  .problem-grid { grid-template-columns: 1fr; }

  /* Solution */
  .solution-grid { grid-template-columns: 1fr 1fr; }

  /* How it works */
  .steps-wrapper {
    flex-direction: column;
    align-items: center;
  }
  .step { max-width: 100%; width: 100%; }
  .step-connector { transform: rotate(90deg); margin: 0; }

  /* Feature radio grid */
  .feature-radio-group { grid-template-columns: 1fr 1fr; }

  /* Form card */
  .form-card { padding: var(--sp-xl); }

  /* CTA */
  .cta-title { font-size: var(--text-3xl); }
}

/* Mobile (≤ 480px) */
@media (max-width: 480px) {
  .hero-title { font-size: var(--text-3xl); }
  .section-title { font-size: var(--text-3xl); }
  .cta-title { font-size: var(--text-2xl); }
  .solution-grid { grid-template-columns: 1fr; }
  .feature-radio-group { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: center; }
  .btn-lg { font-size: var(--text-base); padding: 0.75rem 1.5rem; }
  .share-buttons { flex-direction: column; align-items: center; }
  .cta-buttons { flex-direction: column; align-items: center; }
}

/* ======================== COOKIE CONSENT BANNER ======================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3000;
  background: var(--dark);
  color: var(--white);
  padding: var(--sp-lg) var(--sp-xl);
  display: none;
  align-items: center;
  justify-content: center;
  gap: var(--sp-lg);
  font-family: var(--font);
  font-size: var(--text-sm);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.cookie-banner.visible { display: flex; }
.cookie-banner p { margin: 0; max-width: 600px; line-height: 1.5; color: var(--gray-300); }
.cookie-banner a { color: var(--teal); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: var(--sp-sm); flex-shrink: 0; }
.cookie-btn {
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}
.cookie-btn-accept {
  background: var(--teal);
  color: var(--white);
}
.cookie-btn-accept:hover { background: var(--teal-dark); }
.cookie-btn-decline {
  background: transparent;
  color: var(--gray-300);
  border: 1px solid var(--gray-500);
}
.cookie-btn-decline:hover { background: rgba(255,255,255,0.1); }

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: var(--sp-lg);
  }
}
