/* Checkly — "Blush editorial" (MAKEUP_SPEC.md §2), shared by every page on get-checkly.com.
   Black is the action colour, rose is the brand colour, the score scale is the data colour.
   Serif (New York on Apple devices, Georgia elsewhere) for voice, the system sans for UI. */

:root {
    --ground: #FBF7F4;          /* BackgroundSecondary, ivory */
    --card: #FFFFFF;            /* SurfacePrimary */
    --quiet: #F4EDE9;           /* SurfaceSecondary */
    --line: #EADFD9;            /* BorderLine */
    --ink: #141212;             /* TextPrimary — ink and action */
    --on-ink: #FBF7F4;
    --text-2: #6E6461;          /* TextSecondary */
    --text-3: #9C908C;          /* TextTertiary, decoration only */
    --rose: #C8577A;            /* Accent — large type and marks only */
    --rose-soft: #F8E4EA;       /* AccentSoft */
    --rose-ink: #93365A;        /* AccentInk — rose text at body size */
    --glow: #F6DCE2;            /* Glow */
    --excellent: #3F7F5E;       /* BrandDeep */
    --good: #6E9A5B;            /* BrandPrimary */
    --mediocre: #D5843F;        /* Warning */
    --poor: #C24A3E;            /* Error */
    --shadow: 0 8px 18px rgba(20, 18, 18, .06), 0 1px 2px rgba(20, 18, 18, .04);
    --phone-shadow: 0 30px 60px -20px rgba(120, 60, 80, .35), 0 12px 24px -12px rgba(20, 18, 18, .25);

    --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
    --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --gutter: 20px;
    --max: 1120px;
    --radius-card: 22px;
    --radius-tile: 18px;

    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --ground: #120F0E;
        --card: #1E1A19;
        --quiet: #2A2422;
        --line: #3A3230;
        --ink: #F6F1EE;
        --on-ink: #141212;
        --text-2: #B5AAA6;
        --text-3: #82776F;
        --rose: #E57FA2;
        --rose-soft: #3A2129;
        --rose-ink: #F4B9CC;
        --glow: #33202A;
        --excellent: #74B891;
        --good: #9CC48D;
        --mediocre: #F0A765;
        --poor: #EC6F63;
        --shadow: none;
        --phone-shadow: 0 30px 60px -24px rgba(0, 0, 0, .7);
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; line-height: 1.12; }

:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 6px; }

.skip {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    background: var(--ink); color: var(--on-ink);
    padding: 10px 18px; border-radius: 999px; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

/* ---------- Header ---------- */

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--ground) 86%, transparent);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
    .site-header { background: var(--ground); }
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }

.wordmark {
    display: inline-flex; align-items: center; gap: 10px;
    text-decoration: none; color: var(--ink);
    font-family: var(--serif); font-weight: 600; font-size: 22px; letter-spacing: -0.01em;
}
.wordmark .mark { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 0 0 1px var(--line); }
.wordmark .name { position: relative; padding-right: 10px; }
.wordmark .name svg { position: absolute; right: -2px; top: -1px; width: 10px; height: 10px; color: var(--rose); }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a.link {
    display: none;
    padding: 8px 12px; border-radius: 999px;
    color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500;
}
.site-nav a.link:hover { color: var(--ink); background: var(--quiet); }
@media (min-width: 820px) { .site-nav a.link { display: inline-block; } }

/* ---------- Buttons ---------- */

.pill {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 10px 22px; border-radius: 999px;
    background: var(--ink); color: var(--on-ink);
    font-family: var(--sans); font-size: 16px; font-weight: 600; text-decoration: none;
    transition: transform .15s ease, opacity .15s ease;
}
.pill:hover { opacity: .88; }
.pill:active { transform: scale(.98); }
.pill.small { min-height: 40px; padding: 8px 18px; font-size: 15px; }
.pill.quiet { background: var(--quiet); color: var(--ink); }

.text-link {
    color: var(--ink); font-weight: 600; text-decoration: underline;
    text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.text-link:hover { text-decoration-color: var(--rose); }

.badge-link { display: inline-block; border-radius: 12px; line-height: 0; }
.badge-link img { height: 54px; width: auto; }
@media (prefers-color-scheme: dark) { .badge-link img { box-shadow: 0 0 0 1px #A6A6A6; border-radius: 10px; } }

/* ---------- Type helpers ---------- */

.eyebrow {
    display: inline-block;
    font-family: var(--sans); font-size: 12.5px; font-weight: 600;
    letter-spacing: .12em; text-transform: uppercase; color: var(--text-2);
    margin-bottom: 14px;
}
.eyebrow.rose { color: var(--rose-ink); }

.lede { font-size: 19px; color: var(--text-2); max-width: 36em; }
.muted { color: var(--text-2); }
.small { font-size: 14px; }

/* The highlighter stroke: a rounded, slightly inset marker fill behind a word. */
.hl {
    background-image: linear-gradient(transparent 58%, var(--glow) 58%, var(--glow) 92%, transparent 92%);
    border-radius: 4px;
    padding: 0 .06em;
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---------- Sections ---------- */

section { padding: 72px 0; }
section[id], .faq-group, [id] { scroll-margin-top: 76px; }
@media (min-width: 900px) { section { padding: 104px 0; } }
.section-head { max-width: 40em; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(30px, 5.4vw, 46px); margin-bottom: 14px; }
.section-head p { color: var(--text-2); font-size: 18px; margin: 0; }
.band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Hero ---------- */

.hero { position: relative; padding: 40px 0 64px; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: auto -20% -10% auto;
    width: 900px; height: 900px; max-width: 160vw; max-height: 160vw;
    background: radial-gradient(closest-side, var(--glow), transparent);
    right: -30%; top: 10%; z-index: -1; pointer-events: none;
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(44px, 11vw, 84px); line-height: 1.02; letter-spacing: -0.02em; margin-bottom: 22px; }
.hero .lede { margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-bottom: 18px; }
.hero-meta { font-size: 14px; color: var(--text-2); margin: 0; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual .sparkle-lg { position: absolute; width: 44px; height: 44px; color: var(--rose); right: 12%; top: 2%; }
.hero-visual .sparkle-sm { position: absolute; width: 20px; height: 20px; color: var(--rose); right: 22%; top: -2%; }
@media (min-width: 900px) {
    .hero { padding: 72px 0 104px; }
    .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 64px; }
}

/* ---------- Phone ---------- */

.phone {
    width: min(100%, 290px);
    padding: 9px; border-radius: 48px;
    background: #141212;
    box-shadow: var(--phone-shadow);
    flex: none;
}
.phone picture, .phone img { display: block; width: 100%; height: auto; border-radius: 39px; aspect-ratio: 600 / 1304; background: #F3ECE8; }
.phone.sm { width: min(100%, 260px); }

/* ---------- Principles strip ---------- */

.principles { padding: 0 0 8px; }
.principles ul {
    list-style: none; margin: 0; padding: 18px 20px;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 20px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card);
    box-shadow: var(--shadow);
}
.principles li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.principles li svg { width: 14px; height: 14px; color: var(--rose); flex: none; }
@media (min-width: 820px) { .principles ul { grid-template-columns: repeat(4, 1fr); padding: 22px 28px; } }

/* ---------- Steps ---------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.steps li {
    counter-increment: step;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card);
    padding: 26px 24px; box-shadow: var(--shadow);
}
.steps li::before {
    content: counter(step);
    display: block; font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--rose);
    margin-bottom: 16px;
}
.steps h3 { font-size: 23px; margin-bottom: 8px; }
.steps p { color: var(--text-2); margin: 0; font-size: 16px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* ---------- Features ---------- */

.feature { display: grid; gap: 36px; align-items: center; padding: 28px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature .copy h3 { font-size: clamp(28px, 5vw, 40px); margin-bottom: 14px; }
.feature .copy p { color: var(--text-2); font-size: 18px; max-width: 30em; }
.feature .copy p:last-child { margin-bottom: 0; }
.feature .visual { display: flex; justify-content: center; }
@media (min-width: 900px) {
    .feature { grid-template-columns: 1fr 1fr; gap: 72px; padding: 56px 0; }
    .feature.flip .visual { order: -1; }
}
.also { margin-top: 32px; color: var(--text-2); font-size: 16px; text-align: center; }

/* ---------- Scoring ---------- */

.bands { list-style: none; margin: 0 0 40px; padding: 0; display: grid; gap: 12px; }
.bands li {
    display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-tile);
    padding: 16px 18px;
}
.bands .dot { width: 14px; height: 14px; border-radius: 50%; grid-row: span 2; }
.bands .name { font-weight: 600; font-size: 16px; }
.bands .name span { font-family: var(--serif); font-weight: 500; color: var(--text-2); margin-left: 6px; font-variant-numeric: tabular-nums; }
.bands .what { color: var(--text-2); font-size: 15px; grid-column: 2; }
@media (min-width: 820px) { .bands { grid-template-columns: repeat(4, 1fr); } .bands li { grid-template-columns: 1fr; } .bands .dot { grid-row: auto; margin-bottom: 6px; } .bands .what { grid-column: 1; } }

.points { display: grid; gap: 28px; }
.points h3 { font-size: 22px; margin-bottom: 8px; }
.points p { color: var(--text-2); margin: 0; font-size: 16px; }
@media (min-width: 820px) { .points { grid-template-columns: repeat(3, 1fr); gap: 36px; } }

/* ---------- Coverage ---------- */

.coverage-lede { font-family: var(--serif); font-size: clamp(24px, 4vw, 32px); line-height: 1.3; font-weight: 500; max-width: 26em; margin-bottom: 40px; }
.stats { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 14px; }
.stats li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 22px 24px; box-shadow: var(--shadow); }
.stats .num { display: block; font-family: var(--serif); font-size: 44px; line-height: 1.05; font-weight: 600; font-variant-numeric: lining-nums; margin-bottom: 6px; }
.stats .num.rose { color: var(--rose); }
.stats .label { color: var(--text-2); font-size: 15px; }
@media (min-width: 820px) { .stats { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.source-note { font-size: 14px; color: var(--text-2); margin-bottom: 36px; }
.two-col { display: grid; gap: 24px; }
.two-col p { color: var(--text-2); margin: 0; }
.two-col h3 { font-size: 22px; margin-bottom: 8px; }
@media (min-width: 820px) { .two-col { grid-template-columns: 1fr 1fr; gap: 48px; } }

/* ---------- Privacy list ---------- */

.checks { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 17px; }
.checks li svg { width: 16px; height: 16px; margin-top: 5px; color: var(--rose); }
.checks li span { color: var(--text-2); }
.checks li strong { color: var(--ink); font-weight: 600; }
@media (min-width: 820px) { .checks { grid-template-columns: 1fr 1fr; gap: 18px 48px; } }

/* ---------- Cards ---------- */

.card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card);
    padding: 26px 24px; box-shadow: var(--shadow);
}
.card h2, .card h3 { font-size: 24px; margin-bottom: 10px; }
.card p { color: var(--text-2); }
.card p:last-child { margin-bottom: 0; }
.card.note { background: var(--quiet); box-shadow: none; }

.premium-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .premium-grid { grid-template-columns: 1.2fr 1fr; gap: 28px; } }

/* ---------- Closing CTA ---------- */

.closing { text-align: center; position: relative; overflow: hidden; }
.closing::before {
    content: ""; position: absolute; left: 50%; top: 50%; width: 760px; height: 760px; max-width: 150vw; max-height: 150vw;
    transform: translate(-50%, -50%); background: radial-gradient(closest-side, var(--glow), transparent); z-index: -1;
}
.closing h2 { font-size: clamp(36px, 7vw, 60px); margin-bottom: 16px; }
.closing p { color: var(--text-2); font-size: 18px; margin-bottom: 28px; }
.closing .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 48px 0 56px; font-size: 14px; color: var(--text-2); }
.footer-grid { display: grid; gap: 28px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--ink); text-decoration: none; font-weight: 500; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer p { margin: 0 0 6px; }
.fine { font-size: 12.5px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1fr auto; align-items: start; } }

/* ---------- Document pages (privacy, terms, support) ---------- */

.doc { padding: 40px 0 72px; }
.doc-head { padding-bottom: 28px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.doc-head h1 { font-size: clamp(38px, 8vw, 56px); margin-bottom: 10px; }
.doc-head .updated { color: var(--text-2); font-size: 14px; margin: 0; }
.doc-head .lede { margin: 18px 0 0; }
.doc h2 { font-size: 24px; margin: 40px 0 12px; scroll-margin-top: 84px; }
.doc p, .doc li { color: var(--text-2); }
.doc ul { padding-left: 1.2em; margin: 0 0 1em; }
.doc li { margin-bottom: .4em; }
.doc a { color: var(--ink); text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc .card { margin: 28px 0; }
.doc .card h2 { margin: 0 0 10px; font-size: 22px; }
.doc address { font-style: normal; color: var(--text-2); }
.toc { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.toc a {
    display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--quiet);
    color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500;
}
.toc a:hover { background: var(--rose-soft); color: var(--rose-ink); }

/* FAQ */
.faq { display: grid; gap: 12px; margin-bottom: 8px; }
.faq details {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-tile);
    box-shadow: var(--shadow);
}
.faq summary {
    cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; position: relative;
    font-weight: 600; font-size: 17px; color: var(--ink); line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px;
    border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2);
    transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 20px 18px; }
.faq .answer p:last-child { margin-bottom: 0; }
.faq-group { font-size: 13px !important; font-family: var(--sans) !important; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); margin: 40px 0 14px !important; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }
