/* Expensology landing site — shared stylesheet.
   Brand tokens mirror the app (near-neutral palette, #2563eb accent, Geist). */

@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/geist-latin-wght-normal.woff2') format('woff2-variations');
}

:root {
  --bg: #ffffff;
  --surface: #fafafa;
  --card: #ffffff;
  --fg: #171717;
  --muted: #6b6b6b;
  --border: #e5e5e5;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #eff4ff;
  --btn-bg: #171717;
  --btn-fg: #fafafa;
  --radius: 12px;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 24px -12px rgb(0 0 0 / 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --surface: #141414;
    --card: #171717;
    --fg: #fafafa;
    --muted: #a3a3a3;
    --border: #262626;
    --accent: #60a5fa;
    --accent-hover: #93c5fd;
    --accent-soft: #16233f;
    --btn-bg: #fafafa;
    --btn-fg: #171717;
    --shadow: none;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Geist Variable', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1060px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-weight: 650;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
}

.btn-primary:hover {
  opacity: 0.88;
}

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

.btn-secondary:hover {
  background: var(--surface);
}

.btn-large {
  padding: 13px 24px;
  font-size: 1.02rem;
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 40px;
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 20px;
}

.hero .lede {
  font-size: 1.13rem;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-note {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
}

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

.hero-visual svg {
  width: min(300px, 78vw);
  height: auto;
  filter: drop-shadow(0 24px 48px rgb(0 0 0 / 0.18));
}

/* ---------- Sections ---------- */

section {
  padding: 56px 0;
}

.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 640px;
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 12px;
}

.section-head p {
  color: var(--muted);
  margin: 0;
  font-size: 1.05rem;
}

/* ---------- Feature grid ---------- */

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

.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.feature .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 14px;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  counter-reset: step;
}

.step {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 650;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.06rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Google data section ---------- */

.google-panel {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  padding: 28px;
  box-shadow: var(--shadow);
}

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

.google-cols h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 10px;
}

.google-cols ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.google-cols li {
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.google-cols li:last-child {
  border-bottom: none;
}

.google-cols .yes::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
}

.google-cols .no::before {
  content: '✕';
  color: var(--muted);
  font-weight: 700;
}

.google-footnote {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

/* ---------- FAQ ---------- */

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 32px;
}

.faq-item h3 {
  margin: 0 0 6px;
  font-size: 1.03rem;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- CTA band ---------- */

.cta-band {
  text-align: center;
  padding: 72px 0;
}

.cta-band h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.cta-band p {
  color: var(--muted);
  margin: 0 0 26px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 48px 0 32px;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand p {
  color: var(--muted);
  margin: 12px 0 0;
  max-width: 30em;
}

.site-footer h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 12px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 8px;
}

.site-footer a {
  color: var(--fg);
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  color: var(--muted);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

/* ---------- Legal pages ---------- */

.legal {
  padding: 56px 0 72px;
}

.legal .container {
  max-width: 760px;
}

.legal h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 8px;
}

.legal .updated {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 36px;
}

.legal h2 {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
}

.legal h3 {
  font-size: 1.08rem;
  margin: 24px 0 8px;
}

.legal p,
.legal li {
  color: var(--fg);
}

.legal ul {
  padding-left: 22px;
}

.legal li {
  margin-bottom: 6px;
}

.legal .callout {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px 18px;
  margin: 20px 0;
}

.legal .callout p {
  margin: 0;
}

/* ---------- 404 ---------- */

.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  text-align: center;
}

.error-page .container {
  max-width: 560px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero {
    padding-top: 48px;
  }

  .hero .container {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .hero-visual {
    order: 2;
  }

  .feature-grid,
  .steps,
  .google-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  .site-nav .nav-link {
    display: none;
  }

  .feature-grid,
  .steps,
  .google-cols,
  .faq-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  section {
    padding: 44px 0;
  }
}
