/* ────────────────────────────────────────────────────────────────────────
   Expenso landing page — design tokens
   ──────────────────────────────────────────────────────────────────────── */
:root {
  /* Brand */
  --coral: #FB6F5C;
  --coral-light: #FF8F7E;
  --coral-dark: #E2503E;
  --coral-surface: rgba(251, 111, 92, 0.12);

  /* Surfaces (matches the app's dark theme) */
  --bg: #0F0F18;
  --bg-alt: #15151F;
  --surface: #1A1A2E;
  --surface-alt: #20203A;
  --border: rgba(255, 255, 255, 0.08);

  /* Text */
  --text: #F4F4F8;
  --text-muted: #A8A8BC;
  --text-faint: #6E6E84;

  /* Type */
  --font-display: 'Poppins', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Sizing */
  --container-width: 1140px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

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

html { scroll-behavior: smooth; }

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

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

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

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; }

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

.text-coral { color: var(--coral); }

/* ── Scroll-reveal base states ──────────────────────────────────────────
   JS toggles `.is-visible` via IntersectionObserver; CSS just defines the
   before/after states + transition. */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal--from-left  { transform: translateX(-48px); }
.reveal--from-right { transform: translateX(48px); }
.reveal--zoom       { transform: scale(0.92); }
.reveal--delay-1 { transition-delay: 0.05s; }
.reveal--delay-2 { transition-delay: 0.15s; }
.reveal--delay-3 { transition-delay: 0.25s; }

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.btn--coral {
  background: var(--coral);
  color: #fff;
  padding: 10px 20px;
  font-size: 0.9rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 18px rgba(251, 111, 92, 0.35);
}
.btn--coral:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(251, 111, 92, 0.45); }

.btn--small { padding: 8px 18px; font-size: 0.85rem; }

.btn--store {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 22px;
  font-family: var(--font-body);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.btn--store:hover { border-color: var(--coral); transform: translateY(-2px); }
.btn--store svg { width: 26px; height: 26px; color: var(--text); flex-shrink: 0; }
.btn--store span { display: flex; flex-direction: column; line-height: 1.2; }
.btn--store small { font-size: 0.65rem; color: var(--text-muted); font-weight: 400; }

/* ── Nav ─────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: linear-gradient(180deg, rgba(26, 26, 46, 0.55), rgba(15, 15, 24, 0.45));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 8px 32px rgba(0, 0, 0, 0.18);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__brand-text { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--coral-light), var(--coral-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-mark svg { width: 24px; height: 24px; }
.logo-mark--small { width: 34px; height: 34px; }
.logo-mark--small svg { width: 18px; height: 18px; }

.nav__links { display: flex; gap: 32px; }
.nav__links a {
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--text); }

@media (max-width: 760px) {
  .nav__links { display: none; }
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero__pattern {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 20%, var(--coral-surface) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(251, 111, 92, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}
.hero__pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 30%, black 0%, transparent 70%);
}

.hero__inner { text-align: center; max-width: 760px; margin: 0 auto; }

.logo-badge {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--coral-light), var(--coral-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  box-shadow: 0 16px 40px rgba(251, 111, 92, 0.4);
}
.logo-badge svg { width: 38px; height: 38px; }

.hero__title {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero__ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Section shared styles ───────────────────────────────────────────── */
.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  text-align: center;
  letter-spacing: -0.02em;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-top: 10px;
  margin-bottom: 64px;
}

/* ── Features ────────────────────────────────────────────────────────── */
.features { padding: 110px 0 60px; }

.feature {
  display: flex;
  align-items: center;
  gap: 64px;
  margin-bottom: 110px;
}
.feature:last-child { margin-bottom: 0; }
.feature--left  { flex-direction: row; }
.feature--right { flex-direction: row-reverse; }

.feature__media { flex: 0 1 320px; display: flex; justify-content: center; }
.feature__copy  { flex: 1 1 420px; min-width: 0; }

.feature__media img {
  width: 100%;
  max-width: 280px;
  height: auto;
  aspect-ratio: auto;
  border-radius: 28px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}

@media (min-width: 1100px) {
  .feature__media img { max-width: 320px; }
}

.feature__tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--coral);
  background: var(--coral-surface);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.feature__copy h3 { font-size: 2.3rem; margin-bottom: 18px; }
.feature__copy p { color: var(--text-muted); font-size: 1.18rem; max-width: 460px; line-height: 1.7; }

@media (max-width: 820px) {
  .feature, .feature--right { flex-direction: column; gap: 36px; }
  .feature__copy { text-align: center; }
  .feature__copy p { margin: 0 auto; }
}

/* ── Screenshots ─────────────────────────────────────────────────────── */
.screenshots {
  padding: 80px 0 120px;
  background: linear-gradient(180deg, transparent, var(--bg-alt) 30%, transparent);
  text-align: center;
}

.screenshots__frame {
  margin: 0 auto 32px;
  max-width: 460px;
}
.screenshots__frame img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  border-radius: 36px;
  box-shadow: 0 40px 80px -30px rgba(251, 111, 92, 0.25), 0 30px 60px -20px rgba(0,0,0,0.7);
}

@media (min-width: 1100px) {
  .screenshots__frame { max-width: 520px; }
}

.screenshots__caption {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* ── CTA ─────────────────────────────────────────────────────────────── */
.cta {
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(160deg, var(--coral-surface), transparent 60%);
}
.cta h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 16px; }
.cta p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 36px;
  font-size: 1.05rem;
}

/* ── Footer ──────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 28px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
}

.footer__links { display: flex; gap: 28px; }
.footer__links a { color: var(--text-muted); font-size: 0.92rem; transition: color 0.2s ease; }
.footer__links a:hover { color: var(--coral); }

.footer__social { display: flex; gap: 16px; }
.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background 0.2s ease, color 0.2s ease;
}
.footer__social a:hover { background: var(--coral); color: #fff; }

.footer__copyright {
  text-align: center;
  color: var(--text-faint);
  font-size: 0.85rem;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ── Static legal pages (privacy / terms) ───────────────────────────── */
.legal {
  padding: 160px 0 100px;
  max-width: 760px;
  margin: 0 auto;
}
.legal h1 { font-size: 2.2rem; margin-bottom: 8px; }
.legal .legal__updated { color: var(--text-faint); font-size: 0.9rem; margin-bottom: 48px; }
.legal h2 { font-size: 1.3rem; margin: 40px 0 14px; }
.legal p, .legal li { color: var(--text-muted); margin-bottom: 14px; }
.legal ul { padding-left: 22px; margin-bottom: 14px; }
.legal a { color: var(--coral); text-decoration: underline; }
