/* Kasawir: ivory, navy and gold, serif headlines, square edges.
   One rule per component; media queries sit next to the rules they change. */

/* ---------- Tokens and fonts ---------- */
:root {
  --navy: #0e1b2c;
  --navy-hover: #22344f;
  --ink: #0e1b2c;
  --ink-2: #3a4555;
  --muted: #6b7380;
  --bg: #faf8f3;
  --bg-alt: #f2eee5;
  --paper: #ffffff;
  --line: #e2dccf;
  --gold: #a8844a;
  --gold-soft: #efe6d4;
  --success: #2f6b4f;
  --error: #9b2c2c;
  --footer: #0a1420;
  --radius: 2px;
  --max: 1320px;
  --shadow-sm: 0 1px 0 rgba(14, 27, 44, .04);
  --shadow: 0 12px 28px -18px rgba(14, 27, 44, .28);
  --shadow-lg: 0 24px 50px -24px rgba(14, 27, 44, .35);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --display: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

@font-face { font-family: "Source Serif 4"; src: url("/static/fonts/source-serif-4.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/static/fonts/source-serif-4-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font: 16.5px/1.65 var(--sans); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); font-weight: 560; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.012em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 520; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--ink-2); }
p, li, dd { text-wrap: pretty; }
a { color: inherit; }
img { display: block; max-width: 100%; }
@media (max-width: 800px) { body { font-size: 16px; } }

.container { max-width: var(--max); margin: 0 auto; padding: 0 clamp(24px, 4vw, 48px); }
.muted { color: var(--muted); }
.icon { width: 1em; height: 1em; flex: none; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Small capitals in gold: eyebrows, kickers and labels */
.eyebrow, .kicker, .logo-band-head, .tool-group-label, .footer-head, .stat-label, .case-label, .case-sector, .tag, .pill {
  font-family: var(--sans); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
}
.eyebrow { font-size: .76rem; margin-bottom: 18px; }
.kicker { font-size: .8rem; margin-bottom: 10px; }
.kicker::after { content: ""; display: block; width: 44px; height: 1px; margin-top: 12px; background: var(--gold); }
.section-head .kicker::after, .faq .kicker::after { margin-bottom: 4px; }
.tag { font-size: .7rem; letter-spacing: .14em; }
.pill { display: inline-block; font-size: .72rem; padding: 4px 10px; border: 1px solid var(--gold); border-radius: var(--radius); }
.lead { font-size: 1.15rem; line-height: 1.6; max-width: 640px; }
.note { margin-top: 28px; }

/* ---------- Layout ---------- */
.section { padding: 96px 0; background: var(--bg); }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { margin-bottom: .35em; }
.prose { max-width: 760px; }
.stack { display: grid; gap: 24px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px) { .section { padding: 64px 0; } }
@media (max-width: 640px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Header: wordmark centered, links split left and right ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(250, 248, 243, .94); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; height: 84px; }
.brand { grid-column: 2; justify-self: center; display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
/* Tracked capitals over a double rule, the accountant's mark for a final total */
.wordmark { display: inline-block; font-family: var(--display); font-weight: 600; font-size: 1.3rem; line-height: 1; letter-spacing: .26em; margin-right: -.26em; text-transform: uppercase; color: var(--navy); padding-bottom: 5px; border-bottom: 4px double currentColor; }
.wordmark-light { color: #fff; }
.site-header nav { display: flex; align-items: center; gap: 28px; }
.site-header .main-nav { gap: 26px; }
.nav-left { grid-column: 1; justify-self: start; }
.nav-right { grid-column: 3; justify-self: end; }
.site-header nav a:not(.btn) { text-decoration: none; color: var(--ink-2); font-size: .95rem; font-weight: 500; }
.site-header nav a.active, .site-header nav a:not(.btn):hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 8px; }
.site-header .main-nav a, .lang-menu summary, .nav-right .btn { white-space: nowrap; }
@media (max-width: 920px) {
  .header-inner { height: 68px; }
  .wordmark { font-size: 1.1rem; }
}
@media (max-width: 800px) { .site-header nav a:not(.btn) { font-size: .9rem; } }
@media (max-width: 560px) { .site-header nav .btn { padding: 7px 12px; font-size: .85rem; } }

/* Mobile menu: a <details> disclosure with a menu icon, no JavaScript */
.mobile-nav { display: none; position: relative; grid-column: 3; justify-self: end; }
.mobile-nav summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary .icon { width: 22px; height: 22px; color: var(--ink); }
.mobile-nav[open] summary { background: var(--bg-alt); }
.mobile-nav .menu-close, .mobile-nav[open] .menu-open { display: none; }
.mobile-nav[open] .menu-close { display: grid; }
.site-header .mobile-nav nav { position: absolute; right: 0; top: calc(100% + 8px); width: min(260px, calc(100vw - 32px)); flex-direction: column; align-items: stretch; gap: 4px; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.site-header .mobile-nav nav a:not(.btn) { padding: 10px 12px; border-radius: 8px; }
.site-header .mobile-nav nav a:not(.btn):hover, .site-header .mobile-nav nav a.active { background: var(--bg-alt); }
.mobile-nav nav .btn { margin-top: 6px; }
@media (max-width: 920px) {
  .main-nav { display: none !important; }
  .mobile-nav { display: block; }
}

/* Language switcher: a globe and code in the header, a list on open */
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: .85rem; font-weight: 600; letter-spacing: .06em; color: var(--ink-2); padding: 6px 2px; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary .icon { width: 16px; height: 16px; color: var(--gold); }
.lang-menu summary:hover, .lang-menu[open] summary { color: var(--ink); }
.lang-list { position: absolute; right: 0; top: calc(100% + 12px); z-index: 30; min-width: 190px; display: flex; flex-direction: column; padding: 8px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.lang-list a, .mobile-langs a, .footer-langs a { text-decoration: none; }
.site-header .lang-list a { padding: 8px 12px; color: var(--ink); font-size: .92rem; font-weight: 500; }
.site-header .lang-list a:hover { background: var(--bg-alt); }
.lang-list a.current, .mobile-langs a.current { color: var(--gold); font-weight: 600; }
.mobile-langs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; margin-top: 10px; padding: 12px 12px 4px; border-top: 1px solid var(--line); }
.site-header .mobile-langs a { padding: 2px 0; font-size: .88rem; color: var(--ink-2); }

/* ---------- Buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; font-family: inherit; font-size: .95rem; font-weight: 600; letter-spacing: .02em; text-decoration: none; cursor: pointer; color: #fff; background: var(--navy); border: 1px solid var(--navy); border-radius: var(--radius); transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, opacity 150ms ease, transform 160ms var(--ease-out); }
.btn:hover { background: var(--navy-hover); border-color: var(--navy-hover); }
.btn:active { transform: scale(0.97); }
/* Submitting: dimmed, with a small spinner (static/js/forms.js sets aria-busy) */
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.btn[aria-busy="true"]::after { content: ""; width: 14px; height: 14px; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-small { padding: 8px 14px; font-size: .9rem; }
.btn-outline-light { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline-light:hover { background: var(--bg-alt); border-color: var(--ink); }
.btn-light { background: var(--paper); color: var(--navy); border-color: var(--paper); }
.btn-light:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.link { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.link:hover { color: var(--gold); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 104px; background: var(--bg); color: var(--ink); border-bottom: 1px solid var(--line); }
/* A faint grid; hidden once the interactive canvas (static/js/hero-grid.js) takes over */
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(14, 27, 44, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(14, 27, 44, .045) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 85%); -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 85%); }
.hero.has-grid::after { display: none; }
.hero-canvas { position: absolute; inset: 0; z-index: 0; pointer-events: none; mask-image: linear-gradient(180deg, rgba(0, 0, 0, .95), rgba(0, 0, 0, .35) 70%, transparent); -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .95), rgba(0, 0, 0, .35) 70%, transparent); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr .8fr; gap: 56px; align-items: center; pointer-events: none; }
.hero-grid > * { pointer-events: auto; }
.hero h1 { font-size: clamp(2.4rem, 4.8vw, 3.7rem); }
.hero h1::after { content: ""; display: block; width: 72px; height: 2px; margin-top: 26px; background: var(--gold); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-points { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-direction: column; gap: 10px; font-size: .92rem; color: var(--ink-2); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .icon { font-size: 1.1rem; color: var(--gold); }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 800px) { .hero { padding: 64px 0 72px; } }
@media (max-width: 560px) { .hero .actions .btn { flex: 1 1 100%; } }

/* The sample close pack reads as a printed document */
.sample-card { margin: 0; padding: 24px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.sample-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.sample-title { margin: 0; font-family: var(--display); font-size: 1.15rem; font-weight: 600; color: var(--ink); }
.sample-sub { margin: 2px 0 0; font-size: .85rem; color: var(--muted); }
.sample-list { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
.sample-list li { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--ink-2); }
.sample-list .icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--gold-soft); color: var(--gold); stroke-width: 2.6; }
.sample-chart { display: flex; align-items: flex-end; gap: 10px; height: 96px; padding: 16px; margin: 8px 0 16px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
/* The illustrative bars rise once on load, a month building up */
.bar { flex: 1; background: var(--navy); transform-origin: bottom; animation: bar-rise 600ms var(--ease-out) both; }
.b1 { height: 42%; } .b2 { height: 58%; animation-delay: 50ms; } .b3 { height: 50%; animation-delay: 100ms; } .b4 { height: 72%; animation-delay: 150ms; } .b5 { height: 64%; animation-delay: 200ms; } .b6 { height: 86%; background: var(--gold); animation-delay: 250ms; }
@keyframes bar-rise { from { transform: scaleY(.4); } }
.sample-foot { display: flex; flex-wrap: wrap; gap: 6px; }
.sample-foot span { font-size: .78rem; font-weight: 600; color: var(--ink-2); background: var(--bg-alt); border: 1px solid var(--line); padding: 4px 10px; border-radius: var(--radius); }
@media (max-width: 1000px) { .sample-card { max-width: 520px; } }

/* ---------- Client and software logos ---------- */
.logo-band { padding: 36px 0 40px; background: var(--bg); border-bottom: 1px solid var(--line); }
.logo-band-head { text-align: center; font-size: .8rem; margin-bottom: 22px; }
.logo-band-more { text-align: center; margin: 22px 0 0; font-size: .92rem; }
.logo-band-rule { border: 0; border-top: 1px solid var(--line); max-width: 560px; margin: 30px auto 26px; }
.client-row { list-style: none; padding: 0; margin: 0 0 4px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px 64px; }
.client-row img { width: auto; opacity: .9; }
.logo-row { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px 44px; }
.logo-row li { display: inline-flex; align-items: center; }
.logo-row li img { width: 34px; height: 34px; opacity: .85; }
/* Wordmark-style logos sit in a square viewBox; scale them up to read */
.logo-row img:is([src$="/sage.svg"], [src$="/myob.svg"], [src$="/odoo.svg"], [src$="/gusto.svg"], [src$="/zoho.svg"]) { width: 64px; height: 64px; margin: -15px 0; }
@media (max-width: 800px) {
  .client-row { gap: 20px 36px; }
  .logo-row { gap: 16px 28px; }
  .logo-row li img { width: 28px; height: 28px; }
}

/* Homepage "in focus" band: one timely guide, below the client logos */
.focus-band { background: var(--navy); }
.focus-link { display: flex; align-items: center; gap: 22px; padding: 20px 0; text-decoration: none; color: #fff; }
.focus-kicker { flex: none; font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); padding-right: 22px; border-right: 1px solid rgba(255, 255, 255, .2); }
.focus-title { flex: 1; font-family: var(--display); font-size: 1.15rem; line-height: 1.35; }
.focus-more { flex: none; font-size: .9rem; font-weight: 600; color: rgba(255, 255, 255, .75); }
.focus-link:hover .focus-more { color: var(--gold); }
@media (max-width: 800px) {
  .focus-link { flex-direction: column; align-items: flex-start; gap: 6px; }
  .focus-kicker { border-right: 0; padding-right: 0; }
}

/* Cross-border band: an oversized rotating globe that bleeds off the right
   and bottom edges, fading out behind the text */
.world-band { position: relative; min-height: 640px; padding: 120px 0; background: var(--navy); color: #fff; overflow: hidden; }
.world-copy { position: relative; z-index: 1; max-width: 400px; }
.world-copy h2 { color: #fff; }
.world-copy p { color: rgba(255, 255, 255, .72); }
.world-copy .kicker { color: var(--gold); }
.world-copy .link { color: #fff; }
.world-copy .link:hover { color: var(--gold); }
.world-map { position: absolute; z-index: 0; top: -40px; right: -8%; width: min(1080px, 88vw); aspect-ratio: 1; display: grid; place-items: center; -webkit-mask-image: linear-gradient(90deg, transparent 4%, #000 34%); mask-image: linear-gradient(90deg, transparent 4%, #000 34%); }
.world-map img { width: 100%; height: auto; }
.world-map canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 600ms ease; cursor: grab; touch-action: pan-y; }
.world-map.is-dragging canvas { cursor: grabbing; }
.world-map.has-globe img { display: none; }
.world-map.has-globe canvas { opacity: 1; }
@media (max-width: 1000px) {
  .world-band { min-height: 0; padding: 72px 0 0; }
  /* Below the text, wider than the screen, its lower half cut off by the band */
  .world-map { position: relative; top: auto; right: auto; left: 50%; width: 160%; margin: 8px 0 -56% -80%; -webkit-mask-image: none; mask-image: none; }
}

/* ---------- Cards ---------- */
.card { padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card h3 { margin-top: 4px; }
.card p:last-of-type { margin-bottom: 16px; }
.card-link { display: block; text-decoration: none; color: inherit; }
.card-hover { transition: border-color 150ms ease, box-shadow 200ms ease; }
.card-hover:hover { border-color: var(--gold); box-shadow: var(--shadow); }
/* In grids, cards share a height and their links sit along the bottom */
.grid > .card { display: flex; flex-direction: column; }
.grid > .card > .link:last-child { margin-top: auto; padding-top: 14px; align-self: flex-start; }
/* The "something else?" card is a full-width navy strip under the services */
.card-callout { background: var(--navy); border-color: var(--navy); color: #fff; }
.card-callout h3 { color: #fff; }
.card-callout p { color: rgba(255, 255, 255, .75); }
.card-callout .btn { background: var(--paper); color: var(--navy); border-color: var(--paper); }
.grid > .card-callout { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 40px; }
.grid > .card-callout h3 { margin: 0; flex: 0 0 auto; }
.grid > .card-callout p { margin: 0; flex: 1 1 320px; }

/* Approach points: a gold rule over each */
.feature { border-top: 1px solid var(--gold); padding-top: 20px; }
.feature h3 { margin-bottom: .4em; }
.feature p { margin: 0; }

.stat { padding: 20px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.stat-label { font-size: .78rem; margin: 0 0 6px; }
.stat-value { margin: 0; font-size: 1.55rem; font-weight: 650; color: var(--ink); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.metric-name { font-size: 1.1rem; line-height: 1.35; }

/* ---------- Process steps: numbered rows between hairlines ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; border-top: 1px solid var(--line); counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 64px minmax(160px, 260px) 1fr; gap: 4px 32px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: "0" counter(step); font-family: var(--display); font-size: 1.35rem; font-weight: 500; color: var(--gold); }
.steps h3 { margin: 0; font-size: 1.2rem; }
.steps p { grid-column: 3; margin: 0; max-width: 62ch; color: var(--ink-2); }
@media (max-width: 800px) {
  .steps li { grid-template-columns: 44px 1fr; }
  .steps p { grid-column: 2; }
}

/* ---------- Lists ---------- */
.checklist { list-style: none; padding: 24px; margin: 0; display: grid; gap: 12px; align-content: start; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.checklist li { display: flex; gap: 10px; color: var(--ink-2); }
.checklist .icon { margin-top: 5px; color: var(--gold); stroke-width: 2.6; }
.tick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.tick-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
/* Bullets are small gold diamonds; the close checklist uses boxes to tick */
.tick { flex: none; width: 7px; height: 7px; margin: 11px 4px 0 3px; background: var(--gold); transform: rotate(45deg); }
.checklist-page .tick { width: 18px; height: 18px; margin: 4px 0 0; border: 2px solid var(--gold); background: transparent; transform: none; }

/* ---------- Page head and closing call to action ---------- */
.page-head { padding: 80px 0 72px; background: var(--bg-alt); color: var(--ink); border-bottom: 1px solid var(--line); }
.page-head h1::after { content: ""; display: block; width: 56px; height: 2px; margin-top: 22px; background: var(--gold); }
.page-head .lead { margin: 0; color: var(--ink-2); }
.page-head .eyebrow a { color: inherit; text-decoration: none; }
.page-head .actions { margin-top: 24px; }
@media (max-width: 800px) { .page-head { padding: 56px 0 48px; } }

.cta { padding: 72px 0; background: var(--navy); color: #fff; }
.cta h2 { margin: 0 0 .3em; font-weight: 500; color: #fff; }
.cta p { margin: 0; color: rgba(255, 255, 255, .72); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }

/* ---------- Footer ---------- */
.site-footer { padding: 64px 0 28px; background: var(--footer); color: rgba(255, 255, 255, .7); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1.4fr 1fr; gap: 40px; }
.footer-grid .muted { max-width: 320px; margin: 14px 0 20px; color: rgba(255, 255, 255, .6); }
.footer-brand { display: inline-flex; }
.footer-head { font-size: .76rem; margin-bottom: 14px; }
.site-footer nav { display: flex; flex-direction: column; gap: 10px; }
.site-footer nav a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.site-footer nav a:hover, .site-footer nav a.current { color: #fff; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); }
.legal p { margin: 0; font-size: .85rem; color: rgba(255, 255, 255, .5); }
.legal p a { color: rgba(255, 255, 255, .75); text-decoration: underline; text-decoration-color: rgba(168, 132, 74, .6); text-underline-offset: 3px; }
.legal p a:hover { color: #fff; }
.site-footer .footer-langs { flex-direction: row; flex-wrap: wrap; gap: 6px 18px; }
.footer-langs a { font-size: .85rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.service { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 40px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.service h2 { font-size: 1.6rem; }
.service-main p { max-width: 460px; }
.service-note { font-size: .9rem; color: var(--muted); font-style: italic; }
.service-more { display: inline-block; margin-left: 14px; }
.sample-links { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; font-size: .92rem; color: var(--ink-2); }
.sample-links .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--navy); }
.service-detail { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.service-detail h2 { font-size: 1.4rem; }
.service-detail h2 + p { margin-bottom: 28px; }
.deliverables { padding: 28px; }
.faq h2 { font-size: 1.3rem; margin-top: 1.8em; }
.faq .kicker + h2 { margin-top: 0; }
@media (max-width: 800px) {
  .service { grid-template-columns: 1fr; gap: 24px; padding: 28px; }
  .service-detail { grid-template-columns: 1fr; gap: 28px; }
  .service-more { display: block; margin: 12px 0 0; }
}

/* ---------- Software ---------- */
.tool-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tool-group { padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.tool-group:first-child { grid-column: 1 / -1; }
.tool-group-label { font-size: .78rem; margin-bottom: 14px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; font-size: .9rem; font-weight: 500; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.tool-group:first-child .chips li { padding: 9px 16px; font-size: .98rem; }
.chips li a { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--muted); }
.chips li a:hover { color: var(--navy); border-bottom-color: var(--navy); }
.chips img:is([src$="/sage.svg"], [src$="/myob.svg"], [src$="/odoo.svg"], [src$="/gusto.svg"], [src$="/zoho.svg"]) { width: 34px; height: 34px; margin: -8px -2px; }
.software-card .software-logo { display: block; margin-bottom: 14px; opacity: .85; }
.software-card .software-logo:is([src$="/sage.svg"], [src$="/zoho.svg"], [src$="/odoo.svg"]) { width: 64px; height: 64px; margin: -14px 0 0 -2px; }
.software-initial, .step-num { display: inline-grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font-weight: 700; }
.software-initial { width: 36px; height: 36px; margin-bottom: 14px; }
.trademark-note { margin-top: 32px; font-size: .82rem; color: var(--muted); }
.industry-clients { padding: 32px 0 8px; }
.industry-clients .logo-band-head { margin-bottom: 18px; }
@media (max-width: 800px) { .tool-groups { grid-template-columns: 1fr; } }

/* ---------- Forms and contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 32px; align-items: start; }
.contact-info h2 { font-size: 1.15rem; }
.contact-email { display: flex; align-items: center; gap: 8px; }
.contact-email .icon { color: var(--navy); }
.contact-async { margin: 0 0 20px; font-size: .92rem; }
.next-steps { margin: 0 0 24px; padding-left: 1.2em; color: var(--ink-2); }
.next-steps li + li { margin-top: 10px; }
.form-card { padding: 36px; }
.form { display: grid; gap: 20px; }
.form .btn { justify-self: start; padding: 13px 28px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .9rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea, .field select { font: inherit; padding: 12px 14px; color: var(--ink); background: var(--paper); border: 1px solid #cfc6b4; border-radius: var(--radius); transition: border-color 150ms ease, box-shadow 150ms ease; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(168, 132, 74, .22); }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%233b4a63' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field.has-error :is(input, textarea, select) { border-color: var(--error); }
.field-error { margin: 0; font-size: .86rem; color: var(--error); }
.form-free { margin: -6px 0 0; font-size: .92rem; color: var(--ink-2); }
.form-privacy { margin: -4px 0 0; font-size: .85rem; color: var(--muted); }
.cf-turnstile { min-height: 65px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { margin-bottom: 24px; padding: 16px 18px; border-radius: var(--radius); }
.notice.success { background: #ece7dc; color: var(--success); transition: opacity 400ms ease, transform 400ms var(--ease-out); }
@starting-style { .notice.success { opacity: 0; transform: translateY(6px); } }
.notice.error { background: #fdecea; color: var(--error); }
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
}

/* ---------- Free tools ---------- */
.checklist-page { display: grid; gap: 20px; max-width: 860px; }
.checklist-group h2 { display: flex; align-items: center; gap: 12px; font-size: 1.25rem; }
.step-num { width: 34px; height: 34px; font-size: .85rem; }
.runway-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 32px; align-items: start; }
.runway-grid .form.card { padding: 28px; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 16px; }
.chart-card { padding: 22px; }
.runway-chart { display: block; width: 100%; margin-top: 8px; font-family: var(--sans); font-variant-numeric: tabular-nums; }
.glossary dt { position: relative; isolation: isolate; margin-top: 22px; font-size: 1.05rem; font-weight: 650; color: var(--ink); scroll-margin-top: 96px; }
/* Arriving from a #term link: a gold band marks the term, then fades */
.glossary dt:target::before { content: ""; position: absolute; inset: -4px -10px; z-index: -1; background: var(--gold-soft); animation: target-fade 1600ms ease-out 400ms both; }
@keyframes target-fade { to { opacity: 0; } }
.glossary dt:first-child { margin-top: 0; }
.glossary dd { margin: 6px 0 0; color: var(--ink-2); }
@media (max-width: 800px) { .runway-grid, .stat-grid { grid-template-columns: 1fr; } }

/* ---------- Sample feasibility study ---------- */
.sample-page { max-width: 820px; margin: 0 auto 32px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.sample-page img { width: 100%; height: auto; }
/* The pages that come by email: blurred thumbnails and the way to get them */
.sample-locked { max-width: 820px; margin: 0 auto; padding: 28px; background: var(--paper); border: 1px solid var(--line); }
.sample-thumbs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.sample-thumbs img { width: 100%; height: auto; border: 1px solid var(--line); }
.sample-locked-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 24px; }
.sample-locked-note p { flex: 1 1 320px; margin: 0; }
/* The model's open sheet, styled as a workbook with its tabs */
.sheet { background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.sheet-tabs { list-style: none; margin: 0; padding: 0 12px; display: flex; gap: 2px; overflow-x: auto; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.sheet-tabs li { padding: 10px 16px; font-size: .85rem; white-space: nowrap; color: var(--muted); }
.sheet-tabs li.open { margin-bottom: -1px; color: var(--ink); font-weight: 600; background: var(--paper); border: 1px solid var(--line); border-bottom-color: var(--paper); box-shadow: inset 0 2px 0 var(--gold); }
.sheet-tabs li.locked { opacity: .6; cursor: help; }
.sheet-scroll { overflow-x: auto; }
.sheet-table { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.sheet-table td { padding: 8px 14px; white-space: nowrap; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.sheet-table td:first-child { min-width: 260px; white-space: normal; }
.sheet-table td.num { text-align: right; }
.sheet-table td.bold { font-weight: 600; color: var(--ink); }
.sheet-table tr.spacer td { padding: 6px; border-bottom: 0; }
.gate { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
@media (max-width: 800px) {
  .sample-thumbs { grid-template-columns: repeat(4, 1fr); }
  .gate { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Insights ---------- */
.post-list { display: grid; gap: 20px; max-width: 820px; }
.post-card h2 { font-size: 1.4rem; margin-bottom: .35em; }
.post-card h2 a { color: inherit; text-decoration: none; }
.post-meta { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: .85rem; color: var(--muted); }
.post-meta-light { margin-top: 18px; }
.post-body { font-size: 1.06rem; }
.post-body h2 { font-size: 1.55rem; margin-top: 1.8em; }
.post-body h3 { font-size: 1.2rem; margin-top: 1.5em; }
.post-body p, .post-body li { line-height: 1.75; color: var(--ink-2); }
.post-body ul, .post-body ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.post-body li + li { margin-top: .35em; }
.post-body a { color: var(--ink); text-decoration-color: var(--gold); }
.post-body table { width: 100%; margin: 1.2em 0 1.6em; border-collapse: collapse; font-size: .95rem; font-variant-numeric: tabular-nums; }
.post-body th { padding: 10px 12px; text-align: left; background: var(--bg-alt); border-bottom: 2px solid var(--navy); }
.post-body td { padding: 10px 12px; vertical-align: top; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.post-body blockquote { margin: 1.4em 0; padding: 14px 20px; background: var(--gold-soft); border-left: 3px solid var(--gold); }
.post-body blockquote p { margin: 0; color: var(--ink); }
.post-body code { padding: 2px 6px; font-size: .9em; background: var(--bg-alt); border-radius: 4px; }

/* ---------- Case studies (drafts render in development only) ---------- */
.case { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; padding: 40px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.case + .case { margin-top: 24px; }
.case h3 { margin-top: 8px; font-size: 1.5rem; }
.case-sector { margin: 0 0 8px; font-size: .8rem; }
.case-label { margin-bottom: 10px; font-size: .78rem; }
.case-outcome { margin-top: 24px; padding: 20px 22px; background: var(--gold-soft); border-left: 3px solid var(--gold); }
.case-outcome p:last-child { margin: 0; font-weight: 500; color: var(--ink); }
.case-side .checklist { margin-bottom: 20px; }
@media (max-width: 800px) { .case { grid-template-columns: 1fr; gap: 24px; padding: 28px; } }

/* ---------- Languages ---------- */
/* Chinese, Japanese and Korean: Source Serif has no CJK glyphs, so headings fall
   back to each system's serif and text to its sans. */
:lang(ja) { --display: "Source Serif 4", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", "Noto Serif CJK JP", serif; --sans: "Inter", -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", "Noto Sans JP", sans-serif; }
:lang(zh) { --display: "Source Serif 4", "Songti SC", "STSong", "Noto Serif SC", "Noto Serif CJK SC", serif; --sans: "Inter", -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
:lang(ko) { --display: "Source Serif 4", "AppleMyungjo", "Nanum Myeongjo", "Noto Serif KR", "Noto Serif CJK KR", serif; --sans: "Inter", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; }
/* Each language name in the switchers renders in its own script's font */
:lang(en), :lang(de), :lang(fr), :lang(pt-PT), :lang(ru), :lang(id) {
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --display: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}
a[hreflang] { font-family: var(--sans); }
html:is(:lang(ja), :lang(zh), :lang(ko)) body { line-height: 1.8; }
html:is(:lang(ja), :lang(zh), :lang(ko)) :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.35; }
/* Letter-spaced capitals make no sense in these scripts */
html:is(:lang(ja), :lang(zh), :lang(ko)) :is(.eyebrow, .kicker, .logo-band-head, .tool-group-label, .footer-head, .stat-label, .case-label, .tag, .pill, .focus-kicker) { letter-spacing: .04em; }
html:lang(ko) body { word-break: keep-all; overflow-wrap: anywhere; }
html:is(:lang(ja), :lang(zh)) body { line-break: strict; }
/* Long German, French, Portuguese and Russian words */
html:is(:lang(de), :lang(fr), :lang(pt-PT), :lang(ru)) body { hyphens: auto; -webkit-hyphens: auto; }
html:is(:lang(de), :lang(ru)) :is(h1, .btn, nav) { hyphens: manual; }
/* Their longer menu labels need the menu icon sooner */
@media (max-width: 1140px) {
  html:is(:lang(de), :lang(fr), :lang(pt-PT), :lang(ru)) .main-nav { display: none !important; }
  html:is(:lang(de), :lang(fr), :lang(pt-PT), :lang(ru)) .mobile-nav { display: block; }
}

/* ---------- Motion ---------- */
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px) scale(0.98); } }
.lang-menu[open] .lang-list, .mobile-nav[open] nav { animation: menu-in 160ms var(--ease-out); transform-origin: top right; }
@media (hover: none) {
  .card-hover:hover { border-color: var(--line); box-shadow: var(--shadow-sm); }
  .link:hover { color: inherit; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:active { transform: none; }
  .lang-menu[open] .lang-list, .mobile-nav[open] nav { animation: none; }
  .bar, .glossary dt:target::before { animation: none; }
  .btn[aria-busy="true"]::after { display: none; }
  .notice.success { transition: opacity 400ms ease; }
}
@media (prefers-reduced-motion: reduce) {
  @starting-style { .notice.success { transform: none; } }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cta, .note, .skip { display: none !important; }
  .page-head { padding: 0 0 12px; background: none !important; }
  .section { padding: 0; }
  .card { box-shadow: none; break-inside: avoid; }
}
