/* Checkly — get-checkly.com. "Blush editorial", grown up for the web.
   One job: get a visitor from "what is this" to the App Store. Every section ends near a
   download action; nothing on the page competes with it.
   Black is the action colour, rose is the brand colour, the score scale is the data colour.
   Serif (New York on Apple devices) for voice, the system sans for UI. No web fonts, no
   third-party scripts, no cookies: the page loads fast and asks nothing of the visitor. */

:root {
    --ground: #FBF7F4;
    --ground-2: #F5EEEA;
    --card: #FFFFFF;
    --quiet: #F3ECE8;
    --line: #EADFD9;
    --line-soft: rgba(20, 18, 18, .07);
    --ink: #141212;
    --on-ink: #FBF7F4;
    --text-2: #6B615E;
    --text-3: #9C908C;
    --rose: #C8577A;
    --rose-soft: #F8E4EA;
    --rose-ink: #93365A;
    --glow: #F6DCE2;
    --warn-soft: #FBEADB;
    --warn-ink: #8C4A12;
    --excellent: #3F7F5E;
    --good: #6E9A5B;
    --mediocre: #D5843F;
    --poor: #C24A3E;

    --shadow-sm: 0 1px 2px rgba(20, 18, 18, .05), 0 4px 12px rgba(20, 18, 18, .04);
    --shadow: 0 2px 4px rgba(20, 18, 18, .04), 0 12px 32px -8px rgba(80, 40, 50, .14);
    --shadow-lg: 0 4px 10px rgba(20, 18, 18, .05), 0 40px 80px -24px rgba(110, 50, 70, .30);
    --device-shadow: 0 50px 90px -30px rgba(110, 45, 70, .45), 0 20px 40px -20px rgba(20, 18, 18, .35);

    --serif: ui-serif, "New York", "Iowan Old Style", Charter, "Sitka Text", Cambria, "Noto Serif", Georgia, serif;
    --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --gutter: 20px;
    --max: 1200px;
    --r-xl: 32px;
    --r-lg: 24px;
    --r-md: 18px;
    --ease: cubic-bezier(.2, .7, .2, 1);

    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --ground: #110E0D;
        --ground-2: #171312;
        --card: #1C1817;
        --quiet: #26201F;
        --line: #352D2B;
        --line-soft: rgba(255, 240, 235, .08);
        --ink: #F6F1EE;
        --on-ink: #141212;
        --text-2: #B8ADA9;
        --text-3: #847A75;
        --rose: #E57FA2;
        --rose-soft: #3A2129;
        --rose-ink: #F4B9CC;
        --glow: #3A1F2B;
        --warn-soft: #3A2A1C;
        --warn-ink: #F3C08E;
        --excellent: #74B891;
        --good: #9CC48D;
        --mediocre: #F0A765;
        --poor: #EC6F63;
        --shadow-sm: none;
        --shadow: 0 0 0 1px var(--line);
        --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, .8);
        --device-shadow: 0 50px 90px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .04);
    }
}

@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::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;
}
@supports (overflow-x: clip) { body { overflow-x: clip; } }

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; line-height: 1.1; text-wrap: balance; }
p, li { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--glow); color: var(--ink); }

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

[hidden] { display: none !important; }

.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: 780px; }

/* ---------- Platform switches (set on <html> by site.js) ---------- */

/* Hidden, never shown with display:revert — that would undo each element's own flex/grid. */
html:not(.is-android) .only-android { display: none !important; }
html.is-android .hide-android { display: none !important; }
html.is-ios .hide-ios { display: none !important; }
html.is-ios .only-desktop, html.is-android .only-desktop { display: none !important; }
@media not all and (min-width: 900px) and (hover: hover) { .only-desktop { display: none !important; } }

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

.site-header {
    position: sticky; top: 0; z-index: 100;
    transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
    border-bottom: 1px solid transparent;
}
.site-header.scrolled,
html:not(.js) .site-header,
.doc-page .site-header {
    background: color-mix(in srgb, var(--ground) 82%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    backdrop-filter: saturate(180%) blur(18px);
    border-bottom-color: var(--line-soft);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
    .site-header.scrolled, html:not(.js) .site-header, .doc-page .site-header { background: var(--ground); }
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; 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: 23px; letter-spacing: -0.015em;
}
.wordmark .mark { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 0 1px var(--line), 0 2px 6px rgba(20, 18, 18, .06); }
.wordmark .name { position: relative; padding-right: 10px; }
.wordmark .name svg { position: absolute; right: -2px; top: 0; width: 10px; height: 10px; color: var(--rose); }

.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a.link {
    display: none;
    padding: 8px 14px; border-radius: 999px;
    color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500;
    transition: color .2s ease, background-color .2s ease;
}
.site-nav a.link:hover, .site-nav a.link[aria-current="page"] { color: var(--ink); background: var(--quiet); }
.site-nav .pill { margin-left: 10px; }
@media (min-width: 900px) { .site-nav a.link { display: inline-block; } }

/* The desktop "Get the app" popover: a QR code, because a desktop visitor can't install. */
.get-wrap { position: relative; }
.get-pop {
    position: absolute; right: 0; top: calc(100% + 12px); width: 300px;
    margin: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg);
    background: var(--card); color: var(--ink); box-shadow: var(--shadow-lg);
    text-align: center; inset: auto 0 auto auto;
    opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none; visibility: hidden;
    transition: opacity .2s ease, transform .25s var(--ease), visibility 0s linear .25s;
}
.get-pop.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.get-pop .qr { width: 168px; margin: 4px auto 14px; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.get-pop strong { display: block; font-family: var(--serif); font-size: 20px; font-weight: 500; margin-bottom: 4px; }
.get-pop p { font-size: 14px; color: var(--text-2); margin: 0 0 14px; }
.get-pop .text-link { font-size: 14px; }

/* ---------- Buttons and badges ---------- */

.pill {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 10px 24px; border-radius: 999px; border: 0; cursor: pointer;
    background: var(--ink); color: var(--on-ink);
    font-family: var(--sans); font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap;
    transition: transform .2s var(--ease), opacity .2s ease, box-shadow .2s ease;
}
.pill:hover { opacity: .9; }
.pill:active { transform: scale(.97); }
.pill.small { min-height: 40px; padding: 8px 18px; font-size: 15px; }
.pill.quiet { background: var(--quiet); color: var(--ink); }
.pill .apple { width: 15px; height: 18px; margin-top: -2px; }

.text-link {
    color: var(--ink); font-weight: 600; text-decoration: underline;
    text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--text-3);
    transition: text-decoration-color .2s ease;
}
.text-link:hover { text-decoration-color: var(--rose); }
.arrow-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--ink); }
.arrow-link::after { content: "→"; transition: transform .2s var(--ease); }
.arrow-link:hover::after { transform: translateX(3px); }

.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.store-badge { display: inline-block; line-height: 0; border-radius: 12px; transition: transform .2s var(--ease), opacity .2s ease; }
.store-badge:hover { transform: translateY(-1px); }
.store-badge:active { transform: scale(.98); }
.store-badge img { height: 56px; width: auto; }
.stores.lg .store-badge img { height: 60px; }

/* Google Play: "coming soon" until site.js has a Play Store URL. */
.store-play {
    display: inline-flex; align-items: center; gap: 10px;
    height: 56px; padding: 0 18px 0 14px; border-radius: 12px;
    border: 1px solid var(--line); background: transparent; color: var(--ink);
    text-decoration: none; line-height: 1.1; transition: background-color .2s ease, border-color .2s ease;
}
.stores.lg .store-play { height: 60px; }
.store-play:hover { background: var(--quiet); }
.store-play svg { width: 22px; height: 24px; flex: none; }
.store-play small { display: block; font-size: 11px; font-weight: 500; color: var(--text-2); letter-spacing: .02em; }
.store-play b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.store-play.live { background: #000; color: #fff; border-color: #000; }
.store-play.live small { color: #fff; text-transform: uppercase; font-size: 10px; letter-spacing: .06em; }
@media (prefers-color-scheme: dark) { .store-play.live { border-color: #A6A6A6; } }

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

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--sans); font-size: 12.5px; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase; color: var(--text-2);
    margin-bottom: 18px;
}
.eyebrow svg { width: 11px; height: 11px; color: var(--rose); }
.eyebrow.rose { color: var(--rose-ink); }

.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--text-2); max-width: 34em; }
.muted { color: var(--text-2); }
.small { font-size: 14px; }

/* The highlighter stroke — the app's ingredient marker — drawn left to right. */
.hl {
    background-image: linear-gradient(var(--glow), var(--glow));
    background-repeat: no-repeat;
    background-size: 100% 36%;
    background-position: 0 88%;
    border-radius: 3px;
    padding: 0 .06em;
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.js .draw .hl, .js .hl.draw { background-size: 0 36%; transition: background-size 1s var(--ease) .15s; }
.js .draw.in .hl, .js .hl.draw.in { background-size: 100% 36%; }
.hl.warn { background-image: linear-gradient(var(--warn-soft), var(--warn-soft)); }
@media (prefers-reduced-motion: reduce) { .js .draw .hl, .js .hl.draw { background-size: 100% 36%; transition: none; } }

/* ---------- Reveal on scroll (only when JS runs; content is visible without it) ---------- */

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; }
.js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

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

section { padding: 88px 0; position: relative; }
section[id], [id] { scroll-margin-top: 84px; }
@media (min-width: 900px) { section { padding: 140px 0; } }
.section-head { max-width: 46em; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(36px, 5.6vw, 64px); line-height: 1.03; letter-spacing: -0.025em; margin-bottom: 18px; }
.section-head p { color: var(--text-2); font-size: clamp(17px, 1.8vw, 20px); margin: 0; }
.section-head.center p { margin: 0 auto; max-width: 36em; }
@media (min-width: 900px) { .section-head { margin-bottom: 72px; } }
.tint { background: var(--ground-2); }

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

.hero { padding: 24px 0 48px; overflow: hidden; isolation: isolate; }
.hero::before {
    content: ""; position: absolute; z-index: -1; pointer-events: none;
    width: 1100px; height: 1100px; right: -380px; top: -260px;
    background: radial-gradient(closest-side, var(--glow), transparent 72%);
    opacity: .9;
}
.hero-grid { display: grid; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(50px, 8.2vw, 100px); line-height: .96; letter-spacing: -0.035em; margin-bottom: 26px; }
.hero h1 em { font-style: italic; letter-spacing: -0.03em; }
.hero .lede { margin-bottom: 34px; }
.hero-cta { display: grid; gap: 18px; justify-items: start; }
.trial-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 14.5px; color: var(--text-2); margin: 0; }
.trial-line span { display: inline-flex; align-items: center; gap: 7px; }
.trial-line svg { width: 15px; height: 15px; color: var(--excellent); }

.cta-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 14px; }
@media (min-width: 900px) and (hover: hover) {
    html:not(.is-ios):not(.is-android) .cta-row .stores { flex-direction: column; align-items: stretch; gap: 10px; }
    html:not(.is-ios):not(.is-android) .cta-row .store-badge img { height: 54px; }
    html:not(.is-ios):not(.is-android) .cta-row .store-play { height: 54px; }
}
.qr-inline {
    display: flex; align-items: center; gap: 16px; padding: 12px 18px 12px 12px;
    border: 1px solid var(--line); border-radius: var(--r-md); background: color-mix(in srgb, var(--card) 70%, transparent);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.qr-inline .qr { width: 96px; border-radius: 10px; overflow: hidden; flex: none; box-shadow: 0 0 0 1px var(--line); }
.qr-inline > div:last-child { max-width: 150px; line-height: 1.35; }
.qr-inline strong { display: block; font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.qr-inline span { font-size: 14px; color: var(--text-2); }

.android-note {
    margin: 0; padding: 14px 18px; border-radius: var(--r-md); background: var(--rose-soft); color: var(--rose-ink);
    font-size: 15px; max-width: 30em;
}
.android-note a { color: inherit; font-weight: 600; }

@media (min-width: 980px) {
    .hero { padding: 28px 0 120px; }
    .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 40px; }
}

/* Hero stage: two phones and a few chips lifted straight from the app's UI. */
.stage { position: relative; height: 640px; width: 100%; max-width: 560px; margin: 0 auto; }
.stage .device { position: absolute; }
.stage .front { --w: 270px; left: 50%; top: 10px; transform: translateX(-62%); z-index: 2; }
.stage .back { --w: 228px; left: 50%; top: 70px; transform: translateX(-2%) rotate(5deg); z-index: 1; opacity: .96; }
@media (min-width: 560px) {
    .stage { height: 700px; }
    .stage .front { --w: 310px; }
    .stage .back { --w: 262px; top: 80px; }
}
@media (min-width: 980px) {
    .stage { height: 760px; max-width: none; }
    .stage .front { --w: 330px; top: 0; transform: translateX(-70%); }
    .stage .back { --w: 280px; top: 90px; transform: translateX(4%) rotate(5deg); }
}

.float {
    position: absolute; z-index: 3;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 14px 9px 12px; border-radius: 999px;
    font-size: 13.5px; font-weight: 600; white-space: nowrap;
    background: color-mix(in srgb, var(--card) 88%, transparent);
    -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--line-soft);
}
.float .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.float .sub { font-weight: 500; color: var(--text-2); }
.float.against { color: var(--warn-ink); }
.float.against .dot { background: var(--mediocre); }
.float.info { color: var(--ink); }
.float.info .dot { background: var(--text-3); }
.float.card {
    border-radius: 20px; padding: 14px 16px; gap: 12px; align-items: center; white-space: normal; width: 220px;
    color: var(--ink); font-weight: 500;
}
.float.card .ring { width: 42px; height: 42px; flex: none; }
.float.card strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.float.card span { display: block; font-size: 12.5px; color: var(--text-2); line-height: 1.35; }

.stage .f1 { left: 0; top: 420px; }
.stage .f2 { left: 10px; top: 470px; }
.stage .f3 { right: 0; top: 30px; }
@media (min-width: 560px) { .stage .f1 { left: 2%; top: 480px; } .stage .f2 { left: 6%; top: 534px; } .stage .f3 { right: 2%; top: 40px; } }
@media (min-width: 980px) { .stage .f1 { left: -12%; top: 520px; } .stage .f2 { left: -6%; top: 576px; } .stage .f3 { right: -4%; top: 44px; } }
@media (max-width: 399px) { .stage .f3 { display: none; } .stage .float { font-size: 12.5px; } }

@media (prefers-reduced-motion: no-preference) {
    .bob { animation: bob 7s ease-in-out infinite; }
    .bob.b2 { animation-duration: 8s; animation-delay: -2s; }
    .bob.b3 { animation-duration: 9s; animation-delay: -4s; }
    @keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
}

/* ---------- Device frame ---------- */

.device {
    --w: 300px;
    width: var(--w);
    padding: calc(var(--w) * .034);
    border-radius: calc(var(--w) * .165);
    background:
        linear-gradient(145deg, #4A4542 0%, #1B1817 18%, #0E0C0C 50%, #1D1A19 82%, #57514D 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .10),
        inset 0 0 0 calc(var(--w) * .012) #0B0A0A,
        var(--device-shadow);
    flex: none;
}
.device picture, .device img {
    display: block; width: 100%; height: auto;
    aspect-ratio: 1320 / 2868;
    border-radius: calc(var(--w) * .132);
    background: #F3ECE8;
}
@media (prefers-color-scheme: dark) { .device picture, .device img { background: #1A1615; } }
.device img { object-fit: cover; }

/* ---------- Trust strip ---------- */

.trust { padding: 0 0 8px; }
.trust ul {
    list-style: none; display: grid; grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.trust li {
    display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center;
    padding: 16px 8px; font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.3;
}
.trust li svg { width: 12px; height: 12px; color: var(--rose); flex: none; }
.trust li:nth-child(odd) { border-right: 1px solid var(--line); }
.trust li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
@media (min-width: 820px) {
    .trust ul { grid-template-columns: repeat(4, 1fr); }
    .trust li { padding: 26px 10px; font-size: 15px; border-bottom: 0 !important; }
    .trust li:not(:last-child) { border-right: 1px solid var(--line); }
}

/* ---------- Statement ---------- */

.statement { padding-top: 96px; }
.statement p {
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(28px, 4.4vw, 54px); line-height: 1.22; letter-spacing: -0.02em;
    max-width: 22em; margin: 0;
}
.statement p .soft { color: var(--text-3); }
@media (min-width: 900px) { .statement { padding-top: 150px; } }

/* ---------- How it works ---------- */

.steps { list-style: none; display: grid; gap: 20px; counter-reset: step; }
.step {
    counter-increment: step;
    display: grid; grid-template-rows: auto 1fr; gap: 26px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl);
    padding: 14px 14px 30px; box-shadow: var(--shadow-sm);
}
.step .vis {
    height: 220px; border-radius: calc(var(--r-xl) - 10px); background: var(--ground-2);
    display: grid; place-items: center; overflow: hidden; position: relative;
}
.step .copy { padding: 0 14px; }
.step .copy::before {
    content: "0" counter(step);
    display: block; font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .12em;
    color: var(--rose-ink); margin-bottom: 12px;
}
.step h3 { font-size: 26px; margin-bottom: 10px; }
.step p { color: var(--text-2); margin: 0; font-size: 16px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } .step .vis { height: 240px; } }

/* Step 1 visual: scan brackets over a barcode, with the app's mode switch */
.scan-vis { display: grid; justify-items: center; gap: 18px; }
.brackets { position: relative; width: 190px; height: 110px; display: grid; place-items: center; }
.brackets::before, .brackets::after, .brackets i::before, .brackets i::after {
    content: ""; position: absolute; width: 26px; height: 26px; border: 3px solid var(--ink);
}
.brackets::before { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 12px; }
.brackets::after { right: 0; top: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 12px; }
.brackets i::before { left: 0; bottom: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 12px; }
.brackets i::after { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 12px; }
.brackets svg { width: 128px; height: 60px; color: var(--ink); }
.brackets .beam { position: absolute; left: 14px; right: 14px; height: 2px; background: var(--rose); top: 50%; border-radius: 2px; box-shadow: 0 0 12px var(--rose); }
@media (prefers-reduced-motion: no-preference) {
    .in .brackets .beam { animation: beam 2.6s ease-in-out infinite; }
    @keyframes beam { 0%, 100% { top: 22%; } 50% { top: 78%; } }
}
.segmented { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--quiet); font-size: 13px; font-weight: 600; }
.segmented span { padding: 6px 14px; border-radius: 999px; color: var(--text-2); }
.segmented span.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }

/* Step 2 visual: the two photos of Photos mode — the front, then the ingredient list */
.photos-vis { display: grid; justify-items: center; gap: 18px; }
.shots { display: flex; gap: 14px; }
.shot {
    width: 86px; height: 110px; border-radius: 16px; background: var(--card);
    box-shadow: var(--shadow-sm), 0 0 0 1px var(--line);
    display: grid; grid-template-rows: 1fr auto; justify-items: center; padding: 10px 8px 8px;
}
.shot:first-child { transform: rotate(-4deg); }
.shot:last-child { transform: rotate(3deg); }
.shot svg { width: 46px; height: 58px; color: var(--ink); }
.shot svg .mark-hl { fill: var(--mediocre); opacity: .32; }
.shot span { font-size: 11.5px; font-weight: 600; color: var(--text-2); }

/* Step 3 visual: the score ring */
.score-vis { display: flex; align-items: center; gap: 18px; padding: 0 22px; }
.score-ring { position: relative; width: 104px; height: 104px; flex: none; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring .track { stroke: var(--line); }
.score-ring .arc { stroke: var(--poor); stroke-linecap: round; transition: stroke-dashoffset 1.4s var(--ease) .2s; }
.js .score-ring .arc { stroke-dashoffset: 289; }
.js .in .score-ring .arc { stroke-dashoffset: var(--off); }
.score-ring .num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.score-ring .num b { font-family: var(--serif); font-size: 36px; font-weight: 500; line-height: 1; }
.score-ring .num small { font-size: 11px; color: var(--text-2); }
.score-copy .band-pill {
    display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 700; background: color-mix(in srgb, var(--poor) 16%, transparent); color: var(--poor); margin-bottom: 8px;
}
.score-copy .band-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.score-copy strong { display: block; font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.15; }
.score-copy small { display: block; margin-top: 6px; font-size: 13px; line-height: 1.35; color: var(--text-2); }
@media (prefers-reduced-motion: reduce) { .js .score-ring .arc { stroke-dashoffset: var(--off); transition: none; } }

/* ---------- Feature tour ---------- */

.tour { display: grid; gap: 24px; }
.tour-panel { display: grid; gap: 32px; align-items: center; padding: 32px 0; }
.tour-panel + .tour-panel { border-top: 1px solid var(--line); }
.tour-panel .copy { max-width: 30em; }
.tour-panel .num { font-size: 13px; font-weight: 600; letter-spacing: .12em; color: var(--rose-ink); margin-bottom: 14px; display: block; }
.tour-panel h3 { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.05; letter-spacing: -0.025em; margin-bottom: 18px; }
.tour-panel p { color: var(--text-2); font-size: 18px; }
.tour-panel p:last-child { margin-bottom: 0; }
.tour-panel .inline-device { display: flex; justify-content: center; }
.tour-panel .inline-device .device { --w: 260px; }
.tour-panel .note { font-size: 15px; color: var(--text-2); display: flex; gap: 8px; align-items: flex-start; }
.tour-panel .note svg { width: 12px; height: 12px; color: var(--rose); margin-top: 6px; flex: none; }
.tour-sticky { display: none; }

@media (min-width: 980px) {
    .tour { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
    .tour-panel { min-height: 88vh; padding: 0; align-content: center; }
    .tour-panel + .tour-panel { border-top: 0; }
    .tour-panel .inline-device { display: none; }
    .js .tour-panel .copy { opacity: .28; transition: opacity .5s ease; }
    .js .tour-panel.active .copy { opacity: 1; }
    .tour-sticky { display: flex; position: sticky; top: 0; height: 100vh; align-items: center; justify-content: center; grid-column: 2; grid-row: 1 / span 5; }
    .tour-sticky .halo {
        position: absolute; width: 640px; height: 640px; border-radius: 50%;
        background: radial-gradient(closest-side, var(--glow), transparent 72%); z-index: -1;
    }
    .tour-sticky .device { --w: 340px; position: relative; }
    .tour-sticky .screens { position: relative; }
    .tour-sticky .screens picture { transition: opacity .6s ease, transform .8s var(--ease); }
    .tour-sticky .screens picture + picture { position: absolute; inset: 0; }
    html:not(.js) .tour-sticky .screens picture + picture { display: none; } /* no script, no switching: keep the first screen */
    .js .tour-sticky .screens picture { opacity: 0; transform: scale(1.015); }
    .js .tour-sticky .screens picture.on { opacity: 1; transform: none; }
    .tour-progress {
        position: absolute; right: -36px; top: 50%; transform: translateY(-50%);
        display: grid; gap: 10px; list-style: none;
    }
    .tour-progress li { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background-color .3s ease, transform .3s ease; }
    .tour-progress li.on { background: var(--ink); transform: scale(1.4); }
    .tour > .tour-panel { grid-column: 1; }
}
@media (min-width: 980px) and (max-height: 760px) { .tour-sticky .device { --w: 290px; } }

/* ---------- What lowers a score (interactive) ---------- */

.groups-grid { display: grid; gap: 40px; align-items: start; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
    display: inline-flex; align-items: center; gap: 9px;
    min-height: 44px; padding: 9px 18px 9px 15px; border-radius: 999px; cursor: pointer;
    background: var(--card); border: 1px solid var(--line); color: var(--ink);
    font-size: 15px; font-weight: 600;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .15s var(--ease);
}
.chip:hover { border-color: var(--text-3); }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }

/* Evidence levels: 3 restricted in the EU, 2 often reported to irritate, 1 weaker evidence,
   0 information only. Dots in the chips and the legend, bars in the panel's meter. */
.chip .dot, .chips-legend .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--lvl); box-shadow: inset 0 0 0 1.5px var(--lvl-ring, transparent); }
.level-3 { --lvl: var(--poor); }
.level-2 { --lvl: var(--mediocre); }
.level-1 { --lvl: color-mix(in srgb, var(--mediocre) 45%, var(--card)); --lvl-ring: var(--mediocre); }
.level-0 { --lvl: transparent; --lvl-ring: var(--text-3); }
.chip[aria-pressed="true"].level-0 .dot { --lvl-ring: var(--on-ink); }
.chips-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; font-size: 13.5px; color: var(--text-2); }
.chips-legend > span { display: inline-flex; align-items: center; gap: 7px; }

.group-panel {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl);
    padding: 28px; box-shadow: var(--shadow);
}
.group-panel .detail { margin-bottom: 24px; min-height: 260px; }
.group-panel .evidence { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.group-panel .detail h3 { font-size: 30px; margin-bottom: 10px; }
.group-panel .detail p { color: var(--text-2); font-size: 15.5px; margin: 0 0 10px; }
.group-panel .detail p.cost { color: var(--ink); font-weight: 500; border-top: 1px solid var(--line); padding-top: 14px; margin: 16px 0 0; }
.tier {
    display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    padding: 4px 10px; border-radius: 999px; background: var(--quiet); color: var(--text-2);
}
.tier.level-3 { background: color-mix(in srgb, var(--poor) 14%, transparent); color: var(--poor); }
.tier.level-2, .tier.level-1 { background: var(--warn-soft); color: var(--warn-ink); }
.meter { display: inline-flex; gap: 3px; }
.meter i { width: 16px; height: 6px; border-radius: 3px; background: var(--line); }
.meter.level-1 i:nth-child(-n+1), .meter.level-2 i:nth-child(-n+2), .meter.level-3 i:nth-child(-n+3) { background: var(--ink); }
.hazard:empty { display: none; }
.hazard {
    font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    padding: 4px 10px; border-radius: 999px; background: var(--poor); color: var(--ground);
}
.group-panel .pill { width: 100%; }
@media (max-width: 719px) {
    .chips { gap: 8px; }
    .chip { min-height: 38px; padding: 7px 14px 7px 12px; font-size: 14px; }
    .group-panel { padding: 24px 22px; }
    .group-panel .detail { min-height: 0; }
}
.group-panel .fine { font-size: 13px; color: var(--text-2); margin: 12px 0 0; text-align: center; }
@media (min-width: 980px) { .groups-grid { grid-template-columns: 1.25fr .75fr; gap: 64px; } .group-panel { position: sticky; top: 100px; } }

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

.scale { margin-bottom: 64px; }
.scale-bar { display: grid; grid-template-columns: 25fr 25fr 25fr 26fr; gap: 4px; height: 14px; margin-bottom: 18px; }
.scale-bar span { border-radius: 999px; }
.scale-bands { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 20px; }
.scale-bands b { display: flex; align-items: baseline; gap: 8px; font-family: var(--serif); font-size: 24px; font-weight: 500; margin-bottom: 4px; }
.scale-bands b small { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.scale-bands p { font-size: 15px; color: var(--text-2); margin: 0; }
@media (min-width: 820px) { .scale-bands { grid-template-columns: repeat(4, 1fr); } }

.principles { display: grid; gap: 20px; }
.principle { padding: 28px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.principle svg { width: 28px; height: 28px; color: var(--rose); margin-bottom: 18px; }
.principle h3 { font-size: 23px; margin-bottom: 10px; }
.principle p { color: var(--text-2); font-size: 16px; margin: 0; }
@media (min-width: 900px) { .principles { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* ---------- Privacy (the ink band) ---------- */

.ink-band { background: #141212; color: #F6F1EE; overflow: hidden; isolation: isolate; }
.ink-band::before {
    content: ""; position: absolute; z-index: -1; width: 900px; height: 900px; right: -300px; top: -420px;
    background: radial-gradient(closest-side, rgba(200, 87, 122, .28), transparent 70%);
}
@media (prefers-color-scheme: dark) { .ink-band { background: #1A1215; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); } }
.ink-band .eyebrow { color: #C9BDB8; }
.ink-band .section-head p { color: #C9BDB8; }
.ink-band .text-link { color: #F6F1EE; text-decoration-color: rgba(246, 241, 238, .4); }
.checks { list-style: none; display: grid; gap: 1px; background: rgba(255, 255, 255, .09); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 36px; }
.checks li { background: #141212; padding: 28px 26px; }
@media (prefers-color-scheme: dark) { .checks li { background: #1A1215; } }
.checks svg { width: 22px; height: 22px; color: #E57FA2; margin-bottom: 16px; }
.checks strong { display: block; font-family: var(--serif); font-size: 21px; font-weight: 500; margin-bottom: 6px; color: #F6F1EE; }
.checks span { color: #B8ADA9; font-size: 15.5px; }
@media (min-width: 720px) { .checks { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .checks { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Pricing ---------- */

.plans { display: grid; gap: 20px; max-width: 920px; margin: 0 auto 28px; }
.plan {
    position: relative; display: flex; flex-direction: column;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl);
    padding: 32px 28px 28px; box-shadow: var(--shadow-sm);
}
.plan.best { border: 2px solid var(--ink); box-shadow: var(--shadow-lg); }
.plan .flag {
    position: absolute; top: -13px; left: 28px;
    padding: 5px 12px; border-radius: 999px; background: var(--ink); color: var(--on-ink);
    font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.plan h3 { font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: .02em; color: var(--text-2); margin-bottom: 14px; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.plan .price b { font-family: var(--serif); font-size: 54px; line-height: 1; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: lining-nums; }
.plan .price span { color: var(--text-2); font-size: 16px; }
.plan .per { color: var(--text-2); font-size: 15px; margin-bottom: 22px; }
.plan .trial { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--excellent); margin-bottom: 24px; }
.plan .trial svg { width: 16px; height: 16px; }
.plan .pill { margin-top: auto; width: 100%; min-height: 52px; }
.plan .pill.quiet { box-shadow: inset 0 0 0 1px var(--line); }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; gap: 24px; } }

.included { max-width: 920px; margin: 48px auto 0; display: grid; gap: 12px 32px; list-style: none; }
.included li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.included svg { width: 18px; height: 18px; color: var(--excellent); margin-top: 3px; flex: none; }
@media (min-width: 720px) { .included { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .included { grid-template-columns: repeat(3, 1fr); } }
.included-note { max-width: 920px; margin: 28px auto 0; text-align: center; font-size: 15px; color: var(--text-2); }
.fineprint { max-width: 760px; margin: 40px auto 0; text-align: center; font-size: 13.5px; color: var(--text-2); }
.fineprint p { margin-bottom: .6em; }

/* ---------- FAQ ---------- */

.faq-wrap { display: grid; gap: 40px; }
@media (min-width: 980px) { .faq-wrap { grid-template-columns: .8fr 1.2fr; gap: 80px; } .faq-wrap .section-head { position: sticky; top: 110px; align-self: start; margin-bottom: 0; } }
.faq { display: grid; gap: 0; margin-bottom: 8px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
    cursor: pointer; list-style: none; padding: 24px 48px 24px 0; position: relative;
    font-family: var(--serif); font-weight: 500; font-size: 21px; color: var(--ink); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
    content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 1.5px; background: var(--ink);
    transition: transform .3s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq .answer { padding: 0 48px 26px 0; color: var(--text-2); }
.faq .answer p:last-child { margin-bottom: 0; }
.faq .answer a { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

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

.closing { padding-bottom: 0; overflow: hidden; isolation: isolate; }
.closing-card {
    position: relative; overflow: hidden; isolation: isolate;
    border-radius: 40px; padding: 64px 28px 0; text-align: center;
    background: linear-gradient(180deg, var(--rose-soft), var(--ground-2) 70%);
    border: 1px solid var(--line);
}
.closing-card::before {
    content: ""; position: absolute; z-index: -1; left: 50%; top: -30%; width: 900px; height: 900px; transform: translateX(-50%);
    background: radial-gradient(closest-side, color-mix(in srgb, var(--card) 70%, transparent), transparent 70%);
}
.closing h2 { font-size: clamp(42px, 7vw, 84px); line-height: .98; letter-spacing: -0.035em; margin-bottom: 20px; }
.closing p.lede { margin: 0 auto 32px; }
.closing .stores { justify-content: center; }
.closing .trial-line { justify-content: center; margin-top: 18px; }
.closing .qr-inline { margin: 22px auto 0; width: max-content; text-align: left; }
.closing-phones { display: flex; justify-content: center; align-items: flex-start; gap: 20px; margin-top: 56px; height: 300px; overflow: hidden; }
.closing-phones .device { --w: 250px; }
.closing-phones .device.side { --w: 220px; display: none; margin-top: 64px; }
@media (min-width: 760px) {
    .closing-card { padding-top: 96px; }
    .closing-phones { height: 380px; gap: 28px; }
    .closing-phones .device { --w: 290px; }
    .closing-phones .device.side { display: block; --w: 250px; }
}

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

.site-footer { padding: 80px 0 56px; font-size: 14px; color: var(--text-2); }
.footer-grid { display: grid; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer-brand p { margin: 16px 0 20px; max-width: 26em; }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.footer-cols h4 { font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); margin-bottom: 14px; }
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-legal { padding-top: 28px; display: grid; gap: 10px; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--ink); }
.fine { font-size: 12.5px; }
.footer-brand .store-badge img { height: 44px; }
@media (min-width: 820px) {
    .footer-grid { grid-template-columns: 1.3fr 1fr; }
    .footer-cols { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Sticky download bar (phones, after the hero) ---------- */

.dock {
    position: fixed; z-index: 90; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    display: flex; align-items: center; gap: 12px;
    padding: 10px 10px 10px 12px; border-radius: 22px;
    background: color-mix(in srgb, var(--card) 88%, transparent);
    -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--line-soft);
    transform: translateY(140%); transition: transform .45s var(--ease);
}
.dock.show { transform: none; }
.dock img { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 0 0 1px var(--line); flex: none; }
.dock .t { flex: 1; min-width: 0; line-height: 1.25; }
.dock .t strong { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock .t span { display: block; font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock .pill { min-height: 42px; padding: 8px 20px; font-size: 15px; }
@media (min-width: 900px) and (hover: hover) { .dock { display: none; } }
@media (prefers-reduced-motion: reduce) { .dock { transition: none; } }

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

.doc { padding: 48px 0 96px; }
.doc-head { padding-bottom: 32px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.doc-head h1 { font-size: clamp(42px, 8vw, 64px); letter-spacing: -0.03em; margin-bottom: 12px; }
.doc-head .updated { color: var(--text-2); font-size: 14px; margin: 0; }
.doc-head .lede { margin: 18px 0 0; }
.doc h2 { font-size: 26px; margin: 48px 0 14px; scroll-margin-top: 88px; }
.doc h3 { font-size: 20px; margin: 28px 0 10px; }
.doc p, .doc li { color: var(--text-2); }
.doc ul, .doc ol { 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 address { font-style: normal; color: var(--text-2); }
.doc .card { margin: 28px 0; }
.doc .card h2 { margin: 0 0 10px; font-size: 22px; }
.card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 26px 24px; box-shadow: var(--shadow-sm);
}
.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; }
.toc { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.toc a {
    display: inline-block; padding: 8px 15px; 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); }
.doc .faq summary { font-family: var(--sans); font-size: 17px; font-weight: 600; padding: 20px 44px 20px 0; }
.doc .faq .answer { padding-right: 0; }
.faq-group { font-size: 12.5px !important; font-family: var(--sans) !important; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); margin: 48px 0 8px !important; font-weight: 600; }

.doc-cta {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
    margin-top: 56px; padding: 26px 28px; border-radius: var(--r-lg);
    background: var(--rose-soft); color: var(--ink);
}
.doc-cta strong { display: block; font-family: var(--serif); font-size: 22px; font-weight: 500; }
.doc-cta span { color: var(--text-2); font-size: 15px; }
.doc-cta .store-badge img { height: 48px; }
.doc a.pill { color: var(--on-ink); text-decoration: none; }
.doc a.pill.quiet { color: var(--ink); }
