/* Invoice Maker — website styles */
:root {
  --brand: #0b5cff;
  --brand-dark: #0847c7;
  --brand-soft: #eaf1ff;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --green: #16a34a;
  --amber: #d97706;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -12px rgba(15, 23, 42, .18);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink-2); font-size: .94rem; font-weight: 500; }
.nav-links a:hover { color: var(--brand); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 12px;
  font-weight: 600; font-size: .95rem; font-family: inherit;
  transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(11, 92, 255, .6); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1e293b; }
.btn-small { padding: 9px 16px; font-size: .88rem; border-radius: 10px; }
.appstore-btn { padding: 10px 20px 10px 16px; }
.appstore-btn svg { width: 24px; height: 24px; }
.appstore-btn span { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.appstore-btn small { font-size: .68rem; font-weight: 500; opacity: .85; }
.appstore-btn strong { font-size: 1.05rem; font-weight: 600; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 88px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto auto; width: 720px; height: 720px;
  background: radial-gradient(closest-side, rgba(11, 92, 255, .14), transparent);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand-soft); color: var(--brand);
  font-size: .8rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 700; }
.hero h1 .accent { color: var(--brand); }
.hero .lead { font-size: 1.12rem; color: var(--ink-2); max-width: 520px; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 28px; color: var(--muted); font-size: .88rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { color: var(--green); }

/* Phone mockup */
.phone {
  width: 300px; margin: 0 auto; padding: 12px;
  background: #0f172a; border-radius: 46px;
  box-shadow: 0 40px 80px -30px rgba(15, 23, 42, .45);
  position: relative;
}
.phone-screen { background: #f1f5f9; border-radius: 36px; overflow: hidden; height: 600px; position: relative; }
.phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; background: #0f172a; border-radius: 20px; z-index: 2; }
.phone-bar { height: 52px; }
.phone-title { padding: 0 18px 10px; font-weight: 700; font-size: 1.25rem; }

.invoice {
  margin: 0 12px; background: #fff; border-radius: 10px; overflow: hidden;
  box-shadow: 0 4px 14px -6px rgba(15, 23, 42, .2); font-size: 9px; color: var(--ink-2);
}
.invoice-head { background: var(--brand); color: #fff; padding: 14px; display: flex; justify-content: space-between; align-items: flex-start; }
.invoice-head .logo { width: 28px; height: 28px; border-radius: 7px; background: rgba(255,255,255,.2); display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.invoice-head h4 { margin: 0; font-size: 14px; letter-spacing: .08em; text-align: right; }
.invoice-head p { margin: 0; opacity: .85; text-align: right; }
.invoice-body { padding: 12px 14px; }
.inv-row { display: flex; justify-content: space-between; gap: 8px; }
.inv-label { color: var(--muted); text-transform: uppercase; font-size: 7.5px; letter-spacing: .06em; }
.inv-strong { color: var(--ink); font-weight: 600; }
.inv-table { margin: 12px 0 8px; border-top: 1px solid var(--line); }
.inv-table .inv-row { padding: 6px 0; border-bottom: 1px solid var(--line); }
.inv-total { background: var(--brand-soft); border-radius: 6px; padding: 8px; margin-top: 8px; }
.inv-total .inv-strong { color: var(--brand); font-size: 11px; }
.status-pill { display: inline-block; padding: 2px 8px; border-radius: 99px; background: #dcfce7; color: var(--green); font-weight: 600; font-size: 8px; }

.phone-list { margin: 14px 12px 0; display: grid; gap: 8px; }
.phone-card { background: #fff; border-radius: 10px; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; font-size: 10px; }
.phone-card b { display: block; color: var(--ink); font-size: 11px; }
.phone-card small { color: var(--muted); }
.phone-card .amt { text-align: right; font-weight: 600; color: var(--ink); }
.pill-due { background: #fef3c7; color: var(--amber); }

.floating-card {
  position: absolute; background: #fff; border-radius: 14px; padding: 12px 14px;
  box-shadow: var(--shadow); font-size: .8rem; display: flex; align-items: center; gap: 10px;
  animation: float 6s ease-in-out infinite;
}
.floating-card .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.floating-card b { display: block; font-size: .85rem; }
.floating-card small { color: var(--muted); }
.fc-1 { left: -30px; top: 120px; }
.fc-2 { right: -20px; bottom: 110px; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-visual { position: relative; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.kicker { color: var(--brand); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; display: block; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.feature .icon {
  width: 46px; height: 46px; border-radius: 13px; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 18px;
}
.feature h3 { font-size: 1.1rem; font-weight: 600; }
.feature p { color: var(--muted); font-size: .94rem; margin: 0; }

/* Templates */
.template-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.tpl {
  background: #fff; border-radius: 12px; aspect-ratio: 3 / 4; box-shadow: var(--shadow);
  overflow: hidden; position: relative; padding: 14px; display: flex; flex-direction: column; gap: 6px;
}
.tpl .bar { height: 5px; border-radius: 3px; background: var(--line); }
.tpl .bar.w60 { width: 60%; } .tpl .bar.w40 { width: 40%; } .tpl .bar.w80 { width: 80%; }
.tpl .rows { margin-top: auto; display: grid; gap: 5px; }
.tpl .total { height: 14px; border-radius: 4px; margin-top: 6px; width: 50%; margin-left: auto; }
.tpl-name { text-align: center; font-size: .85rem; font-weight: 500; color: var(--ink-2); margin-top: 10px; }
.tpl-classic { border-top: 6px solid #0b5cff; } .tpl-classic .total { background: #0b5cff; }
.tpl-bold .hd { background: #111827; margin: -14px -14px 6px; height: 46px; } .tpl-bold .total { background: #111827; }
.tpl-sidebar { padding-left: 34px; } .tpl-sidebar::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 20px; background: #059669; } .tpl-sidebar .total { background: #059669; }
.tpl-elegant .hd { height: 2px; background: #b45309; margin: 14px 0 6px; } .tpl-elegant .total { background: #b45309; }
.tpl-wave .hd { margin: -14px -14px 6px; height: 50px; background: #7c3aed; border-radius: 0 0 50% 50% / 0 0 40% 40%; } .tpl-wave .total { background: #7c3aed; }
.template-note { text-align: center; color: var(--muted); margin-top: 36px; font-size: .95rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 600;
  display: grid; place-items: center; margin-bottom: 16px;
}
.step h3 { font-size: 1.1rem; font-weight: 600; }
.step p { color: var(--muted); margin: 0; font-size: .94rem; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
.split p { color: var(--ink-2); }
.check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.check-list svg { flex: none; color: var(--brand); margin-top: 3px; }
.stats-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.stats-card h4 { margin: 0 0 4px; font-size: .85rem; color: var(--muted); font-weight: 500; }
.stats-card .big { font-size: 2rem; font-weight: 700; margin-bottom: 20px; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.bars div { flex: 1; display: flex; gap: 3px; align-items: flex-end; height: 100%; }
.bars i { flex: 1; border-radius: 4px 4px 0 0; background: var(--brand); }
.bars i + i { background: #cbd5e1; }
.bars-x { display: flex; gap: 10px; margin-top: 6px; font-size: .72rem; color: var(--muted); }
.bars-x span { flex: 1; text-align: center; }
.legend { display: flex; gap: 18px; margin-top: 16px; font-size: .8rem; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; background: var(--brand); vertical-align: -1px; }
.legend span + span::before { background: #cbd5e1; }

/* Languages */
.lang-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 860px; margin: 0 auto; }
.lang-cloud span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: .9rem; color: var(--ink-2); }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--brand), #3b82f6);
  color: #fff; border-radius: 28px; padding: 64px 40px; text-align: center; position: relative; overflow: hidden;
}
.cta h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.cta p { opacity: .9; max-width: 520px; margin: 0 auto 28px; }
.cta .btn-dark { background: #fff; color: var(--ink); }
.cta .btn-dark:hover { background: #f1f5f9; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 32px; color: var(--muted); font-size: .9rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-grid p { max-width: 320px; margin-top: 12px; }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-links h5 { margin: 0 0 12px; color: var(--ink); font-size: .9rem; }
.footer-links a { display: block; color: var(--muted); margin-bottom: 8px; }
.footer-links a:hover { color: var(--brand); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .82rem; }

/* ---------- Legal pages ---------- */
.legal-hero { padding: 64px 0 40px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.legal-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal-hero p { color: var(--muted); margin: 0; }
.legal { padding: 56px 0 96px; }
.legal-layout { display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: start; }
.toc { position: sticky; top: 92px; font-size: .88rem; }
.toc h5 { margin: 0 0 12px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.toc a { display: block; color: var(--ink-2); padding: 5px 0 5px 12px; border-left: 2px solid var(--line); }
.toc a:hover { color: var(--brand); border-left-color: var(--brand); text-decoration: none; }
.prose { max-width: 720px; color: var(--ink-2); }
.prose h2 { font-size: 1.35rem; color: var(--ink); margin-top: 2.2em; scroll-margin-top: 92px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.05rem; color: var(--ink); margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .5em; }
.prose strong { color: var(--ink); }
.callout { background: var(--brand-soft); border-radius: 14px; padding: 18px 20px; color: var(--ink-2); margin-bottom: 2em; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 56px; }
  .hero { text-align: center; padding-top: 48px; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-meta { justify-content: center; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .template-strip { grid-template-columns: repeat(3, 1fr); }
  .template-strip > :nth-child(n+4) { display: none; }
  .steps { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
}
@media (max-width: 720px) {
  .container { padding: 0 16px; }
  section { padding: 72px 0; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; }
  .nav-links .btn { justify-content: center; margin-top: 8px; }
  .feature-grid { grid-template-columns: 1fr; }
  .template-strip { grid-template-columns: repeat(2, 1fr); }
  .template-strip > :nth-child(n+3) { display: none; }
  .fc-1 { left: -6px; } .fc-2 { right: -6px; }
  .phone { width: 270px; } .phone-screen { height: 540px; }
  .cta { padding: 48px 20px; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Keep button colours inside the nav, and never allow sideways scrolling */
.nav-links .btn-primary, .nav-links .btn-primary:hover { color: #fff; }
html, body { overflow-x: clip; }
