/* =============================================================
   Expense Rabbit - shared marketing styles
   Plain static CSS. No build step.
   ============================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand greens */
  --green: #3c9a43;
  --green-bright: #46b04a;
  --green-dark: #2f7e37;
  --green-soft: #e7f4e3;

  /* Text */
  --ink: #12150f;
  --muted: #6c726a;
  --faint: #8b918a;

  /* Surfaces */
  --page-from: #eef1ec;
  --page-to: #e3e7e1;
  --surface: #fbfcfa;
  --surface-2: #f4f7f2;
  --border: #e7ebe4;

  /* Accent text used on brand backgrounds */
  --on-green: #ffffff;

  /* Effects */
  --radius-card: 16px;
  --radius-btn: 12px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(18, 21, 15, 0.06), 0 1px 3px rgba(18, 21, 15, 0.05);
  --shadow-md: 0 6px 20px rgba(18, 21, 15, 0.08), 0 2px 6px rgba(18, 21, 15, 0.05);
  --shadow-lg: 0 24px 60px rgba(18, 21, 15, 0.12), 0 8px 20px rgba(18, 21, 15, 0.07);

  --container: 1080px;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: linear-gradient(160deg, var(--page-from), var(--page-to));
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.4em; font-weight: 700; }
h1 { font-weight: 800; }
p { margin: 0 0 1em; }
a { color: var(--green-dark); }

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

.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.section { padding-block: clamp(56px, 9vw, 104px); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: var(--green-soft);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.section-head p { color: var(--muted); font-size: 1.075rem; margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 14px 22px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--green);
  color: var(--on-green);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--green-dark); box-shadow: var(--shadow-md); }

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green-dark); }

/* App Store badge (styled like the Apple badge) */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #111311;
  color: #ffffff;
  text-decoration: none;
  padding: 11px 20px 11px 18px;
  border-radius: 14px;
  border: 1px solid #111311;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.appstore-badge:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); background: #000; }
.appstore-badge svg { flex: none; }
.appstore-badge .badge-text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.appstore-badge .badge-small { font-size: 0.68rem; letter-spacing: 0.02em; opacity: 0.85; }
.appstore-badge .badge-big { font-size: 1.18rem; font-weight: 600; letter-spacing: -0.01em; }

.appstore-badge.small { padding: 8px 14px 8px 12px; border-radius: 11px; }
.appstore-badge.small .badge-big { font-size: 0.98rem; }
.appstore-badge.small .badge-small { font-size: 0.6rem; }

/* ---------- Focus styles ---------- */
a:focus-visible,
.btn:focus-visible,
.appstore-badge:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--green-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border);
  z-index: 100;
}
.skip-link:focus { left: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  background: rgba(251, 252, 250, 0.78);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 66px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--shadow-sm); }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--green-dark); }

.header-actions { display: flex; align-items: center; gap: 14px; }

@media (max-width: 780px) {
  .nav-links { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(48px, 8vw, 92px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero h1 { font-size: clamp(2.15rem, 5.4vw, 3.5rem); margin-bottom: 20px; }
.hero .lead { font-size: clamp(1.08rem, 2vw, 1.28rem); color: var(--muted); max-width: 40ch; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 32px; }
.hero-note { margin-top: 20px; color: var(--faint); font-size: 0.92rem; display: flex; align-items: center; gap: 8px; }
.hero-note svg { color: var(--green); flex: none; }

/* Hero visual: receipt scan preview card */
.scan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  padding: 22px;
  max-width: 380px;
  margin-inline: auto;
  position: relative;
}
.scan-card::before {
  content: "";
  position: absolute;
  inset: -14px -14px auto auto;
  width: 128px; height: 128px;
  background: radial-gradient(circle at 70% 30%, rgba(70, 176, 74, 0.22), transparent 70%);
  z-index: -1;
  filter: blur(6px);
}
.scan-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.scan-merchant { display: flex; align-items: center; gap: 12px; }
.scan-avatar {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--green-soft); color: var(--green-dark);
  display: grid; place-items: center; font-weight: 800; font-size: 1.05rem;
}
.scan-merchant strong { display: block; font-size: 1.02rem; }
.scan-merchant span { font-size: 0.85rem; color: var(--faint); }
.confidence {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green-soft); color: var(--green-dark);
  font-size: 0.78rem; font-weight: 700;
  padding: 6px 10px; border-radius: var(--radius-pill);
}
.confidence .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

.scan-rows { border-top: 1px dashed var(--border); }
.scan-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px dashed var(--border);
}
.scan-row .label { color: var(--muted); font-size: 0.9rem; }
.scan-row .value { font-weight: 600; font-size: 0.98rem; }
.scan-total { padding-top: 14px; display: flex; align-items: center; justify-content: space-between; }
.scan-total .label { font-weight: 700; }
.scan-total .value { font-size: 1.35rem; font-weight: 800; color: var(--green-dark); }
.scan-tag {
  margin-top: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 8px 12px; border-radius: var(--radius-pill);
  font-size: 0.85rem; font-weight: 600; color: var(--ink);
}
.scan-tag svg { color: var(--green); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero .lead { max-width: none; }
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  font-family: var(--font-mono);
  font-size: 0.9rem; font-weight: 700;
  color: var(--on-green); background: var(--green);
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; margin-bottom: 18px;
}
.step h3 { font-size: 1.2rem; }
.step p { color: var(--muted); margin-bottom: 0; }

@media (max-width: 780px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d8e0d3; }
.feature-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--green-soft); color: var(--green-dark);
  display: grid; place-items: center; margin-bottom: 16px;
}
.feature h3 { font-size: 1.14rem; }
.feature p { color: var(--muted); margin-bottom: 0; font-size: 0.97rem; }

@media (max-width: 860px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 820px; margin-inline: auto; }
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.plan.featured {
  border-color: var(--green);
  box-shadow: var(--shadow-md);
  position: relative;
}
.plan-badge {
  position: absolute; top: -13px; left: 28px;
  background: var(--green); color: var(--on-green);
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 5px 12px; border-radius: var(--radius-pill);
}
.plan h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin: 8px 0 4px; }
.plan .price .amount { font-family: var(--font-mono); font-size: 2.6rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.plan .price .per { color: var(--muted); font-size: 0.95rem; font-weight: 600; }
.plan .annual { color: var(--green-dark); font-weight: 600; font-size: 0.92rem; margin-bottom: 22px; min-height: 1.3em; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.plan li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink); font-size: 0.97rem; }
.plan li svg { flex: none; color: var(--green); margin-top: 3px; }
.plan .btn { margin-top: auto; width: 100%; }

@media (max-width: 640px) { .pricing { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  border-radius: 24px;
  padding: clamp(36px, 6vw, 64px);
  text-align: center;
  color: var(--on-green);
  box-shadow: var(--shadow-md);
}
.cta-band h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); color: var(--on-green); }
.cta-band p { color: rgba(255, 255, 255, 0.9); font-size: 1.08rem; max-width: 46ch; margin-inline: auto; }
.cta-band .cta-row { margin-top: 26px; display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(251, 252, 250, 0.6);
  margin-top: 24px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  padding-block: 48px;
  align-items: start;
}
.footer-brand { max-width: 34ch; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.footer-links { display: flex; gap: 56px; flex-wrap: wrap; justify-content: flex-end; }
.footer-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.footer-col a:hover { color: var(--green-dark); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-block: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: var(--faint); font-size: 0.88rem;
}

@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-links { justify-content: flex-start; gap: 44px; }
}

/* ---------- Prose / legal pages ---------- */
.prose-wrap { padding-block: clamp(40px, 7vw, 72px); }
.prose {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  padding: clamp(28px, 5vw, 56px);
  max-width: 800px;
  margin-inline: auto;
}
.prose .page-title { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 6px; }
.prose .updated { color: var(--faint); font-size: 0.9rem; margin-bottom: 32px; }
.prose h2 { font-size: 1.3rem; margin-top: 36px; padding-top: 4px; }
.prose h3 { font-size: 1.08rem; margin-top: 24px; }
.prose p, .prose li { color: #3a3f36; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1em; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--green-dark); font-weight: 600; }
.prose strong { color: var(--ink); }
.prose .lead-note {
  background: var(--green-soft);
  border: 1px solid #cfe6c8;
  border-radius: var(--radius-btn);
  padding: 16px 18px;
  color: #2c4a2b;
  font-size: 0.95rem;
  margin-bottom: 28px;
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; max-width: 760px; margin-inline: auto; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  padding: 4px 22px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1.03rem;
  padding: 18px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { flex: none; color: var(--green); transition: transform 0.2s ease; }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }
.faq details p:not(:last-child) { margin-bottom: 10px; }

/* ---------- Contact card ---------- */
.contact-card {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: var(--on-green);
  border-radius: 20px;
  padding: clamp(28px, 5vw, 44px);
  text-align: center;
  box-shadow: var(--shadow-md);
  max-width: 760px;
  margin: 0 auto 44px;
}
.contact-card h2 { color: var(--on-green); font-size: 1.5rem; }
.contact-card p { color: rgba(255, 255, 255, 0.9); margin-bottom: 22px; }
.contact-card .email-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: var(--green-dark);
  font-weight: 700; text-decoration: none;
  padding: 13px 22px; border-radius: var(--radius-btn);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.contact-card .email-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

.back-home { text-align: center; margin-top: 40px; }
.back-home a { color: var(--muted); text-decoration: none; font-weight: 600; }
.back-home a:hover { color: var(--green-dark); }

/* =============================================================
   Dark mode - dark sage, brand green retained
   ============================================================= */
@media (prefers-color-scheme: dark) {
  :root {
    --green: #4fb257;
    --green-bright: #63c869;
    --green-dark: #8fd894;
    --green-soft: #1f2c1e;

    --ink: #e9efe4;
    --muted: #a4ab9d;
    --faint: #7f877b;

    --page-from: #10140f;
    --page-to: #0b0e0a;
    --surface: #161b14;
    --surface-2: #1b211a;
    --border: #2b3428;

    --on-green: #0c110b;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55), 0 8px 20px rgba(0, 0, 0, 0.4);
  }

  body { background: linear-gradient(160deg, var(--page-from), var(--page-to)); }

  .site-header { background: rgba(16, 20, 15, 0.82); }
  .site-footer { background: rgba(16, 20, 15, 0.5); }

  /* Buttons: keep green fill, dark text for contrast */
  .btn-primary { color: var(--on-green); }
  .btn-ghost { background: var(--surface-2); color: var(--ink); }

  /* App Store badge stays a light-on-dark solid pill for legibility */
  .appstore-badge { background: #f4f7f2; color: #0c110b; border-color: #f4f7f2; }
  .appstore-badge:hover { background: #ffffff; }

  .prose p, .prose li { color: #c8cfc1; }
  .prose .lead-note { background: var(--green-soft); border-color: #33452f; color: #cfe6c8; }

  .contact-card .email-btn { background: #0c110b; color: var(--green-dark); }
  .cta-band { background: linear-gradient(135deg, #24512a, #327039); }
  .cta-band p { color: rgba(255, 255, 255, 0.86); }
  .cta-band h2 { color: #ffffff; }

  .feature:hover { border-color: #37432f; }
}
