:root {
    --home-red: #c90022;
    --home-red-dark: #ad001d;
    --home-ink: #17191f;
    --home-muted: #666d78;
    --home-line: #e4e7eb;
    --home-soft: #f5f6f8;
}

#home-domain-query {
    scroll-margin-top: 80px;
}

.home-domain-hero {
    padding-top: 28px;
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(240, 241, 242, 1)), url('/index/images/20231019/banner2.jpg');
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
}

.home-hero-intro {
    width: min(calc(100% - 40px), 1040px);
    margin: 0 auto 20px;
    color: var(--home-ink);
    text-align: center;
}

.home-brand-promise {
    margin-bottom: 8px;
    color: var(--home-red);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: .08em;
}

.home-hero-intro h1 {
    margin: 0 auto 12px;
    color: var(--home-ink);
    font-size: 40px;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: 0;
}

.home-proof-row {
    width: min(100%, 940px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    background: rgba(255, 255, 255, .92);
    border: 1px solid #e6e8ec;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(20, 26, 34, .035);
}

.home-proof {
    padding: 14px 22px;
    text-align: left;
}

.home-proof + .home-proof {
    border-left: 1px solid #eceef1;
}

.home-proof strong,
.home-proof span {
    display: block;
}

.home-proof strong {
    margin-bottom: 3px;
    color: #20242b;
    font-size: 16px;
    line-height: 1.35;
}

.home-proof strong.is-emphasis,
.home-proof a {
    color: var(--home-red);
}

.home-proof span {
    color: #818792;
    font-size: 16px;
    line-height: 1.5;
}

.home-proof a {
    font-weight: 700;
    text-decoration: none;
}

.home-proof a:hover {
    text-decoration: underline;
}

/* Keep the existing query component and live PHP pricing, refining only its layout. */
#index .home-domain-hero > .domain_search {
    padding-bottom: 42px !important;
    background-image: none !important;
}

#index .home-domain-hero > .domain_search .search-box {
    border: 1px solid rgba(228, 231, 235, .95);
    border-radius: 30px;
    box-shadow: 0 16px 42px rgba(20, 26, 34, .07);
}

#index .home-domain-hero > .domain_search .search-top {
    gap: 24px;
    align-items: center;
    margin-bottom: 10px;
}

#index .home-domain-hero > .domain_search .search-top .float-right {
    max-width: 720px;
    margin-left: auto;
    text-align: right;
}

#index .home-domain-hero > .domain_search .query-copy-main,
#index .home-domain-hero > .domain_search .query-copy-strong {
    display: block;
    font-size: 16px;
    line-height: 1.55;
}

#index .home-domain-hero > .domain_search .query-copy-main {
    color: #666d78;
}

#index .home-domain-hero > .domain_search .query-copy-strong {
    margin-top: 1px;
    color: #252a31;
}

#index .home-domain-hero > .domain_search .query-box {
    justify-content: space-between;
}

#index .home-domain-hero > .domain_search .query-box .inpbox {
    flex: 1 1 auto;
    width: auto;
    border-radius: 28px;
}

#index .home-domain-hero > .domain_search .query-box .jpisp-button {
    flex: 0 0 140px;
    border-radius: 28px;
}

#index .home-domain-hero > .domain_search .category .jpisp-button {
    border-radius: 27px;
}

#index .home-domain-hero > .domain_search .search-top,
#index .home-domain-hero > .domain_search .domain-query,
#index .home-domain-hero > .domain_search .dom-item label,
#index .home-domain-hero > .domain_search .search-inp,
#index .home-domain-hero > .domain_search .jpisp-button,
#index .home-domain-hero > .domain_search .recommend span,
#index .home-domain-hero > .domain_search .reason {
    font-size: 16px !important;
}

.jpisp-home-v45 {
    color: var(--home-ink);
    background: #fff;
    line-height: 1.65;
}

.jpisp-home-v45 *,
.jpisp-home-v45 *::before,
.jpisp-home-v45 *::after {
    box-sizing: border-box;
}

.jpisp-home-v45 a {
    text-decoration: none;
}

.home-container {
    width: min(calc(100% - 40px), 1200px);
    margin: 0 auto;
}

.home-section {
    padding: 68px 0;
}

.home-section-muted {
    background: var(--home-soft);
}

.section-heading {
    max-width: 850px;
    margin: 0 0 30px;
}

.section-kicker {
    color: var(--home-red);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: .08em;
}

.section-heading h2 {
    margin: 7px 0 9px;
    color: var(--home-ink);
    font-size: 31px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
}

.section-heading p {
    margin: 0;
    color: var(--home-muted);
    font-size: 16px;
}

.domain-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.domain-card {
    min-height: 340px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--home-line);
    border-radius: 30px;
    box-shadow: 0 8px 22px rgba(18, 24, 33, .035);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.domain-card:hover {
    transform: translateY(-3px);
    border-color: #d6d9df;
    box-shadow: 0 16px 34px rgba(18, 24, 33, .08);
}

.domain-card-top {
    min-height: 55px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.domain-logo-wrap {
    height: 48px;
    display: flex;
    align-items: center;
}

.domain-logo-wrap img {
    display: block;
    width: auto;
    max-width: 115px;
    max-height: 44px;
    object-fit: contain;
}

.domain-tag {
    flex: 0 0 auto;
    padding: 4px 9px;
    color: var(--home-red);
    background: #fff0f2;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

.domain-card h3 {
    margin: 11px 0 8px;
    color: var(--home-ink);
    font-size: 18px;
    line-height: 1.45;
}

.domain-card > p {
    min-height: 70px;
    margin: 0 0 14px;
    color: #5f6672;
    font-size: 16px;
    line-height: 1.8;
}

.domain-gift {
    min-height: 34px;
    align-self: flex-start;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--home-red);
    border: 1px solid var(--home-red);
    border-radius: 18px;
    font-size: 16px;
    line-height: 1.4;
}

.domain-gift img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.domain-gift-placeholder {
    min-height: 34px;
}

.domain-card-bottom {
    margin-top: 16px;
    padding-top: 16px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--home-line);
}

.domain-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.domain-price strong {
    color: var(--home-red);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 31px;
    font-weight: 700;
    line-height: 1;
}

.domain-price span {
    color: #252a31;
    font-size: 16px;
}

.domain-price-block small {
    display: block;
    margin-top: 6px;
    color: #8b919a;
    font-size: 16px;
    line-height: 1.35;
}

.domain-query-link,
.article-item a {
    color: #0666c7;
    font-size: 16px;
    font-weight: 700;
}

.more-domains a {
    color: var(--home-red);
    font-size: 16px;
    font-weight: 700;
}

.domain-query-link {
    flex: 0 0 auto;
    padding-bottom: 2px;
}

.domain-query-link:hover,
.article-item a:hover,
.more-domains a:hover {
    text-decoration: underline;
}

.more-domains {
    margin-top: 24px;
    padding: 15px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: #fff;
    border: 1px dashed #d6dae0;
    border-radius: 14px;
}

.more-domains span {
    color: var(--home-muted);
    font-size: 16px;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.value-item,
.article-item {
    padding: 22px;
    background: #fff;
    border: 1px solid var(--home-line);
    border-radius: 16px;
}

.value-item h3,
.article-item h3 {
    margin: 0 0 8px;
    color: var(--home-ink);
    font-size: 17px;
    line-height: 1.45;
}

.value-item p,
.article-item p {
    margin: 0;
    color: var(--home-muted);
    font-size: 16px;
    line-height: 1.75;
}

.protection-item {
    transition: transform .2s ease, box-shadow .2s ease;
}

.protection-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(18, 24, 33, .06);
}

.service-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 13px;
    display: grid;
    place-items: center;
    color: var(--home-red);
    background: #fff0f2;
    border-radius: 11px;
}

.service-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.article-item small {
    color: var(--home-red);
    font-size: 16px;
    font-weight: 800;
}

.article-item h3 {
    margin-top: 8px;
}

.article-item p {
    margin-bottom: 11px;
}

.faq-list {
    display: grid;
    gap: 10px;
}

.faq-list details {
    padding: 0 18px;
    background: #fff;
    border: 1px solid var(--home-line);
    border-radius: 12px;
}

.faq-list summary {
    padding: 16px 0;
    color: var(--home-ink);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.faq-list p {
    margin: 0;
    padding: 0 0 16px;
    color: var(--home-muted);
    font-size: 16px;
}

.home-cta-wrap {
    padding: 64px 0;
    background: var(--home-soft);
}

.home-cta {
    padding: 34px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: #fff;
    background: #17191e;
    border-radius: 20px;
}

.home-cta h2 {
    margin: 0 0 5px;
    color: #fff;
    font-size: 28px;
    line-height: 1.35;
}

.home-cta p {
    margin: 0;
    color: #c8cbd1;
    font-size: 16px;
}

.home-cta a {
    min-width: 132px;
    padding: 11px 18px;
    flex: 0 0 auto;
    color: #fff;
    background: var(--home-red);
    border-radius: 9px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}

.home-cta a:hover {
    background: var(--home-red-dark);
    color: #fff;
}

.home-cta a:focus,
.home-cta a:active,
.home-cta a:visited {
    color: #fff;
}

@media screen and (max-width: 1050px) {
    .domain-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .value-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .article-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .home-domain-hero {
        padding-top: 24px;
    }

    .home-hero-intro {
        width: min(calc(100% - 24px), 1040px);
        margin-bottom: 18px;
    }

    .home-brand-promise {
        font-size: 16px;
    }

    .home-hero-intro h1 {
        font-size: 31px;
    }

    .home-proof-row {
        grid-template-columns: 1fr;
    }

    .home-proof {
        padding: 12px 16px;
        text-align: center;
    }

    .home-proof + .home-proof {
        border-top: 1px solid #eceef1;
        border-left: 0;
    }

    #index .home-domain-hero > .domain_search {
        padding-bottom: 20px !important;
    }

    #index .home-domain-hero > .domain_search .search-box {
        border-radius: 20px;
    }

    #index .home-domain-hero > .domain_search .search-top {
        display: block;
    }

    #index .home-domain-hero > .domain_search .search-top .float-right {
        max-width: none;
        margin-top: 8px;
        text-align: left;
    }

    #index .home-domain-hero > .domain_search .query-copy-main,
    #index .home-domain-hero > .domain_search .query-copy-strong {
        font-size: 16px;
    }

    #index .home-domain-hero > .domain_search .query-box .inpbox,
    #index .home-domain-hero > .domain_search .query-box .jpisp-button {
        border-radius: 10px;
    }

    #index .home-domain-hero > .domain_search .query-box .jpisp-button {
        flex-basis: 66px;
    }

    .home-container {
        width: min(calc(100% - 24px), 1200px);
    }

    .home-section {
        padding: 46px 0;
    }

    .section-heading {
        margin-bottom: 22px;
    }

    .section-heading h2 {
        font-size: 25px;
    }

    .section-heading p {
        font-size: 16px;
    }

    .domain-card-grid,
    .value-grid {
        grid-template-columns: 1fr;
    }

    .domain-card {
        min-height: 0;
        padding: 20px;
        border-radius: 22px;
    }

    .domain-card > p {
        min-height: 0;
    }

    .domain-gift-placeholder {
        display: none;
    }

    .more-domains {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-cta-wrap {
        padding: 46px 0;
    }

    .home-cta {
        padding: 27px 22px;
        align-items: flex-start;
        flex-direction: column;
    }

    .home-cta h2 {
        font-size: 23px;
    }
}

@media screen and (max-width: 390px) {
    .domain-card-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}
