/* =========================================================
   CROAI website look: the homepage, top menu, footer and the
   other website pages (docs, log in, legal, free tools...).
   The app (after logging in) has its own style sheet.

   COLORS AND BUTTONS: change these to restyle the whole website.
   Everything below reads from this list.
   ========================================================= */
:root {
    --hp-bg: #111215;              /* page background */
    --hp-band: #15161a;            /* every other section */
    --hp-card: #191a1e;            /* cards */
    --hp-line: rgba(255, 255, 255, 0.08);  /* thin lines and card edges */
    --hp-line-strong: rgba(255, 255, 255, 0.14);
    --hp-ink: #eef0f4;             /* headings */
    --hp-text: #a4a7b0;            /* body text */
    --hp-muted: #80838d;           /* small labels */

    --hp-blue: #5470f5;            /* primary buttons, the blue headline word, check marks */
    --hp-blue-hover: #4863e8;      /* primary buttons on hover */
    --hp-logo-tile: #1c2541;       /* logo tile */
    --hp-logo-ai: #7d93ff;         /* the "AI" in the logo (a touch lighter so thin lines look the same blue) */
    --hp-navy: #0b132b;            /* dark text on the light closing band */

    --hp-secondary-bg: #ffffff;    /* secondary buttons (and the Google button) */
    --hp-secondary-hover: #f3f4f6;
    --hp-secondary-text: #111827;
    --hp-secondary-border: #dadce0;

    --hp-panel: #e5e7eb;           /* light panels behind the product pictures */
    --hp-closing: #15161a;         /* the band before the footer: dark, with a gray mesh (1.0.49) */
    --hp-mesh: rgba(255, 255, 255, 0.05);  /* the mesh's thin lines */
    --hp-link: #7d93ff;            /* text links on dark pages (a lighter blue, so it stays readable) */
    --hp-input: #0e0f12;           /* form fields */

    --hp-btn-radius: 10px;         /* corners of every button (try 6px, or 999px for round-ended buttons) */

    --hp-sans: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --hp-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- Logo (inline SVG, colored from the list above) ---------- */
.croai-logo .lg-tile { fill: var(--hp-logo-tile); }
.croai-logo .lg-word { stroke: var(--hp-ink); }
.croai-logo .lg-ai { stroke: var(--hp-logo-ai); }

/* ---------- Top menu (every page) ---------- */
.navbar {
    border-bottom: 1px solid var(--hp-line);
    background: rgba(17, 18, 21, 0.88);
    font-family: var(--hp-sans);
}

.navbar .nav-container {
    max-width: 1248px;
    padding: 0 24px;
}

.navbar .nav-logo-img {
    width: auto;
    height: 28px;
}

.navbar .nav-menu {
    gap: 28px;
}

.navbar .nav-link {
    color: var(--hp-text);
    font-size: 15px;
    font-weight: 450;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--hp-ink);
}

.navbar .nav-link.active::after {
    bottom: -6px;
    height: 1px;
    background: var(--hp-ink);
}

.navbar .nav-split {
    margin-left: 12px;
    padding-left: 28px;
    border-left: 1px solid var(--hp-line-strong);
}

.navbar .nav-cta,
.navbar a.nav-link.nav-cta {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 14px;
    border: 1px solid var(--hp-blue);
    border-radius: max(0px, calc(var(--hp-btn-radius) - 2px));  /* a little tighter: it's a smaller button */
    background: var(--hp-blue);
    color: #fff;
    font: 500 14px/1 var(--hp-sans);
    cursor: pointer;
}

.navbar .nav-cta:hover,
.navbar a.nav-link.nav-cta:hover {
    border-color: var(--hp-blue-hover);
    background: var(--hp-blue-hover);
    color: #fff;
}

.navbar a.nav-link.nav-cta::after {
    display: none;
}

@media (max-width: 768px) {
    .navbar .nav-menu.active {
        gap: 18px;
        padding-bottom: 28px;
        border-top-color: var(--hp-line);
        border-bottom: 1px solid var(--hp-line);
        background: var(--hp-bg) !important;
    }

    .navbar .nav-split {
        margin: 0;
        padding: 18px 0 0;
        border-left: 0;
        border-top: 1px solid var(--hp-line);
    }
}

/* ---------- Footer (every page) ---------- */
.footer {
    padding: 64px 0 36px;
    border-top: 1px solid var(--hp-line);
    background: var(--hp-bg);
    font-family: var(--hp-sans);
}

.footer .container {
    max-width: 1248px;
    padding: 0 24px;
}

.footer .footer-content {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 0;
}

.footer .footer-logo-img {
    width: auto;
    height: 28px;
    margin-bottom: 16px;
}

.footer .footer-section p {
    max-width: 260px;
    color: var(--hp-text);
    font-size: 14px;
    line-height: 1.6;
}

.footer .footer-section h4 {
    margin-bottom: 16px;
    color: var(--hp-muted);
    font: 500 12px/1 var(--hp-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer .footer-section ul li {
    margin-bottom: 10px;
}

.footer .footer-section ul li a {
    color: var(--hp-text);
    font-size: 14px;
}

.footer .footer-section ul li a:hover {
    color: var(--hp-ink);
}

.footer .footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--hp-line);
    color: #6d7079;
    font-size: 13px;
    text-align: left;
}

.footer .footer-bottom p {
    margin: 0;
    color: inherit;
}

@media (max-width: 900px) {
    .footer .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer .footer-bottom {
        flex-direction: column;
    }
}

/* =========================================================
   Homepage (#home)
   ========================================================= */

/* The page behind the website is the homepage's color (the app keeps its
   own). Without this the site's old navy showed for a moment while a page
   faded in on load. */
html:not(:has(#portal.active)) body {
    background-color: var(--hp-bg);
}

#home.section {
    padding: 0;
    background: var(--hp-bg);
    color: var(--hp-text);
    font: 400 16px/1.6 var(--hp-sans);
}

#home h1,
#home h2,
#home h3,
#home h4,
#home h5,
#home h6 {
    margin: 0;
    color: var(--hp-ink);
    font-weight: 500;
    line-height: 1.2;
}

#home p {
    margin: 0;
    color: inherit;
}

#home a {
    color: inherit;
    text-decoration: none;
}

#home .hp-wrap {
    width: 100%;
    max-width: 1248px;
    margin: 0 auto;
    padding: 0 24px;
}

#home .hp-center { text-align: center; }

#home .hp-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--hp-muted);
    font: 500 12px/1 var(--hp-mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

#home .hp-label::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 1px;
    background: var(--hp-blue);
}

#home .hp-h2 {
    margin: 18px 0 16px;
    font-size: clamp(2.1rem, 1.4rem + 2vw, 3.1rem);
    line-height: 1.06;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

#home .hp-h2 .hp-soft { color: var(--hp-muted); }

#home .hp-lead {
    max-width: 620px;
    color: var(--hp-text);
    font-size: 17.5px;
    line-height: 1.6;
}

#home .hp-center .hp-lead { margin: 0 auto; }

/* ---------- Buttons: one primary, one secondary ---------- */
#home .hp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 46px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: var(--hp-btn-radius);
    font: 500 15px/1 var(--hp-sans);
    letter-spacing: -0.005em;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

#home .hp-btn-primary {
    border-color: var(--hp-blue);
    background: var(--hp-blue);
    color: #fff;
}

#home .hp-btn-primary:hover {
    border-color: var(--hp-blue-hover);
    background: var(--hp-blue-hover);
    color: #fff;
}

#home .hp-btn-secondary,
#home .hp-btn-google {
    border-color: var(--hp-secondary-border);
    background: var(--hp-secondary-bg);
    color: var(--hp-secondary-text);
}

#home .hp-btn-secondary:hover,
#home .hp-btn-google:hover {
    background: var(--hp-secondary-hover);
    color: var(--hp-secondary-text);
}

#home .hp-btn img {
    width: 18px;
    height: 18px;
}

#home .hp-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#home .hp-btn:focus-visible,
.navbar .nav-cta:focus-visible {
    outline: 2px solid var(--hp-blue);
    outline-offset: 2px;
}

/* ---------- Hero ---------- */
#home .hp-hero {
    padding: 160px 0 0;
}

#home .hp-hero .hp-label {
    margin-bottom: 26px;
}

#home .hp-hero h1 {
    max-width: 940px;
    margin: 0 auto 22px;
    font-size: clamp(2.6rem, 1.3rem + 4vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
    text-wrap: balance;
}

#home .hp-hero h1 .hp-accent {
    color: var(--hp-blue);
}

#home .hp-hero .hp-lead {
    max-width: 600px;
    font-size: 19px;
}

#home .hp-cta {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 34px 0 20px;
}

#home .hp-assure {
    color: var(--hp-muted);
    font: 500 12px/1 var(--hp-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#home .hp-assure span + span::before {
    content: "·";
    margin: 0 12px;
    color: #55585f;
}

#home .hp-stage {
    position: relative;
    margin-top: 72px;
    padding: 56px 56px 0;
    overflow: hidden;
    border-radius: 22px;
    background: var(--hp-panel);
    text-align: left;
}

#home .hp-platforms {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 44px;
    padding: 34px 0 0;
    color: var(--hp-muted);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

#home .hp-platforms .hp-label {
    margin: 0 6px 0 0;
}

/* ---------- Light product windows (all the product pictures) ---------- */
#home .hp-win {
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px 12px 0 0;
    background: #fff;
    color: #5b5e67;
    font: 400 13px/1.45 var(--hp-sans);
    text-align: left;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 24px 48px -32px rgba(20, 24, 36, 0.45);
}

#home .hp-win-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 40px;
    padding: 0 14px;
    border-bottom: 1px solid #e5e7ec;
    border-radius: 12px 12px 0 0;
    background: #f6f7f9;
}

#home .hp-dots { display: flex; gap: 6px; }
#home .hp-dots i { width: 10px; height: 10px; border-radius: 50%; background: #d8dae1; }

#home .hp-url {
    flex: 0 1 320px;
    margin: 0 auto;
    padding: 5px 12px;
    border-radius: 6px;
    background: #eaebef;
    color: #8f929b;
    font: 500 11.5px/1.2 var(--hp-mono);
    text-align: center;
}

#home .hp-app { display: grid; grid-template-columns: 188px 1fr 268px; min-height: 430px; }
#home .hp-side { padding: 16px 12px; border-right: 1px solid #e5e7ec; background: #fafbfc; }
#home .hp-side .hp-lg { display: flex; align-items: center; gap: 8px; padding: 4px 8px 16px; color: #1b1c22; font-weight: 600; letter-spacing: -0.01em; }
#home .hp-side .hp-lg i { width: 18px; height: 18px; border-radius: 5px; background: var(--hp-logo-tile); }
#home .hp-side .hp-sec { padding: 10px 8px 6px; color: #8f929b; font: 500 10.5px/1 var(--hp-mono); letter-spacing: 0.08em; text-transform: uppercase; }
#home .hp-side span.hp-item { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 6px; color: #5b5e67; font-weight: 500; }
#home .hp-side span.hp-item.on { background: #edeef2; color: #1b1c22; }
#home .hp-side svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0.7; }
#home .hp-main { padding: 22px 26px 26px; }
#home .hp-crumbs { color: #8f929b; font-size: 12px; }
#home .hp-title-row { display: flex; align-items: center; gap: 12px; margin: 6px 0 18px; }
#home .hp-title-row h4 { color: #1b1c22; font-size: 18px; letter-spacing: -0.02em; }
#home .hp-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border: 1px solid #e5e7ec; border-radius: 999px; color: #5b5e67; font: 500 11px/1.4 var(--hp-sans); white-space: nowrap; }
#home .hp-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--hp-blue); }
#home .hp-pill.hp-mono { font-family: var(--hp-mono); letter-spacing: 0.03em; }
#home .hp-kpis { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 18px; border: 1px solid #e5e7ec; border-radius: 10px; }
#home .hp-kpis div { padding: 12px 14px; }
#home .hp-kpis div + div { border-left: 1px solid #e5e7ec; }
#home .hp-kpis small { display: block; color: #8f929b; font: 500 10.5px/1 var(--hp-mono); letter-spacing: 0.06em; text-transform: uppercase; }
#home .hp-kpis strong { display: block; margin-top: 8px; color: #1b1c22; font-size: 22px; font-weight: 500; letter-spacing: -0.03em; }
#home .hp-kpis em { margin-left: 6px; color: var(--hp-blue); font-size: 12px; font-style: normal; font-weight: 500; letter-spacing: 0; }
#home .hp-vtable { width: 100%; border-collapse: collapse; }
#home .hp-vtable th { padding: 0 10px 8px; color: #8f929b; font: 500 10.5px/1 var(--hp-mono); letter-spacing: 0.06em; text-align: left; text-transform: uppercase; }
#home .hp-vtable th.hp-r, #home .hp-vtable td.hp-r { text-align: right; }
#home .hp-vtable td { padding: 11px 10px; border-top: 1px solid #e5e7ec; color: #1b1c22; vertical-align: middle; }
#home .hp-vtable td small { display: block; color: #8f929b; font-size: 11.5px; }
#home .hp-vtable tr.hp-win-row td { background: #e7ebf9; }
#home .hp-vtable tr.hp-win-row td:first-child { box-shadow: inset 2px 0 0 var(--hp-blue); }
#home .hp-tag { display: inline-block; margin-right: 8px; padding: 1px 6px; border-radius: 4px; background: #edeef2; color: #5b5e67; font: 600 10px/1.5 var(--hp-mono); vertical-align: 1px; }
#home .hp-tag.hp-ai { background: #e2e7f8; color: #33479a; }
#home .hp-bar { position: relative; display: inline-block; width: 84px; height: 5px; border-radius: 9px; background: #eaebef; vertical-align: middle; }
#home .hp-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 9px; background: #b3b6bf; }
#home .hp-bar.hp-g i { background: var(--hp-blue); }
#home .hp-lift { color: var(--hp-blue); font-weight: 500; }
#home .hp-chart { margin-top: 16px; padding: 14px 14px 8px; border: 1px solid #e5e7ec; border-radius: 10px; }
#home .hp-chart-head { display: flex; justify-content: space-between; color: #8f929b; font: 500 10.5px/1 var(--hp-mono); letter-spacing: 0.06em; text-transform: uppercase; }
#home .hp-legend { display: flex; gap: 14px; font: 400 11.5px/1 var(--hp-sans); letter-spacing: 0; text-transform: none; }
#home .hp-legend span::before { content: ""; display: inline-block; width: 8px; height: 2px; margin-right: 6px; vertical-align: 3px; background: #b3b6bf; }
#home .hp-legend span.hp-g::before { background: var(--hp-blue); }
#home .hp-chart svg { display: block; width: 100%; height: 96px; margin-top: 6px; }
#home .hp-ai-col { padding: 18px 16px; border-left: 1px solid #e5e7ec; background: #fafbfc; }
#home .hp-ai-col h5 { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; color: #1b1c22; font-size: 13px; }
#home .hp-sug { padding: 10px 11px; border: 1px solid #e5e7ec; border-radius: 8px; background: #fff; color: #1b1c22; font-size: 12.5px; line-height: 1.4; }
#home .hp-sug + .hp-sug { margin-top: 8px; }
#home .hp-sug small { display: block; margin-top: 4px; color: #8f929b; font-size: 11px; }
#home .hp-sug.on { border-color: #b7c1ea; background: #f3f5fd; }
#home .hp-gen { display: block; margin-top: 12px; padding: 8px; border-radius: 7px; background: #1b1c22; color: #fff; font-size: 12px; font-weight: 500; text-align: center; }
#home .hp-float { position: absolute; left: 22px; bottom: 34px; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border: 1px solid rgba(0, 0, 0, 0.07); border-radius: 12px; background: #fff; color: #5b5e67; font: 400 12.5px/1.45 var(--hp-sans); text-align: left; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 16px 32px -20px rgba(20, 24, 36, 0.45); }
#home .hp-float b { display: block; color: #1b1c22; font-weight: 500; }
#home .hp-ok { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--hp-blue); }
#home .hp-ok svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Sections ---------- */
#home .hp-section { padding: 128px 0; }
#home .hp-band { border-top: 1px solid var(--hp-line); border-bottom: 1px solid var(--hp-line); background: var(--hp-band); }

/* How it works: click a step to see it */
#home .hp-steps { display: grid; grid-template-columns: 380px 1fr; gap: 64px; align-items: start; margin-top: 64px; }
#home .hp-step { padding: 20px 0 20px 22px; border-left: 1px solid var(--hp-line-strong); cursor: pointer; }
#home .hp-step .hp-n { color: var(--hp-muted); font: 500 12px/1 var(--hp-mono); letter-spacing: 0.06em; }
#home .hp-step h3 { margin-top: 10px; color: var(--hp-muted); font-size: 19px; letter-spacing: -0.02em; }
#home .hp-step:not(.on):hover h3 { color: #c6c9d0; }
#home .hp-step p { display: none; margin-top: 8px; color: var(--hp-text); font-size: 15px; }
#home .hp-step.on { padding-left: 21px; border-left: 2px solid var(--hp-blue); }
#home .hp-step.on h3 { color: var(--hp-ink); }
#home .hp-step.on p { display: block; }
#home .hp-panel { position: relative; overflow: hidden; padding: 44px 44px 0; border-radius: 18px; background: var(--hp-panel); }
#home .hp-step-panel { height: 540px; }
#home .hp-step-panel .hp-win { height: 100%; }
#home .hp-vis { display: none; }
#home .hp-vis.on { display: block; }
#home .hp-cap { display: block; margin: 14px 0 6px; color: #8f929b; font: 500 10.5px/1 var(--hp-mono); letter-spacing: 0.06em; text-transform: uppercase; }
#home .hp-cap:first-child { margin-top: 0; }
#home .hp-pad { padding: 24px 28px; }
#home .hp-pad h5 { color: #1b1c22; font-size: 16px; letter-spacing: -0.015em; }
#home .hp-sub { margin: 4px 0 18px; color: #8f929b; font-size: 13px; }
#home .hp-code { position: relative; padding: 18px 20px; border: 1px solid #e5e7ec; border-radius: 10px; background: #f6f7f9; color: #3a3c43; font: 500 13px/1.75 var(--hp-mono); }
#home .hp-code .hp-k { color: #6b4fa0; }
#home .hp-code .hp-s { color: #33479a; }
#home .hp-code .hp-copy { position: absolute; top: 12px; right: 12px; padding: 4px 9px; border: 1px solid #e5e7ec; border-radius: 6px; background: #fff; color: #1b1c22; font: 500 11px/1.3 var(--hp-sans); }
#home .hp-note { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 14px; border: 1px solid #b7c1ea; border-radius: 10px; background: #f3f5fd; color: #5b5e67; }
#home .hp-note b { display: block; color: #1b1c22; font-weight: 500; }
#home .hp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
#home .hp-chips span { padding: 5px 10px; border: 1px solid #e5e7ec; border-radius: 6px; color: #5b5e67; font-size: 12px; font-weight: 500; }
#home .hp-editor { display: grid; grid-template-columns: 1fr 210px; min-height: 360px; }
#home .hp-site { padding: 20px 24px; background: #fffdf8; }
#home .hp-site-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 38px; }
#home .hp-site-nav b { color: #2b2620; font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
#home .hp-site-nav span { display: flex; gap: 10px; }
#home .hp-site-nav span i { width: 34px; height: 5px; border-radius: 4px; background: #ebe6dc; }
#home .hp-target { position: relative; margin: 0 -10px; padding: 8px 10px; border: 1.5px dashed var(--hp-blue); border-radius: 8px; background: rgba(84, 112, 245, 0.06); }
#home .hp-target small { position: absolute; top: -10px; left: 10px; padding: 1px 7px; border-radius: 4px; background: var(--hp-blue); color: #fff; font: 600 9.5px/1.6 var(--hp-mono); letter-spacing: 0.04em; }
#home .hp-site h6 { color: #2b2620; font-size: 25px; font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; }
#home .hp-lines i { display: block; height: 6px; margin-top: 12px; border-radius: 4px; background: #efeae0; }
#home .hp-lines i + i { width: 70%; margin-top: 8px; }
#home .hp-shop { display: inline-block; margin-top: 18px; padding: 8px 14px; border-radius: 6px; background: #2b2620; color: #fff; font-size: 12px; font-weight: 500; }
#home .hp-els { padding: 16px 14px; border-left: 1px solid #e5e7ec; background: #fafbfc; }
#home .hp-els h5 { margin-bottom: 12px; color: #1b1c22; font-size: 12.5px; }
#home .hp-el { padding: 10px; border: 1px solid #b7c1ea; border-radius: 8px; background: #fff; }
#home .hp-el small { color: #8f929b; font: 500 10px/1 var(--hp-mono); letter-spacing: 0.06em; }
#home .hp-el p { margin: 6px 0 10px; color: #1b1c22; font-size: 12px; line-height: 1.35; }
#home .hp-el .hp-elbtn { display: block; padding: 6px; border: 1px solid #e5e7ec; border-radius: 6px; color: #1b1c22; font-size: 11.5px; font-weight: 500; text-align: center; }
#home .hp-el.hp-ghost { height: 64px; margin-top: 10px; border: 1px dashed #e5e7ec; background: transparent; }
#home .hp-orig { padding: 11px 12px; border: 1px solid #e5e7ec; border-radius: 8px; background: #f6f7f9; color: #1b1c22; }
#home .hp-vrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding: 10px 12px; border: 1px solid #e5e7ec; border-radius: 8px; color: #1b1c22; }
#home .hp-vrow .hp-act { flex: none; padding: 4px 11px; border: 1px solid #e5e7ec; border-radius: 6px; font-size: 11.5px; font-weight: 500; }
#home .hp-vrow.hp-added { border-color: #b7c1ea; background: #f3f5fd; }
#home .hp-vrow.hp-added .hp-act { border-color: var(--hp-blue); background: var(--hp-blue); color: #fff; }
#home .hp-vrow.hp-write { border-style: dashed; color: #8f929b; }
#home .hp-round { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: center; margin-top: 8px; padding: 11px 12px; border: 1px solid #e5e7ec; border-radius: 8px; color: #8f929b; }
#home .hp-round b { display: block; color: #1b1c22; font-weight: 500; }
#home .hp-round .hp-rn { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: #edeef2; color: #5b5e67; font: 500 12px/1 var(--hp-mono); }
#home .hp-round.hp-done .hp-rn { background: var(--hp-blue); color: #fff; }
#home .hp-round.hp-live { border-color: #b7c1ea; background: #f3f5fd; }
#home .hp-round.hp-live .hp-rn { border: 1.5px solid var(--hp-blue); background: #fff; color: var(--hp-blue); }

/* Features: four cards, every picture the same size */
#home .hp-grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 64px; }
#home .hp-feat { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--hp-line); border-radius: 16px; background: var(--hp-card); }
#home .hp-feat-text { min-height: 196px; padding: 30px 32px 26px; }
#home .hp-feat .hp-n { color: var(--hp-muted); font: 500 12px/1 var(--hp-mono); letter-spacing: 0.06em; }
#home .hp-feat h3 { margin: 14px 0 8px; font-size: 22px; letter-spacing: -0.025em; }
#home .hp-feat p { max-width: 440px; font-size: 15.5px; }
#home .hp-feat .hp-panel { display: flex; align-items: flex-start; justify-content: center; height: 272px; margin: auto 8px 8px; padding: 28px 28px 0; border-radius: 12px; }
#home .hp-card-ui { width: 100%; max-width: 420px; height: 244px; overflow: hidden; padding: 16px 18px; border: 1px solid rgba(0, 0, 0, 0.07); border-radius: 12px 12px 0 0; background: #fff; color: #5b5e67; font: 400 12.5px/1.45 var(--hp-sans); text-align: left; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 20px 40px -28px rgba(20, 24, 36, 0.45); }
#home .hp-card-ui h5 { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; color: #1b1c22; font-size: 13px; }
#home .hp-pchart { display: block; width: 100%; height: 120px; margin-top: 4px; }
#home .hp-axis { display: flex; justify-content: space-between; padding-left: 34px; color: #8f929b; font: 500 10.5px/1 var(--hp-mono); }
#home .hp-feed { display: grid; gap: 8px; }
#home .hp-feed div { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid #e5e7ec; border-radius: 8px; color: #1b1c22; }
#home .hp-feed div i { width: 22px; height: 22px; border-radius: 6px; background: #edeef2; }
#home .hp-feed div.hp-done { border-color: #b7c1ea; background: #f3f5fd; }
#home .hp-feed div.hp-done i { background: var(--hp-blue); }
#home .hp-feed small { color: #8f929b; font: 500 10.5px/1 var(--hp-mono); }
#home .hp-seg { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 12px; padding: 3px; border: 1px solid #e5e7ec; border-radius: 8px; }
#home .hp-seg span { padding: 7px; border-radius: 6px; font-weight: 500; text-align: center; }
#home .hp-seg span.on { background: #1b1c22; color: #fff; }
#home .hp-approve { padding: 11px 12px; border: 1px solid #e5e7ec; border-radius: 8px; }
#home .hp-approve small { display: block; color: #8f929b; font: 500 10.5px/1 var(--hp-mono); letter-spacing: 0.04em; text-transform: uppercase; }
#home .hp-approve p { margin: 7px 0 10px; color: #1b1c22; font-size: 13.5px; }
#home .hp-approve .hp-row { display: flex; gap: 8px; }
#home .hp-approve .hp-row span { padding: 5px 10px; border: 1px solid #e5e7ec; border-radius: 6px; color: #1b1c22; font-size: 11.5px; font-weight: 500; }
#home .hp-approve .hp-row span.hp-go { border-color: #1b1c22; background: #1b1c22; color: #fff; }
#home .hp-mtable { width: 100%; border-collapse: collapse; }
#home .hp-mtable th { padding: 0 8px 8px; color: #8f929b; font: 500 10.5px/1 var(--hp-mono); letter-spacing: 0.06em; text-align: right; text-transform: uppercase; }
#home .hp-mtable th:first-child, #home .hp-mtable td:first-child { padding-left: 0; text-align: left; }
#home .hp-mtable td { padding: 12px 8px; border-top: 1px solid #e5e7ec; color: #1b1c22; font-variant-numeric: tabular-nums; text-align: right; }
#home .hp-mtable tr.hp-w td { background: #e7ebf9; }
#home .hp-mtable tr.hp-w td:first-child { padding-left: 8px; box-shadow: inset 2px 0 0 var(--hp-blue); }

/* Comparison */
#home .hp-compare { margin-top: 56px; overflow: hidden; border: 1px solid var(--hp-line); border-radius: 16px; }
#home .hp-compare table { width: 100%; border-collapse: collapse; }
#home .hp-compare th, #home .hp-compare td { padding: 18px 22px; border-bottom: 1px solid var(--hp-line); color: var(--hp-text); font-size: 15px; text-align: center; }
#home .hp-compare tbody tr:last-child td, #home .hp-compare tbody tr:last-child th { border-bottom: 0; }
#home .hp-compare thead th { padding-top: 24px; color: var(--hp-ink); font-weight: 500; vertical-align: bottom; }
#home .hp-compare tbody th { color: #d3d5dc; font-weight: 400; text-align: left; }
#home .hp-compare .hp-us { background: rgba(255, 255, 255, 0.025); box-shadow: inset 1px 0 0 var(--hp-line), inset -1px 0 0 var(--hp-line); }
#home .hp-compare thead .hp-us { box-shadow: inset 1px 0 0 var(--hp-line), inset -1px 0 0 var(--hp-line), inset 0 2px 0 var(--hp-blue); }
#home .hp-compare .hp-us strong { color: var(--hp-ink); font-weight: 500; }
#home .hp-cell-note { color: var(--hp-text); font-size: 14px; }
#home .hp-dash { color: #6b6e78; }
#home .hp-yes, #home .hp-no { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; }
#home .hp-yes { color: var(--hp-blue); }
#home .hp-no { color: #545761; }
#home .hp-yes svg, #home .hp-no svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#home .hp-foot-note { margin-top: 16px; color: var(--hp-muted); font-size: 13px; text-align: center; }

/* Pricing */
#home .hp-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
#home .hp-plan { display: flex; flex-direction: column; padding: 30px; border: 1px solid var(--hp-line); border-radius: 16px; background: var(--hp-card); }
#home .hp-plan.hp-top { border-color: rgba(255, 255, 255, 0.22); background: #1e1f24; }
#home .hp-plan-head { display: flex; align-items: center; justify-content: space-between; }
#home .hp-plan h3 { font-size: 17px; letter-spacing: -0.015em; }
#home .hp-plan .hp-tagline { margin-top: 6px; font-size: 14.5px; }
#home .hp-price { display: flex; align-items: baseline; gap: 8px; margin: 26px 0 24px; }
#home .hp-price strong { color: var(--hp-ink); font-size: 46px; font-weight: 500; line-height: 1; letter-spacing: -0.05em; }
#home .hp-price span { font-size: 15px; }
#home .hp-plan .hp-btn { width: 100%; }
#home .hp-plan ul { display: grid; gap: 12px; margin: 26px 0 0; padding: 24px 0 0; border-top: 1px solid var(--hp-line); list-style: none; }
#home .hp-plan li { display: flex; align-items: center; gap: 10px; margin: 0; color: #cccfd6; font-size: 15px; }
#home .hp-plan li .hp-yes { flex: none; }
#home .hp-chip { padding: 4px 9px; border: 1px solid var(--hp-line-strong); border-radius: 6px; color: var(--hp-ink); font: 500 10.5px/1.2 var(--hp-mono); letter-spacing: 0.08em; text-transform: uppercase; }
#home .hp-plans-foot { margin-top: 28px; font-size: 15px; text-align: center; }
#home .hp-plans-foot a { color: var(--hp-ink); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 3px; }

/* Founder */
#home .hp-proof { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; border-top: 1px solid var(--hp-line); border-bottom: 1px solid var(--hp-line); }
#home .hp-stat { padding: 32px 28px 34px 0; }
#home .hp-stat + .hp-stat { padding-left: 28px; border-left: 1px solid var(--hp-line); }
#home .hp-stat strong { display: block; color: var(--hp-ink); font-size: 23px; font-weight: 500; line-height: 1.2; letter-spacing: -0.03em; white-space: nowrap; }
#home .hp-stat span { display: block; max-width: 240px; margin-top: 10px; color: var(--hp-text); font-size: 14.5px; line-height: 1.5; }
#home .hp-quote { margin: 24px 0 0; padding: 40px 44px; border: 1px solid var(--hp-line); border-radius: 16px; background: var(--hp-card); }
#home .hp-quote blockquote { max-width: 860px; margin: 0; color: var(--hp-ink); font-size: clamp(1.45rem, 1.1rem + 0.9vw, 1.9rem); font-weight: 400; line-height: 1.3; letter-spacing: -0.025em; }
#home .hp-who { display: flex; align-items: center; gap: 14px; margin-top: 36px; }
#home .hp-who i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #2a2b31; color: var(--hp-ink); font-style: normal; font-weight: 500; }
#home .hp-who b { display: block; color: var(--hp-ink); font-weight: 500; }
#home .hp-who span span { color: var(--hp-text); font-size: 14px; }

/* FAQ */
#home .hp-faq { display: grid; grid-template-columns: 0.8fr 1.4fr; gap: 64px; }
#home .hp-faq-side { position: sticky; top: 110px; align-self: start; }
#home .hp-faq-group { margin: 34px 0 4px; color: var(--hp-muted); font: 500 12px/1 var(--hp-mono); letter-spacing: 0.1em; text-transform: uppercase; }
#home .hp-faq-group:first-child { margin-top: 0; }
#home .hp-faq details { border-bottom: 1px solid var(--hp-line); }
#home .hp-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; color: var(--hp-ink); font-size: 16.5px; font-weight: 450; list-style: none; cursor: pointer; }
#home .hp-faq summary::-webkit-details-marker { display: none; }
#home .hp-faq summary svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--hp-muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s ease; }
#home .hp-faq details[open] summary svg { transform: rotate(180deg); }
#home .hp-faq details p { padding: 0 40px 22px 0; color: var(--hp-text); font-size: 15.5px; line-height: 1.7; }

/* Closing band: dark like the rest of the page, with a fine gray mesh (1.0.49).
   Scott: the white band "is kind of bright ... considering the entire page is
   black ... some kind of like a Gray mesh pattern". The mesh is two sets of 1px
   lines every 32px; the text sits on it in the page's own colors. */
#home .hp-closing {
    padding: 112px 0;
    border-top: 1px solid var(--hp-line);
    background-color: var(--hp-closing);
    background-image:
        linear-gradient(var(--hp-mesh) 1px, transparent 1px),
        linear-gradient(90deg, var(--hp-mesh) 1px, transparent 1px);
    background-size: 32px 32px;
    background-position: center center;
}
#home .hp-closing h2 { color: var(--hp-ink); font-size: clamp(2.2rem, 1.4rem + 2.4vw, 3.4rem); line-height: 1.04; letter-spacing: -0.045em; }
#home .hp-closing p { max-width: 560px; margin: 18px auto 32px; color: var(--hp-text); font-size: 18px; }
#home .hp-closing .hp-assure { display: block; margin-top: 18px; color: var(--hp-muted); }
#home .hp-closing .hp-assure span + span::before { color: var(--hp-muted); }

/* ---------- Phones and small tablets ---------- */
@media (max-width: 900px) {
    #home .hp-hero { padding-top: 120px; }
    #home .hp-cta { flex-direction: column; align-items: stretch; max-width: 360px; margin-left: auto; margin-right: auto; }
    #home .hp-assure span { display: block; }
    #home .hp-assure span + span { margin-top: 10px; }
    #home .hp-assure span + span::before { content: none; }
    #home .hp-stage { margin-top: 48px; padding: 24px 16px 0; border-radius: 16px; }
    #home .hp-app { grid-template-columns: 1fr; }
    #home .hp-side, #home .hp-ai-col, #home .hp-chart, #home .hp-float, #home .hp-title-row .hp-pill.hp-mono, #home .hp-kpis div:nth-child(3) { display: none; }
    #home .hp-kpis { grid-template-columns: 1fr 1fr; }
    #home .hp-vtable th:last-child, #home .hp-vtable td.hp-r { display: none; }
    #home .hp-main { padding: 16px; }
    #home .hp-kpis strong { font-size: 18px; }
    #home .hp-vtable .hp-bar { width: 60px; }
    #home .hp-platforms { flex-wrap: wrap; gap: 14px 22px; }
    #home .hp-platforms .hp-label { width: 100%; justify-content: center; margin: 0; }
    #home .hp-section { padding: 88px 0; }
    #home .hp-steps, #home .hp-grid2, #home .hp-plans, #home .hp-faq { grid-template-columns: 1fr; }
    #home .hp-steps { gap: 32px; }
    #home .hp-step-panel { height: 420px; }
    #home .hp-panel { padding: 22px 16px 0; }
    #home .hp-editor { grid-template-columns: 1fr; }
    #home .hp-els { display: none; }
    #home .hp-code { font-size: 11.5px; overflow-wrap: anywhere; }
    #home .hp-feat .hp-panel { height: 250px; }
    #home .hp-card-ui { height: 222px; }
    #home .hp-compare { overflow-x: auto; }
    #home .hp-compare table { min-width: 720px; }
    #home .hp-faq-side { position: static; }
    #home .hp-proof { grid-template-columns: 1fr 1fr; }
    #home .hp-stat { padding: 24px 16px 24px 0; }
    #home .hp-stat + .hp-stat { padding-left: 16px; }
    #home .hp-stat:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--hp-line); }
    #home .hp-stat:nth-child(4) { border-top: 1px solid var(--hp-line); }
    #home .hp-stat strong { min-height: 2.4em; font-size: 19px; white-space: normal; }
    #home .hp-quote { padding: 30px; }
}

/* Text only screen readers hear */
#home .hp-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* =========================================================
   Other website pages (1.0.24): docs, the free tool pages,
   log in / sign up / password reset, legal pages, about,
   contact and the 404 page. Same colors as the homepage:
   everything reads from the list at the top of this file.
   The app (#portal) is not changed here.
   ========================================================= */

/* Each page paints its own background too, for browsers without :has() */
:is(#docs, #login, #register, #reset-password, #privacy-policy, #terms-conditions, #cookie-policy, #about, #contact, #not-found, #analytics, .section.lp-page) {
    background-color: var(--hp-bg);
}

/* The site's older color names, pointed at the new colors inside these pages */
:is(#docs, #login, #register, #reset-password, #privacy-policy, #terms-conditions, #cookie-policy, #about, #contact, #not-found, #analytics, .section.lp-page) {
    --bg-primary: var(--hp-bg);
    --bg-secondary: var(--hp-card);
    --bg-card: var(--hp-card);
    --bg-tertiary: color-mix(in srgb, var(--hp-card) 85%, white);
    --bg-quaternary: color-mix(in srgb, var(--hp-card) 75%, white);
    --bg-hover: color-mix(in srgb, var(--hp-card) 88%, white);
    --text-primary: var(--hp-ink);
    --text-secondary: color-mix(in srgb, var(--hp-ink) 70%, var(--hp-text));
    --text-muted: var(--hp-muted);
    --text-accent: var(--hp-link);
    --border-primary: rgba(255, 255, 255, 0.1);
    --border-secondary: rgba(255, 255, 255, 0.16);
    --border-accent: var(--hp-blue);
    --primary-color: var(--hp-blue);
    --primary-dark: var(--hp-blue-hover);
    --primary-light: var(--hp-link);
    --brand: var(--hp-blue);
    --brand-hover: var(--hp-blue-hover);
    --brand-text: var(--hp-link);
    --brand-soft: color-mix(in srgb, var(--hp-blue) 12%, transparent);
    --brand-line: color-mix(in srgb, var(--hp-link) 30%, transparent);
    --brand-glow: transparent;
    --brand-shadow: none;
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
    --shadow-xl: none;
    --font-family: var(--hp-sans);
    font-family: var(--hp-sans);
}

/* ---- Page titles: the homepage's type ---- */
:is(#login, #register, #reset-password, #privacy-policy, #terms-conditions, #cookie-policy, #about, #contact, #not-found) :is(h1, h2, h3, h4) {
    font-weight: 500;
    letter-spacing: -0.02em;
}

html .page-title {
    margin-top: 32px;
    color: var(--hp-ink);
    font-size: clamp(2.25rem, 1.6rem + 1.8vw, 3rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

html .page-subtitle {
    color: var(--hp-text);
    font-size: 1.0625rem;
}

/* ---- Buttons on these pages: the homepage's primary and secondary ---- */
:is(#login, #register, #reset-password, #privacy-policy, #terms-conditions, #cookie-policy, #about, #contact, #not-found, #docs) :is(.btn-primary, .btn-login),
html #contact .contact-form .btn {
    border: 1px solid var(--hp-blue);
    border-radius: var(--hp-btn-radius);
    background: var(--hp-blue);
    color: #fff;
    font-weight: 500;
    box-shadow: none;
    transform: none;
}

:is(#login, #register, #reset-password, #privacy-policy, #terms-conditions, #cookie-policy, #about, #contact, #not-found, #docs) :is(.btn-primary, .btn-login):hover:not(:disabled),
html #contact .contact-form .btn:hover {
    border-color: var(--hp-blue-hover);
    background: var(--hp-blue-hover);
    color: #fff;
    box-shadow: none;
    transform: none;
}

:is(#login, #register, #reset-password, #privacy-policy, #terms-conditions, #cookie-policy, #about, #contact, #not-found, #docs) :is(.btn-secondary, .btn-outline, .btn-default) {
    border: 1px solid var(--hp-secondary-border);
    border-radius: var(--hp-btn-radius);
    background: var(--hp-secondary-bg);
    color: var(--hp-secondary-text);
    font-weight: 500;
    box-shadow: none;
    transform: none;
}

:is(#login, #register, #reset-password, #privacy-policy, #terms-conditions, #cookie-policy, #about, #contact, #not-found, #docs) :is(.btn-secondary, .btn-outline, .btn-default):hover:not(:disabled) {
    background: var(--hp-secondary-hover);
    color: var(--hp-secondary-text);
    transform: none;
}

/* Google's button stays Google's white button; only the corners match the others */
html .btn-social.google {
    border-radius: var(--hp-btn-radius);
}

/* ---- Forms ---- */
:is(#login, #register, #reset-password, #contact) :is(.form-input, .form-select, .form-textarea, input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
    border: 1px solid var(--hp-line-strong);
    border-radius: 10px;
    background: var(--hp-input);
    color: var(--hp-ink);
    font-family: var(--hp-sans);
}

:is(#login, #register, #reset-password, #contact) :is(.form-input, .form-select, .form-textarea, input, select, textarea):focus {
    border-color: var(--hp-blue);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--hp-blue) 25%, transparent);
    outline: none;
}

:is(#login, #register, #reset-password, #contact) :is(.form-input, textarea, input)::placeholder {
    color: var(--hp-muted);
}

:is(#login, #register, #reset-password, #contact) .form-group label {
    color: color-mix(in srgb, var(--hp-ink) 85%, var(--hp-text));
    font-size: 14px;
    font-weight: 500;
}

/* ---- Log in, sign up, password reset ---- */
html .login-card {
    border: 1px solid var(--hp-line);
    border-radius: 16px;
    background: var(--hp-card);
    box-shadow: none;
}

html .login-card h2 {
    color: var(--hp-ink);
    font-size: 1.75rem;
    font-weight: 500;
    letter-spacing: -0.03em;
}

html .login-card p,
html .login-divider {
    color: var(--hp-text);
}

html .login-divider::before,
html .login-divider::after {
    background: var(--hp-line);
}

html .login-card a,
html .login-footer a,
html .forgot-password,
html .resend-email-link {
    color: var(--hp-link);
}

html .resend-email-section {
    border-color: var(--hp-line);
    background: var(--hp-bg);
}

html .switch input:checked + .switch-slider {
    background: var(--hp-blue);
}

/* ---- Legal pages, about, password reset card ---- */
html .policy-content {
    max-width: 780px;
}

html .policy-section {
    border: 1px solid var(--hp-line);
    border-radius: 16px;
    background: var(--hp-card);
}

html .policy-section h2 {
    margin-top: 36px;
    margin-bottom: 12px;
    color: var(--hp-ink);
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}

html .policy-section h2:first-of-type {
    margin-top: 6px;
}

html .policy-section h3 {
    color: var(--hp-ink);
    font-size: 1.05rem;
    font-weight: 500;
}

html .policy-section p,
html .policy-section li {
    color: var(--hp-text);
    font-size: 15.5px;
    line-height: 1.7;
}

html .policy-section strong {
    color: color-mix(in srgb, var(--hp-ink) 85%, var(--hp-text));
    font-weight: 500;
}

html .policy-section a {
    color: var(--hp-link);
}

html .policy-date {
    color: var(--hp-muted);
    font-family: var(--hp-mono);
    font-size: 12.5px;
    letter-spacing: 0.02em;
}

/* ---- Contact ---- */
html .contact-item {
    border: 1px solid var(--hp-line);
    border-radius: 14px;
    background: var(--hp-card);
    box-shadow: none;
}

html .contact-item h3::before,
html .contact-item:nth-child(2) h3::before,
html .contact-item:nth-child(3) h3::before {
    content: none;
}

html .contact-item h3 {
    font-size: 1.05rem;
    font-weight: 500;
}

html #contact .contact-section h2 {
    margin-bottom: 12px;
    font-size: 1.75rem;
    letter-spacing: -0.03em;
}

html #contact .contact-section > p {
    color: var(--hp-text);
    font-size: 1.0625rem;
    margin-bottom: 32px;
}

/* Wide screens: heading, text and hours on the left, the form on the right */
@media (min-width: 769px) {
    html #contact .contact-section {
        column-gap: 64px;
        row-gap: 0;
    }

    html #contact .contact-section > h2 { grid-column: 1; grid-row: 1; }
    html #contact .contact-section > p { grid-column: 1; grid-row: 2; }
    html #contact .contact-info { grid-column: 1; grid-row: 3; }
    html #contact .contact-form { grid-column: 2; grid-row: 1 / span 4; }
}

html .contact-form {
    border: 1px solid var(--hp-line);
    border-radius: 16px;
    background: var(--hp-card);
    box-shadow: none;
}

/* ---- 404 ---- */
html #not-found .error-actions .btn {
    min-width: 150px;
    justify-content: center;
}

html .error-icon h1,
html .error-code {
    color: var(--hp-ink);
    font-weight: 500;
    letter-spacing: -0.05em;
}

/* ---- Docs ---- */
html #docs {
    --dr-line: var(--hp-line);
    --dr-line-2: var(--hp-line-strong);
    --dr-ink: var(--hp-ink);
    --dr-text: var(--hp-text);
    --dr-muted: var(--hp-muted);
    --dr-grad: var(--hp-blue);
}

html #docs .docs-mobile-tab {
    border-color: var(--hp-line-strong);
    background: var(--hp-card);
    color: var(--hp-ink);
    box-shadow: none;
}

html #docs .docs-mobile-tab:hover {
    background: color-mix(in srgb, var(--hp-card) 88%, white);
    transform: none;
}

html #docs .docs-sidebar {
    border-right: 1px solid var(--hp-line);
    background: var(--hp-band);
}

html #docs .docs-main {
    background: var(--hp-bg);
}

html #docs .docs-sidebar-header h3 {
    font-weight: 500;
}

html #docs .docs-search-input {
    border-color: var(--hp-line-strong);
    background: var(--hp-input);
}

html #docs .docs-search-input:focus {
    border-color: var(--hp-blue);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--hp-blue) 25%, transparent);
}

html #docs .docs-nav-section h4 {
    font-family: var(--hp-mono);
    font-weight: 500;
}

html #docs .docs-nav-link {
    color: var(--hp-text);
}

html #docs .docs-nav-link:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--hp-ink);
}

html #docs .docs-nav-link.active {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 2px 0 0 var(--hp-blue);
    color: var(--hp-ink);
    font-weight: 500;
}

html #docs .docs-topic h1 {
    font-weight: 500;
    letter-spacing: -0.04em;
}

html #docs .docs-section h2,
html #docs .docs-section h3 {
    font-weight: 500;
    letter-spacing: -0.02em;
}

html #docs .docs-section h3,
html #docs .docs-section strong,
html #docs .docs-table td:first-child {
    color: var(--hp-ink);
}

html #docs .docs-section a:not(.btn) {
    color: var(--hp-link);
    text-decoration-color: color-mix(in srgb, var(--hp-link) 40%, transparent);
}

html #docs .docs-section a:not(.btn):hover {
    text-decoration-color: currentColor;
}

html #docs .docs-section li code,
html #docs .docs-section p code {
    background: rgba(255, 255, 255, 0.07);
    color: var(--hp-ink);
}

html #docs .docs-highlight {
    border: 1px solid var(--hp-line-strong);
    border-left: 3px solid var(--hp-blue);
    background: var(--hp-card);
}

html #docs .docs-highlight h3 {
    color: var(--hp-ink);
}

html #docs .docs-code-block {
    border-color: var(--hp-line);
    background: var(--hp-input);
    box-shadow: none;
}

html #docs .docs-code-block code {
    color: var(--hp-ink);
}

html #docs .platform-feature-image {
    border-color: var(--hp-line-strong);
    box-shadow: none;
}

html #docs .card,
html #docs .docs-step,
html #docs .docs-quick-link,
html #docs .docs-feature,
html #docs .docs-card {
    border-color: var(--hp-line);
    background: var(--hp-card);
    box-shadow: none;
}

html #docs .card:hover,
html #docs .docs-quick-link:hover {
    border-color: var(--hp-line-strong);
    box-shadow: none;
    transform: none !important;
}

html #docs .docs-step-number {
    background: var(--hp-blue);
    box-shadow: none;
    font-family: var(--hp-mono);
    font-weight: 500;
}

html #docs .docs-table {
    border-color: var(--hp-line);
}

html #docs .docs-table th {
    background: rgba(255, 255, 255, 0.04);
    font-family: var(--hp-mono);
    font-weight: 500;
}

/* ---- Free tool pages ---- */
html .section.lp-page {
    --lp-bg: var(--hp-bg);
    --lp-line: var(--hp-line);
    --lp-ink: var(--hp-ink);
    --lp-text: var(--hp-text);
    --lp-muted: var(--hp-muted);
    --lp-grad: var(--hp-blue);
    --lp-grad-text: var(--hp-link);
    background: var(--hp-bg);
}

html .lp-page .lp-title {
    font-weight: 500;
    letter-spacing: -0.045em;
}

/* The accent words in a title are the homepage's blue, like "automatically" */
html .lp-page .lp-title .lp-accent,
html .lp-page .lp-accent {
    color: var(--hp-blue);
}

html .lp-page .lp-eyebrow {
    gap: 10px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--hp-muted);
    font: 500 12px/1 var(--hp-mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

html .lp-page .lp-eyebrow::before {
    width: 6px;
    height: 6px;
    border-radius: 1px;
    background: var(--hp-blue);
    box-shadow: none;
}

html .lp-page .lp-card,
html .lp-page .lp-tool,
html .lp-page .lp-tool.is-us,
html .lp-page .lp-compare,
html .lp-page .hl-results {
    border: 1px solid var(--hp-line);
    border-radius: 16px;
    background: var(--hp-card);
    box-shadow: none;
}

html .lp-page .lp-tool.is-us {
    border-color: var(--hp-line-strong);
    box-shadow: inset 2px 0 0 var(--hp-blue);
}

html .lp-page :is(.lp-card, .lp-prose, .hl-results) h2,
html .lp-page .lp-card h3 {
    font-weight: 500;
    letter-spacing: -0.02em;
}

html .lp-page .lp-btn {
    border-radius: var(--hp-btn-radius);
    font-weight: 500;
    box-shadow: none;
    transform: none;
}

html .lp-page .lp-btn-primary,
html .lp-page .lp-btn-primary:hover {
    border: 1px solid var(--hp-blue);
    background: var(--hp-blue);
    color: #fff;
    box-shadow: none;
    transform: none;
}

html .lp-page .lp-btn-primary:hover {
    border-color: var(--hp-blue-hover);
    background: var(--hp-blue-hover);
}

html .lp-page .lp-btn-ghost {
    border: 1px solid var(--hp-secondary-border);
    background: var(--hp-secondary-bg);
    color: var(--hp-secondary-text);
}

html .lp-page .lp-btn-ghost:hover {
    background: var(--hp-secondary-hover);
    color: var(--hp-secondary-text);
    transform: none;
}

html .lp-page .lp-btn svg,
html .lp-page .lp-btn:hover svg {
    transform: none;
}

html .lp-page a:not(.lp-btn) {
    color: var(--hp-link);
}

html .lp-page input,
html .lp-page textarea {
    border: 1px solid var(--hp-line-strong);
    border-radius: 10px;
    background: var(--hp-input);
    color: var(--hp-ink);
    font-family: var(--hp-sans);
}

html .lp-page input:focus,
html .lp-page textarea:focus {
    border-color: var(--hp-blue);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--hp-blue) 25%, transparent);
    outline: none;
}

html .lp-page :is(th, td) {
    border-color: var(--hp-line);
}

html .lp-page .lp-compare-table :is(th, td),
html .lp-page .lp-compare-table tbody tr > * {
    border-bottom-color: var(--hp-line);
}

/* On phones each tool's row becomes its own card */
html .lp-page .lp-compare-table tr {
    background-color: var(--hp-card);
}

html .lp-page .lp-compare-table thead th {
    background: rgba(255, 255, 255, 0.03);
    font-weight: 500;
}

html .lp-page .lp-compare-table tr.is-us > * {
    background: color-mix(in srgb, var(--hp-blue) 8%, transparent);
}

html .lp-page .lp-cta-panel {
    border: 1px solid var(--hp-line-strong);
    border-radius: 18px;
    background: var(--hp-card);
    box-shadow: none;
}

html .lp-page .lp-cta-panel::before {
    display: none;
}

html .lp-page .lp-cta-panel p {
    color: var(--hp-text);
}

html .lp-page .lp-cta-panel h2 {
    font-weight: 500;
    letter-spacing: -0.04em;
}

/* =========================================================
   The app (after logging in) (1.0.30)
   The app's style sheets (style.css and portal.css) name their
   colors in two old lists. Both now point at the list at the
   top of this file, so the app has the website's background,
   cards, text and one blue. Below that, the few places that
   had a color written in directly. The admin page (.cadm)
   keeps its own look and is not touched.
   ========================================================= */
html:root {
    /* style.css's names */
    --bg-primary: var(--hp-bg);
    --bg-secondary: var(--hp-card);
    --bg-card: var(--hp-card);
    --bg-tertiary: color-mix(in srgb, var(--hp-card) 85%, white);
    --bg-quaternary: color-mix(in srgb, var(--hp-card) 75%, white);
    --bg-hover: color-mix(in srgb, var(--hp-card) 88%, white);
    --text-primary: var(--hp-ink);
    --text-secondary: color-mix(in srgb, var(--hp-ink) 70%, var(--hp-text));
    --text-muted: var(--hp-muted);
    --text-accent: var(--hp-link);
    --border-primary: rgba(255, 255, 255, 0.1);
    --border-secondary: rgba(255, 255, 255, 0.16);
    --border-accent: var(--hp-blue);
    --primary-color: var(--hp-blue);
    --primary-dark: var(--hp-blue-hover);
    --primary-light: var(--hp-link);
    --brand: var(--hp-blue);
    --brand-hover: var(--hp-blue-hover);
    --brand-text: var(--hp-link);
    --brand-soft: color-mix(in srgb, var(--hp-blue) 12%, transparent);
    --brand-line: color-mix(in srgb, var(--hp-link) 30%, transparent);
    --brand-glow: transparent;
    --brand-shadow: none;
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
    --shadow-xl: none;

    /* portal.css's names */
    --pr-bg: var(--hp-bg);
    --pr-sidebar: var(--hp-band);
    --pr-surface: var(--hp-card);
    --pr-surface-2: color-mix(in srgb, var(--hp-card) 55%, var(--hp-bg));
    --pr-line: var(--hp-line);
    --pr-line-2: var(--hp-line-strong);
    --pr-ink: var(--hp-ink);
    --pr-text: color-mix(in srgb, var(--hp-ink) 70%, var(--hp-text));
    --pr-muted: var(--hp-text);
    --pr-faint: var(--hp-muted);
    --pr-grad: var(--hp-blue);
    --pr-shadow: none;
}

html #portal,
html #portal .portal-layout {
    background: var(--hp-bg);
    font-family: var(--hp-sans);
}

html #portal .portal-sidebar {
    border-right: 1px solid var(--hp-line);
    background: var(--hp-band);
}

html #portal .portal-sidebar .croai-logo {
    display: block;
    width: 108px;
    height: 30px;
}

/* ---- Buttons: the website's pair, flat ---- */
html #portal .btn,
html .portal-modal .btn,
html .modal-content .btn {
    border-radius: var(--hp-btn-radius);
    font-family: var(--hp-sans);
    font-weight: 500;
    box-shadow: none;
}

html #portal .btn-primary,
html .portal-modal .btn-primary,
html .modal-content .btn-primary {
    border: 1px solid var(--hp-blue);
    background: var(--hp-blue);
    color: #fff;
    box-shadow: none;
}

html #portal .btn-primary:hover:not(:disabled):not(.disabled),
html .portal-modal .btn-primary:hover:not(:disabled),
html .modal-content .btn-primary:hover:not(:disabled) {
    border-color: var(--hp-blue-hover);
    background: var(--hp-blue-hover);
    box-shadow: none;
    transform: none;
}

html #portal :is(.btn-outline, .btn-secondary),
html .portal-modal :is(.btn-outline, .btn-secondary),
html .modal-content :is(.btn-outline, .btn-secondary) {
    border: 1px solid var(--hp-secondary-border);
    background: var(--hp-secondary-bg);
    color: var(--hp-secondary-text);
}

html #portal :is(.btn-outline, .btn-secondary):hover:not(:disabled):not(.disabled),
html .portal-modal :is(.btn-outline, .btn-secondary):hover:not(:disabled),
html .modal-content :is(.btn-outline, .btn-secondary):hover:not(:disabled) {
    border-color: var(--hp-secondary-border);
    background: var(--hp-secondary-hover);
    color: var(--hp-secondary-text);
    transform: none;
}

html #portal .btn:disabled,
html #portal .btn.disabled,
html #portal .btn[disabled],
html #portal .btn.disabled:hover,
html #portal .btn[disabled]:hover,
html .portal-modal .btn:disabled {
    border: 1px solid var(--hp-line) !important;
    background-color: rgba(255, 255, 255, 0.06) !important;
    background-image: none !important;
    color: var(--hp-muted) !important;
}

/* ---- Sidebar menu ---- */
html #portal .portal-sidebar .nav-item:hover,
html #portal .portal-sidebar .nav-item.sign-out-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--hp-ink);
}

html #portal .portal-sidebar .nav-item.active {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 2px 0 0 var(--hp-blue);
    color: var(--hp-ink);
}

html #portal .portal-sidebar .nav-item.active svg {
    color: var(--hp-link);
}

/* ---- Cards, tables and the editor's panels: flat, like the website's ---- */
html :is(.website-card, .page-card, .account-card, .billing-card, .plan-info-card, .summary-card, .metric-box, .metric-box-small,
    .websites-table-container, .winners-table-container, .team-table-container, .elements-sidebar) {
    border-color: var(--hp-line);
    background: var(--hp-card);
    box-shadow: none;
}

html :is(.website-card, .page-card):hover {
    border-color: var(--hp-line-strong);
    box-shadow: none;
    transform: none;
}

html :is(.website-preview, .page-preview) {
    background: color-mix(in srgb, var(--hp-card) 55%, var(--hp-bg));
}

html .preview-overlay {
    background: none;
}

html .account-card.danger-card {
    border-color: rgba(248, 113, 113, 0.3);
    background: color-mix(in srgb, #ef4444 7%, var(--hp-card));
}

html :is(.websites-table, .winners-table, .team-table) th {
    border-bottom-color: var(--hp-line);
    background: rgba(255, 255, 255, 0.03);
    font-family: var(--hp-mono);
    font-weight: 500;
}

html :is(.websites-table, .winners-table, .team-table) td {
    border-bottom-color: var(--hp-line);
}

html :is(.websites-table, .winners-table, .team-table) tbody tr:hover td {
    background: rgba(255, 255, 255, 0.025);
}

html .website-viewer-container {
    border-color: var(--hp-line);
    background: color-mix(in srgb, var(--hp-card) 55%, var(--hp-bg));
    box-shadow: none;
}

html #portal .website-viewer {
    box-shadow: none;
}

html .page-path-display {
    border-bottom-color: var(--hp-line);
    background: var(--hp-input);
}

html #portal .element-tag {
    color: var(--hp-link);
}

/* portal.js writes this one's color into the element */
html #portal .ai-mode-indicator {
    color: var(--hp-link) !important;
}

html #portal .switch-text {
    color: var(--hp-text);
}

html #portal .role-badge.role-view {
    background: rgba(255, 255, 255, 0.08);
    color: var(--hp-text);
}

/* ---- Status badges: green, amber and red stay; the rest go neutral or blue ---- */
html .status-badge.status-inactive,
html .status-badge.status-dormant,
html .status-badge.inactive {
    border-color: var(--hp-line-strong);
    background: rgba(255, 255, 255, 0.05);
    color: var(--hp-text);
}

html .status-badge.free {
    border-color: color-mix(in srgb, var(--hp-blue) 45%, transparent);
    background: color-mix(in srgb, var(--hp-blue) 14%, transparent);
    color: var(--hp-link);
}

/* No pulsing glow on "Live" */
html #portal .status-badge.status-live {
    box-shadow: none;
    animation: none;
}

html #portal .metric.conv {
    background: color-mix(in srgb, var(--hp-blue) 16%, transparent);
    color: var(--hp-link);
}

/* ---- Test notices: flat tints instead of gradients (the old rules use !important) ---- */
html #portal .test-notice {
    border: 1px solid color-mix(in srgb, var(--hp-blue) 45%, transparent) !important;
    background: color-mix(in srgb, var(--hp-blue) 14%, var(--hp-card)) !important;
    color: var(--hp-ink);
}

html #portal .test-notice-winner,
html #portal .variant-row.winner-row .variant-text-same-size {
    border: 1px solid rgba(52, 211, 153, 0.35) !important;
    background: color-mix(in srgb, #10b981 14%, var(--hp-card)) !important;
    color: var(--hp-ink);
}

/* ---- Forms ---- */
html #portal :is(.form-input, .form-select, textarea, input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], select):not(.cadm *),
html .portal-modal :is(.form-input, .form-select, textarea, input[type="text"], select) {
    border-color: var(--hp-line-strong);
    background: var(--hp-input);
    color: var(--hp-ink);
}

html #portal :is(.form-input, .form-select, textarea, input, select):focus:not(.cadm *),
html .portal-modal :is(.form-input, .form-select, textarea, input, select):focus {
    border-color: var(--hp-blue);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--hp-blue) 25%, transparent);
    outline: none;
}

html #portal .switch-slider {
    border-color: transparent;
    background: rgba(255, 255, 255, 0.18);
}

html #portal input:checked + .switch-slider {
    background: var(--hp-blue);
}

/* ---- Menus, pop-ups and alerts ---- */
html .dropdown-toggle {
    border-color: var(--hp-line-strong);
    background: rgba(255, 255, 255, 0.05);
}

html .dropdown-toggle:hover {
    border-color: var(--hp-line-strong);
    background: rgba(255, 255, 255, 0.09);
}

/* The "⋮" menu buttons stay quiet, even where they are also .btn-outline */
html #portal .btn.dropdown-toggle,
html #portal .btn.dropdown-toggle:hover:not(:disabled) {
    border-color: var(--hp-line-strong);
    background: rgba(255, 255, 255, 0.05);
    color: var(--hp-text);
}

html #portal .btn.dropdown-toggle:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.09);
    color: var(--hp-ink);
}

html #portal .dropdown-toggle .dots {
    color: inherit;
}

html .dropdown-menu {
    border-color: var(--hp-line-strong);
    background: var(--hp-card);
    box-shadow: 0 16px 32px -16px rgba(0, 0, 0, 0.6);
}

html .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

html :is(.portal-modal-overlay, .custom-alert-overlay) {
    background: rgba(0, 0, 0, 0.6);
}

html :is(.portal-modal, .custom-alert-modal) {
    border-color: var(--hp-line-strong);
    background: var(--hp-card);
    box-shadow: none;
}

html .portal-modal-header {
    border-bottom-color: var(--hp-line);
}

html .portal-modal .found-us-input {
    border-color: var(--hp-line-strong);
    background: var(--hp-input);
    color: var(--hp-ink);
}

html :is(.page-number.active, .page-numbers .active) {
    background: var(--hp-blue);
}
/* Contact form: Cloudflare's "Verify you are human" box (Turnstile), drawn
   by app.js once its keys are set. Empty until then, so it takes no room. */
html .contact-turnstile {
    margin: 4px 0 18px;
    min-height: 65px;
}

html .contact-turnstile:empty {
    display: none;
}

/* =========================================================
   Homepage additions (1.0.39)
   - The name: CRO + AI (#what-is-croai)
   - The speed strip (#speed). Its numbers were measured on
     2026-11-25 for croai.js 1.20 as served: claim nothing else.
   - Pictures that match the real Winners page (no visitors
     column, chart or suggestions column; "Home headline").
   - Short looping animations in How it works, steps 2-4:
     a headline is clicked, the AI writes a version, visitors
     are split and the winner goes live. With "reduce motion"
     every picture shows its last frame instead.
   ========================================================= */

/* ---------- The hero picture is the Winners page as it is ---------- */
#home .hp-app {
    grid-template-columns: 188px 1fr;
    min-height: 0;
}

#home .hp-main .hp-note {
    margin-top: 14px;
}

#home .hp-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    margin-top: 14px;
    color: #8f929b;
    font-size: 11.5px;
}

#home .hp-links span {
    color: #4a5fd1;
}

#home .hp-links i {
    width: 12px;
}

/* ---------- The name: CRO + AI ---------- */
#home .hp-name .hp-lead {
    max-width: 720px;
}

#home .hp-eq {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1.15fr;
    align-items: stretch;
    gap: 16px;
    margin-top: 56px;
}

#home .hp-term {
    padding: 28px 28px 30px;
    border: 1px solid var(--hp-line);
    border-radius: 16px;
    background: var(--hp-card);
}

#home .hp-term strong {
    display: block;
    color: var(--hp-ink);
    font-size: 44px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.04em;
}

#home .hp-term strong [aria-hidden] span {
    color: var(--hp-logo-ai);
    font-weight: 500;
}

#home .hp-term > span {
    display: block;
    margin-top: 16px;
    color: var(--hp-ink);
    font-size: 16px;
    font-weight: 500;
}

#home .hp-term p {
    margin-top: 8px;
    color: var(--hp-text);
    font-size: 15px;
    line-height: 1.55;
}

#home .hp-term-us {
    border-color: color-mix(in srgb, var(--hp-blue) 55%, transparent);
    box-shadow: inset 0 2px 0 var(--hp-blue);
}

#home .hp-op {
    align-self: center;
    color: var(--hp-muted);
    font: 400 30px/1 var(--hp-mono);
}

/* ---------- The speed strip ---------- */
#home .hp-speed {
    padding: 104px 0;
    border-top: 1px solid var(--hp-line);
}

#home .hp-speed-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.3fr;
    gap: 64px;
    align-items: center;
}

#home .hp-speed .hp-h2 {
    margin-bottom: 16px;
}

#home .hp-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--hp-line);
    border-radius: 16px;
    background: var(--hp-card);
}

#home .hp-fact {
    padding: 26px 24px 28px;
}

#home .hp-fact + .hp-fact {
    border-left: 1px solid var(--hp-line);
}

#home .hp-fact strong {
    display: block;
    color: var(--hp-ink);
    font-size: 28px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.035em;
    white-space: nowrap;
}

#home .hp-fact span {
    display: block;
    margin-top: 12px;
    color: var(--hp-text);
    font-size: 14.5px;
    line-height: 1.55;
}

/* ---------- How it works: scrolling walks through the five steps ----------
   The steps and the picture stay in place (sticky) while the page scrolls
   past, and each half-screen of scrolling moves on one step. The script in
   index.html picks the step and fills the thin line beside it. Without the
   script the section shows step 1 and the steps can still be clicked. */
#home .hp-step {
    position: relative;
}

#home .hp-scrolly::after {
    content: "";
    display: block;
    height: 250vh; /* five steps, half a screen each */
}

#home .hp-scrolly .hp-steps {
    position: sticky;
    top: max(88px, calc(50vh - 290px));
}

#home .hp-scrolly .hp-step.on {
    border-left-color: color-mix(in srgb, var(--hp-blue) 28%, transparent);
}

#home .hp-scrolly .hp-step.on::before {
    content: "";
    position: absolute;
    top: 0;
    left: -2px;
    width: 2px;
    height: 100%;
    background: var(--hp-blue);
    transform: scaleY(var(--hp-fill, 0));
    transform-origin: top;
}

#home .hp-step-dots {
    display: none;
}

/* Each picture and step text eases in as its step comes up */
#home .hp-scrolly .hp-vis.on,
#home .hp-scrolly .hp-step.on p {
    animation: hp-step-in 0.35s ease both;
}

@keyframes hp-step-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

/* ---------- Step 2: a headline is clicked in the page editor (8 s) ---------- */
#home .hp-site {
    position: relative;
}

#home .hp-cursor {
    position: absolute;
    top: 96px;
    left: 58%;
    z-index: 2;
    width: 22px;
    height: 22px;
    fill: #1b1c22;
    stroke: #fff;
    stroke-width: 1.3;
    stroke-linejoin: round;
    opacity: 0;
    pointer-events: none;
}

#home .hp-ring {
    position: absolute;
    top: 87px;
    left: calc(58% - 7px);
    width: 24px;
    height: 24px;
    border: 1.5px solid var(--hp-blue);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

#home .hp-anim-pick .hp-cursor { animation: hp-cursor 8s ease-in-out infinite both; }
#home .hp-anim-pick .hp-ring { animation: hp-ring 8s ease-out infinite both; }
#home .hp-anim-pick .hp-target { animation: hp-select 8s ease infinite both; }
#home .hp-anim-pick .hp-target small { animation: hp-tag-in 8s ease infinite both; }
#home .hp-anim-pick .hp-el-new { animation: hp-card-in 8s ease infinite both; }
#home .hp-anim-pick .hp-elbtn { animation: hp-btn-hint 8s ease infinite both; }

@keyframes hp-cursor {
    0% { opacity: 0; transform: translate(150px, 170px); }
    6% { opacity: 1; transform: translate(150px, 170px); }
    22% { opacity: 1; transform: translate(0, 0) scale(1); }
    25% { opacity: 1; transform: translate(0, 0) scale(0.84); }
    28% { opacity: 1; transform: translate(0, 0) scale(1); }
    46% { opacity: 1; transform: translate(0, 0); }
    56%, 100% { opacity: 0; transform: translate(40px, 60px); }
}

@keyframes hp-ring {
    0%, 24% { opacity: 0; transform: scale(0.4); }
    26% { opacity: 0.9; transform: scale(0.6); }
    36%, 100% { opacity: 0; transform: scale(1.9); }
}

@keyframes hp-select {
    0%, 17% { border-color: transparent; background-color: transparent; }
    20%, 24% { border-color: rgba(84, 112, 245, 0.4); background-color: transparent; }
    26%, 92% { border-color: var(--hp-blue); background-color: rgba(84, 112, 245, 0.06); }
    97%, 100% { border-color: transparent; background-color: transparent; }
}

@keyframes hp-tag-in {
    0%, 25% { opacity: 0; transform: translateY(4px); }
    29%, 92% { opacity: 1; transform: none; }
    97%, 100% { opacity: 0; transform: none; }
}

@keyframes hp-card-in {
    0%, 31% { opacity: 0; transform: translateY(8px); }
    37%, 92% { opacity: 1; transform: none; }
    97%, 100% { opacity: 0; transform: none; }
}

@keyframes hp-btn-hint {
    0%, 52% { border-color: #e5e7ec; background-color: #fff; }
    57%, 72% { border-color: var(--hp-blue); background-color: #f3f5fd; }
    78%, 100% { border-color: #e5e7ec; background-color: #fff; }
}

/* ---------- Step 3: the AI writes a new version (8 s) ---------- */
#home .hp-ee {
    display: grid;
    grid-template-columns: 1fr 230px;
    min-height: 360px;
}

#home .hp-ee-main {
    padding: 22px 24px;
}

#home .hp-ee-side {
    padding: 22px 16px;
    border-left: 1px solid #e5e7ec;
    background: #fafbfc;
}

#home .hp-switch {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    border: 1px solid #e5e7ec;
    border-radius: 8px;
    background: #f6f7f9;
}

#home .hp-switch span {
    min-width: 64px;
    padding: 5px 12px;
    border-radius: 6px;
    color: #5b5e67;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

#home .hp-switch span.on {
    background: #fff;
    color: #1b1c22;
    box-shadow: 0 0 0 1px #e5e7ec;
}

#home .hp-sugbox {
    position: relative;
    min-height: 66px;
    margin-top: 12px;
    padding: 13px 14px;
    border: 1px solid #e5e7ec;
    border-radius: 8px;
    color: #1b1c22;
    font-size: 15px;
    line-height: 1.45;
}

#home .hp-writing {
    position: absolute;
    top: 13px;
    right: 14px;
    left: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #8f929b;
    font-size: 12.5px;
    opacity: 0;
}

#home .hp-writing i {
    flex: none;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--hp-blue);
    opacity: 0.3;
}

#home .hp-writing i:nth-of-type(3) {
    margin-right: 6px;
}

#home .hp-addbtn {
    display: inline-block;
    margin-top: 14px;
    padding: 8px 14px;
    border-radius: 7px;
    background: var(--hp-blue);
    color: #fff;
    font-size: 12.5px;
    font-weight: 500;
}

#home .hp-var {
    margin-top: 8px;
    padding: 10px 11px;
    border: 1px solid #e5e7ec;
    border-radius: 8px;
    background: #fff;
}

#home .hp-var p {
    color: #1b1c22;
    font-size: 12.5px;
    line-height: 1.4;
}

#home .hp-var em {
    display: inline-block;
    margin-top: 7px;
    padding: 1px 6px;
    border-radius: 4px;
    background: #edeef2;
    color: #5b5e67;
    font: 600 9.5px/1.5 var(--hp-mono);
    font-style: normal;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#home .hp-var em.hp-ai {
    background: #e2e7f8;
    color: #33479a;
}

#home .hp-var-new {
    border-color: #b7c1ea;
    background: #f3f5fd;
}

#home .hp-anim-write .hp-writing { animation: hp-writing 8s linear infinite both; }
#home .hp-anim-write .hp-writing i { animation: hp-dot 1.2s ease-in-out infinite both; }
#home .hp-anim-write .hp-writing i:nth-of-type(2) { animation-delay: 0.16s; }
#home .hp-anim-write .hp-writing i:nth-of-type(3) { animation-delay: 0.32s; }
#home .hp-anim-write .hp-typed > span { animation: hp-word 8s ease infinite both; animation-delay: calc(var(--w) * 0.11s); }
#home .hp-anim-write .hp-addbtn { animation: hp-press 8s ease infinite both; }
#home .hp-anim-write .hp-var-new { animation: hp-var-in 8s ease infinite both; }

@keyframes hp-writing {
    0%, 2% { opacity: 0; }
    5%, 19% { opacity: 1; }
    22%, 100% { opacity: 0; }
}

@keyframes hp-dot {
    0%, 80%, 100% { opacity: 0.3; }
    40% { opacity: 1; }
}

@keyframes hp-word {
    0%, 21% { opacity: 0; }
    24%, 92% { opacity: 1; }
    96%, 100% { opacity: 0; }
}

@keyframes hp-press {
    0%, 44% { background-color: var(--hp-blue); transform: none; }
    46% { background-color: var(--hp-blue-hover); transform: scale(0.96); }
    49%, 100% { background-color: var(--hp-blue); transform: none; }
}

@keyframes hp-var-in {
    0%, 48% { opacity: 0; transform: translateY(-6px); }
    54%, 92% { opacity: 1; transform: none; }
    97%, 100% { opacity: 0; transform: none; }
}

/* ---------- Step 4: visitors are split, then the winner goes live (9 s) ---------- */
#home .hp-vis.hp-anim-split {
    flex-direction: column;
    gap: 14px;
    height: 100%;
}

#home .hp-vis.hp-anim-split.on {
    display: flex;
}

#home .hp-anim-split .hp-win {
    flex: 1;
    min-height: 0;
    height: auto;
}

#home .hp-split {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 6px 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    background: #fff;
    color: #1b1c22;
    font: 500 12.5px/1.3 var(--hp-sans);
}

#home .hp-src {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border: 1px solid #e5e7ec;
    border-radius: 8px;
}

#home .hp-src svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
}

#home .hp-lanes {
    position: relative;
    flex: none;
    width: 160px;
    height: 64px;
}

#home .hp-lanes svg {
    position: absolute;
    inset: 0;
    overflow: visible;
}

#home .hp-lanes path {
    fill: none;
    stroke-width: 1.5;
    stroke-dasharray: 3 4;
}

#home .hp-lane-a { stroke: #dfe1e6; }
#home .hp-lane-b { stroke: var(--hp-blue); }

#home .hp-d {
    position: absolute;
    top: 0;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hp-blue);
    opacity: 0;
    offset-rotate: 0deg;
}

#home .hp-da { offset-path: path('M0 32 C 56 32, 84 12, 160 12'); }
#home .hp-db { offset-path: path('M0 32 C 56 32, 84 52, 160 52'); }

#home .hp-dest {
    display: grid;
    gap: 10px;
    min-width: 0;
}

#home .hp-dest > span {
    display: flex;
    align-items: center;
    min-width: 0;
    white-space: nowrap;
}

#home .hp-dest-a {
    opacity: 0.45;
}

#home .hp-swap {
    display: inline-grid;
}

#home .hp-swap > span {
    grid-area: 1 / 1;
}

#home .hp-was {
    opacity: 0;
}

#home .hp-anim-split .hp-d { animation: hp-move 1.8s linear infinite both; animation-delay: calc(var(--d) * -0.6s); }
#home .hp-anim-split .hp-flow-a { animation: hp-lane-off 9s ease infinite both; }
#home .hp-anim-split .hp-lane-a { animation: hp-lane-a 9s ease infinite both; }
#home .hp-anim-split .hp-lane-b { animation: hp-lane-b 9s ease infinite both; }
#home .hp-anim-split .hp-dest-a { animation: hp-dest-a 9s ease infinite both; }
#home .hp-anim-split .hp-was { animation: hp-was 9s ease infinite both; }
#home .hp-anim-split .hp-now { animation: hp-now 9s ease infinite both; }
#home .hp-anim-split .hp-num { animation: hp-num 9s ease infinite both; }
#home .hp-anim-split .hp-win-row td { animation: hp-tint 9s ease infinite both; }
#home .hp-anim-split .hp-win-row td:first-child { animation-name: hp-tint-first; }
#home .hp-anim-split .hp-won { animation: hp-now 9s ease infinite both; }
#home .hp-anim-split .hp-note { animation: hp-note-in 9s ease infinite both; }

@keyframes hp-move {
    0% { offset-distance: 0%; opacity: 0; }
    12%, 86% { opacity: 1; }
    100% { offset-distance: 100%; opacity: 0; }
}

/* Lane A stops once the winner is live: every visitor now gets B */
@keyframes hp-lane-off {
    0%, 48% { opacity: 1; }
    52%, 93% { opacity: 0; }
    97%, 100% { opacity: 1; }
}

@keyframes hp-lane-a {
    0%, 48% { stroke: #b7c1ea; }
    52%, 93% { stroke: #dfe1e6; }
    97%, 100% { stroke: #b7c1ea; }
}

@keyframes hp-lane-b {
    0%, 48% { stroke: #b7c1ea; }
    52%, 93% { stroke: var(--hp-blue); }
    97%, 100% { stroke: #b7c1ea; }
}

@keyframes hp-dest-a {
    0%, 48% { opacity: 1; }
    52%, 93% { opacity: 0.45; }
    97%, 100% { opacity: 1; }
}

@keyframes hp-was {
    0%, 49% { opacity: 1; }
    52%, 93% { opacity: 0; }
    97%, 100% { opacity: 1; }
}

@keyframes hp-now {
    0%, 49% { opacity: 0; }
    52%, 93% { opacity: 1; }
    97%, 100% { opacity: 0; }
}

@keyframes hp-num {
    0%, 47% { opacity: 0.4; }
    51%, 93% { opacity: 1; }
    97%, 100% { opacity: 0.4; }
}

@keyframes hp-tint {
    0%, 49% { background-color: transparent; }
    53%, 93% { background-color: #e7ebf9; }
    97%, 100% { background-color: transparent; }
}

@keyframes hp-tint-first {
    0%, 49% { background-color: transparent; box-shadow: inset 2px 0 0 transparent; }
    53%, 93% { background-color: #e7ebf9; box-shadow: inset 2px 0 0 var(--hp-blue); }
    97%, 100% { background-color: transparent; box-shadow: inset 2px 0 0 transparent; }
}

@keyframes hp-note-in {
    0%, 54% { opacity: 0; transform: translateY(8px); }
    59%, 93% { opacity: 1; transform: none; }
    97%, 100% { opacity: 0; transform: none; }
}

/* ---------- The editor pictures fill their window ---------- */
#home .hp-step-panel .hp-editor,
#home .hp-step-panel .hp-ee {
    min-height: calc(100% - 40px);
}

/* ---------- Testing on autopilot: the rounds as the Winners page lists them ---------- */
#home .hp-rounds div {
    padding: 8px 10px;
}

#home .hp-rounds div > span {
    min-width: 0;
    color: #8f929b;
    font-size: 12px;
    line-height: 1.4;
}

#home .hp-rounds b {
    display: block;
    overflow: hidden;
    color: #1b1c22;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#home .hp-rounds i {
    display: grid;
    place-items: center;
    color: #5b5e67;
    font: 500 11px/1 var(--hp-mono);
    font-style: normal;
}

#home .hp-rounds div.hp-done i {
    color: #fff;
}

#home .hp-rounds div.hp-live {
    border-color: #b7c1ea;
    background: #f3f5fd;
}

#home .hp-rounds div.hp-live i {
    border: 1.5px solid var(--hp-blue);
    background: #fff;
    color: var(--hp-blue);
}

#home .hp-rounds small {
    white-space: nowrap;
}

/* ---------- How we compare: five products now (Mida added) ---------- */
#home .hp-compare th,
#home .hp-compare td {
    padding: 18px 16px;
}

/* ---------- Reduce motion: every picture shows its last frame ---------- */
@media (prefers-reduced-motion: reduce) {
    #home .hp-anim,
    #home .hp-anim *,
    #home .hp-anim *::before,
    #home .hp-anim *::after,
    #home .hp-vis,
    #home .hp-step p {
        animation: none !important;
    }
}

/* ---------- Phones and small tablets ---------- */
@media (max-width: 900px) {
    #home .hp-app {
        grid-template-columns: 1fr;
    }

    #home .hp-hm {
        display: none;
    }

    #home .hp-links {
        display: none;
    }

    #home .hp-eq {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 40px;
    }

    #home .hp-op {
        justify-self: center;
        font-size: 24px;
    }

    #home .hp-term {
        padding: 22px 22px 24px;
    }

    #home .hp-term strong {
        font-size: 36px;
    }

    #home .hp-speed {
        padding: 80px 0;
    }

    #home .hp-speed-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    #home .hp-facts {
        grid-template-columns: 1fr;
    }

    #home .hp-fact + .hp-fact {
        border-top: 1px solid var(--hp-line);
        border-left: 0;
    }

    #home .hp-ee {
        grid-template-columns: 1fr;
    }

    #home .hp-ee-main {
        padding: 16px;
    }

    #home .hp-ee-side {
        padding: 14px 16px;
        border-top: 1px solid #e5e7ec;
        border-left: 0;
    }

    #home .hp-ee-side .hp-var:not(.hp-var-new) {
        display: none;
    }

    #home .hp-split {
        gap: 10px;
        padding: 4px 12px;
    }

    #home .hp-lanes {
        margin-right: -40px;
        transform: scale(0.75);
        transform-origin: left center;
    }

    #home .hp-dl {
        display: none;
    }

    #home .hp-anim-split .hp-pad {
        padding: 16px;
    }

    /* A little taller, so the animated pictures end inside their frame */
    #home .hp-step-panel {
        height: 470px;
    }

    /* Phones: five progress bars, the step being shown, then its picture */
    #home .hp-scrolly::after {
        height: 300vh;
    }

    #home .hp-scrolly .hp-steps {
        top: 87px; /* below the 71px menu bar */
        gap: 18px;
    }

    #home .hp-scrolly .hp-step.on {
        padding-left: 0;
        border-left: 0;
    }

    #home .hp-scrolly .hp-step.on::before {
        display: none;
    }

    #home .hp-scrolly .hp-step:not(.on) {
        display: none;
    }

    #home .hp-scrolly .hp-step-dots {
        display: flex;
        gap: 6px;
        margin-bottom: 6px;
    }

    #home .hp-step-dots i {
        flex: 1;
        height: 3px;
        overflow: hidden;
        border-radius: 3px;
        background: var(--hp-line-strong);
    }

    #home .hp-step-dots i::after {
        content: "";
        display: block;
        height: 100%;
        background: var(--hp-blue);
        transform: scaleX(var(--hp-fill, 0));
        transform-origin: left;
    }

    /* The comparison scrolls sideways inside its box; the feature names stay put */
    #home .hp-compare table {
        min-width: 820px;
    }

    #home .hp-compare thead th:first-child {
        width: 150px !important;
    }

    #home .hp-compare thead th:first-child,
    #home .hp-compare tbody th {
        position: sticky;
        left: 0;
        z-index: 1;
        background: var(--hp-bg);
        box-shadow: inset -1px 0 0 var(--hp-line);
    }
}

/* =========================================================
   How it works on phones (1.0.41)
   Every picture ends inside its frame, and the pinned steps
   fit the visible height with the browser's bars showing
   (100svh). The script in index.html lays every step and
   picture out at once (.hp-measure) to find the tallest,
   makes the frame tall enough for the longest picture at this
   width (--hp-ph), measures 100svh with .hp-svh and scales the
   picture to fit (--hp-k). When the picture would shrink below
   80% the step's paragraph is hidden (.hp-short); below 65% the
   section isn't pinned at all.
   ========================================================= */
#home .hp-svh {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100vh;
    height: 100svh;
    visibility: hidden;
    pointer-events: none;
}

/* While measuring, every step (with its paragraph) and every picture is laid out */
#home .hp-measure .hp-step {
    display: block !important;
}

#home .hp-measure .hp-step p {
    display: block;
}

#home .hp-measure .hp-vis {
    display: block !important;
}

#home .hp-measure .hp-vis.hp-anim-split {
    display: flex !important;
}

@media (max-width: 900px) {
    #home .hp-steps-track {
        position: relative;
    }

    #home .hp-step-panel {
        height: var(--hp-ph, 470px);
    }

    #home .hp-scrolly .hp-step-panel {
        transform: scale(var(--hp-k, 1));
        transform-origin: top center;
        margin-bottom: calc(var(--hp-ph, 470px) * (var(--hp-k, 1) - 1));
    }

    /* Short screens: no paragraph, and less room around the step's heading */
    #home .hp-scrolly.hp-short .hp-step p {
        display: none;
    }

    #home .hp-scrolly.hp-short .hp-step {
        padding-top: 10px;
        padding-bottom: 0;
    }
}

/* Short laptop screens (1280x600 is a 1920x1080 laptop at 150%): the steps sit
   closer together so the pinned list fits the screen */
@media (min-width: 901px) and (max-height: 680px) {
    #home .hp-step {
        padding-top: 12px;
        padding-bottom: 12px;
    }
}

/* =========================================================
   Hero: the text on the left, the picture on the right (1.0.42)
   Scott: "title on the left hand side, the buttons underneath
   that, then the image on the right hand side". The label
   above the title is gone. Under 1200px wide the hero stacks
   as before: text, buttons, then the picture. The text column
   stays at least 520px wide; since 1.0.46 the picture's column
   is at most 480px ("too overpowering").
   ========================================================= */
@media (min-width: 1200px) {
    #home .hp-hero {
        padding-top: 136px;
    }

    #home .hp-hero-grid {
        display: grid;
        grid-template-columns: minmax(520px, 1fr) minmax(0, 480px);
        align-items: center;
        column-gap: 64px;
    }

    #home .hp-hero-text {
        text-align: left;
    }

    #home .hp-hero h1 {
        max-width: none;
        margin: 0 0 22px;
        font-size: clamp(2.6rem, 1rem + 2.6vw, 3.6rem);
    }

    #home .hp-hero .hp-lead {
        margin: 0;
        font-size: 18px;
    }

    #home .hp-hero .hp-cta {
        justify-content: flex-start;
        margin: 32px 0 20px;
    }

    /* The picture fits its column: the Winners page without its menu, as on phones */
    #home .hp-hero .hp-stage {
        margin-top: 0;
        padding: 32px 32px 0;
    }

    #home .hp-hero .hp-app {
        grid-template-columns: 1fr;
    }

    #home .hp-hero .hp-side {
        display: none;
    }

    #home .hp-hero .hp-platforms {
        grid-column: 1 / -1;
    }
}

/* =========================================================
   Hero picture, smaller and moving (1.0.46)
   Scott: the picture "is too overpowering it needs to be a bit
   smaller", "maybe with like a little bit of animation", and
   room under "Works with".
   - Wide screens: the picture's column is at most 480px, and the
     picture leaves out what phones leave out: the third number,
     the method pill, the Engagement and Clicks columns and the
     links.
   - A slow 12-second loop of the test's last moments: the test
     runs, then B wins (its row is highlighted, "Testing" becomes
     "Winner live") and "Version B is now shown to all visitors"
     slides in. Since 1.0.51 the numbers move from the first
     second (see the loop below). The picture without any
     animation is that last frame.
   ========================================================= */
#home .hp-hero {
    padding-bottom: 72px;
}

@media (max-width: 900px) {
    #home .hp-hero {
        padding-bottom: 56px;
    }
}

@media (min-width: 1200px) {
    #home .hp-hero .hp-title-row .hp-pill.hp-mono,
    #home .hp-hero .hp-kpis div:nth-child(3),
    #home .hp-hero .hp-hm,
    #home .hp-hero .hp-links {
        display: none;
    }

    #home .hp-hero .hp-kpis {
        grid-template-columns: 1fr 1fr;
    }
}

/* The loop, lively from the first second since 1.0.51 (Scott: "a little
   too subtle for the first like few seconds where the Gray bars are
   moving"). 12 seconds:
   0-28%    the test runs and its numbers move as visitors come in. B
            (now a blue bar from the start) begins behind A (gray),
            draws level at 14% and pulls ahead: B 2.1% -> 2.8%, A 2.7%
            -> 2.4%, "Chance B is better" 22% -> 96%, and 1,184 -> 1,284
            visitors where that pill shows. The Testing dot blinks.
   28-38%   B wins: its row is highlighted, "Testing" becomes "Winner
            live", +17% and "winner" show, then the note slides in.
   38-92%   it stays live. 92-100%: back to the start.
   The numbers are CSS counters of @property integers, so they count;
   a browser without @property shows them jumping instead. The numbers
   typed in index.html are hidden here; they show without this file. */
@property --hp-n-a { syntax: '<integer>'; inherits: false; initial-value: 4; }
@property --hp-n-b { syntax: '<integer>'; inherits: false; initial-value: 8; }
@property --hp-n-chance { syntax: '<integer>'; inherits: false; initial-value: 96; }
@property --hp-n-vis { syntax: '<integer>'; inherits: false; initial-value: 284; }

#home .hp-hero .hp-n {
    font-variant-numeric: tabular-nums;
}

#home .hp-hero .hp-n > span {
    display: none;
}

#home .hp-hero .hp-n-a { --hp-n-a: 4; counter-reset: hp-n-a var(--hp-n-a); animation: hp-hero-a 12s ease-in-out infinite both; }
#home .hp-hero .hp-n-b { --hp-n-b: 8; counter-reset: hp-n-b var(--hp-n-b); animation: hp-hero-b 12s ease-in-out infinite both; }
#home .hp-hero .hp-n-chance { --hp-n-chance: 96; counter-reset: hp-n-chance var(--hp-n-chance); animation: hp-hero-chance 12s ease-in-out infinite both; }
#home .hp-hero .hp-n-vis { --hp-n-vis: 284; counter-reset: hp-n-vis var(--hp-n-vis); animation: hp-hero-visitors 12s ease-in-out infinite both; }
#home .hp-hero .hp-n-a::after { content: "2." counter(hp-n-a) "%"; }
#home .hp-hero .hp-n-b::after { content: "2." counter(hp-n-b) "%"; }
#home .hp-hero .hp-n-chance::after { content: counter(hp-n-chance) "%"; }
#home .hp-hero .hp-n-vis::after { content: "1," counter(hp-n-vis); }

/* The bars follow the numbers: A's bar is 86% wide at 2.4%, B's 100% at 2.8% */
#home .hp-hero .hp-bar i {
    transform-origin: left center;
    animation: hp-hero-bar-a 12s ease-in-out infinite both;
}

#home .hp-hero .hp-bar.hp-g i {
    animation-name: hp-hero-bar-b;
}

#home .hp-hero .hp-title-row .hp-pill:not(.hp-mono)::before { animation: hp-hero-dot 12s ease-in-out infinite both; }
#home .hp-hero .hp-was { animation: hp-hero-was 12s ease infinite both; }
#home .hp-hero .hp-now,
#home .hp-hero .hp-won,
#home .hp-hero .hp-lift,
#home .hp-hero .hp-kpis em { animation: hp-hero-now 12s ease infinite both; }
#home .hp-hero .hp-win-row td { animation: hp-hero-tint 12s ease infinite both; }
#home .hp-hero .hp-win-row td:first-child { animation-name: hp-hero-tint-first; }
#home .hp-hero .hp-note { animation: hp-hero-note 12s ease infinite both; }

@keyframes hp-hero-a {
    0%, 100% { --hp-n-a: 7; }
    7% { --hp-n-a: 6; }
    14% { --hp-n-a: 5; }
    21%, 92% { --hp-n-a: 4; }
}

@keyframes hp-hero-b {
    0%, 100% { --hp-n-b: 1; }
    7% { --hp-n-b: 3; }
    14% { --hp-n-b: 5; }
    21% { --hp-n-b: 7; }
    28%, 92% { --hp-n-b: 8; }
}

@keyframes hp-hero-chance {
    0%, 100% { --hp-n-chance: 22; }
    7% { --hp-n-chance: 34; }
    14% { --hp-n-chance: 51; }
    21% { --hp-n-chance: 83; }
    28%, 92% { --hp-n-chance: 96; }
}

@keyframes hp-hero-visitors {
    0%, 100% { --hp-n-vis: 184; }
    28%, 92% { --hp-n-vis: 284; }
}

@keyframes hp-hero-bar-a {
    0%, 100% { transform: scaleX(1.125); }  /* 2.7% */
    7% { transform: scaleX(1.083); }        /* 2.6% */
    14% { transform: scaleX(1.042); }       /* 2.5% */
    21%, 92% { transform: scaleX(1); }      /* 2.4% */
}

@keyframes hp-hero-bar-b {
    0%, 100% { transform: scaleX(0.75); }   /* 2.1% */
    7% { transform: scaleX(0.821); }        /* 2.3% */
    14% { transform: scaleX(0.893); }       /* 2.5% */
    21% { transform: scaleX(0.964); }       /* 2.7% */
    28%, 92% { transform: scaleX(1); }      /* 2.8% */
}

@keyframes hp-hero-dot {
    0%, 8%, 16%, 24%, 100% { opacity: 1; }
    4%, 12%, 20% { opacity: 0.2; }
}

@keyframes hp-hero-was {
    0%, 28% { opacity: 1; }
    31%, 92% { opacity: 0; }
    95%, 100% { opacity: 1; }
}

@keyframes hp-hero-now {
    0%, 28% { opacity: 0; }
    31%, 92% { opacity: 1; }
    95%, 100% { opacity: 0; }
}

@keyframes hp-hero-tint {
    0%, 28% { background-color: transparent; }
    32%, 92% { background-color: #e7ebf9; }
    96%, 100% { background-color: transparent; }
}

@keyframes hp-hero-tint-first {
    0%, 28% { background-color: transparent; box-shadow: inset 2px 0 0 transparent; }
    32%, 92% { background-color: #e7ebf9; box-shadow: inset 2px 0 0 var(--hp-blue); }
    96%, 100% { background-color: transparent; box-shadow: inset 2px 0 0 transparent; }
}

@keyframes hp-hero-note {
    0%, 33% { opacity: 0; transform: translateY(8px); }
    38%, 92% { opacity: 1; transform: none; }
    96%, 100% { opacity: 0; transform: none; }
}

/* The hero loop plays for everyone, also with "reduce motion" on (Scott,
   2026-11-25: "it should still be turned on even if animation effects are
   off"). Without animation support the picture is the loop's last frame. */

/* =========================================================
   Hero buttons (1.0.51)
   Scott: remove "See how it works", "make the continue with
   google button bigger", the line under it becomes "No credit
   card required", and under that, small, "By continuing, you
   agree to the Terms and Privacy Policy" (croai's own
   /terms-conditions and /privacy-policy).
   ========================================================= */
#home .hp-hero .hp-btn-google {
    height: 56px;
    padding: 0 32px;
    gap: 12px;
    font-size: 17px;
}

#home .hp-hero .hp-btn-google img {
    width: 22px;
    height: 22px;
}

#home .hp-terms {
    margin: 12px 0 0;
    color: var(--hp-muted);
    font: 400 13px/1.5 var(--hp-sans);
}

#home .hp-terms a {
    color: var(--hp-text);
    text-decoration: underline;
    text-decoration-color: var(--hp-line-strong);
    text-underline-offset: 3px;
}

#home .hp-terms a:hover {
    color: var(--hp-ink);
    text-decoration-color: currentColor;
}

#home .hp-terms a:focus-visible {
    outline: 2px solid var(--hp-blue);
    outline-offset: 2px;
    border-radius: 2px;
}

/* =========================================================
   Features menu, feature pages and comparison pages (1.0.52)
   The top menu's Features panel; /features and a page for each
   feature; a "CROAI vs ..." page for each competitor. The pages
   use the homepage's look (hp- classes inside .hp-page) and read
   every color from the list at the top of this file. The
   homepage's own rules stay scoped to #home.
   ========================================================= */

/* ---------- Features menu ---------- */
.navbar .nav-features-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--hp-text);
    font: 450 15px/1.6 var(--hp-sans);
    cursor: pointer;
}

.navbar .nav-features-toggle:hover,
.navbar .nav-features.open .nav-features-toggle,
.navbar .nav-features-toggle.active {
    color: var(--hp-ink);
}

.navbar .nav-features-toggle:focus-visible,
.navbar .nav-features-panel a:focus-visible {
    outline: 2px solid var(--hp-blue);
    outline-offset: 2px;
    border-radius: 6px;
}

.navbar .nav-chev {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.15s ease;
}

.navbar .nav-features.open .nav-chev { transform: rotate(180deg); }

.navbar .nav-features-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    width: min(1080px, calc(100vw - 32px));
    padding: 26px 24px 0;
    border: 1px solid var(--hp-line-strong);
    border-radius: 14px;
    background: var(--hp-card);
    box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.6);
    transform: translateX(-50%);
    text-align: left;
    cursor: default;
}

/* Keeps the menu open while the mouse moves down from the button to the panel */
.navbar .nav-features-panel::before {
    content: "";
    position: absolute;
    top: -22px;
    left: 0;
    right: 0;
    height: 22px;
}

.navbar .nav-features.open .nav-features-panel { display: block; }

.navbar .nav-feat-groups {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px 16px;
}

.navbar .nav-feat-label {
    margin: 0 0 8px;
    padding: 0 10px;
    color: var(--hp-muted);
    font: 500 11px/1 var(--hp-mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.navbar a.nav-feat {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 2px;
    padding: 10px;
    border-radius: 10px;
    color: var(--hp-ink);
    text-decoration: none;
}

.navbar a.nav-feat:hover { background: rgba(255, 255, 255, 0.045); }
.navbar a.nav-feat[aria-current="page"] { background: rgba(84, 112, 245, 0.12); }

.navbar .nav-feat-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--hp-line-strong);
    border-radius: 8px;
    color: #c6c9d0;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.navbar a.nav-feat:hover .nav-feat-icon,
.navbar a.nav-feat[aria-current="page"] .nav-feat-icon {
    border-color: var(--hp-blue);
    color: var(--hp-logo-ai);
}

.navbar .nav-feat-icon svg,
.hp-page .hp-ficon svg,
.hp-page .fp-mi svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.navbar .nav-feat-text { display: block; min-width: 0; }

.navbar .nav-feat-text b {
    display: block;
    color: var(--hp-ink);
    font: 500 14px/1.3 var(--hp-sans);
}

.navbar .nav-feat-text small {
    display: block;
    margin-top: 3px;
    color: var(--hp-text);
    font: 400 12.5px/1.45 var(--hp-sans);
}

.navbar .nav-feat-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 24px;
    margin: 18px -24px 0;
    padding: 15px 34px;
    border-top: 1px solid var(--hp-line);
    border-radius: 0 0 14px 14px;
    background: rgba(255, 255, 255, 0.02);
    font: 400 13.5px/1.5 var(--hp-sans);
}

.navbar a.nav-feat-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--hp-ink);
    font-weight: 500;
}

.navbar a.nav-feat-all svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.navbar a.nav-feat-all:hover { color: #fff; }

.navbar .nav-feat-vs {
    margin: 0;
    color: var(--hp-muted);
}

.navbar .nav-feat-vs span { margin-right: 4px; }
.navbar .nav-feat-vs a { color: var(--hp-text); }
.navbar .nav-feat-vs a:hover { color: var(--hp-ink); }
.navbar .nav-feat-vs a + a::before { content: "·"; display: inline-block; margin: 0 8px; color: #55585f; }

@media (min-width: 769px) and (max-width: 1100px) {
    .navbar .nav-feat-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
}

/* Phones: the menu opens in the dropdown, under its button, and the dropdown scrolls */
@media (max-width: 768px) {
    .navbar .nav-menu.active {
        max-height: calc(100vh - 70px);
        max-height: calc(100dvh - 70px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .navbar .nav-features { align-self: stretch; text-align: center; }

    .navbar .nav-features-panel {
        position: static;
        width: auto;
        margin: 14px 0 0;
        padding: 16px 0 0;
        border: 0;
        border-top: 1px solid var(--hp-line);
        border-radius: 0;
        background: none;
        box-shadow: none;
        transform: none;
    }

    .navbar .nav-features-panel::before { content: none; }
    .navbar .nav-feat-groups { grid-template-columns: 1fr; gap: 14px; }
    .navbar .nav-feat-label { padding: 0 6px; }
    .navbar a.nav-feat { padding: 8px 6px; }
    .navbar .nav-feat-icon { width: 30px; height: 30px; }

    .navbar .nav-feat-foot {
        flex-direction: column;
        align-items: flex-start;
        margin: 14px 0 0;
        padding: 14px 6px 0;
        border-radius: 0;
        background: none;
    }
}

/* ---------- The pages: the homepage's type, buttons and bands ---------- */
.hp-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.section.hp-page {
    justify-content: flex-start;
    padding: 0;
    background: var(--hp-bg);
    color: var(--hp-text);
    font: 400 16px/1.6 var(--hp-sans);
}

.hp-page h1,
.hp-page h2,
.hp-page h3,
.hp-page h4,
.hp-page h5,
.hp-page h6 {
    margin: 0;
    color: var(--hp-ink);
    font-weight: 500;
    line-height: 1.2;
}

.hp-page p { margin: 0; color: inherit; }
.hp-page a { color: inherit; text-decoration: none; }
.hp-page ul { margin: 0; padding: 0; list-style: none; }
.hp-page li { margin: 0; color: inherit; }

.hp-page .hp-wrap {
    width: 100%;
    max-width: 1248px;
    margin: 0 auto;
    padding: 0 24px;
}

.hp-page .hp-center { text-align: center; }

.hp-page .hp-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--hp-muted);
    font: 500 12px/1 var(--hp-mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hp-page .hp-label::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 1px;
    background: var(--hp-blue);
}

.hp-page .hp-h2 {
    margin: 0 0 8px;
    font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.5rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.hp-page .hp-soft { color: var(--hp-muted); }

.hp-page .hp-lead {
    max-width: 640px;
    color: var(--hp-text);
    font-size: 18px;
    line-height: 1.6;
}

.hp-page .hp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 46px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: var(--hp-btn-radius);
    font: 500 15px/1 var(--hp-sans);
    letter-spacing: -0.005em;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.hp-page .hp-btn-primary { border-color: var(--hp-blue); background: var(--hp-blue); color: #fff; }
.hp-page .hp-btn-primary:hover { border-color: var(--hp-blue-hover); background: var(--hp-blue-hover); color: #fff; }
.hp-page .hp-btn-secondary { border-color: var(--hp-secondary-border); background: var(--hp-secondary-bg); color: var(--hp-secondary-text); }
.hp-page .hp-btn-secondary:hover { background: var(--hp-secondary-hover); color: var(--hp-secondary-text); }
.hp-page .hp-btn:focus-visible { outline: 2px solid var(--hp-blue); outline-offset: 2px; }

.hp-page .hp-btn svg,
.hp-page .hp-more-all svg,
.hp-page .hp-vs-card svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hp-page .hp-section { padding: 104px 0; }
.hp-page .hp-band { border-top: 1px solid var(--hp-line); border-bottom: 1px solid var(--hp-line); background: var(--hp-band); }

.hp-page .hp-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Page top: breadcrumb, label, title, text, buttons */
.hp-page .hp-page-hero { padding: 148px 0 64px; }

.hp-page .hp-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
    color: var(--hp-muted);
    font: 500 12px/1 var(--hp-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hp-page .hp-crumbs a { color: var(--hp-text); }
.hp-page .hp-crumbs a:hover { color: var(--hp-ink); }
.hp-page .hp-page-hero .hp-label { display: flex; margin-bottom: 22px; }

.hp-page .hp-page-hero h1 {
    max-width: 900px;
    font-size: clamp(2.4rem, 1.3rem + 3.2vw, 3.9rem);
    line-height: 1.03;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.hp-page .hp-page-hero .hp-lead { margin-top: 22px; font-size: 19px; }
.hp-page .hp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* Three numbered points */
.hp-page .hp-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.hp-page .hp-point { padding: 28px 28px 30px; border: 1px solid var(--hp-line); border-radius: 16px; background: var(--hp-card); }
.hp-page .hp-point .hp-n { color: var(--hp-muted); font: 500 12px/1 var(--hp-mono); letter-spacing: 0.06em; }
.hp-page .hp-point h3 { margin: 16px 0 8px; font-size: 20px; letter-spacing: -0.02em; }
.hp-page .hp-point p { font-size: 15.5px; line-height: 1.6; }

/* Good to know, sources, tables and code lines under the points */
.hp-page .hp-know,
.hp-page .hp-sources { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--hp-line); }
.hp-page .hp-know h3,
.hp-page .hp-sources h3 { margin-bottom: 14px; color: var(--hp-muted); font: 500 12px/1 var(--hp-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.hp-page .hp-know ul,
.hp-page .hp-sources ul { display: grid; gap: 10px; max-width: 820px; }
.hp-page .hp-know li,
.hp-page .hp-sources li { position: relative; padding-left: 20px; color: #cccfd6; font-size: 15.5px; line-height: 1.6; }
.hp-page .hp-know li::before,
.hp-page .hp-sources li::before { content: ""; position: absolute; top: 0.72em; left: 2px; width: 6px; height: 6px; border-radius: 1px; background: var(--hp-blue); }
.hp-page .hp-know a,
.hp-page .hp-sources a { color: var(--hp-link); text-decoration: underline; text-decoration-color: rgba(125, 147, 255, 0.35); text-underline-offset: 3px; }
.hp-page .hp-know a:hover,
.hp-page .hp-sources a:hover { text-decoration-color: currentColor; }

.hp-page .hp-table-wrap { margin-top: 40px; overflow-x: auto; border: 1px solid var(--hp-line); border-radius: 14px; }
.hp-page .hp-table { width: 100%; border-collapse: collapse; }
.hp-page .hp-table th { padding: 14px 20px; border-bottom: 1px solid var(--hp-line); color: var(--hp-muted); font: 500 11.5px/1.3 var(--hp-mono); letter-spacing: 0.08em; text-align: left; text-transform: uppercase; }
.hp-page .hp-table td { padding: 14px 20px; border-bottom: 1px solid var(--hp-line); color: var(--hp-text); font-size: 15px; vertical-align: top; }
.hp-page .hp-table td:first-child { width: 34%; color: var(--hp-ink); }
.hp-page .hp-table tbody tr:last-child td { border-bottom: 0; }

.hp-page .hp-codes { display: grid; gap: 10px; margin-top: 40px; }
.hp-page .hp-codes p { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 14px 18px; border: 1px solid var(--hp-line); border-radius: 12px; background: var(--hp-card); color: var(--hp-text); font-size: 14.5px; }
.hp-page .hp-codes code { color: var(--hp-ink); font: 500 13.5px/1.5 var(--hp-mono); overflow-wrap: anywhere; }

/* Feature cards: /features and "More features" */
.hp-page .hp-fcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.hp-page .hp-hub .hp-fcards { margin-top: 28px; }

.hp-page a.hp-fcard {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 22px;
    border: 1px solid var(--hp-line);
    border-radius: 14px;
    background: var(--hp-card);
    transition: border-color 0.15s ease;
}

.hp-page a.hp-fcard:hover { border-color: var(--hp-line-strong); }

.hp-page .hp-ficon {
    flex: none;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--hp-line-strong);
    border-radius: 9px;
    color: #c6c9d0;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.hp-page a.hp-fcard:hover .hp-ficon { border-color: var(--hp-blue); color: var(--hp-logo-ai); }
.hp-page .hp-fcard b { display: block; color: var(--hp-ink); font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.hp-page .hp-fcard small { display: block; margin-top: 4px; color: var(--hp-text); font-size: 14.5px; line-height: 1.5; }
.hp-page .hp-more .hp-fcards { margin-top: 24px; }
.hp-page .hp-more-all { margin-top: 24px; }
.hp-page .hp-more-all a { display: inline-flex; align-items: center; gap: 8px; color: var(--hp-ink); font-size: 15px; font-weight: 500; }
.hp-page .hp-more-all a:hover { color: #fff; }
.hp-page .hp-hub { padding: 72px 0; }

/* Comparison links: /features, the comparison pages and the homepage table */
.hp-page .hp-vs-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }

.hp-page a.hp-vs-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border: 1px solid var(--hp-line);
    border-radius: 12px;
    background: var(--hp-card);
    color: var(--hp-ink);
    font-size: 15.5px;
    font-weight: 500;
    transition: border-color 0.15s ease;
}

.hp-page a.hp-vs-card:hover { border-color: var(--hp-line-strong); }
.hp-page a.hp-vs-card svg { flex: none; color: var(--hp-muted); }

#home .hp-vs-links {
    max-width: 1100px;
    margin: 10px auto 0;
    color: var(--hp-muted);
    font-size: 13px;
    line-height: 1.8;
    text-align: center;
}

#home .hp-vs-links span { margin-right: 4px; }
#home .hp-vs-links a { color: var(--hp-text); white-space: nowrap; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.2); text-underline-offset: 3px; }
#home .hp-vs-links a:hover { color: var(--hp-ink); }
#home .hp-vs-links a + a::before { content: "·"; display: inline-block; margin: 0 8px; color: #55585f; text-decoration: none; }

/* The comparison table on a "CROAI vs" page */
.hp-page .hp-vs { overflow: hidden; border: 1px solid var(--hp-line); border-radius: 16px; }
.hp-page .hp-vs table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.hp-page .hp-vs th,
.hp-page .hp-vs td { padding: 16px 22px; border-bottom: 1px solid var(--hp-line); color: var(--hp-text); font-size: 15px; line-height: 1.5; text-align: left; vertical-align: top; }
.hp-page .hp-vs thead th { padding-top: 22px; color: var(--hp-ink); font-size: 16px; font-weight: 500; vertical-align: bottom; }
.hp-page .hp-vs thead th:first-child { width: 30%; }
.hp-page .hp-vs tbody th { color: #d3d5dc; font-weight: 400; }
.hp-page .hp-vs tbody tr:last-child > * { border-bottom: 0; }
.hp-page .hp-vs .hp-us { background: rgba(255, 255, 255, 0.025); box-shadow: inset 1px 0 0 var(--hp-line), inset -1px 0 0 var(--hp-line); }
.hp-page .hp-vs thead .hp-us { box-shadow: inset 1px 0 0 var(--hp-line), inset -1px 0 0 var(--hp-line), inset 0 2px 0 var(--hp-blue); }
.hp-page .hp-vs .hp-us strong { color: var(--hp-ink); font-weight: 500; }
.hp-page .hp-cell-note { color: var(--hp-text); }
.hp-page .hp-dash { color: #6b6e78; }
.hp-page .hp-yes { display: inline-block; width: 16px; height: 16px; color: var(--hp-blue); vertical-align: -3px; }
.hp-page .hp-yes svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hp-page .hp-foot-note { margin-top: 16px; color: var(--hp-muted); font-size: 13px; }

/* Closing band: the homepage's, dark with a fine gray mesh */
.hp-page .hp-closing {
    padding: 112px 0;
    border-top: 1px solid var(--hp-line);
    background-color: var(--hp-closing);
    background-image:
        linear-gradient(var(--hp-mesh) 1px, transparent 1px),
        linear-gradient(90deg, var(--hp-mesh) 1px, transparent 1px);
    background-size: 32px 32px;
    background-position: center center;
}

/* One sentence (no <br>, so translations can wrap it), on two lines like the homepage's */
.hp-page .hp-closing h2 { max-width: 640px; margin: 0 auto; font-size: clamp(2.2rem, 1.4rem + 2.4vw, 3.4rem); line-height: 1.04; letter-spacing: -0.045em; text-wrap: balance; }
.hp-page .hp-closing p { max-width: 560px; margin: 18px auto 32px; color: var(--hp-text); font-size: 18px; }
.hp-page .hp-assure { display: block; margin-top: 18px; color: var(--hp-muted); font: 500 12px/1 var(--hp-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.hp-page .hp-assure span + span::before { content: "·"; margin: 0 12px; color: var(--hp-muted); }

/* ---------- Product pictures on the feature pages (example data, laid out like the app) ---------- */
.hp-page .hp-pic { overflow: hidden; padding: 48px 48px 0; border-radius: 20px; background: var(--hp-panel); }
.hp-page .fp-win { max-width: 940px; margin: 0 auto; overflow: hidden; border: 1px solid rgba(0, 0, 0, 0.08); border-radius: 12px 12px 0 0; background: #fff; color: #5b5e67; font: 400 13px/1.45 var(--hp-sans); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 24px 48px -32px rgba(20, 24, 36, 0.45); }
.hp-page .fp-narrow { max-width: 640px; }
.hp-page .fp-bar { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 14px; border-bottom: 1px solid #e5e7ec; background: #f6f7f9; }
.hp-page .fp-dots { display: flex; gap: 6px; }
.hp-page .fp-dots i { width: 10px; height: 10px; border-radius: 50%; background: #d8dae1; }
.hp-page .fp-url { flex: 0 1 340px; margin: 0 auto; overflow: hidden; padding: 5px 12px; border-radius: 6px; background: #eaebef; color: #8f929b; font: 500 11.5px/1.2 var(--hp-mono); text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.hp-page .fp-body { padding: 22px 26px 26px; }
.hp-page .fp-cols { display: grid; grid-template-columns: minmax(0, 1fr) 240px; min-height: 330px; }
.hp-page .fp-cols-left { grid-template-columns: 250px minmax(0, 1fr); }
.hp-page .fp-side { padding: 18px 16px; border-left: 1px solid #e5e7ec; background: #fafbfc; }
.hp-page .fp-side-left { border-left: 0; border-right: 1px solid #e5e7ec; }
.hp-page .fp-cap { display: block; margin: 16px 0 7px; color: #8f929b; font: 500 10.5px/1 var(--hp-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.hp-page .fp-cap:first-child { margin-top: 0; }
.hp-page .fp-h { color: #1b1c22; font-size: 16px; letter-spacing: -0.015em; }
.hp-page .fp-sub { margin: 4px 0 16px; color: #8f929b; font-size: 13px; }
.hp-page .fp-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.hp-page .fp-title h4 { color: #1b1c22; font-size: 18px; letter-spacing: -0.02em; }
.hp-page .fp-right { margin-left: auto; }
.hp-page .fp-crumbs { margin-bottom: 4px; color: #8f929b; font-size: 12px; }
.hp-page .fp-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border: 1px solid #e5e7ec; border-radius: 999px; color: #5b5e67; font: 500 11px/1.4 var(--hp-sans); white-space: nowrap; }
.hp-page .fp-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--hp-blue); }
.hp-page .fp-pill.fp-mono { font-family: var(--hp-mono); letter-spacing: 0.03em; }
.hp-page .fp-tag { display: inline-block; margin-right: 8px; padding: 1px 6px; border-radius: 4px; background: #edeef2; color: #5b5e67; font: 600 10px/1.5 var(--hp-mono); vertical-align: 1px; }
.hp-page .fp-tag.fp-ai { background: #e2e7f8; color: #33479a; }
.hp-page .fp-seg { display: inline-flex; padding: 3px; border: 1px solid #e5e7ec; border-radius: 8px; background: #fff; }
.hp-page .fp-seg span { padding: 6px 12px; border-radius: 6px; color: #5b5e67; font-weight: 500; }
.hp-page .fp-seg span.on { background: #1b1c22; color: #fff; }
.hp-page .fp-tbtn { display: inline-flex; align-items: center; padding: 7px 12px; border: 1px solid #e5e7ec; border-radius: 7px; background: #fff; color: #1b1c22; font-size: 12px; font-weight: 500; white-space: nowrap; }
.hp-page .fp-tbtn.fp-go { border-color: var(--hp-blue); background: var(--hp-blue); color: #fff; }
.hp-page .fp-row-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hp-page .fp-end { justify-content: flex-end; }
.hp-page .fp-tools { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid #e5e7ec; background: #fafbfc; }
.hp-page .fp-tools .fp-seg { margin-right: auto; }
.hp-page .fp-box { padding: 11px 12px; border: 1px solid #e5e7ec; border-radius: 8px; background: #f6f7f9; color: #1b1c22; }
.hp-page .fp-box-ai { margin-top: 10px; border-color: #b7c1ea; background: #f3f5fd; }
.hp-page .fp-var { margin-bottom: 8px; padding: 10px; border: 1px solid #e5e7ec; border-radius: 8px; background: #fff; }
.hp-page .fp-var p { color: #1b1c22; font-size: 12.5px; line-height: 1.35; }
.hp-page .fp-var em { display: inline-block; margin-top: 6px; padding: 1px 6px; border-radius: 4px; background: #edeef2; color: #5b5e67; font: 600 10px/1.5 var(--hp-mono); font-style: normal; }
.hp-page .fp-var em.fp-ai { background: #e2e7f8; color: #33479a; }
.hp-page .fp-var-on { border-color: #b7c1ea; }

/* The customer's page inside a picture (Brindlewood, an example shop at brindlewood.example) */
.hp-page .fp-site { padding: 20px 24px 24px; background: #fffdf8; }
.hp-page .fp-site-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 34px; }
.hp-page .fp-site-nav b { color: #2b2620; font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.hp-page .fp-site-nav span { display: flex; gap: 10px; }
.hp-page .fp-site-nav span i { width: 34px; height: 5px; border-radius: 4px; background: #ebe6dc; }
.hp-page .fp-site h6 { color: #2b2620; font-size: 25px; font-weight: 600; line-height: 1.12; letter-spacing: -0.03em; }
.hp-page .fp-target { position: relative; margin: 0 -10px; padding: 8px 10px; border: 1.5px dashed var(--hp-blue); border-radius: 8px; background: rgba(84, 112, 245, 0.06); }
.hp-page .fp-target small { position: absolute; top: -10px; left: 10px; padding: 1px 7px; border-radius: 4px; background: var(--hp-blue); color: #fff; font: 600 9.5px/1.6 var(--hp-mono); letter-spacing: 0.04em; }
.hp-page .fp-lines i { display: block; height: 6px; margin-top: 12px; border-radius: 4px; background: #efeae0; }
.hp-page .fp-lines i + i { width: 70%; margin-top: 8px; }
.hp-page .fp-shop { display: inline-block; margin-top: 18px; padding: 8px 14px; border-radius: 6px; background: #2b2620; color: #fff; font-size: 12px; font-weight: 500; }
.hp-page .fp-cta-mark { outline: 1.5px solid var(--hp-blue); outline-offset: 3px; }
.hp-page .fp-el { margin-bottom: 10px; padding: 10px; border: 1px solid #e5e7ec; border-radius: 8px; background: #fff; }
.hp-page .fp-el-on { border-color: #b7c1ea; }
.hp-page .fp-el small { color: #8f929b; font: 500 10px/1 var(--hp-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.hp-page .fp-el p { margin: 6px 0 10px; color: #1b1c22; font-size: 12px; line-height: 1.35; }
.hp-page .fp-elbtn { display: block; padding: 6px; border: 1px solid #e5e7ec; border-radius: 6px; color: #1b1c22; font-size: 11.5px; font-weight: 500; text-align: center; }

/* Rounds, key numbers, tables and notes, as on the Winners and Active tests pages */
.hp-page .fp-round { display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 12px; margin-top: 8px; padding: 11px 12px; border: 1px solid #e5e7ec; border-radius: 8px; color: #8f929b; }
.hp-page .fp-round b { display: block; color: #1b1c22; font-weight: 500; }
.hp-page .fp-rn { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: #edeef2; color: #5b5e67; font: 500 12px/1 var(--hp-mono); }
.hp-page .fp-done .fp-rn { background: var(--hp-blue); color: #fff; }
.hp-page .fp-live { border-color: #b7c1ea; background: #f3f5fd; }
.hp-page .fp-live .fp-rn { border: 1.5px solid var(--hp-blue); background: #fff; color: var(--hp-blue); }
.hp-page .fp-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 16px; border: 1px solid #e5e7ec; border-radius: 10px; }
.hp-page .fp-kpis div { padding: 12px 14px; }
.hp-page .fp-kpis div + div { border-left: 1px solid #e5e7ec; }
.hp-page .fp-kpis small { display: block; color: #8f929b; font: 500 10.5px/1 var(--hp-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.hp-page .fp-kpis strong { display: block; margin-top: 8px; color: #1b1c22; font-size: 21px; font-weight: 500; letter-spacing: -0.03em; }
.hp-page .fp-progress { display: block; height: 5px; margin-top: 8px; overflow: hidden; border-radius: 9px; background: #eaebef; }
.hp-page .fp-progress i { display: block; height: 100%; border-radius: 9px; background: var(--hp-blue); }
.hp-page .fp-table { width: 100%; border-collapse: collapse; }
.hp-page .fp-table th { padding: 0 10px 8px; color: #8f929b; font: 500 10.5px/1 var(--hp-mono); letter-spacing: 0.06em; text-align: left; text-transform: uppercase; }
.hp-page .fp-table td { padding: 11px 10px; border-top: 1px solid #e5e7ec; color: #1b1c22; vertical-align: middle; }
.hp-page .fp-table td small { display: block; color: #8f929b; font-size: 11.5px; }
.hp-page .fp-table .fp-r { text-align: right; }
.hp-page .fp-table tr.fp-win-row td { background: #e7ebf9; }
.hp-page .fp-table tr.fp-win-row td:first-child { box-shadow: inset 2px 0 0 var(--hp-blue); }
.hp-page .fp-note { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 14px; border: 1px solid #b7c1ea; border-radius: 10px; background: #f3f5fd; color: #5b5e67; }
.hp-page .fp-note b { display: block; color: #1b1c22; font-weight: 500; }
.hp-page .fp-ok { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--hp-blue); }
.hp-page .fp-ok svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hp-page .fp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hp-page .fp-chips span { padding: 5px 10px; border: 1px solid #e5e7ec; border-radius: 6px; color: #5b5e67; font-size: 12px; font-weight: 500; }
.hp-page .fp-code { padding: 16px 18px; border: 1px solid #e5e7ec; border-radius: 10px; background: #f6f7f9; color: #3a3c43; font: 500 12.5px/1.75 var(--hp-mono); overflow-wrap: anywhere; }
.hp-page .fp-code .fp-k { color: #6b4fa0; }
.hp-page .fp-code .fp-s { color: #33479a; }
.hp-page .fp-code .fp-c { color: #8f929b; }
.hp-page .fp-field { display: flex; align-items: center; gap: 12px; overflow: hidden; padding-right: 12px; border: 1px solid #e5e7ec; border-radius: 8px; color: #1b1c22; }
.hp-page .fp-field span { padding: 10px 12px; border-right: 1px solid #e5e7ec; background: #f6f7f9; color: #8f929b; }
.hp-page .fp-field-on { border-color: var(--hp-blue); }

/* The app with its left menu (Active tests and Winners) */
.hp-page .fp-app { display: grid; grid-template-columns: 180px minmax(0, 1fr); }
.hp-page .fp-menu { padding: 16px 12px; border-right: 1px solid #e5e7ec; background: #fafbfc; }
.hp-page .fp-mi { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 6px; color: #5b5e67; font-weight: 500; }
.hp-page .fp-mi svg { width: 15px; height: 15px; opacity: 0.7; }
.hp-page .fp-mi-on { background: #edeef2; color: #1b1c22; }

/* The test preview window (Compare versions) */
.hp-page .fp-mhead { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid #e5e7ec; }
.hp-page .fp-mhead > div { margin-right: auto; }
.hp-page .fp-mhead .fp-sub { margin: 2px 0 0; }
.hp-page .fp-where { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; color: #1b1c22; font-weight: 500; }
.hp-page .fp-where span { padding: 3px 8px; border: 1px solid #e5e7ec; border-radius: 6px; color: #5b5e67; font-size: 11px; }
.hp-page .fp-ver { display: flex; gap: 10px; margin-bottom: 8px; padding: 9px 10px; border: 1px solid #e5e7ec; border-radius: 8px; background: #fff; color: #1b1c22; font-size: 12.5px; line-height: 1.35; }
.hp-page .fp-ver b { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; background: #edeef2; font: 600 11px/1 var(--hp-mono); }
.hp-page .fp-ver-on { border-color: #b7c1ea; background: #f3f5fd; }
.hp-page .fp-ver-on b { background: var(--hp-blue); color: #fff; }

/* A running test's Pages card, with its Control and Variant rows (1.0.50), next to the page a row opens (Preview links) */
.hp-page .fp-pair { display: grid; grid-template-columns: 330px minmax(0, 1fr); align-items: end; gap: 28px; max-width: 980px; margin: 0 auto; }
.hp-page .fp-thumb { position: relative; height: 96px; padding: 16px 18px; border-bottom: 1px solid #e5e7ec; background: #fffdf8; }
.hp-page .fp-thumb-lines i { display: block; width: 60%; height: 7px; margin-bottom: 9px; border-radius: 4px; background: #ebe6dc; }
.hp-page .fp-thumb-lines i:first-child { width: 50%; height: 12px; background: #d9d2c4; }
.hp-page .fp-thumb-lines i:last-child { width: 35%; }
.hp-page .fp-thumb-pill { position: absolute; top: 12px; right: 12px; background: #fff; }
.hp-page .fp-test { margin-top: 4px; padding: 12px; border: 1px solid #e5e7ec; border-radius: 10px; }
.hp-page .fp-test-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; color: #1b1c22; font-weight: 500; }
.hp-page .fp-test-head span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--hp-blue); vertical-align: 2px; }
.hp-page .fp-test-head em { color: #8f929b; font-size: 12px; font-style: normal; }
.hp-page .fp-vrow { display: grid; grid-template-columns: 64px minmax(0, 1fr) 14px; align-items: center; gap: 8px; margin-bottom: 8px; padding: 9px 10px; border: 1px solid #e5e7ec; border-radius: 8px; color: #1b1c22; font-size: 12.5px; line-height: 1.35; }
.hp-page .fp-vrow b { color: #8f929b; font: 500 10px/1 var(--hp-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.hp-page .fp-vrow-on { border-color: var(--hp-blue); }
.hp-page .fp-vrow-on b { color: var(--hp-blue); }
.hp-page .fp-vrow svg,
.hp-page .fp-compare svg { width: 14px; height: 14px; fill: none; stroke: #8f929b; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hp-page .fp-compare { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px; border: 1px solid #e5e7ec; border-radius: 8px; color: #1b1c22; font-size: 12.5px; font-weight: 500; }
.hp-page .fp-compare svg { stroke: #1b1c22; }
.hp-page .fp-page-win { margin: 0; }

/* Visitors split between the versions (A/B testing) */
.hp-page .fp-flow { display: grid; grid-template-columns: auto 120px minmax(0, 1fr); align-items: center; max-width: 880px; margin: 0 auto; padding-bottom: 48px; }
.hp-page .fp-src { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid rgba(0, 0, 0, 0.08); border-radius: 10px; background: #fff; color: #1b1c22; font-weight: 500; }
.hp-page .fp-src svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.hp-page .fp-lanes { width: 120px; height: 160px; fill: none; stroke: #b3b6bf; stroke-width: 1.5; }
.hp-page .fp-dests { display: grid; gap: 40px; }
.hp-page .fp-dest { padding: 14px 16px; border: 1px solid rgba(0, 0, 0, 0.08); border-radius: 10px; background: #fff; color: #1b1c22; }
.hp-page .fp-dest p { display: inline; font-size: 15px; font-weight: 500; }
.hp-page .fp-dest small { display: block; margin-top: 4px; color: #8f929b; font-size: 12px; }

/* The Team page */
.hp-page .fp-person { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid #e5e7ec; }
.hp-page .fp-person i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #edeef2; color: #1b1c22; font: 600 11.5px/1 var(--hp-sans); font-style: normal; }
.hp-page .fp-person b { display: block; color: #1b1c22; font-weight: 500; }
.hp-page .fp-person em { padding: 3px 9px; border: 1px solid #e5e7ec; border-radius: 999px; color: #5b5e67; font: 500 11px/1.4 var(--hp-sans); font-style: normal; }

/* ---------- Phones and small tablets ---------- */
@media (max-width: 900px) {
    .hp-page .hp-assure span { display: block; }
    .hp-page .hp-assure span + span { margin-top: 10px; }
    .hp-page .hp-assure span + span::before { content: none; }
    .hp-page .hp-page-hero { padding: 116px 0 44px; }
    .hp-page .hp-page-hero .hp-lead { font-size: 17px; }
    .hp-page .hp-cta { flex-direction: column; align-items: stretch; max-width: 360px; }
    .hp-page .hp-section { padding: 72px 0; }
    .hp-page .hp-hub { padding: 56px 0; }
    .hp-page .hp-points,
    .hp-page .hp-fcards,
    .hp-page .hp-vs-cards { grid-template-columns: 1fr; }
    .hp-page .hp-pic { padding: 22px 14px 0; border-radius: 16px; }
}

/* ---------- The pictures fit the width they get (1.0.53) ----------
   A container query on .hp-pic, so the same rules serve phones and the narrow
   right-hand column of the hero on wide screens (as the homepage's hero picture
   leaves out what phones leave out). Up to 640px wide: one column, without the
   side panels and the menu. Up to 460px (phones): also fewer numbers and buttons. */
.hp-page .hp-pic { container: fp / inline-size; }

@container fp (max-width: 640px) {
    .hp-page .fp-cols,
    .hp-page .fp-cols-left,
    .hp-page .fp-app,
    .hp-page .fp-pair { grid-template-columns: minmax(0, 1fr); }
    .hp-page .fp-side,
    .hp-page .fp-menu,
    .hp-page .fp-hm,
    .hp-page .fp-page-win { display: none; }
    .hp-page .fp-side-left { display: block; border-right: 0; border-bottom: 1px solid #e5e7ec; }
    .hp-page .fp-cols { min-height: 0; }
    .hp-page .fp-body { padding: 18px; }
    .hp-page .fp-kpis { grid-template-columns: 1fr 1fr; }
    .hp-page .fp-kpis div:nth-child(3) { display: none; }
    .hp-page .fp-title .fp-right { display: none; }
    .hp-page .fp-site h6 { font-size: 22px; }
    .hp-page .fp-flow { grid-template-columns: auto 64px minmax(0, 1fr); padding-bottom: 32px; }
    .hp-page .fp-lanes { width: 64px; }
    .hp-page .fp-dests { gap: 28px; }
    .hp-page .fp-dest p { font-size: 14px; }
}

@container fp (max-width: 460px) {
    .hp-page .fp-body { padding: 16px; }
    .hp-page .fp-kpis strong { font-size: 18px; }
    .hp-page .fp-tools .fp-tbtn:not(.fp-go) { display: none; }
    .hp-page .fp-site h6 { font-size: 21px; }
    .hp-page .fp-flow { grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 12px; padding: 0 0 22px; }
    .hp-page .fp-lanes { display: none; }
    .hp-page .fp-dests { gap: 10px; width: 100%; }
    .hp-page .fp-field span { display: none; }
    .hp-page .fp-field { padding: 10px 12px; }
}

/* ---------- Feature pages: the picture beside the hero text (1.0.53) ----------
   Scott: the image should be on the right hand side "just like it is on the
   main page's hero image ... I don't want it below it". As on the homepage
   (1.0.42): from 1200px wide the text is on the left (at least 520px) and the
   picture on the right (at most 540px); narrower, the hero stacks: text,
   buttons, then the picture. The comparison pages and /features have no picture. */
.hp-page .hp-page-grid .hp-pic { margin-top: 48px; }

@media (max-width: 900px) {
    .hp-page .hp-page-grid .hp-pic { margin-top: 36px; }
}

@media (min-width: 1200px) {
    .hp-page .hp-page-grid { display: grid; grid-template-columns: minmax(520px, 1fr) minmax(0, 540px); align-items: center; column-gap: 64px; }
    .hp-page .hp-page-grid .hp-pic { margin-top: 0; padding: 32px 28px 0; }
    .hp-page .hp-page-grid h1 { font-size: clamp(2.6rem, 1rem + 2.6vw, 3.6rem); }
    .hp-page .hp-page-grid .hp-lead { font-size: 18px; }
}

/* Phones: each row of a comparison table becomes a small card */
@media (max-width: 640px) {
    .hp-page .hp-vs { border-radius: 14px; }
    .hp-page .hp-vs table,
    .hp-page .hp-vs tbody { display: block; }
    .hp-page .hp-vs thead { display: none; }
    .hp-page .hp-vs tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--hp-line); }
    .hp-page .hp-vs tbody tr:last-child { border-bottom: 0; }
    .hp-page .hp-vs th,
    .hp-page .hp-vs td { padding: 12px 14px; border-bottom: 0; font-size: 14px; }
    .hp-page .hp-vs tbody th { grid-column: 1 / -1; padding-bottom: 0; color: var(--hp-ink); font-weight: 500; }
    .hp-page .hp-vs td::before { content: attr(data-label); display: block; margin-bottom: 4px; color: var(--hp-muted); font: 500 10.5px/1.2 var(--hp-mono); letter-spacing: 0.08em; text-transform: uppercase; }
    .hp-page .hp-vs .hp-us { box-shadow: none; }
    .hp-page .hp-table td:first-child { width: 40%; }
    .hp-page .hp-table th,
    .hp-page .hp-table td { padding: 12px 14px; font-size: 14px; }
}
