/* ==========================================================================
   Quolapps stylesheet: the licensed MonsterONE template stylesheet
   --------------------------------------------------------------------------
   Client customization starts with the CSS variables below. Most component
   styles use these tokens, so changing colors, shadows, or radius here updates
   the whole site without editing every section manually.
   ========================================================================== */
:root {
  --bg: #fbf7f1;
  --surface: #ffffff;
  --surface-2: #f4e8d6;
  --text: #2b2b2b;
  --muted: #5f564d;
  --line: rgba(43, 43, 43, 0.12);
  --primary: #0b7a73;
  --primary-2: #08605b;
  --accent: #f39a12;
  --danger: #ee5a4f;
  --shadow: 0 24px 70px rgba(70, 45, 25, 0.13);
  --radius: 12px;
  /* Quolapps brand tokens (brand/BRAND.md) */
  --teal: #0e8a82;
  --amber: #f39a12;
  --coral: #ee5a4f;
  --brown: #8a4524;
  --cream: #f4e8d6;
  --brown-ink: #8a4524;
  --btn-1: #0b7a73;
  --btn-2: #08605b;
  --font-head: Sora, Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

[data-theme="dark"] {
  /* Dark theme tokens. The theme switcher in js/main.js toggles this attribute
     on the <html> element and stores the user's choice in localStorage. */
  --bg: #15120f;
  --surface: #1f1a16;
  --surface-2: #2b231c;
  --text: #f6ede0;
  --muted: #c7b8a6;
  --line: rgba(244, 232, 214, 0.14);
  --primary: #3cc2b6;
  --primary-2: #0e8a82;
  --accent: #f6aa3a;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  --brown-ink: #e0a27c;
  color-scheme: dark;
}

/* Base reset and shared utility classes. Keep these near the top so every page
   uses the same spacing, typography, accessibility helpers, and containers. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 14% 6%, rgba(15, 139, 141, 0.18), transparent 26rem),
    radial-gradient(circle at 86% 18%, rgba(245, 158, 11, 0.13), transparent 22rem),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background-color 0.25s ease, color 0.25s ease;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 99; background: var(--text); color: var(--bg); padding: 0.75rem 1rem; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.narrow { max-width: 820px; }
.section-pad { padding: 96px 0; }

/* Header and navigation. The .scrolled class is added by JavaScript after the
   user scrolls, giving the sticky header a stronger separation from content. */
.site-header { position: sticky; top: 0; z-index: 50; padding: 14px 0; backdrop-filter: blur(20px); background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid transparent; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08); }
.nav-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--radius); background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: white; box-shadow: 0 12px 30px rgba(15, 139, 141, 0.3); }
.nav-menu { justify-self: center; display: flex; align-items: center; gap: 8px; padding: 6px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface) 74%, transparent); }
.nav-menu a { color: var(--muted); padding: 9px 14px; border-radius: 999px; font-size: 0.94rem; font-weight: 700; transition: 0.2s ease; }
.nav-menu a:hover, .nav-menu a.active { color: var(--text); background: var(--surface-2); }
.theme-toggle, .nav-toggle { border: 1px solid var(--line); color: var(--text); background: var(--surface); border-radius: 999px; cursor: pointer; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; font-weight: 800; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06); }
.theme-icon { width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(135deg, var(--accent) 50%, var(--primary-2) 50%); }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 10px; }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: currentColor; border-radius: 2px; }

/* Home hero. Change the grid proportions, headline size, dashboard mockup, and
   metric strip here if the landing page needs a different first impression. */
.hero { position: relative; overflow: hidden; min-height: calc(100vh - 70px); display: grid; align-items: center; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(330px, 0.82fr); gap: 72px; align-items: center; }
.hero-copy { max-width: 720px; }
.eyebrow { margin: 0 0 14px; color: var(--primary); font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: 0; }
h1 { font-size: clamp(3rem, 5.2vw, 5.35rem); max-width: 760px; }
h2 { font-size: clamp(2rem, 4vw, 4rem); }
h3 { font-size: 1.2rem; }
.hero-text, .page-hero p, .section-heading p + h2 + p { color: var(--muted); font-size: 1.12rem; max-width: 680px; }
.hero-brief { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: end; margin: 24px 0 22px; padding-left: 22px; border-left: 2px solid color-mix(in srgb, var(--primary) 56%, var(--line)); }
.hero-brief .hero-text { margin: 0; max-width: 490px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; min-width: 196px; }
.btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius); padding: 0 20px; font-weight: 800; border: 1px solid transparent; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 18px 40px rgba(37, 99, 235, 0.24); }
.btn-secondary { color: var(--text); background: var(--surface); border-color: var(--line); }
.text-link { display: inline-flex; margin-top: 22px; color: var(--primary); font-weight: 800; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; padding: 0; list-style: none; }
.hero-tags li { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); background: color-mix(in srgb, var(--surface) 62%, transparent); font-size: 0.88rem; font-weight: 800; }
.hero-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; max-width: 650px; margin: 0; padding: 16px 0 0; list-style: none; border-top: 1px solid var(--line); }
.hero-metrics li { padding: 0 18px; border-left: 1px solid var(--line); }
.hero-metrics li:first-child { padding-left: 0; border-left: 0; }
.hero-metrics strong { display: block; font-size: 1.35rem; }
.hero-metrics span { color: var(--muted); font-size: 0.9rem; }
/* Decorative hero layers. Their motion comes from data-parallax attributes in
   the HTML and the updateParallax() function in js/main.js. */
.parallax-orbit { position: absolute; width: 420px; height: 420px; border: 1px solid var(--line); border-radius: 50%; pointer-events: none; opacity: 0.6; }
.orbit-one { right: -120px; top: 90px; }
.orbit-two { left: -160px; bottom: 70px; }
.glass-card { background: color-mix(in srgb, var(--surface) 76%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
/* CSS-only dashboard mockup used in the hero. Bar heights are controlled by
   the .bar-* classes so the HTML stays W3-friendly without inline styles. */
.dashboard-card { border-radius: var(--radius); padding: 18px; min-height: 520px; transform: perspective(1100px) rotateY(-7deg) rotateX(4deg); animation: floatPanel 5s ease-in-out infinite; }
.window-bar { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.85rem; font-weight: 800; margin-bottom: 18px; }
.window-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); }
.window-bar span:nth-child(2) { background: var(--accent); }
.window-bar span:nth-child(3) { background: var(--primary); margin-right: auto; }
.signal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.signal { aspect-ratio: 1; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); position: relative; overflow: hidden; }
.signal::after { content: ""; position: absolute; inset: 24%; border-radius: inherit; background: var(--muted); opacity: 0.35; }
.signal.active::after { background: var(--primary); opacity: 1; box-shadow: 0 0 26px var(--primary); }
.signal.hot::after { background: var(--accent); opacity: 1; }
.chart-panel { height: 150px; margin: 22px 0; padding: 18px; display: flex; align-items: end; gap: 12px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.chart-panel span { flex: 1; min-width: 18px; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--primary-2), var(--primary)); animation: growBars 1.5s ease both; }
.chart-panel .bar-42 { height: 42%; }
.chart-panel .bar-70 { height: 70%; }
.chart-panel .bar-54 { height: 54%; }
.chart-panel .bar-86 { height: 86%; }
.chart-panel .bar-63 { height: 63%; }
.chart-panel .bar-92 { height: 92%; }
.status-row { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-top: 1px solid var(--line); }
.status-row span { color: var(--muted); }

/* Shared content sections and card systems. These classes are reused across
   several pages, so edits here can affect home, solutions, platform, and cases. */
.clients-band { padding: 30px 0; border-block: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 52%, transparent); }
.logo-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; color: var(--muted); font-weight: 900; margin-block: 0; padding-left: 0; list-style: none; }
.split-layout, .two-column { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr); gap: 58px; align-items: start; }
.section-heading { max-width: 760px; margin-bottom: 34px; }
.section-heading.centered { text-align: center; margin-inline: auto; }
.feature-grid, .service-grid, .case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature-card, .service-card, .study-card { min-height: 240px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 18px 48px rgba(0, 0, 0, 0.05); transition: transform 0.2s ease, border-color 0.2s ease; }
.feature-card:hover, .service-card:hover, .study-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--primary) 50%, var(--line)); }
.feature-icon, .service-card span { display: inline-grid; place-items: center; min-width: 42px; height: 32px; padding: 0 10px; border-radius: 999px; background: var(--surface-2); color: var(--primary); font-weight: 900; margin-bottom: 26px; }
.feature-card p, .service-card p, .study-card p, .timeline p, .contact-panel p { color: var(--muted); }
.service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-card ul { margin: 22px 0 0; padding-left: 18px; color: var(--muted); }
/* Dark content band. This is intentionally fixed darker than the global theme
   so it remains a strong visual section in both light and dark modes. */
.dark-panel { background: linear-gradient(135deg, #06141b, #102b33 50%, #112437); color: #f6fbff; }
.dark-panel .eyebrow { color: #63dfd1; }
.dark-panel p, .dark-panel .timeline p { color: #b9c8d4; }
.timeline { display: grid; gap: 16px; }
.timeline div, .process-board div { padding: 22px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius); background: rgba(255, 255, 255, 0.06); }
.timeline span, .process-board span { color: var(--accent); font-weight: 900; }
/* Interactive platform tabs on index.html. The active button class and panel
   text are controlled by the data-tab logic in js/main.js. */
.platform-showcase { display: grid; grid-template-columns: 280px 1fr; gap: 20px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.module-stack { display: grid; gap: 10px; align-content: start; }
.module-item { text-align: left; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); background: var(--surface-2); cursor: pointer; font-weight: 900; }
.module-item.active { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; }
.module-panel { min-height: 320px; padding: 28px; border-radius: var(--radius); background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 16%, transparent), color-mix(in srgb, var(--accent) 14%, transparent)); border: 1px solid var(--line); }
.mini-network { position: relative; height: 190px; margin-top: 30px; border-radius: var(--radius); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 42px 42px; }
.mini-network span { position: absolute; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 10px color-mix(in srgb, var(--primary) 16%, transparent); }
.mini-network span:nth-child(1) { left: 12%; top: 20%; }
.mini-network span:nth-child(2) { left: 46%; top: 48%; background: var(--accent); }
.mini-network span:nth-child(3) { right: 16%; top: 24%; background: var(--primary-2); }
.mini-network span:nth-child(4) { left: 24%; bottom: 16%; }
.mini-network span:nth-child(5) { right: 28%; bottom: 12%; background: var(--accent); }
.soft-band { background: color-mix(in srgb, var(--surface-2) 72%, transparent); }
/* Carousel and accordion components. Keep the class names if you want the
   JavaScript behavior to keep working after content changes. */
.carousel { position: relative; display: grid; grid-template-columns: 54px 1fr 54px; gap: 18px; align-items: center; }
.carousel-track { overflow: hidden; border-radius: var(--radius); }
.case-slide { display: none; min-height: 280px; padding: 36px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.case-slide.active { display: block; animation: slideIn 0.45s ease; }
.tag { display: inline-flex; margin: 0 0 18px; padding: 6px 10px; border-radius: 999px; background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); font-size: 0.78rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; }
.carousel-btn { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; font-size: 2rem; }
.accordion { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.accordion-item + .accordion-item { border-top: 1px solid var(--line); }
.accordion button { width: 100%; display: flex; justify-content: space-between; gap: 18px; text-align: left; padding: 20px; border: 0; background: transparent; color: var(--text); cursor: pointer; font-weight: 900; }
.accordion button::after { content: "+"; font-size: 1.25rem; color: var(--primary); }
.accordion button[aria-expanded="true"]::after { content: "-"; }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.accordion-panel p { margin: 0; padding: 0 20px 20px; color: var(--muted); }
.cta-section { padding-top: 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 38px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
/* Inner page layouts: page hero, process board, platform diagram, integrations,
   case study cards, quote block, and contact form. */
.page-hero { padding-top: 132px; }
.page-hero h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); }
.process-board { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.process-board div { display: flex; justify-content: space-between; gap: 16px; font-weight: 900; }
.platform-diagram { position: relative; min-height: 560px; display: grid; place-items: center; border-radius: var(--radius); border: 1px solid var(--line); background: radial-gradient(circle, color-mix(in srgb, var(--primary) 24%, transparent), transparent 34%), var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.platform-diagram::before, .platform-diagram::after { content: ""; position: absolute; border: 1px solid var(--line); border-radius: 50%; }
.platform-diagram::before { width: 460px; height: 460px; }
.platform-diagram::after { width: 290px; height: 290px; }
.core-node, .orbit-card { position: absolute; display: grid; place-items: center; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: 0 20px 44px rgba(0, 0, 0, 0.08); font-weight: 900; }
.core-node { width: 180px; height: 180px; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: white; z-index: 2; }
.orbit-card { width: 170px; height: 82px; }
.orbit-card.top { top: 58px; }
.orbit-card.right { right: 90px; }
.orbit-card.bottom { bottom: 58px; }
.orbit-card.left { left: 90px; }
.integration-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.integration-grid span { padding: 18px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-weight: 900; }
.case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.study-card div { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; }
.study-card strong { font-size: 1.65rem; color: var(--primary); }
.study-card span { color: var(--muted); text-align: right; }
.quote-block { max-width: 900px; }
blockquote { margin: 0; font-size: clamp(2rem, 4vw, 4rem); line-height: 1.1; font-weight: 800; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 28px; align-items: start; }
.contact-form, .contact-panel { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.contact-form { display: grid; gap: 12px; }
.contact-form label { font-weight: 800; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); color: var(--text); padding: 13px 14px; }
.contact-panel div { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-panel span { color: var(--primary); font-weight: 900; }
/* Footer and reveal animation classes. Add .reveal to any new section that
   should animate into view when it enters the viewport. */
.site-footer { padding: 54px 0; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 68%, transparent); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.6fr 0.8fr; gap: 30px; color: var(--muted); }
.footer-grid h2 { color: var(--text); font-size: 1rem; margin-bottom: 14px; }
.footer-grid a, .footer-grid span { display: block; margin: 8px 0; }
.footer-grid .brand { color: var(--text); margin-bottom: 14px; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Motion presets. Keep animations subtle for a professional IT/enterprise feel. */
@keyframes floatPanel { 0%, 100% { transform: perspective(1100px) rotateY(-7deg) rotateX(4deg) translateY(0); } 50% { transform: perspective(1100px) rotateY(-4deg) rotateX(5deg) translateY(-14px); } }
@keyframes growBars { from { transform: scaleY(0.3); transform-origin: bottom; } to { transform: scaleY(1); transform-origin: bottom; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* Tablet breakpoint: layout shifts from desktop grids to stacked content and
   the mobile navigation menu becomes available. */
@media (max-width: 980px) {
  .nav-shell { grid-template-columns: auto auto auto; }
  .nav-toggle { display: block; justify-self: end; }
  .nav-menu { position: absolute; top: calc(100% + 8px); left: 20px; right: 20px; display: none; flex-direction: column; align-items: stretch; border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
  .nav-menu.open { display: flex; }
  .nav-menu a { text-align: center; }
  .hero-grid, .split-layout, .two-column, .contact-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 780px; }
  .hero-brief { grid-template-columns: 1fr; align-items: start; }
  .hero { min-height: auto; }
  .hero-visual { order: -1; }
  .dashboard-card { min-height: 420px; transform: none; animation: none; }
  .feature-grid, .feature-grid.four, .service-grid, .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform-showcase { grid-template-columns: 1fr; }
  .contact-grid { gap: 20px; }
}

/* Mobile breakpoint: single-column cards, full-width buttons, compact spacing,
   and simplified dashboard/platform visuals. */
@media (max-width: 680px) {
  .container, .nav-shell { width: min(100% - 28px, 1180px); }
  .section-pad { padding: 68px 0; }
  .page-hero { padding-top: 110px; }
  .theme-toggle span:last-child { display: none; }
  h1 { font-size: clamp(2.45rem, 14vw, 4rem); }
  .hero-brief { padding-left: 16px; margin-top: 20px; }
  .hero-metrics, .feature-grid, .feature-grid.four, .service-grid, .case-grid, .process-board, .integration-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-metrics { gap: 12px; padding-top: 0; border-top: 0; }
  .hero-metrics li { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 72%, transparent); }
  .hero-actions, .cta-inner { align-items: stretch; flex-direction: column; }
  .btn { width: 100%; }
  .carousel { grid-template-columns: 1fr; }
  .carousel-btn { width: 100%; border-radius: var(--radius); }
  .platform-diagram { min-height: 460px; }
  .platform-diagram::before { width: 330px; height: 330px; }
  .platform-diagram::after { width: 210px; height: 210px; }
  .core-node { width: 134px; height: 134px; }
  .orbit-card { width: 138px; height: 64px; }
  .orbit-card.left { left: 12px; }
  .orbit-card.right { right: 12px; }
  .orbit-card.top { top: 30px; }
  .orbit-card.bottom { bottom: 30px; }
  .case-slide, .cta-inner, .contact-form, .contact-panel { padding: 22px; }
}

/* Accessibility: respect users who prefer reduced motion at the OS/browser level. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}

/* ==========================================================================
   Quolapps additions. Everything above is the template stylesheet with only
   its tokens changed; the rules below add what the template lacks (self-hosted
   fonts, the brown quoll in the dashboard card, tool screenshot cards, guide
   article layout) and pin a few colours to the brand.
   ========================================================================== */
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-var-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Sora"; src: url("/assets/fonts/sora-var-latin.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }
h1, h2, h3, .brand, blockquote, .hero-metrics strong, .study-card strong { font-family: var(--font-head); letter-spacing: -0.02em; }
h1, h2 { font-weight: 700; }
h1 { font-size: clamp(2.7rem, 5vw, 4.7rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 3.1rem); line-height: 1.1; }
body { background-repeat: no-repeat; overflow-x: hidden; }
img { height: auto; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.no-js .reveal { opacity: 1; transform: none; }
.section-heading h2 + p, .section-heading p { color: var(--muted); font-size: 1.08rem; }
.lead { color: var(--muted); font-size: 1.12rem; max-width: 680px; }

/* Brand pins: white text always sits on the darker brand teal, and the
   fixed dark band uses quoll brown instead of the template's navy. */
.brand { font-size: 1.25rem; font-weight: 700; }
.brand-mark { width: 40px; height: 40px; background: none; box-shadow: none; }
.brand-mark img { width: 40px; height: 40px; object-fit: contain; }
.btn-primary, .module-item.active, .core-node { background: linear-gradient(135deg, var(--btn-1), var(--btn-2)); box-shadow: 0 16px 36px rgba(14, 138, 130, 0.26); }
.theme-icon { background: linear-gradient(135deg, var(--amber) 50%, var(--brown) 50%); }
[data-theme="dark"] .theme-icon { background: linear-gradient(135deg, var(--cream) 50%, var(--teal) 50%); }
.dark-panel { background: linear-gradient(135deg, #1c140f, #2e1e15 48%, #0d3b38); color: #f8efe3; }
.dark-panel .eyebrow, .timeline span, .process-board span { color: #f6b24e; }
.dark-panel p, .dark-panel .timeline p { color: #dccdbb; }
.dark-panel .text-link { color: #6fd9ce; }
.timeline > a { display: block; padding: 22px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius); background: rgba(255, 255, 255, 0.06); }
.timeline > a:hover { border-color: rgba(111, 217, 206, 0.5); }
.timeline h3 { margin: 6px 0; }
.timeline .app-row { padding: 0; border: 0; background: none; }
.text-link:hover, .breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hero-tags li::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 3px; background: var(--teal); }
.hero-tags li:nth-child(2)::before { background: var(--amber); }
.hero-tags li:nth-child(3)::before { background: var(--coral); }
.hero-tags li:nth-child(4)::before { background: var(--brown); }
.tag-images { background: color-mix(in srgb, var(--amber) 18%, transparent); color: var(--brown-ink); }
.tag-video { background: color-mix(in srgb, var(--coral) 15%, transparent); color: var(--brown-ink); }
.tag-business { background: color-mix(in srgb, var(--brown) 14%, transparent); color: var(--brown-ink); }
.tag-soon { background: var(--surface-2); color: var(--muted); }
.dark-panel .tag { background: rgba(111, 217, 206, 0.16); color: #7fe3d8; }
.dark-panel .tag-soon { background: rgba(255, 255, 255, 0.1); color: #e8dccb; }
.logo-row a:hover { color: var(--text); }

/* Hero: capped height (tall screens), and the two buttons stacked beside the brief as the template's min-width intends. */
.hero { min-height: min(calc(100vh - 70px), 860px); }
.hero-brief .hero-actions { flex-direction: column; }
.hero-metrics li:first-child { border-left: 0; }

/* Hero: the brown quoll inside the template's glass dashboard card, with the
   chart panel showing live tools per category (real counts from tools.json). */
.dashboard-card { min-height: 0; }
.dash-quoll { width: auto; max-height: 250px; margin: 0 auto 4px; filter: drop-shadow(0 18px 22px rgba(70, 40, 20, 0.22)); }
.chart-panel { height: 128px; margin: 10px 0 8px; }
.chart-panel .bar-20 { height: 20%; }
.chart-labels { display: flex; gap: 12px; padding: 0 18px 12px; color: var(--muted); font-size: 0.8rem; font-weight: 800; }
.chart-labels span { flex: 1; min-width: 18px; text-align: center; white-space: nowrap; }
.study-card strong { white-space: nowrap; }
.app-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }

/* Category cards with their tool links (home), and the 2x2 grid in a split layout. */
.split-layout .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-card { min-height: 0; }
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { margin: 0; }
.tile-links { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.tile-links a { display: flex; flex-direction: column; font-weight: 700; line-height: 1.35; }
.tile-links a span { color: var(--muted); font-weight: 500; font-size: 0.84rem; }
.tile-links a:hover { color: var(--primary); }

.what-we-do { padding: 32px; border-radius: var(--radius); }
.what-we-do p { margin: 0 0 16px; color: var(--muted); font-size: 1.05rem; }
.what-we-do p:last-child { margin: 0; }
.what-we-do a, .section-heading p a, .founder p a { color: var(--primary); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Module panel (featured tools): a real screenshot where the template drew a network. */
.module-panel p { color: var(--muted); max-width: 620px; }
.module-shot { margin-top: 22px; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 16 / 10; width: 100%; object-fit: cover; object-position: top; }
.module-panel .text-link { margin-top: 18px; }

/* Tool screenshot cards (tools hub and featured lists). */
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.tool-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 18px 48px rgba(0, 0, 0, 0.05); overflow: hidden; transition: transform 0.2s ease, border-color 0.2s ease; }
.tool-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--primary) 50%, var(--line)); }
.tool-shot { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.tool-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.tool-body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.tool-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.tool-meta .tag { margin: 0; }
.tool-price { color: var(--muted); font-size: 0.86rem; }
.tool-price strong { color: var(--text); }
.tool-body p { color: var(--muted); margin: 8px 0 18px; flex: 1; }
.tool-link { color: var(--primary); font-weight: 800; }
.tool-group + .tool-group { margin-top: 84px; }

/* Inner page hero with a mascot, and the breadcrumb. */
.page-hero { padding-top: 64px; padding-bottom: 56px; }
.page-hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); margin-bottom: 18px; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: center; }
.mascot { width: 100%; max-width: 340px; margin-inline: auto; filter: drop-shadow(0 18px 24px rgba(70, 40, 20, 0.18)); }
.breadcrumb { margin: 0 0 20px; font-size: 0.9rem; color: var(--muted); }
.breadcrumb a { color: var(--primary); font-weight: 700; }
.breadcrumb span[aria-hidden] { margin: 0 6px; }

/* Shopify apps, guides, about, contact. */
.service-card h2, .feature-card h2, .study-card h2 { font-size: clamp(1.3rem, 2vw, 1.7rem); margin: 0 0 10px; }
.service-card .hero-actions { margin-top: 24px; }
.shot-card { margin: 0; padding: 14px; border-radius: var(--radius); }
.shot-card img { border-radius: calc(var(--radius) - 4px); }
.shot-card figcaption { margin-top: 10px; font-size: 0.86rem; color: var(--muted); text-align: center; }
.orbit-card { flex-direction: column; text-align: center; line-height: 1.2; }
.orbit-card small { color: var(--muted); font-weight: 600; }
.core-node { text-align: center; font-family: var(--font-head); font-size: 1.2rem; }
.study-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.study-card > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); }
.study-card .study-body { margin: 0; padding: 26px; border: 0; display: block; flex: 1; }
.study-card .study-body > div { display: flex; justify-content: space-between; gap: 20px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.quote-block p { margin-top: 22px; }
.founder { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: center; padding: 32px; border-radius: var(--radius); }
.founder img { width: 240px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.founder p { color: var(--muted); }
.contact-form .btn { margin-top: 8px; }
.contact-panel h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.contact-panel div:last-of-type { border-bottom: 0; }

/* Guide article layout (content/guides/*.html). */
.byline { margin: 22px 0 0; font-size: 0.92rem; color: var(--muted); }
.article-wrap { display: grid; grid-template-columns: 260px minmax(0, 760px); gap: 56px; justify-content: center; }
.toc { position: sticky; top: 96px; align-self: start; padding: 22px; border-radius: var(--radius); font-size: 0.92rem; }
.toc p { margin: 0 0 10px; font-weight: 800; }
.toc ol { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 6px; }
.toc a:hover { color: var(--primary); }
.prose { font-size: 1.08rem; line-height: 1.75; min-width: 0; }
.prose h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin: 56px 0 16px; scroll-margin-top: 96px; }
.prose h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); margin: 36px 0 12px; scroll-margin-top: 96px; }
.prose p, .prose ul, .prose ol { margin: 0 0 20px; color: color-mix(in srgb, var(--text) 86%, var(--muted)); }
.prose ul, .prose ol { padding-left: 24px; display: grid; gap: 8px; }
.prose a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose figure { margin: 36px 0; }
.prose figure img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.prose figure.figure-narrow { max-width: 320px; margin-inline: auto; }
.prose figcaption { margin-top: 10px; font-size: 0.9rem; color: var(--muted); text-align: center; }
.callout, .author-box { margin: 0 0 36px; padding: 24px 26px; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--line)); background: color-mix(in srgb, var(--primary) 8%, var(--surface)); }
.callout .callout-title, .author-box p:first-child { margin: 0 0 10px; font-weight: 800; color: var(--text); }
.callout ul, .author-box p { margin: 0; }
.author-box { margin: 56px 0 0; background: var(--surface-2); border-color: var(--line); }

/* 404 and footer. */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.notfound .mascot { max-width: 280px; margin-bottom: 18px; }
.notfound p { color: var(--muted); max-width: 520px; margin: 16px auto 26px; }
.notfound .hero-actions { justify-content: center; }
.footer-grid { grid-template-columns: 1.1fr 1.5fr 0.8fr 0.8fr 0.8fr; gap: 28px; }
.footer-grid p { margin: 0 0 12px; }
.footer-grid a:hover { color: var(--primary); }
.footer-tools { columns: 2; column-gap: 24px; }
.footer-grid .brand { display: inline-flex; }
.footer-bottom p { margin: 0; }
.cta-inner .btn { white-space: nowrap; flex-shrink: 0; }
.dark-panel + .cta-section, .soft-band + .cta-section { padding-top: 96px; }
.footer-tools a { break-inside: avoid; margin: 0 0 12px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; }

@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1.4fr 1fr; }
  .article-wrap { grid-template-columns: minmax(0, 760px); }
  .toc { position: static; }
}
@media (max-width: 980px) {
  .page-hero-grid, .founder { grid-template-columns: 1fr; }
  .page-hero-grid .mascot { order: -1; max-width: 220px; margin-inline: 0; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-quoll { max-height: 220px; }
  .nav-menu { background: var(--surface); }
}
@media (max-width: 680px) {
  .container, .nav-shell { width: min(100% - 32px, 1180px); }
  .page-hero { padding-top: 32px; padding-bottom: 32px; }
  .page-hero-grid .mascot { max-width: 160px; }
  .split-layout .feature-grid, .tool-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .hero-metrics li, .hero-metrics li:first-child { padding: 12px; }
  .hero-metrics strong { font-size: 1.15rem; }
  .hero-metrics span { display: block; font-size: 0.8rem; line-height: 1.3; }
  .dash-quoll { max-height: 180px; }
  .chart-panel { height: 104px; }
  .chart-labels { font-size: 0.72rem; gap: 8px; }
  .founder { padding: 22px; }
  .founder img { width: 100%; max-width: 260px; }
  .study-card .study-body { padding: 22px; }
  .core-node { width: 104px; height: 104px; font-size: 1rem; }
  .orbit-card { width: 112px; height: 60px; font-size: 0.85rem; }
  .orbit-card small { font-size: 0.7rem; }
  .orbit-card.left { left: 6px; }
  .orbit-card.right { right: 6px; }
  .footer-tools { column-gap: 16px; }
}

/* Tools directory spokes (/tools/<slug>/): question headings in the accordion, numbered steps on the dark band,
   a facts list in a glass card, plan cards, and a narrow prose column for the extra keyword sections. */
.accordion-q { margin: 0; font-size: 1.05rem; font-family: var(--font-body, inherit); letter-spacing: 0; }
.accordion-panel p + p { padding-top: 0; }
.mascot-spoke { max-width: 240px; }
.eyebrow .tag { margin: 0 8px 0 0; vertical-align: middle; }
.spoke-what .section-heading p { color: var(--muted); }
.feature-card .card-title { margin: 0 0 8px; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--text); }
.step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: none; }
.step-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px 18px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius); background: rgba(255, 255, 255, 0.06); }
.step-list span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(246, 178, 78, 0.16); color: #f6b24e; font-family: var(--font-head); font-weight: 800; }
.step-list p { margin: 0; color: #f1e6d7; }
.dark-panel .btn { margin-top: 10px; }
.fact-list { margin: 0; padding: 10px 24px; border-radius: var(--radius); }
.fact-list div { display: grid; grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.2fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.fact-list div:last-child { border-bottom: 0; }
.fact-list dt { font-weight: 800; color: var(--text); }
.fact-list dd { margin: 0; color: var(--muted); }
.spoke-prose { max-width: 820px; margin-inline: auto; }
.spoke-prose h2:first-child { margin-top: 0; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.plan-card { min-height: 0; }
.plan-card .plan-price { margin: 4px 0 8px; font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; color: var(--text); line-height: 1.1; }
.plan-card p:last-child { margin: 0; color: var(--muted); }
.plan-after { margin: 22px 0 0; color: var(--muted); max-width: 820px; }
.plan-after a, .cta-inner .lead a, .two-column .section-heading p a { color: var(--primary); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.cta-inner .lead .text-link { display: inline; }
@media (max-width: 680px) {
  .fact-list { padding: 4px 18px; }
  .fact-list div { grid-template-columns: 1fr; gap: 4px; }
  .step-list li { grid-template-columns: 36px minmax(0, 1fr); padding: 14px; }
  .step-list span { width: 36px; height: 36px; }
  .mascot-spoke { max-width: 150px; }
}
/* Hub groups: four cards sit in one row on wide screens; a one-tool group puts its card beside the heading. */
@media (min-width: 1181px) { .tool-group-4 .tool-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 981px) {
  .tool-group-1 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
  .tool-group-1 .tool-grid { grid-template-columns: 1fr; }
  .tool-group-1 .section-heading { margin-bottom: 0; }
}
@media (min-width: 681px) and (max-width: 980px) { .tool-group-1 .tool-grid { grid-template-columns: minmax(0, 1fr); max-width: 460px; } }
.cta-link { margin: 14px 0 0; font-weight: 800; } .cta-link a { color: var(--primary); }
.cta-link .text-link { display: inline; }
