/* CashAlert Website — Design tokens from Android app */
:root {
  --purple: #7C3AED;
  --purple-dark: #5B21B6;
  --purple-light: #A855F7;
  --purple-50: #F3EEFE;
  --purple-100: #ECE7F8;
  --bg: #F7F6FB;
  --surface: #FFFFFF;
  --text: #1A1130;
  --text-secondary: #6B6580;
  --text-hint: #9A93AD;
  --divider: #ECE9F4;
  --success: #16A34A;
  --success-bg: #DCFCE7;
  --whatsapp: #25D366;
  --shadow-sm: 0 1px 3px rgba(26, 17, 48, 0.06);
  --shadow-md: 0 4px 24px rgba(26, 17, 48, 0.08);
  --shadow-lg: 0 12px 48px rgba(124, 58, 237, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 1140px;
  --nav-height: 72px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--purple); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--purple-dark); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--divider);
  height: var(--nav-height);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}

.nav-brand img { width: 36px; height: 36px; border-radius: 8px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active { color: var(--purple); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  text-decoration: none;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: #fff;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
}

.btn-primary:hover { color: #fff; box-shadow: 0 6px 24px rgba(124, 58, 237, 0.45); }

.btn-secondary {
  background: var(--surface);
  color: var(--purple);
  border: 2px solid var(--divider);
}

.btn-secondary:hover { border-color: var(--purple); color: var(--purple-dark); }

.btn-sm { padding: 10px 20px; font-size: 0.875rem; }

.btn-nav {
  padding: 10px 22px;
  font-size: 0.875rem;
}

/* ── Sections ── */
section { padding: 80px 0; }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
}

.badge {
  display: inline-block;
  background: var(--purple-50);
  color: var(--purple);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

/* ── Hero ── */
.hero {
  padding: 100px 0 80px;
  background: linear-gradient(180deg, #fff 0%, var(--purple-100) 100%);
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-content h1 span {
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }

.trust-line {
  color: var(--text-hint);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-line::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--divider);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-phone-image {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
}

/* ── Cards grid ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--divider);
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.card p { color: var(--text-secondary); font-size: 0.9375rem; }

/* ── App experience ── */
.app-screens {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.app-screen-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--divider);
  transition: transform 0.2s;
}

.app-screen-card:hover { transform: translateY(-4px); }

.app-screen-preview {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.app-screen-preview.home { background: linear-gradient(135deg, var(--purple-50), #fff); }
.app-screen-preview.reports { background: linear-gradient(135deg, #E0F2FE, #fff); }
.app-screen-preview.transactions { background: linear-gradient(135deg, #DCFCE7, #fff); }
.app-screen-preview.language { background: linear-gradient(135deg, #FEF3C7, #fff); }

.app-screen-card .info { padding: 20px 24px; }
.app-screen-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.app-screen-card p { color: var(--text-secondary); font-size: 0.875rem; }

/* ── Languages ── */
.languages-section { background: var(--surface); }

.lang-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
}

.lang-pill {
  background: var(--purple-50);
  color: var(--purple-dark);
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}

.lang-pill:hover { border-color: var(--purple); background: #fff; }

.lang-cta { text-align: center; }

/* ── Stats & testimonials ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.stat-item {
  text-align: center;
  padding: 24px;
}

.stat-item .number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--purple);
  margin-bottom: 4px;
}

.stat-item .label {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--divider);
  position: relative;
}

.testimonial::before {
  content: "\201C";
  font-size: 3rem;
  color: var(--purple-50);
  position: absolute;
  top: 8px;
  left: 20px;
  line-height: 1;
  font-family: Georgia, serif;
}

.testimonial p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  padding-top: 20px;
  font-style: italic;
}

/* ── CTA banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--purple-dark), var(--purple));
  color: #fff;
  border-radius: 24px;
  padding: 64px 48px;
  text-align: center;
  margin: 0 24px;
  max-width: calc(var(--max-width) - 48px);
  margin-left: auto;
  margin-right: auto;
}

.cta-banner h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-banner p {
  opacity: 0.9;
  font-size: 1.0625rem;
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn-primary {
  background: #fff;
  color: var(--purple);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.cta-banner .btn-primary:hover { color: var(--purple-dark); }

.cta-banner .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.cta-banner .btn-secondary:hover { border-color: #fff; color: #fff; }

.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ── Page hero (inner pages) ── */
.page-hero {
  padding: 80px 0 60px;
  background: linear-gradient(180deg, #fff, var(--bg));
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.page-hero p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

.page-hero-visual {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

.illustration-box {
  width: 100%;
  max-width: 480px;
  height: 280px;
  background: linear-gradient(135deg, var(--purple-50), var(--purple-100));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  border: 1px solid var(--divider);
}

/* ── Story / content blocks ── */
.content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}

.content-block.reverse { direction: rtl; }
.content-block.reverse > * { direction: ltr; }

.content-block h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.content-block p,
.content-block li {
  color: var(--text-secondary);
  font-size: 1rem;
}

.content-block ul {
  list-style: none;
  margin-top: 16px;
}

.content-block ul li {
  padding: 8px 0 8px 28px;
  position: relative;
}

.content-block ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 8px;
  background: var(--purple);
  border-radius: 50%;
}

.belief-cards .card { text-align: center; }

.belief-cards .card-icon { font-size: 2.5rem; }

/* ── Steps timeline ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.step-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--divider);
  position: relative;
}

.step-number {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 16px;
}

.step-card h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 8px; }
.step-card p { color: var(--text-secondary); font-size: 0.9375rem; }

/* ── Flow diagram ── */
.flow-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 420px;
  margin: 0 auto;
}

.flow-step {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-sm);
  padding: 16px 32px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9375rem;
  width: 100%;
  box-shadow: var(--shadow-sm);
}

.flow-arrow {
  color: var(--purple);
  font-size: 1.25rem;
  padding: 6px 0;
}

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  max-width: 780px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 40px 32px;
  border: 1px solid var(--divider);
  text-align: center;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--purple);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}

.pricing-card.featured::before {
  content: "Most Popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 999px;
}

.pricing-card .plan-icon { font-size: 2rem; margin-bottom: 12px; }

.pricing-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--purple);
  margin: 16px 0 4px;
}

.pricing-card .period { color: var(--text-hint); font-size: 0.875rem; margin-bottom: 16px; }

.pricing-card .desc {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li::before {
  content: "\2713";
  color: var(--success);
  font-weight: 700;
}

.pricing-note {
  text-align: center;
  color: var(--text-hint);
  font-size: 0.875rem;
  margin-top: 32px;
}

/* ── Contact ── */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}

.contact-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--divider);
  text-align: center;
}

.contact-card .icon { font-size: 2rem; margin-bottom: 12px; }
.contact-card h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 8px; }
.contact-card .detail { font-size: 1.125rem; font-weight: 600; color: var(--purple); margin-bottom: 4px; }
.contact-card .meta { color: var(--text-hint); font-size: 0.8125rem; }

/* ── FAQ ── */
.faq-list { max-width: 720px; margin: 0 auto; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-question::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--purple);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item.open .faq-question::after { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.faq-item.open .faq-answer { max-height: 300px; }

/* ── Footer ── */
.footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.7);
  padding: 56px 0 32px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 12px;
}

.footer-brand img { width: 32px; height: 32px; border-radius: 6px; }

.footer-desc { font-size: 0.875rem; line-height: 1.7; }

.footer h4 {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255, 255, 255, 0.7); font-size: 0.875rem; }
.footer-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.8125rem;
}

.footer-bottom a { color: rgba(255, 255, 255, 0.7); }
.footer-bottom a:hover { color: #fff; }

/* ── Legal pages ── */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 48px 40px;
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 32px 0 12px;
}

.legal-content h2:first-of-type { margin-top: 0; }

.legal-content p,
.legal-content li {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 12px;
}

.legal-content ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content .updated {
  color: var(--text-hint);
  font-size: 0.875rem;
  margin-bottom: 24px;
}

.legal-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content ol li {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 8px;
}

.legal-cta {
  margin: 28px 0 8px;
  padding: 28px 24px;
  background: var(--bg);
  border: 1px solid var(--divider);
  border-radius: var(--radius-sm);
  text-align: center;
}

.legal-cta p {
  margin-bottom: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero .container,
  .content-block { grid-template-columns: 1fr; }

  .content-block.reverse { direction: ltr; }

  .hero-visual { order: -1; }
  .hero-phone-image { max-width: 280px; }

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

  .pricing-card.featured { transform: none; }
}

@media (max-width: 768px) {
  section { padding: 56px 0; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--divider);
    box-shadow: var(--shadow-md);
  }

  .nav-links.open { display: flex; }

  .nav-toggle { display: block; }

  .btn-nav { padding: 8px 16px; font-size: 0.8125rem; }

  .legal-content { padding: 32px 24px; }

  .cta-banner { padding: 48px 24px; margin: 0 16px; }

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