/* ==========================================================================
   Qmarque — marketing site stylesheet (self-contained, no Tailwind)
   Brand: green accent (oklch 0.60 .17 152 light), Space Grotesk + Inter.
   Light-first, mobile-first, accessible.
   ========================================================================== */

:root {
  --accent: #6E1330;            /* Qmarque bordeaux — brand primary (≈10:1 on white) */
  --accent-hover: #560F25;      /* darker bordeaux for hover */
  --accent-soft: #F6E9EE;       /* pale wine tint for pills / soft fills */
  --accent-fg: #ffffff;
  --gold: #BC8A33;              /* deep gold — secondary accent (logo tail, highlights) */
  --gold-hover: #A5762A;
  --gold-soft: #F4ECDB;
  --ink: #1a1613;               /* warm near-black (brand ink) */
  --ink-2: #4a423c;
  --ink-3: #6f655d;
  --muted: #6b6058;             /* warm muted — WCAG AA on white (≥4.5:1) */
  --bg: #ffffff;
  --bg-2: #faf7f3;              /* warm soft section bg */
  --bg-3: #f3ede6;
  --surface: #ffffff;
  --line: #ece5dd;
  --line-strong: #ddd2c7;
  --ring: rgba(110,19,48,.45);
  --ink-dark: #181511;          /* warm deep band bg (brand dark surface) */
  --shadow-sm: 0 1px 2px rgba(26,22,19,.06);
  --shadow: 0 8px 24px -10px rgba(26,22,19,.16);
  --shadow-lg: 0 24px 50px -20px rgba(26,22,19,.28);
  --radius: 16px;
  --radius-lg: 22px;
  --maxw: 1120px;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-brand: "Manrope", "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Layout helpers */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(48px, 8vw, 88px); }
.section--tight { padding-block: clamp(36px, 6vw, 60px); }
.bg-soft { background: var(--bg-2); }
.bg-soft-2 { background: var(--bg-3); }
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-family: var(--font-display); font-weight: 600;
  font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .6rem;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--ink-2); max-width: 60ch; }
.section > .wrap > .lead.center, .center .lead { margin-inline: auto; }
.muted { color: var(--ink-3); }
.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; }
/* Skip-link: becomes visible when focused via keyboard */
.sr-only:focus {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  width: auto; height: auto; padding: 12px 18px; margin: 0; overflow: visible;
  clip: auto; white-space: normal;
  background: var(--accent); color: var(--accent-fg);
  font-family: var(--font-display); font-weight: 600; border-radius: 10px;
  box-shadow: var(--shadow); text-decoration: none;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: .82em 1.4em; border-radius: 12px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-fg); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f2f5f3; transform: translateY(-1px); }
.btn-lg { font-size: 1.08rem; padding: .95em 1.7em; }
.btn-block { width: 100%; }

/* Header / nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .3em; font-family: var(--font-brand); font-weight: 800; font-size: 1.28rem; color: var(--ink); letter-spacing: -.03em; }
.brand:hover { text-decoration: none; }
.brand .mark {
  display: inline-flex; align-items: center; color: var(--accent);
}
.brand .mark svg { display: block; width: 28px; height: 28px; }
.brand .wordmark { font-family: var(--font-brand); font-weight: 800; }
.brand .q { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { color: var(--ink-2); font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 9px; }
.nav-links a:hover { color: var(--ink); background: var(--bg-2); text-decoration: none; }
.nav-links .nav-cta { color: var(--accent-fg); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 10px; width: 42px; height: 40px; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--ink); }
.lang-switch { font-size: .85rem; color: var(--ink-3); display: inline-flex; gap: 4px; align-items: center; padding: 8px 10px; }
.lang-switch a { color: var(--ink-3); font-weight: 600; }
.lang-switch a[aria-current="page"] { color: var(--accent); }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px 18px; gap: 2px;
    box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 10px; font-size: 1rem; }
  .nav-links .nav-cta { margin-top: 6px; text-align: center; }
}

/* Hero */
.hero { padding-block: clamp(40px, 7vw, 84px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(14,165,100,.10), transparent 70%),
    radial-gradient(50% 45% at 5% 20%, rgba(14,165,100,.07), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero .lead { margin-bottom: 1.6rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-micro { margin-top: 1.1rem; font-size: .9rem; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: .35rem 1rem; }
.hero-micro span { display: inline-flex; align-items: center; gap: .35em; }
.hero-micro .dot { color: var(--accent); }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { order: -1; } }

/* QR sample art (CSS-only, decorative) */
.qr-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 26px; max-width: 360px; margin-inline: auto;
}
.qr-art {
  width: 100%; aspect-ratio: 1; border-radius: 14px; background: #fff;
  display: grid; grid-template-columns: repeat(11, 1fr); grid-template-rows: repeat(11, 1fr);
  gap: 5%; padding: 6%;
}
.qr-art i { background: var(--ink); border-radius: 2px; }
.qr-art i.on { background: var(--accent); }
.qr-art i.off { background: transparent; }
.qr-cap { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; font-size: .82rem; color: var(--ink-3); }
.qr-cap .pill { background: var(--accent-soft); color: var(--accent-hover); font-weight: 600; padding: 4px 10px; border-radius: 999px; font-size: .75rem; }

/* Trust band (small strip of one-liners) */
.trustbar { background: var(--ink-dark); color: #d9efe4; }
.trustbar .wrap { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: center; padding-block: 16px; font-size: .88rem; }
.trustbar span { display: inline-flex; align-items: center; gap: .45em; }
.trustbar svg { width: 16px; height: 16px; stroke: var(--accent); flex: none; }

/* Cards / grids */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 980px) { .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.card h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.card p { color: var(--ink-2); font-size: .96rem; margin: 0; }
.card .ic {
  width: 42px; height: 42px; border-radius: 11px; background: var(--accent-soft);
  display: grid; place-items: center; margin-bottom: 14px;
}
.card .ic svg { width: 22px; height: 22px; stroke: var(--accent-hover); fill: none; }

/* Trust guarantee cards (numbered) */
.guarantee { position: relative; }
.guarantee .num {
  font-family: var(--font-display); font-weight: 700; font-size: .8rem; color: var(--accent);
  background: var(--accent-soft); width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center; margin-bottom: 14px;
}

/* Feature list (checkmarks) */
.checklist li { display: flex; align-items: flex-start; gap: .6em; margin-bottom: .7rem; color: var(--ink-2); font-size: .98rem; }
.checklist li svg { width: 19px; height: 19px; stroke: var(--accent); fill: none; flex: none; margin-top: .15em; }

/* Use-cases strip */
.usecases { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 980px) { .usecases { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .usecases { grid-template-columns: 1fr; } }
.usecase {
  display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.usecase:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.usecase .ic { font-size: 1.6rem; margin-bottom: 10px; }
.usecase h3 { font-size: 1.02rem; margin-bottom: .25rem; }
.usecase p { color: var(--ink-3); font-size: .9rem; margin: 0; }

/* Social proof stat band */
.statband { background: var(--accent-soft); }
.statband .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
@media (max-width: 620px) { .statband .wrap { grid-template-columns: repeat(2, 1fr); } }
.stat .n { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--accent-hover); line-height: 1; }
.stat .l { color: var(--ink-2); font-size: .9rem; margin-top: 6px; }

/* Testimonials */
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.quote p { font-size: 1rem; color: var(--ink); font-style: italic; margin-bottom: 14px; }
.quote .who { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--ink-3); }
.quote .av { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-hover); display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); }

/* Comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.cmp { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
table.cmp th, table.cmp td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.cmp thead th { background: var(--bg-2); font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--ink-2); }
table.cmp thead th.us { color: var(--accent-hover); }
table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp td.c, table.cmp th.c { text-align: center; }
table.cmp .yes { color: var(--accent-hover); font-weight: 600; }
table.cmp .no { color: var(--muted); }
table.cmp .col-us { background: var(--accent-soft); }
.tick { width: 18px; height: 18px; stroke: var(--accent-hover); fill: none; display: inline-block; vertical-align: -3px; }
.cross { width: 16px; height: 16px; stroke: var(--muted); fill: none; display: inline-block; vertical-align: -2px; }

/* Pricing */
.price-toggle { display: inline-flex; align-items: center; gap: 12px; margin: 22px auto 0; justify-content: center; }
.price-toggle .lbl { font-size: .95rem; color: var(--ink-3); font-weight: 600; }
.price-toggle .lbl.active { color: var(--ink); }
.switch { width: 50px; height: 28px; border-radius: 999px; border: none; background: var(--line-strong); padding: 3px; cursor: pointer; transition: background .15s; }
.switch[aria-checked="true"] { background: var(--accent); }
.switch .knob { display: block; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .18s ease; box-shadow: var(--shadow-sm); }
.switch[aria-checked="true"] .knob { transform: translateX(22px); }
.save-pill { background: var(--accent-soft); color: var(--accent-hover); font-weight: 700; font-size: .75rem; padding: 4px 10px; border-radius: 999px; }
.save-pill--lg { background: var(--accent); color: var(--accent-fg); font-size: .82rem; padding: 5px 14px; box-shadow: var(--shadow-sm); }

.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 1080px) { .tiers { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-inline: auto; } }
@media (max-width: 560px) { .tiers { grid-template-columns: 1fr; max-width: 460px; } }
.tier .checklist em { font-style: normal; color: var(--ink-3); font-size: .82em; }
.tier {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; display: flex; flex-direction: column; position: relative;
  text-align: center;
}
.tier .checklist { text-align: left; }
.tier.featured { border-color: var(--accent); box-shadow: var(--shadow-lg); }
.tier .badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--accent-fg); font-family: var(--font-display);
  font-weight: 700; font-size: .72rem; letter-spacing: .04em; padding: 5px 14px; border-radius: 999px;
}
.tier .tname { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.tier .tagline { color: var(--ink-3); font-size: .9rem; min-height: 2.6em; margin-top: 4px; }
.tier .price { margin: 14px 0 2px; }
.tier .price .amt { font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; letter-spacing: -.02em; }
.tier .price .per { color: var(--ink-3); font-size: .95rem; }
.tier .note { color: var(--muted); font-size: .8rem; min-height: 1.2em; margin-bottom: 18px; }
.tier .checklist { flex: 1; margin: 6px 0 22px; }
.tier .checklist li { font-size: .92rem; }

/* FAQ accordion */
.faq { max-width: 760px; margin-inline: auto; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 0; margin-bottom: 12px; overflow: hidden;
}
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 20px; font-family: var(--font-display);
  font-weight: 600; font-size: 1.02rem; color: var(--ink); display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); font-weight: 400; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--ink-2); margin: 0; font-size: .98rem; }

/* How it works steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-left: 0; }
.step .n { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--accent-fg); background: var(--accent); width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 14px; }
.step h3 { font-size: 1.08rem; margin-bottom: .3rem; }
.step p { color: var(--ink-2); font-size: .95rem; margin: 0; }

/* CTA band */
.ctaband { background: var(--ink-dark); color: #fff; border-radius: 0; }
.ctaband.rounded { border-radius: var(--radius-lg); }
.ctaband .wrap { text-align: center; }
.ctaband h2 { color: #fff; }
.ctaband p { color: #b9d6c9; max-width: 52ch; margin-inline: auto; }
.ctaband .hero-cta { justify-content: center; margin-top: 22px; }

/* Breadcrumb */
.crumbs { font-size: .85rem; color: var(--ink-3); padding-top: 18px; }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--accent); }
.crumbs span { color: var(--ink-3); margin: 0 .4em; }

/* Related links chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: .4em; background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 16px; font-size: .9rem; color: var(--ink-2); font-weight: 500;
}
.chip:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* Prose blocks */
.prose { max-width: 70ch; }
.prose p { color: var(--ink-2); }
.prose h2 { margin-top: 1.4em; }

/* Badges row */
.badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.badge-pill { display: inline-flex; align-items: center; gap: .4em; font-size: .82rem; color: var(--ink-2); background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 500; }
.badge-pill svg { width: 15px; height: 15px; stroke: var(--accent); fill: none; }

/* Footer */
.site-footer { background: var(--ink-dark); color: #aebfb7; padding-block: 56px 28px; font-size: .92rem; }
.site-footer a { color: #cdddd5; }
.site-footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .brand { color: #fff; margin-bottom: 12px; }
.footer-brand .brand .mark { color: #F2EEE8; }
.footer-brand .brand .q { color: var(--gold); }
.footer-brand p { color: #93a89f; font-size: .9rem; max-width: 32ch; }
.footer-col h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; font-family: var(--font-display); }
.footer-col ul li { margin-bottom: 9px; }
.footer-trust { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .82rem; color: #8ba197; }
.footer-trust span { display: inline-flex; align-items: center; gap: .4em; }
.footer-trust svg { width: 15px; height: 15px; stroke: var(--accent); flex: none; }
.footer-legal { margin-top: 18px; font-size: .82rem; color: #7c9289; display: flex; flex-wrap: wrap; gap: .4rem 1rem; justify-content: space-between; }
.footer-legal .links { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Intro/benefit two-col for SEO pages */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px,4vw,52px); align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* utility */
.mt-s { margin-top: 1rem; } .mt-m { margin-top: 1.8rem; } .mt-l { margin-top: 2.6rem; }
.mb-m { margin-bottom: 1.8rem; }
.maxw-narrow { max-width: 720px; margin-inline: auto; }

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
