/*
 * BusinezBook: calm and spacious. Warm paper, ink text, one deep teal; a gentle serif for headings, a clean sans for
 * the rest; lots of room around everything.
 */
:root {
  --ink: #17221f;
  --text: #3f4b47;
  --muted: #6c7874;
  --faint: #9aa4a0;
  --bg: #f8f7f3;
  --surface: #ffffff;
  --sand: #f1ece2;
  --line: #e6e2d8;
  --brand: #0f766e;
  --brand-dark: #0b5d57;
  --brand-soft: #e3f1ee;
  --amber: #c27c14;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(23, 34, 31, .04), 0 18px 40px rgba(23, 34, 31, .07);
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.7 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
h3, h4 { font-family: var(--font); letter-spacing: 0; }
p { margin: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; padding: 8px 14px; border-radius: 8px; background: var(--ink); color: #fff; z-index: 100; }
.skip-link:focus { left: 16px; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border: 1px solid transparent; border-radius: 999px; font: 600 16px/1 var(--font); transition: background .2s, border-color .2s, transform .2s; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { border-color: var(--line); background: transparent; color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-dark { padding: 11px 20px; background: var(--ink); color: #fff; font-size: 15px; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--sand); color: var(--ink); }
.btn-block { width: 100%; justify-content: center; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.actions.center { justify-content: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(248, 247, 243, .86); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 20px; }
.brand:hover { color: var(--ink); }
.brand-mark { display: inline-flex; color: var(--brand); }
.brand-logo { max-height: 40px; }
.site-nav { display: flex; align-items: center; gap: 36px; }
.nav-list { display: flex; gap: 30px; margin: 0; padding: 0; list-style: none; }
.nav-link { color: var(--text); font-size: 15.5px; font-weight: 500; }
.nav-link:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 22px; }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 6px auto; background: var(--ink); transition: transform .2s; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav { position: fixed; inset: 76px 0 auto 0; display: none; flex-direction: column; align-items: stretch; gap: 8px; padding: 20px 28px 32px; background: var(--bg); border-bottom: 1px solid var(--line); }
  body.nav-open .site-nav { display: flex; }
  body.nav-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  body.nav-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav-list { flex-direction: column; gap: 4px; }
  .nav-list .nav-link { display: block; padding: 10px 0; font-size: 18px; }
  .nav-actions { justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); }
}

/* Sections */
.section { padding: 120px 0; }
.section.tight { padding: 72px 0; }
.section.sand { background: var(--sand); }
.section.white { background: var(--surface); }
.eyebrow { display: inline-block; margin-bottom: 18px; color: var(--brand); font-size: 13.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head h2 { font-size: clamp(32px, 4vw, 46px); }
.section-head p { margin-top: 20px; font-size: 19px; color: var(--muted); }
.page-title { font-size: clamp(40px, 5.4vw, 64px); }
.lead { margin-top: 24px; font-size: 20px; line-height: 1.6; color: var(--muted); }
@media (max-width: 700px) { .section { padding: 80px 0; } .section-head { margin-bottom: 44px; } }

/* Hero */
.hero { padding: 96px 0 120px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 72px; align-items: center; }
.hero h1 { font-size: clamp(42px, 5.6vw, 68px); }
.hero h1 em { font-style: italic; color: var(--brand); }
.hero .lead { max-width: 520px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; color: var(--muted); font-size: 15px; }
.hero-note span { display: inline-flex; align-items: center; gap: 8px; }
.hero-note svg { color: var(--brand); }
.hero-picture { border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 960px) { .hero { padding: 64px 0 96px; } .hero-grid { grid-template-columns: 1fr; gap: 56px; } }

/* The drawn app window */
.app-window { position: relative; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; font-family: var(--font); }
.app-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #fbfaf7; }
.app-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e2ddd2; }
.app-bar span { margin-left: 10px; color: var(--faint); font-size: 12.5px; }
.app-body { display: grid; grid-template-columns: 150px 1fr; min-height: 340px; }
.app-side { padding: 18px 14px; border-right: 1px solid var(--line); background: #fcfbf8; }
.app-side b { display: block; height: 9px; margin: 14px 6px; border-radius: 5px; background: #ebe7de; }
.app-side b.on { background: var(--brand-soft); box-shadow: inset 3px 0 0 var(--brand); }
.app-main { padding: 22px; }
.app-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.app-tile { padding: 14px; border-radius: 14px; background: var(--bg); }
.app-tile small { display: block; color: var(--muted); font-size: 11.5px; }
.app-tile strong { display: block; margin-top: 4px; color: var(--ink); font-size: 17px; }
.app-tile.good strong { color: var(--brand); }
.app-chart { display: flex; align-items: flex-end; gap: 10px; height: 110px; margin: 20px 4px 6px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.app-chart i { flex: 1; border-radius: 6px 6px 2px 2px; background: #cfe7e2; }
.app-chart i.hi { background: var(--brand); }
.app-rows { margin-top: 14px; }
.app-row { display: flex; justify-content: space-between; padding: 9px 2px; border-bottom: 1px dashed var(--line); font-size: 12.5px; color: var(--text); }
.app-row em { font-style: normal; color: var(--brand); font-weight: 600; }
.app-row em.due { color: var(--amber); }
@media (max-width: 560px) { .app-body { grid-template-columns: 1fr; } .app-side { display: none; } .app-tiles { grid-template-columns: 1fr 1fr; } .app-tile:last-child { display: none; } }

/* Numbers */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.stat { padding: 36px 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.stat strong { display: block; color: var(--ink); font: 600 44px/1 var(--serif); }
.stat span { display: block; margin-top: 12px; color: var(--muted); }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.feature { display: flex; flex-direction: column; padding: 40px 36px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: box-shadow .25s, transform .25s; }
a.feature { color: inherit; }
a.feature:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.feature-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 28px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); }
.feature h3 { font-size: 21px; }
.feature p { margin-top: 12px; color: var(--muted); }
.feature ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.feature li { display: flex; gap: 10px; align-items: center; font-size: 15.5px; color: var(--text); }
.feature li svg { flex: 0 0 auto; color: var(--brand); }
.feature .more { margin-top: auto; padding-top: 26px; color: var(--brand); font-weight: 600; font-size: 15.5px; }
.feature.plain { padding: 8px 0; border: 0; background: none; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 48px; counter-reset: step; }
.step { position: relative; padding-top: 72px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); color: var(--brand); font: 600 22px/1 var(--serif); }
.step h3 { font-size: 21px; }
.step p { margin-top: 12px; color: var(--muted); }

/* Text beside a picture */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 88px; align-items: center; }
.split.flip .split-text { order: 2; }
.split-text h2 { font-size: clamp(32px, 4vw, 44px); }
.split-text .lead { font-size: 19px; }
.checks, .prose ul { margin: 32px 0 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.checks li, .prose ul li { position: relative; padding-left: 36px; }
.checks li::before, .prose ul li::before { content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat; }
.split-picture { border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 56px; } .split.flip .split-text { order: 0; } }

/* A drawn invoice, beside text */
.paper { max-width: 440px; margin: 0 auto; padding: 36px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 14.5px; }
.paper-head { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.paper-head strong { color: var(--ink); font: 600 22px/1.2 var(--serif); }
.paper-head small { display: block; color: var(--muted); }
.paper-badge { padding: 4px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 600; font-size: 12.5px; }
.paper-line { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.paper-total { display: flex; justify-content: space-between; padding-top: 18px; color: var(--ink); font-weight: 700; font-size: 17px; }

/* Questions */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; color: var(--ink); font-size: 19px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: 0 0 auto; color: var(--brand); font: 400 28px/1 var(--font); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 26px; color: var(--muted); }

/* Call to action */
.cta-band { padding: 88px 64px; border-radius: 32px; background: radial-gradient(700px 300px at 85% 0%, rgba(255, 255, 255, .14), transparent 70%), var(--brand); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(32px, 4.4vw, 48px); max-width: 760px; margin: 0 auto; }
.cta-band p { max-width: 600px; margin: 20px auto 0; color: rgba(255, 255, 255, .82); font-size: 19px; }
.cta-band .actions { justify-content: center; }
.cta-band .btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.cta-band .btn-ghost:hover { border-color: #fff; color: #fff; }
.cta-note { margin-top: 22px !important; font-size: 15px !important; }
@media (max-width: 700px) { .cta-band { padding: 64px 26px; border-radius: 24px; } }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 88px; align-items: start; }
.about-grid .lead { margin-top: 0; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }

/* Body text */
.prose { margin-top: 28px; }
.prose p { margin-top: 18px; }
.prose h2, .prose h3 { margin-top: 44px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius-sm); margin: 28px 0; }
.article-picture { margin-top: 40px; border-radius: var(--radius); }

/* Contact page (contact-section) */
.contact-head { max-width: 760px; margin-bottom: 56px; }
.contact-layout { display: grid; gap: 32px; align-items: start; }
.contact-layout.has-both { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.contact-layout.form-only { max-width: 720px; }
.contact-layout.cards-only .contact-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.contact-side { display: grid; gap: 20px; }
.contact-method { display: flex; align-items: center; gap: 20px; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.contact-method:hover { border-color: var(--brand); box-shadow: var(--shadow); color: var(--ink); }
.contact-method-icon { flex: 0 0 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
.contact-method-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.contact-method-text strong { font-size: 19px; font-weight: 700; }
.contact-method-value { font-size: 18px; font-weight: 500; color: var(--brand); overflow-wrap: anywhere; }
.contact-method-text small { font-size: 14.5px; color: var(--muted); }
.contact-picture { width: 100%; border-radius: var(--radius); }
.contact-body { max-width: 720px; margin-top: 48px; }
@media (max-width: 900px) { .contact-layout.has-both { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .contact-method { padding: 22px; gap: 16px; } .contact-method-icon { flex-basis: 52px; height: 52px; } }

/* Contact form (partial/contact-form.ftl) */
.contact-form { margin-top: 36px; padding: 40px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact-main .contact-form, .contact-layout .contact-form { margin-top: 0; }
.contact-form-head { margin-bottom: 26px; }
.contact-form-head h2 { font-size: 28px; }
.contact-form-head p { margin-top: 8px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.field input, .field textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); font: inherit; font-size: 16px; color: var(--ink); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px var(--brand-soft); }
.field textarea { resize: vertical; }
.form-hint { margin-top: 12px; font-size: 14.5px; color: var(--muted); }
.contact-form .btn-block { margin-top: 20px; }
.contact-status { margin: 14px 0 0; font-size: 15px; text-align: center; }
.contact-status-ok { color: var(--brand); font-weight: 600; }
.contact-status-error { color: #b42318; }
.contact-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .contact-form { padding: 24px; } .form-grid { grid-template-columns: 1fr; } }

/* Cards of posts */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: inherit; }
.card:hover { box-shadow: var(--shadow); color: inherit; }
.card img { aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { padding: 28px; }
.card-body h3 { font-size: 20px; }
.card-body p { margin-top: 10px; color: var(--muted); }

/* Footer */
.site-footer { margin-top: 40px; padding: 88px 0 40px; border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
.footer-about p { max-width: 360px; margin-top: 18px; color: var(--muted); font-size: 15.5px; }
.footer-contact { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15.5px; }
.footer-col h4 { color: var(--ink); font-size: 15px; }
.footer-col ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--muted); font-size: 15.5px; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14.5px; }
.socials { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; }
.socials a { color: var(--muted); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
