/* ChamberQ website styles. Loaded on every Frappe website page (incl. /login) via
   Website Settings > head_html. Only restyles Frappe's navbar/footer; page sections use .cq-*. */
@font-face {
	font-family: "ChamberQ Inter";
	src: url("/files/chamberq-inter.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
}
:root {
	--cq-ink: #10292d;
	--cq-ink-2: #3c5256;
	--cq-muted: #5b6d70;
	--cq-teal: #0b6e69;
	--cq-teal-strong: #08534f;
	--cq-teal-soft: #e3f1ef;
	--cq-amber: #e3a03a;
	--cq-amber-soft: #fbf1df;
	--cq-surface: #f5f7f6;
	--cq-card: #ffffff;
	--cq-line: #dfe6e5;
	--cq-radius: 14px;
	--cq-font: "ChamberQ Inter", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Frappe chrome */
body { font-family: var(--cq-font); color: var(--cq-ink); background: #fff; }
.navbar { border-bottom: 1px solid var(--cq-line); padding: 14px 0; background: #fff; }
.navbar-brand img { height: 32px; width: auto; display: block; }
.navbar .nav-link { color: var(--cq-ink-2) !important; font-weight: 500; padding: 8px 12px !important; border-radius: 8px; }
.navbar .nav-link:hover { color: var(--cq-teal) !important; background: var(--cq-teal-soft); }
.navbar .btn-login-area .nav-link, .navbar .btn-login-area a { color: var(--cq-teal) !important; font-weight: 600; }
.web-footer, footer.web-footer { flex-shrink: 0; height: auto; background: var(--cq-ink) !important; color: #c9d6d4; padding: 48px 0 32px; margin-top: 0; border-top: 0; }
.web-footer a, .web-footer .footer-link { color: #e9f1f0 !important; }
.web-footer a:hover { color: #fff !important; text-decoration: underline; }
.web-footer .footer-group-label { color: #9fb3b0; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.web-footer .footer-info, .web-footer .footer-powered, .web-footer .text-muted { color: #b8c9c6 !important; }
.web-footer .footer-logo img { height: 28px; }
:focus-visible { outline: 3px solid var(--cq-amber); outline-offset: 2px; border-radius: 6px; }
.cq-skip { position: absolute; left: -999px; top: 8px; background: var(--cq-ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.cq-skip:focus { left: 16px; }

/* Login page */
.for-login label, .for-login .form-label, .for-login a[href="#forgot"], .page-card a.text-muted { color: var(--cq-ink-2) !important; }
.page-card-head img.app-logo { max-height: 44px; width: auto; }
.for-login .page-card-head h4 { font-weight: 650; color: var(--cq-ink); }
.btn-primary, .for-login .es-button[type="submit"]:not(.btn-forgot):not(.btn-login-with-email-link),
.web-form .submit-btn { background: var(--cq-teal) !important; border-color: var(--cq-teal) !important; color: #fff !important; }
.btn-primary:hover, .btn-primary:focus, .web-form .submit-btn:hover,
.for-login .es-button[type="submit"]:hover { background: var(--cq-teal-strong) !important; border-color: var(--cq-teal-strong) !important; }

/* Layout */
.cq { font-size: 17px; line-height: 1.6; }
.cq * { box-sizing: border-box; }
.cq-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.cq-section { padding: 88px 0; }
.cq-section--tint { background: var(--cq-surface); }
.cq h1, .cq h2, .cq h3 { color: var(--cq-ink); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 16px; font-weight: 700; }
.cq h1 { font-size: clamp(36px, 5.2vw, 56px); }
.cq h2 { font-size: clamp(28px, 3.4vw, 38px); }
.cq h3 { font-size: 19px; letter-spacing: -0.01em; font-weight: 650; margin-bottom: 8px; }
.cq p { color: var(--cq-ink-2); margin: 0 0 16px; }
.cq-eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cq-teal); margin-bottom: 14px; }
.cq-lead { font-size: 20px; color: var(--cq-ink-2); max-width: 40em; }
.cq-section-head { max-width: 720px; margin-bottom: 48px; }
.cq-center { text-align: center; margin-left: auto; margin-right: auto; }

/* Buttons */
.cq-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cq-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 10px; font-weight: 600; font-size: 16px; text-decoration: none !important; border: 1.5px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.cq-btn svg { width: 18px; height: 18px; }
.cq-btn--primary { background: var(--cq-teal); color: #fff !important; }
.cq-btn--primary:hover { background: var(--cq-teal-strong); }
.cq-btn--ghost { border-color: var(--cq-line); color: var(--cq-ink) !important; background: #fff; }
.cq-btn--ghost:hover { border-color: var(--cq-teal); color: var(--cq-teal) !important; }
.cq-btn--light { background: #fff; color: var(--cq-ink) !important; }
.cq-btn--light:hover { background: var(--cq-teal-soft); }
.cq-btn--outline-light { border-color: rgba(255,255,255,.45); color: #fff !important; }
.cq-btn--outline-light:hover { border-color: #fff; }

/* Hero */
.cq-hero { padding: 80px 0 72px; background: linear-gradient(180deg, #fff 0%, var(--cq-surface) 100%); }
.cq-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.cq-hero-note { font-size: 14px; color: var(--cq-muted); margin-top: 18px; }
.cq-figure { margin: 0; }
.cq-figure figcaption { font-size: 13px; color: var(--cq-muted); margin-top: 10px; text-align: center; }
.cq-mock { background: var(--cq-card); border: 1px solid var(--cq-line); border-radius: 18px; box-shadow: 0 24px 48px -24px rgba(16,41,45,.25); padding: 22px; }
.cq-mock-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.cq-mock-title { font-weight: 650; font-size: 15px; }
.cq-chip { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--cq-teal-soft); color: var(--cq-teal-strong); }
.cq-chip--amber { background: var(--cq-amber-soft); color: #8a5a12; }
.cq-mock table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.cq-mock th { text-align: left; font-weight: 600; color: var(--cq-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; padding: 8px 6px; border-bottom: 1px solid var(--cq-line); }
.cq-mock td { padding: 10px 6px; border-bottom: 1px solid var(--cq-line); color: var(--cq-ink); }
.cq-mock td.num, .cq-mock th.num { text-align: right; }
.cq-mock tr:last-child td { border-bottom: 0; }
.cq-mock-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.cq-stat { background: var(--cq-surface); border-radius: 12px; padding: 12px 14px; }
.cq-stat span { display: block; font-size: 12px; color: var(--cq-muted); }
.cq-stat strong { font-size: 18px; font-variant-numeric: tabular-nums; }

/* Cards / grids */
.cq-grid { display: grid; gap: 20px; }
.cq-grid--2 { grid-template-columns: repeat(2, 1fr); }
.cq-grid--3 { grid-template-columns: repeat(3, 1fr); }
.cq-grid--4 { grid-template-columns: repeat(4, 1fr); }
.cq-card { background: var(--cq-card); border: 1px solid var(--cq-line); border-radius: var(--cq-radius); padding: 26px; }
.cq-card p { margin: 0; font-size: 16px; }
.cq-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--cq-teal-soft); color: var(--cq-teal); display: grid; place-items: center; margin-bottom: 16px; }
.cq-icon svg { width: 22px; height: 22px; }
.cq-problem { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--cq-line); border-radius: var(--cq-radius); overflow: hidden; background: #fff; }
.cq-problem + .cq-problem { margin-top: 14px; }
.cq-problem > div { padding: 22px 26px; }
.cq-problem .cq-before { background: #fbfcfc; border-right: 1px solid var(--cq-line); }
.cq-problem .cq-label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--cq-muted); margin-bottom: 6px; display: block; }
.cq-problem .cq-after .cq-label { color: var(--cq-teal); }
.cq-problem p { margin: 0; font-size: 16px; color: var(--cq-ink); }

/* Flow */
.cq-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.cq-flow li { position: relative; padding: 0 20px 0 0; }
.cq-flow li::before { counter-increment: step; content: counter(step); width: 36px; height: 36px; border-radius: 50%; background: var(--cq-teal); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; margin-bottom: 16px; position: relative; z-index: 1; }
.cq-flow li::after { content: ""; position: absolute; top: 17px; left: 36px; right: 0; height: 2px; background: var(--cq-line); }
.cq-flow li:last-child::after { display: none; }
.cq-flow h3 { font-size: 18px; }
.cq-flow p { font-size: 15px; margin: 0; }
.cq-flow-doc { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--cq-teal-strong); background: var(--cq-teal-soft); padding: 3px 8px; border-radius: 6px; }

/* Business types */
.cq-tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.cq-tags li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--cq-line); border-radius: 999px; background: #fff; font-weight: 500; color: var(--cq-ink); }
.cq-tags svg { width: 18px; height: 18px; color: var(--cq-teal); }

/* ERPNext band */
.cq-built { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.cq-list { list-style: none; padding: 0; margin: 0; }
.cq-list li { padding-left: 30px; position: relative; margin-bottom: 12px; color: var(--cq-ink-2); }
.cq-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: var(--cq-teal-soft); box-shadow: inset 0 0 0 5px var(--cq-teal); }

/* FAQ */
.cq-faq { max-width: 820px; }
.cq-faq details { border-bottom: 1px solid var(--cq-line); padding: 6px 0; }
.cq-faq summary { cursor: pointer; list-style: none; padding: 16px 40px 16px 0; font-weight: 600; font-size: 18px; position: relative; color: var(--cq-ink); }
.cq-faq summary::-webkit-details-marker { display: none; }
.cq-faq summary::after { content: ""; position: absolute; right: 8px; top: 24px; width: 10px; height: 10px; border-right: 2px solid var(--cq-teal); border-bottom: 2px solid var(--cq-teal); transform: rotate(45deg); transition: transform .2s; }
.cq-faq details[open] summary::after { transform: rotate(-135deg); top: 28px; }
.cq-faq details p { padding-bottom: 12px; }
.cq p a, .cq-list a { color: var(--cq-teal); text-decoration: underline; text-underline-offset: 2px; }

/* CTA */
.cq-cta { background: var(--cq-teal-strong); color: #fff; border-radius: 22px; padding: 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.cq-cta h2 { color: #fff; }
.cq-cta p { color: #d8ebe8; margin: 0; }
.cq-cta .cq-actions { margin-top: 0; justify-content: flex-end; }

/* Prose pages (About, Privacy, Terms) */
.cq-page-head { padding: 64px 0 24px; background: var(--cq-surface); border-bottom: 1px solid var(--cq-line); }
.cq-prose { max-width: 760px; padding: 48px 24px 88px; margin: 0 auto; }
.cq-prose h2 { font-size: 24px; margin-top: 36px; }
.cq-prose ul { color: var(--cq-ink-2); padding-left: 22px; }
.cq-prose li { margin-bottom: 6px; }
.cq-prose a { color: var(--cq-teal); text-decoration: underline; }
.cq-draft { border: 1px solid #ecd2a3; background: var(--cq-amber-soft); color: #6b4510; border-radius: 12px; padding: 14px 18px; font-size: 15px; margin-bottom: 28px; }
.cq-draft strong { color: #6b4510; }

/* Web form (Request a demo) */
.web-form-wrapper, .web-form-container { font-family: var(--cq-font); }
.web-form-head h1, .web-form-header h1 { font-weight: 700; letter-spacing: -0.02em; color: var(--cq-ink); }
.web-form .btn-primary, .web-form-actions .btn-primary { padding: 10px 22px; border-radius: 10px; font-weight: 600; }

@media (max-width: 960px) {
	.cq-hero-grid, .cq-built, .cq-cta { grid-template-columns: 1fr; }
	.cq-grid--3, .cq-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.cq-flow { grid-template-columns: 1fr 1fr; row-gap: 32px; }
	.cq-flow li:nth-child(2)::after { display: none; }
	.cq-cta .cq-actions { justify-content: flex-start; }
}
@media (max-width: 640px) {
	.cq { font-size: 16px; }
	.cq-wrap { padding: 0 16px; }
	.cq-section { padding: 64px 0; }
	.cq-hero { padding: 48px 0; }
	.cq-grid--2, .cq-grid--3, .cq-grid--4, .cq-problem, .cq-flow { grid-template-columns: 1fr; }
	.cq-problem .cq-before { border-right: 0; border-bottom: 1px solid var(--cq-line); }
	.cq-flow li { padding: 0; }
	.cq-flow li::after { display: none; }
	.cq-cta { padding: 32px 22px; border-radius: 16px; }
	.cq-btn { width: 100%; justify-content: center; }
	.cq-mock { padding: 16px; }
	.cq-mock .cq-hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
