/* Final homepage layer. Kept separate so auth and the legacy /auth page stay untouched. */
:root {
    --home-ink: #172033;
    --home-muted: #667085;
    --home-soft: #f8fafc;
    --home-line: #e2e8f0;
    --home-surface: #ffffff;
    --home-blue: #2f6fed;
    --home-blue-dark: #245ac7;
    --home-green: #166534;
    --home-green-soft: #ecfdf3;
    --home-shadow: 0 4px 16px rgba(0, 0, 0, .04);
}

html,
html.home-popup-open,
html:has(body.hx-home-body) {
    height: 100%;
    overflow: hidden !important;
}

.hx-home-body {
    min-width: 320px;
    height: 100%;
    min-height: 100%;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: auto;
    touch-action: pan-y;
    background: #fff;
    color: var(--home-ink);
    font-family: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    letter-spacing: 0;
}

.hx-home-body *,
.hx-home-body *::before,
.hx-home-body *::after { box-sizing: border-box; }

/* The homepage body is the only page-level scroll container. */
body.hx-home-body,
body.hx-home-body.home-popup-open,
body.hx-home-body.hx-menu-open {
    position: static;
    top: auto;
    right: auto;
    left: auto;
    width: auto;
    height: 100% !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: auto;
}

.hx-home-body button,
.hx-home-body input,
.hx-home-body select { font: inherit; letter-spacing: 0; }

.hx-home-grain,
.hx-home-hero::before,
.hx-home-hero::after,
.hx-home-hero-copy::before,
.hx-home-hero-panel::before,
.hx-home-product::before,
.hx-home-process::before,
.hx-home-cta::before,
.hx-home-cta::after { display: none !important; }

.hx-home-header {
    min-height: 68px;
    padding: 0 max(60px, calc((100vw - 1680px) / 2));
    border-bottom: 1px solid var(--home-line);
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 1px 3px rgba(15, 23, 42, .02);
    backdrop-filter: none;
}

.hx-home-brand { gap: 10px; min-width: 0; }
.hx-home-brand img,
.hx-home-mark {
    width: 36px;
    height: 36px;
    border: 1px solid var(--home-line);
    border-radius: 8px !important;
    background: var(--home-soft);
    color: var(--home-blue);
    font: 700 12px/1 "Inter", sans-serif;
}
.hx-home-brand:hover img,
.hx-home-brand:hover .hx-home-mark { transform: none; border-color: var(--home-line); }
.hx-home-brand strong {
    color: var(--home-ink);
    font: 650 15px/1.2 "Inter", "Noto Sans SC", sans-serif;
}
.hx-home-brand small { margin-top: 2px; color: var(--home-muted); font-size: 11px; }

.hx-home-nav { gap: 28px; color: var(--home-muted); font-size: 13px; }
.hx-home-nav a {
    min-height: 40px;
    color: var(--home-muted);
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
.hx-home-nav a::after { display: none; }
.hx-home-nav a:hover,
.hx-home-nav a.is-active { color: var(--home-blue); }
.hx-home-nav-primary,
.hx-home-nav-primary:hover {
    min-height: 36px !important;
    padding: 0 14px !important;
    border: 1px solid var(--home-blue) !important;
    border-radius: 8px !important;
    background: var(--home-blue) !important;
    color: #fff !important;
    transform: none !important;
}
.hx-home-nav-primary:hover { background: var(--home-blue-dark) !important; border-color: var(--home-blue-dark) !important; }

.hx-home-section-width,
.hx-home-hero,
.hx-home-footer { width: min(1680px, calc(100% - 120px)); }

.hx-home-hero {
    display: grid;
    grid-template-columns: minmax(0, 55fr) minmax(390px, 45fr);
    gap: clamp(44px, 5vw, 88px);
    align-items: center;
    min-height: 560px;
    padding-top: 64px;
    padding-bottom: 64px;
}

.hx-home-hero-copy { max-width: 720px; padding-right: 20px; }
.hx-home-hero h1 {
    max-width: 680px;
    margin: 0 0 18px;
    color: var(--home-ink);
    font: 600 clamp(42px, 4vw, 60px)/1.08 "FZKai-Z03", "STKaiti", "KaiTi", "Songti SC", serif;
    letter-spacing: .01em;
}
.hx-home-title-brand,
.hx-home-title-subject { display: block; }
.hx-home-title-brand {
    color: #18243b;
    font-family: "Baskerville", "Iowan Old Style", Georgia, "Times New Roman", serif;
    font-size: .94em;
    font-weight: 700;
    letter-spacing: -.025em;
}
.hx-home-title-subject {
    margin-top: 3px;
    color: var(--home-blue);
    font-family: "FZKai-Z03", "STKaiti", "KaiTi", "Kaiti SC", "Songti SC", serif;
    font-size: .86em;
    font-weight: 600;
    letter-spacing: .06em;
}
.hx-home-lead {
    max-width: 560px;
    margin: 0;
    color: var(--home-muted);
    font-size: 16px;
    line-height: 1.7;
}
.hx-home-actions { gap: 10px; margin-top: 28px; }
.hx-home-button {
    min-height: 42px;
    padding: 0 17px;
    border-radius: 8px !important;
    font-size: 13px;
    font-weight: 600;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.hx-home-button:hover { transform: translateY(-1px); }
.hx-home-button-primary,
.hx-home-button-primary:hover {
    background: var(--home-blue);
    color: #fff;
    box-shadow: none;
}
.hx-home-button-primary:hover { background: var(--home-blue-dark); }
.hx-home-button-secondary,
.hx-home-button-secondary:hover {
    border-color: var(--home-line);
    background: var(--home-surface);
    color: var(--home-ink);
}
.hx-home-button-secondary:hover { border-color: #cbd5e1; background: var(--home-soft); }
.hx-home-trust {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    gap: 18px;
    margin-top: 30px;
    color: var(--home-muted);
    font-size: 12px;
}
.hx-home-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hx-home-trust span:hover { color: var(--home-muted); transform: none; }
.hx-home-trust svg { width: 16px; height: 16px; color: var(--home-blue); }
.hx-home-guide {
    max-width: 620px;
    margin-top: 28px;
    border-top: 1px solid var(--home-line);
    border-bottom: 1px solid var(--home-line);
}
.hx-home-guide > div {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 0;
}
.hx-home-guide > div + div { border-top: 1px solid var(--home-line); }
.hx-home-guide i { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 2px; color: var(--home-blue); }
.hx-home-guide p { display: grid; gap: 3px; margin: 0; }
.hx-home-guide strong { color: var(--home-ink); font-size: 12px; font-weight: 650; }
.hx-home-guide span { color: var(--home-muted); font-size: 11px; line-height: 1.5; }
.hx-home-route-note {
    display: flex;
    max-width: 590px;
    align-items: flex-start;
    gap: 11px;
    margin-top: 26px;
    color: var(--home-muted);
    font-size: 12px;
    line-height: 1.7;
}
.hx-home-route-note p { margin: 0; }
.hx-home-route-line { width: 24px; height: 1px; flex: 0 0 24px; margin-top: 10px; background: #b9c9e4; }
.hx-home-quick-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 610px;
    margin-top: 20px;
    border-top: 1px solid var(--home-line);
    border-bottom: 1px solid var(--home-line);
}
.hx-home-quick-links a {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
    min-height: 60px;
    padding: 10px 12px 10px 0;
    color: var(--home-ink);
    transition: color .2s ease, background-color .2s ease;
}
.hx-home-quick-links a + a { padding-left: 12px; border-left: 1px solid var(--home-line); }
.hx-home-quick-links a:hover { color: var(--home-blue); }
.hx-home-quick-links i { width: 18px; height: 18px; flex: 0 0 auto; color: var(--home-blue); }
.hx-home-quick-links span { display: grid; min-width: 0; gap: 2px; }
.hx-home-quick-links strong { font-size: 12px; font-weight: 650; }
.hx-home-quick-links small { overflow: hidden; color: var(--home-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.hx-home-help-note {
    max-width: 590px;
    margin: 14px 0 0;
    color: #7a879a;
    font-size: 11px;
    line-height: 1.6;
}

.hx-home-hero-panel {
    width: 100%;
    padding: 30px 32px;
    border: 1px solid var(--home-line);
    border-radius: 12px !important;
    background: var(--home-surface);
    box-shadow: var(--home-shadow);
    backdrop-filter: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.hx-home-hero-panel:hover { border-color: #cbd5e1; box-shadow: 0 6px 20px rgba(0, 0, 0, .05); transform: none; }
.hx-home-panel-heading { display: block; }
.hx-home-panel-heading h2 {
    margin: 0;
    color: var(--home-ink);
    font: 650 23px/1.3 "Noto Sans SC", "PingFang SC", sans-serif;
}
.hx-home-panel-intro { margin: 10px 0 22px; color: var(--home-muted); font-size: 13px; line-height: 1.65; }
.hx-home-form { gap: 14px; }
.hx-home-form label { gap: 6px; color: var(--home-ink); font-size: 12px; font-weight: 600; }
.hx-home-form label small { color: var(--home-muted); font-size: 11px; font-weight: 400; }
.hx-home-form input,
.hx-home-form select {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--home-line);
    border-radius: 8px !important;
    outline: 0;
    background: var(--home-soft);
    color: var(--home-ink);
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.hx-home-form input:hover,
.hx-home-form select:hover { border-color: #cbd5e1; }
.hx-home-form input:focus,
.hx-home-form select:focus {
    border-color: var(--home-blue);
    background: var(--home-soft);
    box-shadow: 0 0 0 3px rgba(47, 111, 237, .1);
}
.hx-home-form input::placeholder { color: #98a2b3; }
.hx-home-submit {
    min-height: 42px;
    margin-top: 3px;
    border: 0;
    border-radius: 8px !important;
    background: var(--home-blue);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    transition: background-color .2s ease, transform .2s ease, opacity .2s ease;
}
.hx-home-submit:hover { background: var(--home-blue-dark); box-shadow: none; transform: translateY(-1px); }
.hx-home-submit:active { transform: translateY(0); }
.hx-home-submit:disabled { opacity: .6; transform: none; }
.hx-home-submit[aria-busy="true"] { cursor: wait; opacity: .78; }
.hx-home-submit[aria-busy="true"]::before {
    width: 13px;
    height: 13px;
    border: 2px solid rgba(255, 255, 255, .42);
    border-top-color: #fff;
    border-radius: 50%;
    content: "";
    animation: hx-submit-spin .65s linear infinite;
}
.hx-home-submit[aria-busy="true"] svg { display: none; }
.hx-home-result { margin-top: 14px; border-radius: 8px !important; }
.hx-home-result[hidden] { display: none !important; }
.hx-home-tip { margin-top: 14px; color: #98a2b3; font-size: 11px; }
.hx-home-panel-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 17px;
    padding-top: 15px;
    border-top: 1px solid var(--home-line);
    color: var(--home-muted);
    font-size: 11px;
}
.hx-home-panel-foot a { display: inline-flex; align-items: center; gap: 5px; color: var(--home-blue); font-weight: 600; white-space: nowrap; }
.hx-home-panel-foot a:hover { color: var(--home-blue-dark); }
.hx-home-panel-foot svg { width: 13px; height: 13px; }

.hx-home-entry-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--home-line);
    border-bottom: 1px solid var(--home-line);
}
.hx-home-entry-strip > div {
    display: flex;
    min-height: 74px;
    align-items: center;
    gap: 12px;
    padding: 12px 22px;
}
.hx-home-entry-strip > div + div { border-left: 1px solid var(--home-line); }
.hx-home-entry-strip > div > span {
    display: grid;
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--home-blue);
}
.hx-home-entry-strip p { display: grid; gap: 3px; margin: 0; }
.hx-home-entry-strip strong { color: var(--home-ink); font-size: 12px; font-weight: 650; }
.hx-home-entry-strip small { color: var(--home-muted); font-size: 11px; }

/* The third-party player stays an independent floating control. */
xf-music-player {
    position: relative;
    z-index: 20;
    pointer-events: auto;
}

.hx-home-section { padding-top: 92px; scroll-margin-top: 88px; }
.hx-home-section-heading { align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.hx-home-section-heading h2,
.hx-home-process h2,
.hx-home-cta h2,
.public-friends-head h2 {
    margin-top: 8px;
    color: var(--home-ink);
    font: 650 32px/1.25 "Noto Sans SC", "PingFang SC", sans-serif;
    letter-spacing: -.01em;
}
.hx-home-label { color: var(--home-blue); font-size: 11px; font-weight: 650; }
.hx-home-section-heading > p,
.hx-home-heading-copy,
.hx-home-process-copy > p:not(.hx-home-label) { color: var(--home-muted); font-size: 13px; line-height: 1.7; }
.hx-home-section-heading > p { max-width: 330px; margin: 0; }
.hx-home-heading-copy { margin: 8px 0 0 !important; }

.hx-home-feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hx-home-feature-grid article {
    min-height: 190px;
    padding: 22px;
    border: 1px solid var(--home-line) !important;
    border-radius: 12px !important;
    background: var(--home-soft) !important;
    box-shadow: var(--home-shadow);
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.hx-home-feature-grid article:nth-child(even) { transform: none; }
.hx-home-feature-grid article:hover {
    border-color: #cbd5e1 !important;
    background: var(--home-surface) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .05);
    transform: translateY(-2px);
}
.hx-home-feature-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 22px;
    border: 1px solid #dbe4f0;
    border-radius: 8px !important;
    background: #eef4ff;
    color: var(--home-blue);
}
.hx-home-feature-icon svg { width: 18px; height: 18px; }
.hx-home-feature-grid h3 { margin: 0; color: var(--home-ink); font: 650 16px/1.4 "Noto Sans SC", sans-serif; }
.hx-home-feature-grid article > span:last-child { margin-top: 8px; color: var(--home-muted); font-size: 12px; line-height: 1.5; }

.hx-home-products-heading { align-items: flex-end; }
.hx-home-product-tools { gap: 18px; }
.hx-home-search {
    width: 210px;
    height: 40px;
    border: 1px solid var(--home-line);
    border-radius: 8px !important;
    background: var(--home-soft);
    box-shadow: none;
}
.hx-home-search:focus-within { border-color: var(--home-blue); box-shadow: 0 0 0 3px rgba(47, 111, 237, .1); transform: none; }
.hx-home-search input { color: var(--home-ink); }
.hx-home-search input::placeholder { color: #98a2b3; }
.hx-home-text-link { color: var(--home-blue); font-size: 12px; font-weight: 600; transition: color .2s ease; }
.hx-home-text-link:hover { color: var(--home-blue-dark); }
.hx-home-text-link svg { width: 14px; height: 14px; }
.hx-home-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hx-home-product {
    display: flex;
    min-height: 0;
    padding: 24px;
    flex-direction: column;
    border: 1px solid var(--home-line) !important;
    border-radius: 12px !important;
    background: var(--home-surface) !important;
    box-shadow: var(--home-shadow);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.hx-home-product:hover { border-color: var(--home-blue) !important; box-shadow: 0 6px 20px rgba(47, 111, 237, .08); transform: translateY(-2px); }
.hx-home-product-top { min-height: 22px; }
.hx-home-product-status {
    display: inline-flex;
    padding: 4px 7px;
    border-radius: 4px !important;
    background: var(--home-green-soft);
    color: var(--home-green);
    font-size: 11px;
    font-weight: 600;
}
.hx-home-product-status b { display: none; }
.hx-home-product h3 { margin: 15px 0 0; color: var(--home-ink); font: 650 20px/1.35 "Noto Sans SC", sans-serif; }
.hx-home-product > p:not(.hx-home-product-plan) {
    min-height: 0;
    margin: 8px 0 12px;
    color: var(--home-muted);
    font-size: 13px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.hx-home-product-version { color: var(--home-muted); font-size: 11px; }
.hx-home-product-price { display: flex; align-items: baseline; gap: 2px; margin-top: 13px; color: var(--home-blue); }
.hx-home-product-price > span { font-size: 15px; font-weight: 650; }
.hx-home-product-price strong { font-size: 24px; line-height: 1; }
.hx-home-product-price small { margin-left: 3px; color: var(--home-muted); font-size: 11px; }
.hx-home-product-price-pending strong { color: var(--home-muted); font-size: 17px; }
.hx-home-product-plan { margin: 8px 0 18px; color: var(--home-muted); font-size: 11px; line-height: 1.5; }
.hx-home-product-detail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    margin-top: auto;
    border: 1px solid var(--home-line);
    border-radius: 8px;
    color: var(--home-ink);
    font-size: 12px;
    font-weight: 600;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.hx-home-product-detail:hover { border-color: var(--home-blue); background: #f5f8ff; color: var(--home-blue); }
.hx-home-product-detail svg { width: 14px; height: 14px; }
.hx-home-empty { border-radius: 12px !important; box-shadow: var(--home-shadow); }
.hx-home-filter-empty:not([hidden]) { border-color: #dbe4f0; border-radius: 8px; background: #f5f8ff; color: var(--home-muted); }

.hx-home-process {
    display: block;
    margin-top: 92px;
    padding-top: 34px;
    padding-bottom: 34px;
    border-top: 1px solid var(--home-line);
    border-bottom: 1px solid var(--home-line);
    background: var(--home-soft) !important;
    box-shadow: 0 0 0 100vmax var(--home-soft);
    clip-path: inset(0 -100vmax);
}
.hx-home-process-copy { display: flex; align-items: baseline; gap: 16px; }
.hx-home-process-copy .hx-home-label { flex: 0 0 auto; }
.hx-home-process h2 { margin: 0; font-size: 25px; }
.hx-home-process-copy > p:not(.hx-home-label) { margin: 0 0 0 auto; }
.hx-home-process-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 30px;
    border-top: 0;
}
.hx-home-process-list article {
    position: relative;
    display: block;
    min-height: 100px;
    padding: 0 28px 0 0;
    border: 0;
    background: transparent;
}
.hx-home-process-list article + article { padding-left: 28px; border-left: 1px solid var(--home-line); }
.hx-home-process-list article:hover { padding-left: 28px; background: transparent; }
.hx-home-process-list article:first-child:hover { padding-left: 0; }
.hx-home-process-list article > span {
    display: grid;
    width: 24px;
    height: 24px;
    margin-bottom: 15px;
    place-items: center;
    border: 1px solid #b8c9e4;
    border-radius: 50%;
    background: #fff;
    color: var(--home-blue);
    font-size: 11px;
    font-weight: 650;
}
.hx-home-process-list article > div { padding-left: 0; }
.hx-home-process-list article svg { display: none; }
.hx-home-process-list h3 { margin: 0; color: var(--home-ink); font: 650 15px/1.4 "Noto Sans SC", sans-serif; }
.hx-home-process-list p { max-width: 280px; margin: 6px 0 0; color: var(--home-muted); font-size: 12px; line-height: 1.55; }

.hx-home-updates { padding-bottom: 0; }
.hx-home-heading-note { color: var(--home-muted); }
.hx-home-notice-list { border-top: 1px solid var(--home-line); }
.hx-home-notice { border-bottom: 1px solid var(--home-line); }
.hx-home-notice-trigger {
    width: 100%;
    min-height: 68px;
    padding: 0 4px;
    border: 0;
    border-radius: 0 !important;
    background: transparent;
    color: var(--home-ink);
    text-align: left;
    transition: background-color .2s ease, padding-left .2s ease;
}
.hx-home-notice-trigger:hover { padding-left: 8px; background: var(--home-soft); }
.hx-home-notice-trigger time { color: var(--home-blue); font-size: 12px; }
.hx-home-notice-trigger strong { color: var(--home-ink); font: 600 14px/1.4 "Noto Sans SC", sans-serif; }
.hx-home-notice-trigger small { color: var(--home-muted); font-size: 11px; }
.hx-home-empty-inline { min-height: 64px; color: var(--home-muted); font-size: 12px; }

.public-friends-section { padding-top: 82px; }
.public-friends-head h2 { font-size: 25px; }
.public-friend-card {
    border-radius: 12px !important;
    border-color: var(--home-line) !important;
    background: var(--home-surface) !important;
    box-shadow: var(--home-shadow);
}
.public-friend-card:hover { border-color: #cbd5e1 !important; box-shadow: 0 6px 20px rgba(0, 0, 0, .05); transform: translateY(-2px); }
.public-friend-copy strong { color: var(--home-ink); font-family: inherit; }
.public-friend-copy small,
.public-friends-head > p { color: var(--home-muted); }

.hx-home-cta {
    min-height: 0;
    margin-top: 82px;
    padding: 32px max(60px, calc((100vw - 1680px) / 2));
    border-top: 1px solid #d8e3f5;
    border-bottom: 1px solid #d8e3f5;
    background: #f5f8ff;
    color: var(--home-ink);
}
.hx-home-cta > div { position: static; }
.hx-home-cta h2 { margin: 0; font-size: 22px; }
.hx-home-cta > div > p:not(.hx-home-label) { margin: 7px 0 0; color: var(--home-muted); font-size: 13px; }
.hx-home-cta .hx-home-button-light,
.hx-home-cta .hx-home-button-light:hover {
    border: 0 !important;
    background: var(--home-blue) !important;
    color: #fff !important;
}
.hx-home-cta .hx-home-button-light:hover { background: var(--home-blue-dark) !important; }

.hx-home-footer {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 24px;
    padding-top: 28px;
    padding-bottom: 28px;
    color: var(--home-muted);
    font-size: 11px;
}
.hx-home-footer-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--home-ink); }
.hx-home-footer-brand img,
.hx-home-footer-brand .hx-home-mark { width: 28px; height: 28px; border-radius: 7px !important; }
.hx-home-footer-brand strong { font-size: 13px; }
.hx-home-copyright { padding: 0; border: 0; color: var(--home-muted); font-size: 11px; }
.hx-home-footer-meta { display: inline-flex; align-items: center; gap: 12px; }
.hx-home-footer-meta a { color: var(--home-muted); }

/* Keep the entry motion short and purposeful. The older visual layer uses long easing curves. */
.hx-motion-ready .hx-motion.is-in,
.hx-motion-ready .hx-home-section.is-in,
.hx-motion-ready .hx-home-process.is-in,
.hx-motion-ready .hx-home-cta.is-in,
.hx-motion-ready .hx-home-footer.is-in {
    animation-duration: .34s !important;
    animation-delay: 0ms !important;
    animation-timing-function: ease-out !important;
}

@keyframes hx-submit-spin { to { transform: rotate(360deg); } }

.hx-home-mobile-nav { display: none !important; }

/* Preserve the page's scroll container unless a visible homepage dialog owns it. */
.home-popup-backdrop[hidden] { display: none !important; }

@media (min-width: 761px) and (max-width: 1280px) {
    .hx-home-header { padding-right: 60px; padding-left: 60px; }
    .hx-home-section-width,
    .hx-home-hero,
    .hx-home-footer { width: calc(100% - 120px); }
    .hx-home-hero { gap: 40px; }
}

@media (max-width: 980px) and (min-width: 761px) {
    .hx-home-header { padding-right: 32px; padding-left: 32px; }
    .hx-home-section-width,
    .hx-home-hero,
    .hx-home-footer { width: calc(100% - 64px); }
    .hx-home-hero { grid-template-columns: minmax(0, 1fr) minmax(330px, .9fr); gap: 32px; padding-top: 56px; }
    .hx-home-hero h1 { font-size: 40px; }
    .hx-home-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .hx-home-header { min-height: 62px; padding: 0 20px; }
    .hx-home-brand strong { max-width: 190px; font-size: 14px; }
    .hx-home-brand small { display: none; }
    .hx-home-menu { display: grid; width: 40px; height: 40px; border-radius: 8px !important; }
    .hx-home-nav {
        position: fixed;
        top: 62px;
        right: 0;
        bottom: 0;
        left: 0;
        display: flex;
        align-items: stretch;
        gap: 0;
        padding: 12px 20px 28px;
        background: #fff;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity .2s ease, transform .2s ease;
    }
    .hx-home-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
    .hx-home-nav a { width: 100%; min-height: 50px; justify-content: flex-start; border-bottom: 1px solid var(--home-line); color: var(--home-ink); }
    .hx-home-nav a.is-active { color: var(--home-blue); }
    .hx-home-nav-primary,
    .hx-home-nav-primary:hover { justify-content: center !important; margin-top: 12px; border: 0 !important; color: #fff !important; }
    .hx-home-hero,
    .hx-home-section-width,
    .hx-home-footer { width: calc(100% - 40px); }
    .hx-home-hero { display: flex; flex-direction: column; gap: 24px; min-height: 0; padding-top: 34px; padding-bottom: 48px; }
    .hx-home-hero-copy { text-align: center; }
    .hx-home-hero-copy { padding-right: 0; }
    .hx-home-hero h1 { margin-bottom: 10px; font-size: 27px; line-height: 1.3; letter-spacing: 0; }
    .hx-home-title-subject { margin-top: 4px; letter-spacing: .04em; }
    .hx-home-lead { margin: 0 auto; font-size: 13px; line-height: 1.65; }
    .hx-home-hero-copy .hx-home-actions { display: none; }
    .hx-home-trust { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 21px; font-size: 11px; }
    .hx-home-trust span { justify-content: center; flex-direction: column; gap: 5px; text-align: center; }
    .hx-home-trust svg { width: 17px; height: 17px; }
    .hx-home-guide { margin-top: 21px; text-align: left; }
    .hx-home-guide > div { padding: 11px 0; }
    .hx-home-guide strong { font-size: 11px; }
    .hx-home-guide span { font-size: 10px; }
    .hx-home-route-note { margin-top: 20px; text-align: left; font-size: 11px; }
    .hx-home-quick-links { margin-top: 16px; }
    .hx-home-quick-links a { min-height: 56px; justify-content: center; padding: 8px 5px; }
    .hx-home-quick-links a + a { padding-left: 5px; }
    .hx-home-quick-links i { display: none; }
    .hx-home-quick-links strong { font-size: 11px; }
    .hx-home-quick-links small { max-width: 82px; font-size: 9px; }
    .hx-home-help-note { margin-top: 12px; text-align: left; font-size: 10px; }
    .hx-home-hero-panel { padding: 22px 20px; }
    .hx-home-panel-heading h2 { font-size: 20px; }
    .hx-home-panel-intro { margin: 8px 0 18px; font-size: 12px; }
    .hx-home-form input,
    .hx-home-form select { height: 48px; }
    .hx-home-submit { min-height: 48px; }
    .hx-home-panel-foot { margin-top: 14px; padding-top: 13px; font-size: 10px; }
    .hx-home-entry-strip { display: block; }
    .hx-home-entry-strip > div { min-height: 58px; padding: 10px 4px; }
    .hx-home-entry-strip > div + div { border-top: 1px solid var(--home-line); border-left: 0; }
    .hx-home-entry-strip > div > span { width: 7px; height: 7px; }
    .hx-home-entry-strip strong { font-size: 11px; }
    .hx-home-entry-strip small { font-size: 10px; }
    .hx-home-section { padding-top: 60px; }
    .hx-home-section-heading { align-items: flex-start; flex-direction: column; gap: 10px; margin-bottom: 20px; }
    .hx-home-section-heading h2,
    .hx-home-process h2,
    .public-friends-head h2 { font-size: 24px; }
    .hx-home-section-heading > p { max-width: none; }
    .hx-home-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .hx-home-feature-grid article { min-height: 150px; padding: 16px; }
    .hx-home-feature-icon { width: 34px; height: 34px; margin-bottom: 15px; }
    .hx-home-feature-grid h3 { font-size: 14px; }
    .hx-home-feature-grid article > span:last-child { font-size: 11px; }
    .hx-home-products-heading { gap: 14px; }
    .hx-home-product-tools { width: 100%; align-items: stretch; flex-direction: column; gap: 10px; }
    .hx-home-search { width: 100%; }
    .hx-home-product-grid { grid-template-columns: 1fr; gap: 12px; }
    .hx-home-product { padding: 20px; }
    .hx-home-product h3 { font-size: 18px; }
    .hx-home-product-price { margin-top: 8px; }
    .hx-home-product-plan { margin-bottom: 14px; }
    .hx-home-product-detail { width: 100%; min-height: 38px; }
    .hx-home-process { margin-top: 60px; padding-top: 26px; padding-bottom: 26px; }
    .hx-home-process-copy { display: block; }
    .hx-home-process h2 { margin-top: 6px; }
    .hx-home-process-copy > p:not(.hx-home-label) { margin: 7px 0 0; }
    .hx-home-process-list { display: block; margin-top: 22px; }
    .hx-home-process-list article,
    .hx-home-process-list article + article,
    .hx-home-process-list article:first-child:hover { min-height: 0; padding: 0 0 22px 34px; border: 0; }
    .hx-home-process-list article + article { padding-top: 0; }
    .hx-home-process-list article::before { position: absolute; top: 24px; bottom: 0; left: 11px; width: 1px; background: #cbd5e1; content: ""; }
    .hx-home-process-list article:last-child::before { display: none; }
    .hx-home-process-list article > span { position: absolute; top: 0; left: 0; width: 24px; height: 24px; margin: 0; }
    .hx-home-process-list article > div { padding: 0; }
    .hx-home-process-list h3 { font-size: 14px; }
    .hx-home-process-list p { margin-top: 4px; font-size: 11px; }
    .hx-home-updates { padding-top: 50px; }
    .hx-home-notice-trigger { min-height: 60px; }
    .hx-home-notice-trigger strong { font-size: 13px; }
    .public-friends-section { padding-top: 62px; }
    .public-friends-head { align-items: flex-start; flex-direction: column; gap: 8px; margin-bottom: 18px; }
    .public-friends-grid { grid-template-columns: 1fr; gap: 10px; }
    .hx-home-cta { align-items: stretch; flex-direction: column; gap: 18px; margin-top: 60px; padding: 26px 20px; }
    .hx-home-cta h2 { font-size: 20px; }
    .hx-home-cta .hx-home-button { width: 100%; min-height: 46px; }
    .hx-home-footer { grid-template-columns: 1fr; justify-items: center; gap: 12px; padding-top: 28px; padding-bottom: calc(40px + env(safe-area-inset-bottom)); text-align: center; }
    .hx-home-footer-meta { justify-content: center; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
    .hx-home-body *,
    .hx-home-body *::before,
    .hx-home-body *::after { animation: none !important; transition-duration: .01ms !important; }
}
