/*
 * Homepage v2 (2026-10-25). Loaded after service-v2.css by template-parts/home-v2.php only;
 * it adds the parts the home page has and the service pages don't. Every rule sits under .hv2.
 */

/* H1: the brand name reads as a small label, the promise as the headline. */
.hv2 .hv2-h1 { margin-top: 0; }
.hv2 .hv2-h1 .v2-h1-main {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 999px; background: #ffffff; border: 1px solid var(--v2-line);
    box-shadow: 0 4px 14px rgba(22, 20, 43, .06);
    font-size: 14px; line-height: 1.2; font-weight: 800; letter-spacing: .02em; color: #4f3fc9;
}
.hv2 .hv2-h1 .v2-h1-main::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%;
    background: linear-gradient(135deg, var(--v2-brand-a), var(--v2-brand-b));
}
.hv2 .hv2-h1 .v2-h1-tag {
    margin-top: 16px; font-size: 1em; line-height: 1.08; letter-spacing: -.025em;
    background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--v2-ink);
}

/* Under the box: the sites it takes. Pasting a link lights up its site, so people know the
   link is right before the download starts. */
.hv2-detect { margin-top: 12px; }
.hv2-detect-text {
    display: flex; align-items: center; gap: 6px; min-height: 22px;
    font-size: 13.5px; line-height: 1.35; font-weight: 600; color: var(--v2-muted);
}
.hv2-rail { display: grid; grid-template-columns: repeat(12, minmax(0, 32px)); gap: 5px; margin-top: 8px; }
.hv2-rail li {
    display: grid; place-items: center; aspect-ratio: 1; border-radius: 9px; background: var(--v2-tint);
    transition: opacity .2s ease, filter .2s ease, transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.hv2-rail .v2-logo { width: 62%; height: 62%; }
.hv2-detect.is-found .hv2-detect-text { color: #15803d; }
.hv2-detect.is-found .hv2-detect-text::before {
    content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%;
    background: var(--v2-ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3L15 7' stroke='%23fff' stroke-width='2.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.hv2-detect.is-found .hv2-rail li { opacity: .3; filter: grayscale(1); }
.hv2-detect.is-found .hv2-rail li.is-on {
    opacity: 1; filter: none; background: #ffffff; transform: scale(1.12);
    box-shadow: 0 0 0 2px var(--v2-ok), 0 6px 14px -4px rgba(22, 20, 43, .3);
}
.hv2-detect.is-unknown .hv2-detect-text { color: #b42318; }

/* Hero photo: the four sites people use most, as one stack. */
.hv2-float-stack { top: -14px; inset-inline-end: 4px; padding: 7px 10px; gap: 0; border-radius: 999px; }
.hv2-float-stack > span {
    display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
    background: var(--v2-tint); box-shadow: 0 0 0 2px #ffffff;
}
.hv2-float-stack > span + span { margin-inline-start: -6px; }

/* Platform index */
.hv2-intro { margin-top: 10px; max-width: 40em; color: var(--v2-body); font-size: 16px; }
.hv2-group {
    margin-top: 28px; font-size: 12.5px; line-height: 1.3; font-weight: 800; letter-spacing: .08em;
    text-transform: uppercase; color: var(--v2-muted);
}
.hv2-grid { display: grid; gap: 10px; margin-top: 12px; }
.hv2-card {
    display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; align-items: start; height: 100%;
    padding: 12px 14px; border-radius: 16px; border: 1px solid var(--v2-line); background: #ffffff;
    text-decoration: none; color: var(--v2-ink);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.hv2-card:hover { border-color: #cfcaea; box-shadow: 0 10px 22px -12px rgba(22, 20, 43, .25); transform: translateY(-1px); }
.hv2-card-logo { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--v2-tint); }
.hv2 .hv2-card h3 { font-size: 15.5px; line-height: 1.3; }
.hv2-card-text { display: block; margin-top: 2px; font-size: 14px; line-height: 1.45; color: var(--v2-body); }
.hv2-tag {
    grid-column: 2; justify-self: start; margin-top: 6px; padding: 3px 9px; border-radius: 999px;
    background: #efedfa; color: #4f3fc9; font-size: 11.5px; line-height: 1.4; font-weight: 800; letter-spacing: .03em;
}

/* Steps sit on the tinted band here, so the device tabs take a white card. */
.v2-tint .hv2-devices { background: #ffffff; border: 1px solid var(--v2-line); }

.hv2-why { display: grid; gap: 12px; margin-top: 22px; }
.hv2-why li {
    position: relative; padding: 22px 20px 20px; border-radius: 16px; border: 1px solid var(--v2-line); background: #ffffff;
}
.hv2-why li::before {
    content: ""; position: absolute; top: 0; inset-inline-start: 20px; width: 36px; height: 4px; border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, var(--v2-brand-a), var(--v2-brand-b));
}
.hv2 .hv2-why h3 { font-size: 16.5px; }
.hv2-why p { margin-top: 6px; color: var(--v2-body); font-size: 15px; }
/* .v2 a sets color: inherit at two classes of weight, so these links name .hv2 too. */
.hv2 .hv2-more {
    display: inline-block; margin-top: 10px; color: #4f3fc9; font-size: 14.5px; font-weight: 700; text-decoration: none;
}
.hv2 .hv2-more:hover { text-decoration: underline; text-underline-offset: 3px; }

.hv2-about { display: grid; gap: 12px; margin-top: 22px; }
.hv2-about-item { padding: 18px 20px; border-radius: 16px; border: 1px solid var(--v2-line); background: #ffffff; }
.hv2 .hv2-about-item h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.hv2-about-logo { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--v2-tint); flex: none; }
.hv2-about-item p { margin-top: 8px; color: var(--v2-body); font-size: 15.5px; }
.hv2-glance { margin-top: 8px; }
.hv2-glance > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--v2-line); }
.hv2-glance dt { font-size: 14px; font-weight: 800; color: var(--v2-ink); }
.hv2-glance dd { margin: 0; font-size: 14.5px; color: var(--v2-body); }
.hv2 .v2-side .hv2-glance + h3 { margin-top: 22px; }

/* Closing band: one way back to the box for people who read to the end. */
.hv2-end {
    padding: 56px 0 64px; text-align: center; color: #ffffff;
    background: linear-gradient(135deg, var(--v2-brand-a), var(--v2-brand-b));
}
.hv2 .hv2-end h2 { color: #ffffff; }
.hv2-end p { margin-top: 8px; color: rgba(255, 255, 255, .88); font-size: 16.5px; }
.hv2 .hv2-end-btn {
    display: inline-flex; align-items: center; justify-content: center; height: 52px; margin-top: 22px; padding: 0 30px;
    border-radius: 14px; background: #ffffff; color: #3b2fa8; font-weight: 800; font-size: 16px; text-decoration: none;
    box-shadow: 0 14px 30px -12px rgba(22, 20, 43, .45); transition: transform .15s ease, box-shadow .15s ease;
}
.hv2 .hv2-end-btn:hover { transform: translateY(-1px); box-shadow: 0 18px 34px -12px rgba(22, 20, 43, .5); }
.hv2 .hv2-end :focus-visible { outline-color: #ffffff; }

@media (min-width: 640px) {
    .hv2-grid, .hv2-why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hv2-card { padding: 14px 16px; }
}
@media (min-width: 960px) {
    .hv2-grid, .hv2-why { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hv2-float-stack { inset-inline-end: -14px; }
    .hv2-end { padding: 72px 0 80px; }
}
