/* QR Analytics site styles. Plain CSS, no build step. */

/* Bricolage Grotesque, self-hosted so visitors' browsers don't call Google Fonts.
   Variable font (weight 400-800, optical size 12-96). License: /fonts/OFL.txt */
@font-face {
    font-family: "Bricolage Grotesque";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Bricolage Grotesque";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("/fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --bg: #fbfaf7;
    --surface: #ffffff;
    --ink: #16171d;
    --muted: #5d6166;
    --line: #e6e3dc;
    --violet: #9c54ef;      /* from the app icon */
    --violet-ink: #6f2bc2;  /* readable violet for links on light */
    --on-violet: #16171d;
    --radius: 14px;
    --wrap: 1080px;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #131316;
        --surface: #1c1c21;
        --ink: #f1f0ec;
        --muted: #a4a6ab;
        --line: #2c2c33;
        --violet-ink: #c39bf7;
    }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 18px;
    line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--violet-ink); text-underline-offset: 3px; }

h1, h2, h3 { line-height: 1.1; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.lede { font-size: 1.2rem; color: var(--muted); max-width: 34em; }

/* Header */
.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.site-nav { display: flex; gap: 20px; font-size: 0.95rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding: 48px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 span { color: var(--violet-ink); }
.hero .badge { margin-top: 28px; }
.hero .small { font-size: 0.9rem; color: var(--muted); margin-top: 12px; }

.app-store img { width: 180px; height: auto; }
.app-store { display: inline-block; border-radius: 10px; }
.app-store:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }

/* Phone screenshot, no device frame */
.shot {
    border-radius: 28px;
    border: 1px solid var(--line);
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 18px 40px -18px rgba(22,23,29,0.25);
    background: var(--surface);
    overflow: hidden;
    max-width: 300px;
}
.hero .shot { margin-left: auto; transform: rotate(2deg); }

/* Counter band: flat icon violet with dark ink, like the icon itself */
.counter { background: #6f2bc2; color: #fff; }  /* deeper violet so text passes WCAG AA */
.counter .wrap { display: flex; align-items: baseline; gap: 24px; flex-wrap: wrap; padding-top: 40px; padding-bottom: 40px; }
.counter-number {
    font-size: clamp(3rem, 9vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    min-width: 4ch;
}
.counter-number.loading { opacity: 0.4; }
.counter-label { font-size: 1.25rem; font-weight: 500; max-width: 22em; }
.counter-label small { display: block; font-size: 0.95rem; font-weight: 400; opacity: 0.88; }

/* Steps */
.section { padding: 88px 0; }
.section.tight { padding: 64px 0; }
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 16px; }
.steps li::before { content: counter(step); display: block; font-weight: 800; font-size: 1.1rem; color: var(--violet-ink); margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 1rem; }

/* Split feature rows */
.split .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split .shot { margin: 0 auto; }
.split.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; }
.ticks li { padding-left: 28px; position: relative; margin-bottom: 10px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 12px; height: 7px; border-left: 2.5px solid var(--violet-ink); border-bottom: 2.5px solid var(--violet-ink); transform: rotate(-45deg); }

/* Pricing as a plain comparison */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 36px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.plan { padding: 32px; }
.plan + .plan { border-left: 1px solid var(--line); }
.plan .price { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; margin: 4px 0 2px; }
.plan .price small { font-size: 1rem; font-weight: 400; color: var(--muted); }
.plan .note { color: var(--muted); font-size: 0.95rem; }
.plan .alt-price { color: var(--muted); font-size: 1rem; margin: 0 0 4px; }
.plan .trial { display: inline-block; margin: 0 0 8px; padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, var(--violet) 14%, transparent); color: var(--violet-ink); font-size: 0.95rem; font-weight: 600; }
.plan.pro { box-shadow: inset 0 4px 0 var(--violet); }

/* Closing call to action */
.closing { text-align: left; }
.closing .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 56px; }
.closing h2 { margin: 0; }
.closing p { margin: 8px 0 0; color: var(--muted); }

/* Prose pages (how it works, 404) */
.prose { max-width: 680px; }
.prose h2 { font-size: 1.6rem; margin-top: 2em; }
.prose ol { padding-left: 1.2em; }
.prose ol li { margin-bottom: 0.9em; padding-left: 0.3em; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); margin: 24px 0; }
.facts > div { padding: 24px; }
.facts > div + div { border-left: 1px solid var(--line); }
.facts h3 { margin-bottom: 12px; }
.facts ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: 1rem; }
.facts li { margin-bottom: 6px; }

.button { display: inline-block; padding: 12px 22px; border-radius: 999px; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 600; font-size: 1rem; }
.button.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* Footer */
.site-footer { padding: 48px 0 56px; margin-top: 40px; border-top: 1px solid var(--line); font-size: 0.95rem; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.site-footer p { margin: 0; }

@media (max-width: 800px) {
    body { font-size: 17px; }
    .site-nav { gap: 14px; }
    .site-nav .hide-sm { display: none; }
    .hero { padding: 24px 0 56px; }
    .hero .wrap, .split .wrap { grid-template-columns: 1fr; gap: 40px; }
    .hero .shot { margin: 0 auto; transform: none; max-width: 260px; }
    .split .shot { max-width: 260px; }
    .section { padding: 64px 0; }
    .steps { grid-template-columns: 1fr; gap: 28px; }
    .plans, .facts { grid-template-columns: 1fr; }
    .plan + .plan, .facts > div + div { border-left: 0; border-top: 1px solid var(--line); }
    .plan { padding: 24px; }
}

@media (prefers-reduced-motion: no-preference) {
    a { transition: color 0.15s ease; }
}

/* Two short ideas side by side, divided by a rule */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.pair > div + div { border-left: 1px solid var(--line); padding-left: 56px; }
@media (max-width: 800px) {
    .pair { grid-template-columns: 1fr; gap: 32px; }
    .pair > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 32px; }
}

.brand, .site-nav a { white-space: nowrap; }
@media (max-width: 420px) {
    .site-header .wrap { padding: 0 16px; }
    .wrap { padding: 0 16px; }
    .site-nav { gap: 12px; font-size: 0.9rem; }
}
