:root {
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-500: #64748b;
  --border: #e5e7eb;
}

* { box-sizing: border-box; }

h2, h3, h4 { margin: 0; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--slate-900);
  background: white;
  overflow-x: hidden;
  position: relative;
}

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

/* ================= HEADER ================= */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--emerald-600);
}

nav { display: none; }

nav a {
  margin-left: 24px;
  font-weight: 500;
}

nav a:hover { color: var(--emerald-600); }

.menu-btn {
  font-size: 22px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: white;
  border-bottom: 1px solid var(--border);
}

.mobile-nav a {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}

/* ================= HERO ================= */

.hero {
  background:
    radial-gradient(1000px 500px at 80% -20%, rgba(255,255,255,0.25), transparent 40%),
    linear-gradient(135deg, var(--emerald-700), var(--emerald-400));
}

.hero-inner {
  max-width: 1200px;
  margin: auto;
  padding: 88px 24px 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
  color: white;
  overflow: hidden;
}

.cta {
  overflow: hidden;
}

.hero h2 {
  font-size: clamp(52px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero p {
  max-width: 560px;
  font-size: 20px;
  color: #ecfdf5;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.btn {
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn.primary {
  background: white;
  color: var(--emerald-700);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px rgba(0,0,0,0.4);
  cursor: pointer;
  
}

.btn.secondary {
  border: 1px solid rgba(255,255,255,0.4);
  color: white;
}

/* ================= STACK ================= */

.phone-stack-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.phone-stack {
  position: relative;
  width: 400px;
  height: 350px;
  margin: auto;
  overflow-y: visible;
}

.phone.left-2x {
  left: 10%;
  top: 60px;
  transform: translateX(-30px) rotate(-12deg);
  z-index: 1;
}

.phone.right-2x {
  left: 40%;
  top: 60px;
  transform: translateX(40px) rotate(12deg);
  z-index: 1;
}

#phone-stack-user {
  display: flex;
}

#phone-stack-business {
  display: none;
}
/* ================= PHONE BASE ================= */

.phone {
  position: absolute;
  background: #0f172a;
  border-radius: 42px;
  padding: 8px;
  box-shadow: 0 10px 20px -5px rgba(0,0,0,0.55);
  transition: transform 0.3s ease;
}

@media screen and (min-width: 767px) {
  .phone-stack {
    height: 500px;
  }

  .phone {
    box-shadow: 0 20px 100px -10px rgba(0,0,0,0.55);
  }

  .phone.left-2x {
  left: 10%;
  top: 60px;
  transform: translateX(-30px) rotate(-12deg);
  z-index: 1;
}

.phone.right-2x {
  left: 40%;
  top: 60px;
  transform: translateX(40px) rotate(12deg);
  z-index: 1;
}
}

.phone-small {
  width: 140px;
  height: 280px;
}

.phone-large {
  width: 210px;
  height: 420px;
}

/* ================= POSITIONING ================= */

.phone.center {
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  z-index: 3;
}

.phone.left {
  left: 40%;
  top: 60px;
  transform: translateX(-170px) rotate(-12deg);
  z-index: 1;
}

.phone.right {
  left: 30%;
  top: 60px;
  transform: translateX(170px) rotate(12deg);
  z-index: 1;
}

/* ================= SCREEN ================= */

.screen {
  background: white;
  border-radius: 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  overflow: hidden;
}


/* ================= FEATURES ================= */

section {
  padding: 72px 0;
}

.section-inner {
  max-width: 1200px;
  margin: auto;
  padding: 0 24px;
}

.section-title {
  max-width: 720px;
  margin-bottom: 24px;
}

.section-title h3 {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.section-title p {
  color: var(--slate-500);
  font-size: 18px;
}

.hero-toggle,
.feature-toggle,
.how-toggle {
  display: flex;
  width: 100%;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background-color: #10b981;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.feature-icon i {
  color: #ffffff;
  font-size: 22px;
}


.features-wrapper {
  position: relative;
}

.features-wrapper::before,
.features-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  pointer-events: none;
  z-index: 2;
}

.features-wrapper::before {
  left: 0;
  background: linear-gradient(
    to right,
    white 0%,
    rgba(255,255,255,0) 100%
  );
}

.features-wrapper::after {
  right: 0;
  background: linear-gradient(
    to left,
    white 0%,
    rgba(255,255,255,0) 100%
  );
}


.features {
  gap: 16px;
  overflow-x: auto;
  padding: 0 24px 16px;
  overflow-y: hidden;
  
}

.features-user {
    display: flex;
}

.features-business {
    display: none;
}

.features::-webkit-scrollbar { display: none; }

/* Hide scrollbars everywhere */
.features {
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE/Edge */
}

.features::-webkit-scrollbar {
  display: none;                /* Chrome/Safari */
}

.feature-btns {
    display: none;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.feature-btns i {
  color: white;
  cursor: pointer;
  background-color: #10b981;
  padding: 0.5rem;
  border-radius: 50%;
  transition: color 0.2s ease, transform 0.3s ease;
}

.feature-btns i:hover {
  color: var(--emerald-400);
  transform: scale(1.1);
}

@media screen and (min-width: 768px) {
  .feature-btns {
    display: flex;
  }
}

.feature-card {
  flex: 0 0 320px;
  height: 380px;
  background: #ffffff;
  border-radius: 26px;
  padding: 32px;
  border: 1px solid rgba(16,185,129,0.2);
  box-shadow: 0 5px 12px -3px rgba(15,23,42,0.18);
  scroll-snap-align: start;
  transition: transform .2s ease, box-shadow .2s ease;
  cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.feature-card:hover {
  transform: scale(1.05);
  box-shadow: 0 24px 48px -12px rgba(15,23,42,0.25);
}

.feature-card h4 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
  text-align: center;
  color: var(--emerald-700);
}

.feature-card p {
  color: var(--slate-500);
  font-size: 16px;
  text-align: center;
}

/* ================= HOW IT WORKS ================= */

#how {
  background: #f8fafc;
}

.how-steps {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}

.how-step {
  background: white;
  border-radius: 24px;
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px -8px rgba(15,23,42,0.12);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--emerald-600);
  color: white;
  font-weight: 800;
  margin-bottom: 16px;
}

.how-step h4 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--slate-900);
}

.how-step p {
  color: var(--slate-500);
  font-size: 16px;
}

/* Desktop layout */
@media (min-width: 768px) {
  .how-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

/* ================= HOW TOGGLE ================= */

.how-toggle {
  display: flex;
  gap: 12px;
  margin: 32px 0 24px;
  flex-wrap: wrap;
}
.pill-normal {
  padding: 10px 18px;
  border-radius: 999px;
  border: 2px solid var(--emerald-600);
  background: white;
  color: var(--emerald-600);
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}

.pill-normal.active {
  background: var(--emerald-600);
  color: white;
  border-color: var(--emerald-600);
  box-shadow: 0 8px 20px -6px rgba(5,150,105,0.6);
}

.pill-normal:not(.active):hover {
  background: #f0fdf4;
  border-color: var(--emerald-500);
}

.pill-invert {
  padding: 10px 18px;
  border-radius: 999px;
  border: 2px solid white;
  background: var(--emerald-600);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}

.pill-invert.active {
  background: white;
  color: var(--emerald-600);
  border-color: white;
  box-shadow: 0 8px 20px -6px rgba(255,255,255,0.6);
}

.pill-invert:not(.active):hover {
  background: var(--emerald-500);
  border-color: #f0fdf4;
}

.slides {
  display: flex;;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.slide {
  width: 12px;
  height: 12px;
  background: rgba(255,255,255);
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s ease;
}
/* ================= HOW CONTENT ================= */

.how-content {
  position: relative;
}

.how-steps {
  display: none;
  gap: 24px;
  margin-top: 24px;
}

.how-steps.active {
  display: grid;
}

/* Desktop */
@media (min-width: 768px) {
  .how-steps.active {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

/* ================= SCROLL REVEAL ================= */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ================= CTA ================= */

.cta {
  background: linear-gradient(180deg, #ecfdf5, #d1fae5);
  padding: 96px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.cta-btn {
  display: flex;
  justify-content: center;
  font-size: 1.2rem;
  width: 100%;;
}

.cta-inner {
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.cta h3 {
  font-size: 40px;
  font-weight: 900;
  color: var(--emerald-700);
}

.cta p {
  max-width: 560px;
  margin: 16px auto 32px;
  font-size: 18px;
  color: var(--slate-700);
}

@media screen and (min-width: 830px) {
.cta {
  background: linear-gradient(180deg, #ecfdf5, #d1fae5);
  padding: 96px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
}
  
}
/* ================= FOOTER ================= */

footer {
  background: #f8fafc;
}

.footer-inner {
  max-width: 1200px;
  margin: auto;
  padding: 32px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--slate-500);
}

.footer-links a {
  margin-left: 20px;
  font-size: 14px;
}

.footer__text {
    font-family: "Pacifico", cursive;
    font-weight: 600;
    font-style: normal;
    font-size: 1.2rem;
    color: #10b981;
    text-align: center;
}

.footer-links a:hover {
  color: var(--emerald-600);
}

/* ================= DESKTOP ================= */

@media (min-width: 768px) {
  nav { display: block; }
  .menu-btn { display: none; }

  .hero-inner {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
    gap: 10rem;
    overflow: visible;
  }

  .logo-mobile {
    display: none;
  }

  .logo-desktop {
    display: flex;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .cta-btn {
    width: auto;
  }
.hero-toggle,
.feature-toggle,
.how-toggle {
  display: flex;
  width: 100%;
  gap: 1rem;
  align-items: start;
  justify-content: start;
}

.phone {
  position: absolute;
  background: #0f172a;
  border-radius: 42px;
  padding: 10px;
  box-shadow: 0 50px 100px -10px rgba(0,0,0,0.55);
  transition: transform 0.3s ease;
}
.phone-not-abs {
  background: #0f172a;
  border-radius: 42px;
  padding: 10px;
  box-shadow: 0 50px 100px -10px rgba(0,0,0,0.55);
  transition: transform 0.3s ease;
}

.phone-small {
  width: 214px;
  height: 428px;
}

.phone-xs {
  width: 180px;
  height: 365px;
}

.phone-large {
  width: 285px;
  height: 570px;
}

/* ================= POSITIONING ================= */

.phone.center {
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  z-index: 3;
}

.phone.left {
  left: 10%;
  top: 60px;
  transform: translateX(-170px) rotate(-12deg);
  z-index: 1;
}

.phone.right {
  left: 40%;
  top: 60px;
  transform: translateX(170px) rotate(12deg);
  z-index: 1;
}

  .features {
    padding: 0 64px 16px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .phone.right {
    left: -90%;
    top: 30%;
    transform: translateX(120px) rotate(-20deg);
  }

  .phone.left {
    left: 0%;
    top: -20%;
    transform: translateX(-120px) rotate(-10deg);
  }
}

/* ================= MOBILE FOOTER ================= */

@media (max-width: 767px) {
  .footer-inner {
    flex-direction: column;
    gap: 12px;
    font-size: 13px;
  }

  .footer-links a {
    margin: 0 8px;
  }

  .logo-mobile {
    display: flex;
  }

  .logo-desktop {
    display: none;

  }
}

/* Overlay */
/* ================= SIGN UP OVERLAY ================= */

.logo-mobile {
  height: 40px;
}

.logo-desktop {
    font-family: "Pacifico", cursive;
  font-weight: 600;
  font-style: normal;
  font-size: 2.5rem;
  margin: 0;
  color: #10b981;
}

.sign-up-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.55);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  z-index: 100;
}

#businessSignup {
    display: none;
}

.signup-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: white;
  border-radius: 28px;
  padding: 36px 32px 32px;
  text-align: center;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.4);
}

.signup-modal h3 {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  color: var(--slate-900);
}

.signup-modal p {
  font-size: 16px;
  color: var(--slate-500);
  margin-bottom: 24px;
}

.signup-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  font-size: 16px;
  margin-bottom: 16px;
  outline: none;
}

.signup-input:focus {
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.2);
}

.signup-input-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.2);
}

.signup-submit {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  font-size: 16px;
  cursor: pointer;
  background-color: #10b981;
  color: white;
  outline: none;
  border: none;
}

.signup-submit:hover {
  background-color: #059669;
}

.signup-note {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--slate-500);
}

/* Close button */
.close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  border: none;
  background: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--slate-500);
}

.close-btn:hover {
  color: var(--slate-900);
}

#toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
  min-width: 260px;
  padding: 14px 16px;
  border-radius: 10px;
  color: white;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: slideIn 0.3s ease forwards;
}

.toast.success {
  background: #16a34a; /* green */
}

.toast.error {
  background: #dc2626; /* red */
}

.toast.info {
  background: #2563eb; /* blue */
}

.toast button {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  margin-left: 12px;
}

@keyframes slideIn {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateX(120%);
  }
}