/* toExpense — shared foundation for every page.
   Brand colors come from the app's Assets.xcassets:
   BrandOrange #FF9933, BrandGreen #00C153, BrandInk #003507. */

:root {
  --orange: #ff9933;
  --orange-deep: #e67a12;
  --green: #00c153;
  --ink: #003507;
  --black: #000;
  --white: #fff;

  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --bg-card: #ffffff;
  --text: #1d1d1f;
  --text-2: #55555c;
  --line: #e3e3e8;
  --accent-text: #0a7a37; /* green dark enough for text on white (AA) */

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 12px 32px rgba(0, 0, 0, .08);
  --maxw: 1120px;
  --gutter: 20px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-soft: #111113;
    --bg-card: #1c1c1e;
    --text: #f5f5f7;
    --text-2: #a1a1a8;
    --line: #2c2c30;
    --accent-text: #3ddc84;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .5);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--black); color: var(--white); padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid #0a84ff; outline-offset: 3px; border-radius: 6px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Text styles, echoing iOS text styles */
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.display { font-size: clamp(40px, 7vw, 80px); font-weight: 800; }
.title-1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; }
.title-2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; }
.title-3 { font-size: 20px; font-weight: 700; line-height: 1.25; }
.lead { font-size: clamp(18px, 2.1vw, 22px); color: var(--text-2); line-height: 1.45; }
.muted { color: var(--text-2); }
.small { font-size: 14px; }

/* Primary button: the app's capsule (green fill, white ring, black edge) */
.btn-capsule {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px;
  font: 600 17px/1 var(--font); color: var(--black); text-decoration: none;
  background: var(--green); border-radius: 999px;
  box-shadow: inset 0 0 0 5px var(--white), 0 0 0 1.5px var(--black);
  transition: transform .15s ease;
}
.btn-capsule:hover { transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-weight: 600; text-decoration: none; color: inherit;
}
.btn-ghost:hover { text-decoration: underline; }

/* Placeholder App Store badge, kept only for the concepts/ prototypes.
   The published pages use Apple's official badge (.appstore-link in site.css). */
.appstore-badge {
  display: inline-flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 18px 0 14px;
  background: #000; color: #fff; text-decoration: none;
  border-radius: 12px; border: 1px solid #a6a6a6;
  transition: transform .15s ease;
}
.appstore-badge:hover { transform: translateY(-1px); }
.appstore-badge svg { width: 26px; height: 26px; }
.appstore-badge span { display: flex; flex-direction: column; line-height: 1.05; }
.appstore-badge small { font-size: 11px; letter-spacing: .02em; }
.appstore-badge strong { font-size: 21px; font-weight: 600; letter-spacing: -.01em; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.price-note { font-size: 15px; color: var(--text-2); }

/* Icons */
.icon { width: 24px; height: 24px; flex: none; }
.icon-tile {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--orange); color: var(--black);
}
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { width: 22px; height: 22px; color: var(--accent-text); margin-top: 2px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 14px; color: var(--text-2); }
.site-footer .wrap { display: grid; gap: 20px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); }
.footer-brand img { width: 32px; height: 32px; border-radius: 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.lang-switch { font-weight: 600; }

/* Prototype switcher (concepts only) */
.concept-switch {
  position: fixed; right: 12px; bottom: 12px; z-index: 50;
  display: flex; gap: 4px; padding: 4px; border-radius: 999px;
  background: rgba(30, 30, 32, .86); backdrop-filter: blur(10px);
  font: 600 13px/1 var(--font);
}
.concept-switch a { color: #fff; text-decoration: none; padding: 8px 12px; border-radius: 999px; }
.concept-switch a[aria-current="page"] { background: var(--orange); color: #000; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Cookie consent banner (js/consent.js, off until enabled in config.js) */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px; margin: 0 auto;
  background: var(--bg-card); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px 48px 20px 20px; font-size: 15px; }
.consent a { color: var(--accent-text); }
.consent-actions { display: flex; gap: 10px; margin-top: 14px; }
.consent-actions button { flex: 1; min-height: 44px; border-radius: 999px; font: 600 16px/1 var(--font); cursor: pointer;
  background: var(--bg-soft); color: var(--text); border: 1.5px solid var(--text); }
.consent-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: none;
  font-size: 26px; color: var(--text-2); cursor: pointer; }
