/* ==========================================================================
   HostPawa homepage
   Loaded only when the page contains `.hx-home` (see layouts/main.php).
   Shared components live in site.css.
   ========================================================================== */

/* Hero
   ========================================================================== */
html.hx .hx-home-hero {
    padding-block: 1.75rem clamp(4.5rem, 8vw, 7rem);
}
html.hx .hx-home-hero h1 { font-size: clamp(2.25rem, 4.4vw, 3.5rem); }

/* Launch board illustration */
html.hx .hx-board {
    position: relative;
    max-width: 30rem;
    margin-left: auto;
    background: color-mix(in srgb, var(--hx-night-2) 88%, transparent);
    border: 1px solid var(--hx-night-line);
    border-radius: var(--hx-r-lg);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    font-size: 0.875rem;
    color: var(--hx-night-text);
}
html.hx .hx-board__bar,
html.hx .hx-dash__bar {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    height: 2.75rem;
    padding: 0 1rem;
    border-bottom: 1px solid var(--hx-night-line);
}
html.hx .hx-board__dots {
    display: inline-flex;
    gap: 0.35rem;
}
html.hx .hx-board__dots i {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
}
html.hx .hx-board__path {
    font-family: var(--hx-font-mono);
    font-size: 0.75rem;
    color: var(--hx-night-muted);
}
html.hx .hx-board__steps {
    position: relative;
    display: grid;
    gap: 0.75rem;
    padding: 1.25rem;
}
html.hx .hx-board__steps::before {
    content: "";
    position: absolute;
    top: 2.5rem;
    bottom: 2.5rem;
    left: 2.125rem;
    width: 1px;
    background: linear-gradient(to bottom, var(--hx-brand-on-night), var(--hx-ok-on-night));
    opacity: 0.45;
}
html.hx .hx-board__step {
    position: relative;
    display: grid;
    grid-template-columns: 1.75rem minmax(0, 1fr);
    gap: 0.875rem;
    align-items: start;
}
html.hx .hx-board__num {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    margin-top: 0.75rem;
    font-family: var(--hx-font-mono);
    font-size: 0.625rem;
    color: var(--hx-night-ink);
    background: var(--hx-night-3);
    border: 1px solid var(--hx-night-line-strong);
    border-radius: 50%;
}
html.hx .hx-board__card {
    display: grid;
    gap: 0.4rem;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--hx-night-line);
    border-radius: var(--hx-r);
}
html.hx .hx-board__label {
    font-family: var(--hx-font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hx-night-muted);
}
html.hx .hx-board__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
}
html.hx .hx-board__value {
    min-width: 0;
    font-family: var(--hx-font-display);
    font-size: 1.0625rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--hx-night-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
html.hx .hx-board__note,
html.hx .hx-board__price {
    flex: none;
    font-size: 0.8125rem;
    color: var(--hx-night-muted);
}
html.hx .hx-board__pill {
    flex: none;
    padding: 0.15rem 0.45rem;
    font-family: var(--hx-font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.04em;
    border-radius: var(--hx-r-sm);
}
html.hx .hx-board__pill--ok {
    color: var(--hx-ok-on-night);
    background: color-mix(in srgb, var(--hx-ok-on-night) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--hx-ok-on-night) 30%, transparent);
}
html.hx .hx-board__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.25rem;
}
html.hx .hx-board__chips li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    color: var(--hx-night-text);
    border: 1px solid var(--hx-night-line);
    border-radius: var(--hx-r-sm);
}
html.hx .hx-board__chips li::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--hx-ok-on-night);
}
html.hx .hx-board__status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--hx-ok-on-night);
}
html.hx .hx-board__status i {
    position: relative;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}
html.hx .hx-board__status i::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid currentColor;
    opacity: 0;
    animation: hx-ping 2.4s ease-out infinite;
}
html.hx .hx-board__url {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.625rem;
    font-family: var(--hx-font-mono);
    font-size: 0.75rem;
    color: var(--hx-night-text);
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--hx-night-line);
    border-radius: var(--hx-r-sm);
    overflow: hidden;
    white-space: nowrap;
}
html.hx .hx-board__url .hp-icon { flex: none; color: var(--hx-ok-on-night); }
html.hx .hx-board__url span { overflow: hidden; text-overflow: ellipsis; }
html.hx .hx-board__site {
    display: grid;
    gap: 0.4rem;
    margin-top: 0.25rem;
    padding: 0.875rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--hx-night-line);
    border-radius: var(--hx-r-sm);
}
html.hx .hx-board__site > span {
    height: 0.375rem;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.12);
}
html.hx .hx-board__site > span:nth-child(1) { width: 46%; height: 0.5rem; background: rgba(255, 255, 255, 0.24); }
html.hx .hx-board__site > span:nth-child(2) { width: 72%; }
html.hx .hx-board__site > span:nth-child(3) { width: 58%; }
html.hx .hx-board__site > div {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
    margin-top: 0.375rem;
}
html.hx .hx-board__site > div i {
    height: 1.75rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
}
html.hx .hx-board__site > div i:first-child { background: color-mix(in srgb, var(--hx-brand) 55%, transparent); }

html.hx.hx-js .hx-board__step {
    opacity: 0;
    transform: translateY(10px);
    animation: hx-rise 0.7s var(--hx-ease) forwards;
}
html.hx.hx-js .hx-board__step:nth-child(1) { animation-delay: 0.15s; }
html.hx.hx-js .hx-board__step:nth-child(2) { animation-delay: 0.4s; }
html.hx.hx-js .hx-board__step:nth-child(3) { animation-delay: 0.65s; }

@keyframes hx-rise {
    to { opacity: 1; transform: none; }
}
@keyframes hx-ping {
    0% { opacity: 0.7; transform: scale(0.6); }
    70%, 100% { opacity: 0; transform: scale(1.6); }
}

@media (max-width: 980px) {
    html.hx .hx-board { max-width: 34rem; margin-inline: 0; }
}
@media (max-width: 520px) {
    html.hx .hx-board__steps { padding: 1rem; }
    html.hx .hx-board__steps::before { left: 1.875rem; }
    html.hx .hx-board__chips li:nth-child(3) { display: none; }
}

/* Domain search dock
   ========================================================================== */
html.hx .hx-home-search {
    position: relative;
    z-index: 2;
    margin-top: clamp(-5.5rem, -7vw, -4rem);
    scroll-margin-top: calc(var(--hx-header-h) + 1.5rem);
}

/* Trust indicators
   ========================================================================== */
html.hx .hx-trust { padding-block: clamp(2rem, 4vw, 3rem) 0; }
html.hx .hx-trust__list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-block: 1px solid var(--hx-line);
}
html.hx .hx-trust__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.375rem 1.25rem;
}
html.hx .hx-trust__item + .hx-trust__item { border-left: 1px solid var(--hx-line); }
html.hx .hx-trust__item:first-child { padding-left: 0; }
html.hx .hx-trust__item .hp-icon {
    flex: none;
    margin-top: 0.15rem;
    color: var(--hx-brand-text);
}
html.hx .hx-trust__item div { display: grid; gap: 0.1rem; min-width: 0; }
html.hx .hx-trust__item strong {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--hx-ink);
}
html.hx .hx-trust__item span {
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--hx-muted);
}
@media (max-width: 1100px) {
    html.hx .hx-trust__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    html.hx .hx-trust__item:nth-child(4) { border-left: 0; padding-left: 0; }
    html.hx .hx-trust__item:nth-child(n + 4) { border-top: 1px solid var(--hx-line); }
}
@media (max-width: 640px) {
    html.hx .hx-trust__list { grid-template-columns: minmax(0, 1fr); }
    html.hx .hx-trust__item,
    html.hx .hx-trust__item:first-child {
        padding: 1rem 0;
        border-left: 0;
    }
    html.hx .hx-trust__item + .hx-trust__item { border-left: 0; border-top: 1px solid var(--hx-line); }
}

/* Hosting products
   ========================================================================== */
html.hx .hx-products {
    display: grid;
    gap: 1.25rem;
}
html.hx .hx-products__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}
html.hx .hx-products__grid--1 { grid-template-columns: minmax(0, 1fr); }
html.hx .hx-products__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html.hx .hx-products__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

html.hx .hx-product {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    background: var(--hx-surface);
    border: 1px solid var(--hx-line);
    border-radius: var(--hx-r-lg);
    color: var(--hx-text);
    text-decoration: none;
    transition:
        border-color 0.22s ease,
        box-shadow 0.28s ease,
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
html.hx .hx-product:hover {
    border-color: color-mix(in srgb, var(--hx-brand) 22%, var(--hx-line));
    box-shadow: var(--hx-shadow);
    transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
    html.hx .hx-product:hover { transform: none; }
}
html.hx .hx-product__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
html.hx .hx-product__icon { color: var(--hx-brand-text); }
html.hx .hx-product__price {
    font-family: var(--hx-font-mono);
    font-size: 0.75rem;
    color: var(--hx-muted);
}
html.hx .hx-product h3 {
    font-size: 1.25rem;
    letter-spacing: -0.018em;
}
html.hx .hx-product h3 a {
    color: inherit;
    text-decoration: none;
}
/* The whole card is the click target for the title link. */
html.hx .hx-product h3 a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}
html.hx .hx-product > p,
html.hx .hx-product__main > p {
    margin-top: 0.6rem;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--hx-muted);
}
html.hx .hx-product__list {
    display: grid;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--hx-line);
    font-size: 0.875rem;
    color: var(--hx-text);
}
html.hx .hx-product__list li {
    display: flex;
    align-items: baseline;
    gap: 0.625rem;
}
html.hx .hx-product__list li::before {
    content: "";
    flex: none;
    width: 0.625rem;
    height: 1px;
    background: var(--hx-brand-text);
    transform: translateY(-0.3em);
}
html.hx .hx-product__more {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding-top: 1.5rem;
    align-self: flex-start;
}
html.hx .hx-product:hover .hx-link .hp-icon { transform: translateX(3px); }

/* Lead product */
html.hx .hx-product--lead {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 0;
    padding: 0;
    overflow: hidden;
}
html.hx .hx-product__main { padding: clamp(1.75rem, 3.5vw, 2.75rem); }
html.hx .hx-product--lead .hx-product__icon { display: block; margin-bottom: 1.25rem; }
html.hx .hx-product--lead h3 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); letter-spacing: -0.025em; }
html.hx .hx-product__main > p { max-width: 34rem; font-size: 1rem; }
html.hx .hx-product__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin-top: 2rem;
}
html.hx .hx-spec {
    display: grid;
    align-content: center;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    background: var(--hx-surface-2);
    border-left: 1px solid var(--hx-line);
}
html.hx .hx-spec > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 0.75rem;
    border-bottom: 1px dashed var(--hx-line-strong);
}
html.hx .hx-spec > div:last-child { border-bottom: 0; }
html.hx .hx-spec dt {
    font-family: var(--hx-font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--hx-muted);
}
html.hx .hx-spec dd {
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: right;
    color: var(--hx-ink);
}

/* Domains strip */
html.hx .hx-product--strip {
    flex-direction: row;
    align-items: center;
    gap: 1.25rem 2rem;
    padding: 1.5rem 1.75rem;
}
html.hx .hx-product__stripcopy { flex: 1 1 16rem; min-width: 0; }
html.hx .hx-product__stripcopy p {
    margin-top: 0.25rem;
    font-size: 0.9375rem;
    color: var(--hx-muted);
}
html.hx .hx-product__tlds {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
html.hx .hx-product__tlds li {
    padding: 0.35rem 0.625rem;
    font-size: 0.8125rem;
    color: var(--hx-muted);
    border: 1px solid var(--hx-line);
    border-radius: 8px;
    white-space: nowrap;
}
html.hx .hx-product__tlds strong {
    font-weight: 600;
    color: var(--hx-ink);
}
html.hx .hx-product--strip .hx-link { flex: none; }

@media (max-width: 1040px) {
    html.hx .hx-products__grid,
    html.hx .hx-products__grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    html.hx .hx-product--strip { flex-wrap: wrap; }
}
@media (max-width: 820px) {
    html.hx .hx-product--lead { grid-template-columns: minmax(0, 1fr); }
    html.hx .hx-spec {
        border-left: 0;
        border-top: 1px solid var(--hx-line);
    }
}
@media (max-width: 640px) {
    html.hx .hx-products__grid,
    html.hx .hx-products__grid--2,
    html.hx .hx-products__grid--4 { grid-template-columns: minmax(0, 1fr); }
    html.hx .hx-product__tlds { display: none; }
}

/* Why HostPawa
   ========================================================================== */
html.hx .hx-why__inner {
    position: relative;
    z-index: 1;
}

/* Client area preview
   ========================================================================== */
html.hx .hx-clientarea__inner {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: clamp(2.5rem, 6vw, 5rem);
}
html.hx .hx-clientarea__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin-top: 2rem;
}

html.hx .hx-dash {
    background: var(--hx-night-2);
    border: 1px solid var(--hx-night-line);
    border-radius: var(--hx-r-lg);
    box-shadow: var(--hx-shadow-lg);
    color: var(--hx-night-text);
    font-size: 0.8125rem;
    overflow: hidden;
}
html.hx .hx-dash__bar { justify-content: space-between; }
html.hx .hx-dash__tag {
    font-family: var(--hx-font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hx-night-muted);
}
html.hx .hx-dash__body {
    display: grid;
    grid-template-columns: 10.5rem minmax(0, 1fr);
}
html.hx .hx-dash__nav {
    display: grid;
    align-content: start;
    gap: 0.125rem;
    padding: 1rem 0.75rem;
    border-right: 1px solid var(--hx-night-line);
}
html.hx .hx-dash__nav li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.625rem;
    border-radius: 8px;
    color: var(--hx-night-muted);
}
html.hx .hx-dash__nav li.is-active {
    background: rgba(255, 255, 255, 0.06);
    color: var(--hx-night-ink);
}
html.hx .hx-dash__main {
    display: grid;
    gap: 0.875rem;
    padding: 1rem;
    min-width: 0;
}
html.hx .hx-dash__tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.625rem;
}
html.hx .hx-dash__tiles div {
    display: grid;
    gap: 0.35rem;
    padding: 0.75rem;
    border: 1px solid var(--hx-night-line);
    border-radius: var(--hx-r);
    min-width: 0;
}
html.hx .hx-dash__tiles span {
    font-size: 0.6875rem;
    line-height: 1.3;
    color: var(--hx-night-muted);
}
html.hx .hx-dash__tiles strong {
    font-family: var(--hx-font-display);
    font-size: 1.375rem;
    font-weight: 500;
    line-height: 1;
    color: var(--hx-night-ink);
}
html.hx .hx-dash__panel {
    border: 1px solid var(--hx-night-line);
    border-radius: var(--hx-r);
    min-width: 0;
}
html.hx .hx-dash__title {
    padding: 0.625rem 0.875rem;
    font-family: var(--hx-font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hx-night-muted);
    border-bottom: 1px solid var(--hx-night-line);
}
html.hx .hx-dash__rows li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    border-top: 1px solid var(--hx-night-line);
}
html.hx .hx-dash__rows li:first-child { border-top: 0; }
html.hx .hx-dash__rows span { display: grid; min-width: 0; }
html.hx .hx-dash__rows b {
    font-weight: 500;
    color: var(--hx-night-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
html.hx .hx-dash__rows i {
    font-style: normal;
    font-size: 0.75rem;
    color: var(--hx-night-muted);
}
html.hx .hx-dash__rows em {
    flex: none;
    font-style: normal;
    font-size: 0.75rem;
    color: var(--hx-night-muted);
}
html.hx .hx-dash__rows em.is-ok { color: var(--hx-ok-on-night); }
html.hx .hx-dash__rows em.is-brand { color: var(--hx-brand-on-night); }

@media (max-width: 980px) {
    html.hx .hx-clientarea__inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
    html.hx .hx-dash__body { grid-template-columns: minmax(0, 1fr); }
    html.hx .hx-dash__nav { display: none; }
    html.hx .hx-dash__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    html.hx .hx-dash__panel--ticket { display: none; }
}

/* Blog
   ========================================================================== */
html.hx .hx-editorial {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
}
html.hx .hx-editorial--single { grid-template-columns: minmax(0, 1fr); max-width: 46rem; }
html.hx .hx-editorial__list { display: grid; }
html.hx .hx-editorial__list .hx-post {
    padding-block: 1.75rem;
    border-top: 1px solid var(--hx-line);
}
html.hx .hx-editorial__list .hx-post:first-child {
    padding-top: 0;
    border-top: 0;
}
html.hx .hx-editorial__list .hx-post:last-child { padding-bottom: 0; }
@media (max-width: 900px) {
    html.hx .hx-editorial { grid-template-columns: minmax(0, 1fr); }
}
