/* Emtrack: Income and expenses tracker Website Styles */

:root {
  --primary: #00A86B;
  --primary-dark: #0F3D2E;
  --accent: #C9A227;
  --background: #F8FAF9;
  --surface: #FFFFFF;
  --text: #0F3D2E;
  --text-secondary: #5C7A6E;
  --border: #D6E8DF;
  --error: #DC2626;
  --primary-tint: rgba(0, 168, 107, 0.08);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 61, 46, 0.05);
  --shadow-md: 0 4px 16px rgba(15, 61, 46, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 61, 46, 0.12);
  --max-width: 1160px;
  --font-family: 'DM Sans', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-family);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(0, 168, 107, 0.06), transparent 34%),
    linear-gradient(180deg, #fdfefe 0%, var(--background) 100%);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

h1, h2, h3, h4 {
  color: var(--primary-dark);
  line-height: 1.18;
  font-weight: 800;
}

h1 { font-size: clamp(2.35rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

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

.section { padding: 80px 0; }
.section-soft { background: rgba(255, 255, 255, 0.7); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-tight { padding: 48px 0; }

.site-header {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(214, 232, 223, 0.8);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--primary-dark);
  text-decoration: none;
}

.logo:hover { text-decoration: none; color: var(--primary-dark); }

.logo-mark {
  width: 38px;
  height: 38px;
  background: linear-gradient(180deg, var(--primary) 0%, #1fb678 100%);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 8px 22px rgba(0, 168, 107, 0.22);
}

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

.nav-links a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover { color: var(--primary); text-decoration: none; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
}

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

.btn-primary {
  background: linear-gradient(180deg, var(--primary) 0%, #08945f 100%);
  color: white;
  box-shadow: 0 10px 24px rgba(0, 168, 107, 0.28);
}

.btn-primary:hover { background: #08945f; color: white; }

.btn-secondary {
  background: transparent;
  color: var(--primary-dark);
  border-color: var(--border);
}

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

.btn-light {
  background: white;
  color: var(--primary-dark);
}

.btn-light:hover {
  background: var(--background);
  color: var(--primary-dark);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.9rem;
}

.hero {
  background: linear-gradient(135deg, #0f3d2e 0%, #134b37 55%, #0c392a 100%);
  color: white;
  padding: 100px 0 110px;
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero::before {
  top: -120px;
  right: -80px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(0, 168, 107, 0.22) 0%, transparent 72%);
}

.hero::after {
  bottom: -120px;
  left: 8%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.12) 0%, transparent 70%);
}

.hero-home .hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
}

.hero h1 { color: white; max-width: 720px; }

.hero p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.15rem;
  max-width: 640px;
  margin: 20px 0 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem !important;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7) !important;
  margin-bottom: 14px !important;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.trust-bullets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  list-style: none;
  max-width: 760px;
}

.trust-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.98rem;
}

.check-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(0, 168, 107, 0.18);
  color: white;
  flex-shrink: 0;
}

.hero-panel {
  display: grid;
  gap: 16px;
}

.hero-panel-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(6px);
}

.hero-panel-card strong {
  display: block;
  color: white;
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.panel-label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 700;
}

.panel-metric {
  color: white;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  margin: 8px 0 12px;
}

.hero-panel-card p {
  margin: 0;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.82);
}

.hero-panel-card-accent {
  background: linear-gradient(180deg, rgba(0, 168, 107, 0.16), rgba(255, 255, 255, 0.08));
}

.social-proof {
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  padding: 18px 0;
  text-align: center;
}

.social-proof p {
  margin: 0;
  color: var(--text-secondary);
  font-style: italic;
}

.section-title {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 36px;
}

.section-title p {
  margin-top: 10px;
}

.card-grid,
.pricing-grid,
.support-grid {
  display: grid;
  gap: 24px;
}

.support-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.pricing-card,
.support-card,
.terms-box,
.callout,
.hero-panel-card {
  border-radius: var(--radius-lg);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 28px;
}

.support-card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 28px;
}

.card-tint {
  background:
    linear-gradient(180deg, rgba(0, 168, 107, 0.03), rgba(255, 255, 255, 0.96)),
    var(--surface);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--primary-tint);
  color: var(--primary-dark);
  font-weight: 800;
  margin-bottom: 18px;
}

.pricing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 30px;
  position: relative;
}

.pricing-card.featured {
  border-color: rgba(0, 168, 107, 0.22);
  box-shadow: var(--shadow-lg);
}

.pricing-badge {
  display: inline-flex;
  padding: 8px 12px;
  background: rgba(0, 168, 107, 0.1);
  color: var(--primary-dark);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 12px 0 18px;
}

.price span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.pricing-card ul,
.support-card ul,
.terms-box ul,
.legal-content ul {
  padding-left: 20px;
  color: var(--text-secondary);
}

.pricing-card li,
.support-card li,
.terms-box li,
.legal-content li {
  margin-bottom: 10px;
}

.comparison-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.comparison-table thead th {
  background: rgba(0, 168, 107, 0.05);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.text-center { text-align: center; }
.check { color: var(--primary); font-weight: 800; }
.cross { color: var(--error); font-weight: 800; }

.feature-detail {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 42px;
}

.feature-detail.reverse {
  grid-template-columns: 0.85fr 1fr;
}

.screenshot-frame {
  border-radius: 28px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(0, 168, 107, 0.05), #fff);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.frame-header {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.frame-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #cce7db;
}

.frame-body {
  min-height: 280px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  color: var(--primary-dark);
  font-weight: 700;
}

.app-screenshot {
  display: block;
  width: 100%;
  height: auto;
  background: #f6fbf8;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.shot-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 18px;
}

.phone-shot {
  display: block;
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: top center;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: #f6fbf8;
  margin-bottom: 18px;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 18px;
  background: #0c1f18;
  color: white;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.store-badge:hover { color: white; text-decoration: none; }

.store-badge small {
  display: block;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}

.store-badge strong {
  display: block;
  font-size: 1rem;
}

.store-badge-outline {
  background: rgba(255, 255, 255, 0.78);
  color: var(--primary-dark);
  border-color: var(--border);
}

.store-badge-outline small { color: var(--text-secondary); }
.store-badge-outline strong { color: var(--primary-dark); }

.download-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(0, 168, 107, 0.04));
}

.callout {
  background: linear-gradient(135deg, var(--primary-dark), #13513c);
  color: white;
  text-align: center;
  padding: 40px 28px;
  box-shadow: var(--shadow-lg);
}

.callout h2,
.callout p { color: white; }

.callout p { opacity: 0.84; }

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border: none;
  background: transparent;
  font: inherit;
  color: var(--primary-dark);
  cursor: pointer;
  text-align: left;
  font-weight: 700;
}

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

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

.faq-answer-inner {
  padding: 0 22px 20px;
}

.faq-answer-inner p { margin-bottom: 0; }

.legal-layout {
  background: var(--background);
}

.legal-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.legal-content h1 {
  margin-bottom: 16px;
}

.legal-content h2 {
  margin-top: 36px;
  margin-bottom: 12px;
  font-size: 1.6rem;
}

.legal-content h3 {
  margin-top: 20px;
  margin-bottom: 10px;
}

.legal-content p,
.legal-content li {
  color: var(--text-secondary);
}

.legal-meta,
.toc,
.terms-box {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.legal-meta,
.terms-box {
  padding: 20px 22px;
  margin: 20px 0;
}

.toc {
  padding: 22px;
  margin: 28px 0;
}

.toc ul {
  margin-top: 10px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-secondary);
}

.site-footer {
  background: rgba(255, 255, 255, 0.8);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 28px;
}

.footer-brand p { max-width: 320px; }

.footer-col ul {
  list-style: none;
  margin-top: 12px;
}

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

.footer-col a { color: var(--text-secondary); }
.footer-col a:hover { color: var(--primary); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--primary-dark);
  color: white;
  padding: 10px 14px;
  border-radius: 12px;
  z-index: 999;
}

.skip-link:focus { top: 16px; }

.text-center { text-align: center; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 20px; }
.mt-4 { margin-top: 28px; }
.mb-0 { margin-bottom: 0 !important; }
.placeholder { color: var(--text-secondary); }

@media (max-width: 960px) {
  .hero-home .hero-grid,
  .feature-detail,
  .feature-detail.reverse,
  .pricing-grid,
  .card-grid,
  .shot-grid,
  .support-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 84px 0 90px;
  }

  .trust-bullets {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle { display: inline-flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    background: white;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
  }

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

  .header-inner { position: relative; }

  .hero p {
    font-size: 1.05rem;
  }

  .section { padding: 64px 0; }

  .comparison-table {
    min-width: 560px;
  }
}
