/* Bilaro website. Same system as the app (DESIGN.md, Stripe template from VoltAgent/awesome-design-md):
   navy ink, one indigo action per band, hairline cards, thin display type, tabular money, mesh only in hero and closing band. */

@font-face {
  font-family: 'Inter Variable';
  src: url('fonts/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0d253d;
  --ink-2: #273951;
  --body: #425466;
  --mute: #64748d;
  --canvas: #ffffff;
  --soft: #f6f9fc;
  --line: #e3e8ee;
  --line-strong: #cfd7e1;
  --navy: #1c1e54;
  --navy-deep: #0a2540;
  --primary: #533afd;
  --primary-deep: #4434d4;
  --primary-soft: #efeefe;
  --green: #1ea672; --green-bg: #d7f7e8; --green-ink: #0b6a46;
  --yellow: #e5a400; --yellow-bg: #fcf1cd; --yellow-ink: #7a4a00;
  --red: #df1b41; --red-bg: #ffe7ec; --red-ink: #b3093c;
  --radius: 12px;
  --shadow-1: 0 1px 3px rgba(0, 55, 112, 0.08);
  --shadow-3: 0 30px 60px -12px rgba(50, 50, 93, 0.25), 0 18px 36px -18px rgba(0, 0, 0, 0.3);
  --wrap: 1140px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; font-family: 'Inter Variable', Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px; line-height: 1.6; color: var(--body); background: var(--canvas);
  font-feature-settings: 'ss01' 1, 'cv11' 1; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-deep); }
h1, h2, h3, h4 { color: var(--ink); margin: 0; }
p { margin: 0; }
.num { font-feature-settings: 'tnum' 1; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; color: #fff; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px;
  border-radius: 9999px; font: inherit; font-size: 15px; font-weight: 500; line-height: 1; letter-spacing: -0.1px;
  border: 1px solid transparent; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(50, 50, 93, .2); }
.btn-primary:hover { background: var(--primary-deep); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--mute); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { color: var(--primary); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--primary-soft); color: var(--navy); }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(2px); }

/* Header */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .82); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-head.scrolled { border-bottom-color: var(--line); }
.head-row { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 19px; letter-spacing: -0.3px; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-size: 16px; font-weight: 600; background: linear-gradient(135deg, #665efd 0%, #533afd 45%, #2e2b8c 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.nav { display: flex; gap: 24px; margin-right: auto; }
.nav a { color: var(--ink-2); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--primary); }
.head-actions { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); cursor: pointer; }
.mobile-nav { display: none; }

/* Hero */
.hero { position: relative; isolation: isolate; padding: 72px 0 0; }
.hero::before {
  content: ''; position: absolute; z-index: -1; inset: -120px 0 auto; height: 760px; pointer-events: none;
  background:
    radial-gradient(38% 60% at 8% 22%, rgba(245, 233, 212, .95), transparent 70%),
    radial-gradient(28% 55% at 30% 6%, rgba(255, 186, 120, .55), transparent 70%),
    radial-gradient(32% 62% at 56% 30%, rgba(185, 185, 249, .78), transparent 70%),
    radial-gradient(30% 55% at 80% 8%, rgba(102, 94, 253, .55), transparent 70%),
    radial-gradient(26% 55% at 97% 34%, rgba(249, 107, 238, .42), transparent 70%);
  filter: blur(36px) saturate(115%);
  mask-image: linear-gradient(to bottom, #000 35%, transparent 92%);
  -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent 92%);
}
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-size: 13px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; }
.hero-copy { max-width: 760px; }
.hero h1 { margin-top: 18px; font-size: clamp(40px, 6.2vw, 72px); line-height: 1.04; font-weight: 300; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--primary); }
.lead { margin-top: 22px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--body); max-width: 640px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-2); }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts li::before { content: ''; width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%23533afd' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

.hero-shot { position: relative; margin-top: 64px; padding-bottom: 96px; }
.browser { border-radius: 14px; background: #fff; box-shadow: var(--shadow-3), 0 0 0 1px rgba(13, 37, 61, .06); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: var(--soft); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d8dee6; }
.browser-bar span { margin: 0 auto; transform: translateX(-24px); font-size: 12px; color: var(--mute); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 2px 40px; }
.phone {
  position: absolute; right: -8px; bottom: 40px; width: 25%; max-width: 270px; border-radius: 34px; padding: 8px; background: #0d1b2e;
  box-shadow: var(--shadow-3);
}
.phone img { border-radius: 27px; }
.demo-note { margin-top: 14px; font-size: 13px; color: var(--mute); text-align: center; }

/* Sections */
.section { padding: 112px 0; }
.section-soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section h2 { margin-top: 14px; font-size: clamp(32px, 4vw, 48px); line-height: 1.1; font-weight: 300; letter-spacing: -0.03em; }
.section-head p { margin-top: 18px; font-size: 18px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; counter-reset: step; }
.step { position: relative; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: 600; font-size: 15px; }
.step h3 { margin-top: 18px; font-size: 19px; font-weight: 500; letter-spacing: -0.2px; }
.step p { margin-top: 8px; font-size: 15px; }

/* Score / traffic light */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.split.reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split.reverse .split-copy { order: 2; }
.lights { display: grid; gap: 12px; margin-top: 32px; }
.light { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.score { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 9999px; font-size: 13px; font-weight: 600; font-feature-settings: 'tnum' 1; white-space: nowrap; }
.score::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.score.g { background: var(--green-bg); color: var(--green-ink); } .score.g::before { background: var(--green); }
.score.y { background: var(--yellow-bg); color: var(--yellow-ink); } .score.y::before { background: var(--yellow); }
.score.r { background: var(--red-bg); color: var(--red-ink); } .score.r::before { background: var(--red); }
.light h3 { font-size: 16px; font-weight: 600; }
.light p { margin-top: 2px; font-size: 15px; }
.shot { border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-3), 0 0 0 1px rgba(13, 37, 61, .06); overflow: hidden; }
.shot-flat { box-shadow: 0 12px 32px -12px rgba(50, 50, 93, .18), 0 0 0 1px rgba(13, 37, 61, .06); }

/* Feature rows */
.features { display: grid; gap: 128px; margin-top: 80px; }
.feature h3 { margin-top: 12px; font-size: clamp(26px, 2.8vw, 34px); line-height: 1.15; font-weight: 300; letter-spacing: -0.025em; }
.feature .split-copy > p { margin-top: 16px; font-size: 17px; }
.checks { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.checks li { position: relative; padding-left: 28px; font-size: 15px; color: var(--ink-2); }
.checks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%23533afd' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.media-stack { position: relative; }
.media-stack .float { position: absolute; width: 58%; right: -24px; bottom: -48px; }
.media-phone { position: relative; display: flex; justify-content: center; gap: 24px; align-items: flex-end; }
.media-phone .phone { position: relative; right: auto; bottom: auto; width: 44%; max-width: 300px; flex: none; }
.media-phone .shot { flex: 1; }

/* Roles */
.roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.role { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.role h3 { font-size: 17px; font-weight: 600; }
.role p { margin-top: 6px; font-size: 14px; }
.role .tag { display: inline-block; margin-bottom: 12px; padding: 2px 8px; border-radius: 4px; background: var(--primary-soft); color: var(--primary-deep); font-size: 12px; font-weight: 600; }

/* Trust band */
.band { position: relative; padding: 112px 0; background: var(--navy-deep); color: #c4cfdd; overflow: hidden; isolation: isolate; }
.band::before { content: ''; position: absolute; z-index: -1; inset: -40% -10% auto auto; width: 70%; height: 120%; background: radial-gradient(closest-side, rgba(83, 58, 253, .35), transparent); filter: blur(20px); }
.band .eyebrow { color: #a99cff; }
.band h2 { color: #fff; }
.band .section-head p { color: #c4cfdd; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 56px; }
.pillar { padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .16); }
.pillar h3 { color: #fff; font-size: 17px; font-weight: 500; line-height: 1.35; }
.pillar p { margin-top: 10px; font-size: 15px; color: #aebbcc; }

/* bexio switch */
.switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 48px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); overflow: hidden; }
.switch > div { padding: 28px; }
.switch > div + div { border-left: 1px solid var(--line); }
.switch .file { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 4px; background: var(--soft); border: 1px solid var(--line); color: var(--ink-2); font-size: 12px; font-weight: 600; font-feature-settings: 'tnum' 1; }
.switch h3 { margin-top: 14px; font-size: 17px; font-weight: 600; }
.switch p { margin-top: 6px; font-size: 15px; }
.switch-foot { margin-top: 20px; font-size: 15px; color: var(--ink-2); }

/* Next */
.next { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; padding: 0; list-style: none; }
.next li { padding: 8px 14px; border: 1px dashed var(--line-strong); border-radius: 9999px; font-size: 14px; color: var(--ink-2); background: #fff; }

/* FAQ */
.faq { max-width: 820px; margin: 48px auto 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; cursor: pointer; list-style: none; color: var(--ink); font-size: 18px; font-weight: 500; letter-spacing: -0.2px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; width: 20px; height: 20px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 4v12M4 10h12' stroke='%23533afd' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/20px no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 24px 0; font-size: 16px; }

/* Closing */
.closing { position: relative; isolation: isolate; padding: 120px 0; text-align: center; overflow: hidden; }
.closing::before {
  content: ''; position: absolute; z-index: -1; inset: 10% -10% -20%; pointer-events: none;
  background:
    radial-gradient(30% 50% at 20% 60%, rgba(245, 233, 212, .9), transparent 70%),
    radial-gradient(30% 55% at 45% 40%, rgba(185, 185, 249, .7), transparent 70%),
    radial-gradient(28% 50% at 72% 60%, rgba(102, 94, 253, .45), transparent 70%),
    radial-gradient(24% 45% at 90% 40%, rgba(249, 107, 238, .35), transparent 70%);
  filter: blur(40px);
}
.closing h2 { max-width: 820px; margin: 0 auto; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.08; font-weight: 300; letter-spacing: -0.035em; }
.closing p { margin: 18px auto 0; max-width: 560px; font-size: 18px; }
.closing .cta-row { justify-content: center; }

/* Footer */
.site-foot { padding: 56px 0 40px; border-top: 1px solid var(--line); font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.foot-row p { margin-top: 12px; max-width: 360px; color: var(--mute); }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.foot-links a { color: var(--ink-2); }
.foot-links a:hover { color: var(--primary); }
.copy { margin-top: 40px; color: var(--mute); font-size: 13px; }

/* Legal pages */
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(34px, 4vw, 44px); line-height: 1.1; font-weight: 300; letter-spacing: -0.03em; }
.legal .updated { margin-top: 10px; color: var(--mute); font-size: 14px; }
.legal h2 { margin-top: 40px; font-size: 20px; font-weight: 600; letter-spacing: -0.2px; }
.legal p, .legal li { margin-top: 12px; font-size: 16px; }
.legal ul { padding-left: 20px; }
.legal address { font-style: normal; margin-top: 12px; line-height: 1.7; color: var(--ink-2); }
.legal table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 10px 10px 0; overflow-wrap: anywhere; border-bottom: 1px solid var(--line); }
.legal th { color: var(--mute); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; font-weight: 600; }

/* Not found */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 96px 0; }
.notfound h1 { font-size: 48px; font-weight: 300; letter-spacing: -0.03em; }
.notfound p { margin-top: 12px; }

/* Responsive */
@media (max-width: 1080px) {
  .nav { gap: 18px; }
  .nav a.opt { display: none; }
}
@media (max-width: 960px) {
  .nav, .head-actions .btn-ghost { display: none; }
  .head-actions { margin-left: auto; }
  .menu-btn { display: grid; place-items: center; margin-left: 0; }
  .mobile-nav { display: none; padding: 8px 0 20px; border-bottom: 1px solid var(--line); }
  .mobile-nav.open { display: grid; gap: 4px; }
  .mobile-nav a { padding: 10px 0; color: var(--ink); font-size: 17px; font-weight: 500; }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .split-copy { order: 0; }
  .steps { grid-template-columns: 1fr; }
  .roles { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .switch { grid-template-columns: 1fr; }
  .switch > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .features { gap: 96px; }
  .media-stack .float { right: -8px; bottom: -32px; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .wrap { padding: 0 20px; }
  .head-actions .btn-primary { padding: 10px 14px; font-size: 14px; }
  .hero { padding-top: 40px; }
  .cta-row .btn { flex: 1 1 auto; }
  .hero-shot { margin-top: 40px; padding-bottom: 64px; }
  .browser-bar span { display: none; }
  .phone { width: 36%; right: -6px; bottom: 24px; border-radius: 22px; padding: 5px; }
  .phone img { border-radius: 18px; }
  .section, .band { padding: 80px 0; }
  .roles, .pillars { grid-template-columns: 1fr; }
  .media-stack .float { position: relative; width: 82%; right: auto; bottom: auto; margin: -28px 0 0 auto; }
  .media-phone .phone { width: 62%; }
  .media-phone .shot { display: none; }
  .faq summary { font-size: 17px; }
  .faq details p { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Small helpers */
figure { margin: 0; }
kbd { font: inherit; font-weight: 600; color: var(--ink); padding: 0 5px; border: 1px solid var(--line-strong); border-radius: 5px; background: #fff; font-size: .9em; }
.section .sub { margin-top: 18px; font-size: 18px; }
.checks-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.checks-grid strong { display: block; color: var(--ink); font-weight: 600; }
.sub-head { margin-top: 96px; }
.sub-head h3 { font-size: 24px; font-weight: 400; letter-spacing: -0.02em; }
.next-block { margin-top: 72px; }
.next-block h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.2px; }
@media (max-width: 960px) { .checks-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .checks-grid { grid-template-columns: 1fr; margin-top: 48px; } .sub-head { margin-top: 64px; } }
.cta-row.center { justify-content: center; }
.band h2 { margin-top: 14px; font-size: clamp(32px, 4vw, 48px); line-height: 1.1; font-weight: 300; letter-spacing: -0.03em; }
@media (max-width: 640px) { .demo-note { text-align: left; padding-right: 40%; } }
