/* Invoice Sidekick — promo site */
:root {
  --bg: #f6f5f2; --surface: #ffffff; --surface-2: #faf9f6; --text: #171b23; --muted: #626875; --border: #e4e2dc;
  /* Golden yellow from the logo's bolt. --accent fills (dark text on top); --accent-text is a deeper gold that stays readable as text on light backgrounds. */
  --accent: #ffc800; --accent-hover: #ebb500; --accent-soft: rgba(255,200,0,.16); --accent-text: #8f6400; --on-accent: #171b23; --ink: #171b23;
  --success: #1f9d55; --radius: 16px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20,18,14,.06), 0 8px 30px rgba(20,18,14,.08);
  --shadow-lg: 0 30px 80px rgba(20,18,14,.18);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0f1218; --surface: #171b23; --surface-2: #1d222c; --text: #eef0f4; --muted: #9aa3b2; --border: #2a3040;
  --accent: #ffc800; --accent-hover: #ffd633; --accent-soft: rgba(255,200,0,.14); --accent-text: #ffc800; --on-accent: #171b23; --ink: #eef0f4;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 30px rgba(0,0,0,.35); --shadow-lg: 0 30px 80px rgba(0,0,0,.6);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.55; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; } /* keep the hidden attribute working on elements with an explicit display (the lightbox) */
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; }
h1 { font-size: clamp(34px, 5.2vw, 60px); font-weight: 850; }
h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 750; }
h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; margin-bottom: 10px; }
p { margin: 0 0 1em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-text); margin-bottom: 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 12px; font-weight: 700; font-size: 15px; border: 1.5px solid transparent; cursor: pointer; transition: transform .08s, background .15s, border-color .15s; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 20px rgba(255,200,0,.35); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-lg { padding: 15px 28px; font-size: 17px; border-radius: 14px; }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--border); background: var(--surface); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn:hover { color: var(--text); border-color: var(--accent); }
.i-moon { display: none; } [data-theme="dark"] .i-moon { display: block; } [data-theme="dark"] .i-sun { display: none; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; gap: 22px; height: 66px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 34px; width: auto; }
/* Theme-aware logos: colour on light, white on dark */
.logo-dark { display: none; }
[data-theme="dark"] .logo-dark { display: block; }
[data-theme="dark"] .logo-light { display: none; }
.nav-links { display: flex; gap: 4px; margin-left: 10px; }
.nav-links a { padding: 8px 12px; border-radius: 9px; color: var(--muted); font-weight: 650; font-size: 15px; }
.nav-links a:hover { color: var(--text); background: var(--accent-soft); text-decoration: none; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
@media (max-width: 860px) { .nav-links { display: none; } .nav-actions .btn { padding: 9px 14px; font-size: 14px; } }
@media (max-width: 560px) { .brand-logo { height: 26px; } .nav-actions .btn { display: none; } .nav-inner { gap: 12px; } }

/* Hero */
.hero { padding: 64px 0 40px; overflow: hidden; background: radial-gradient(1200px 600px at 85% -10%, var(--accent-soft), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.lead { font-size: 20px; color: var(--muted); max-width: 52ch; margin: 18px 0 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-weight: 600; font-size: 15px; }
.hero-points li { padding-left: 28px; position: relative; }
.hero-points li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--success); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23000'/%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' stroke='%23fff' stroke-width='2.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23000'/%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' stroke='%23fff' stroke-width='2.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.hero-visual { position: relative; }
.hero-desktop { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); background: var(--surface); transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); transform-origin: left center; }
.hero-phone { position: absolute; right: -6px; bottom: -34px; width: 34%; max-width: 210px; }
@media (max-width: 960px) { .hero { padding-top: 40px; } .hero-grid { grid-template-columns: 1fr; } .hero-desktop { transform: none; } .hero-phone { right: 8px; bottom: -28px; width: 32%; } .hero-visual { margin-bottom: 40px; } }

/* Phone frame */
.phone { border-radius: 34px; padding: 10px; background: var(--ink); box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.08); }
.phone img { border-radius: 26px; }
.phone-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 44px auto 18px; max-width: 980px; }
@media (max-width: 760px) { .phone-row { grid-template-columns: repeat(2, 1fr); gap: 16px; } .phone { border-radius: 26px; padding: 7px; } .phone img { border-radius: 20px; } }

/* Stats */
.stats { padding: 54px 0; background: var(--ink); color: #fff; }
[data-theme="dark"] .stats { background: #0a0c10; }
.stats-intro { text-align: center; font-size: 19px; font-weight: 600; margin-bottom: 30px; color: rgba(255,255,255,.85); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.stat-num { font-size: 44px; font-weight: 850; letter-spacing: -.03em; color: var(--accent); line-height: 1; }
.stat-num small { font-size: 18px; font-weight: 700; color: rgba(255,255,255,.7); letter-spacing: 0; }
.stat-txt { font-size: 15px; color: rgba(255,255,255,.82); line-height: 1.4; }
.stat sup a { color: var(--accent); font-weight: 700; font-size: 11px; margin-left: 2px; }
.stats-foot { text-align: center; margin: 28px auto 0; max-width: 60ch; color: rgba(255,255,255,.75); }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stat-grid { grid-template-columns: 1fr; } }

/* Sections */
.section { padding: 84px 0; }
.section.alt { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head p { font-size: 18px; color: var(--muted); margin-top: 14px; }
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; }
.split-rev { grid-template-columns: .85fr 1.15fr; }
.split-rev .split-media { order: 2; }
@media (max-width: 900px) { .split, .split-rev { grid-template-columns: 1fr; } .split-rev .split-media { order: 0; } }

/* Screenshots */
.shot { margin: 0; }
.shot a { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.shot a:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.shot figcaption { font-size: 13.5px; color: var(--muted); margin-top: 10px; text-align: center; }
.shot-tall a { max-height: 640px; overflow: hidden; }
.shot-tall img { object-fit: cover; object-position: top; width: 100%; max-height: 640px; }
.shots-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 44px; }
.shots-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.shots-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .shots-2, .shots-3, .shots-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .shots-2, .shots-3, .shots-grid { grid-template-columns: 1fr; } }

/* Steps */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-items: start; }
.steps li::before { content: counter(s); grid-column: 1; grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.steps strong { grid-column: 2; grid-row: 1; display: block; font-size: 17px; padding-top: 2px; }
.steps span { grid-column: 2; grid-row: 2; display: block; color: var(--muted); font-size: 15.5px; line-height: 1.5; }

/* Feature lists */
.feature-list { display: grid; gap: 22px; }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--muted); margin: 0; font-size: 16px; }

/* Pay grid */
.pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pay-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.pay-icon { font-size: 30px; margin-bottom: 12px; }
.pay-card h3 { margin-bottom: 8px; font-size: 18px; }
.pay-card p { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 900px) { .pay-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pay-grid { grid-template-columns: 1fr; } }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 8px; font-size: 18px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid-3 { grid-template-columns: 1fr; } }

/* Feature index */
.index-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.index-grid ul { margin: 0 0 22px; padding-left: 18px; color: var(--muted); font-size: 15px; display: grid; gap: 4px; }
@media (max-width: 800px) { .index-grid { grid-template-columns: 1fr; } }

/* CTA */
.cta { padding: 90px 0; background: linear-gradient(135deg, #ffd21f, #ffb800); color: #171b23; text-align: center; }
.cta h2 { color: #171b23; }
.cta p { color: rgba(23,27,35,.82); font-size: 19px; }
.cta .hero-cta { justify-content: center; }
.cta .btn-primary { background: #171b23; color: #fff; box-shadow: 0 8px 26px rgba(0,0,0,.22); }
.cta .btn-primary:hover { background: #000; color: #fff; }
.cta .btn-ghost { background: rgba(255,255,255,.35); color: #171b23; border-color: rgba(23,27,35,.35); }
.cta a { color: #171b23; text-decoration: underline; }

/* Footer */
.foot { padding: 44px 0 40px; border-top: 1px solid var(--border); font-size: 14px; }
.foot-brand { margin-bottom: 22px; }
.foot-logo { height: 28px; width: auto; }
.cta-mark { width: 170px; height: auto; margin: 0 auto 22px; filter: drop-shadow(0 6px 14px rgba(0,0,0,.15)); }
.sources { padding-left: 20px; color: var(--muted); display: grid; gap: 8px; margin: 0 0 20px; max-width: 900px; }
.sources li:target { color: var(--text); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10,12,16,.9); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.lightbox[hidden] { display: none; } /* must come after .lightbox so it wins even without !important */
.lightbox img { max-width: min(96vw, 1400px); max-height: 84vh; width: auto; border-radius: 10px; box-shadow: var(--shadow-lg); cursor: default; }
.lightbox-cap { color: rgba(255,255,255,.85); margin-top: 12px; font-size: 14px; text-align: center; }
.lightbox-close { position: absolute; top: 16px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 26px; cursor: pointer; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
