/* ============================================================
   Web hosting page — hero + plan finder (/web-hosting)
   ------------------------------------------------------------
   Markup:    resources/views/frontend/web_hosting.blade.php
   Behaviour: public/frontend/js/hosting-page.js
   Mobile-first. The rest of the page still uses its inline .wh-* styles.
   ============================================================ */

.hst-hero {
    --hs-navy: #061634;
    --hs-navy-2: #0b2a5b;
    --hs-blue: #2563eb;
    --hs-orange: #f97316;
    --hs-orange-d: #ea580c;
    --hs-green: #16a34a;
    --hs-ink: #0f172a;
    --hs-text: #475569;
    --hs-muted: #64748b;
    --hs-line: #e6ebf3;
    --hs-soft: #f5f8fe;
    position: relative;
    overflow: hidden;
    padding: 24px 0 44px;
    color: #fff;
    background:
        radial-gradient(900px 440px at 90% -10%, rgba(37, 99, 235, .38), transparent 60%),
        radial-gradient(640px 320px at -10% 110%, rgba(249, 115, 22, .16), transparent 60%),
        linear-gradient(160deg, var(--hs-navy) 0%, var(--hs-navy-2) 100%);
}
.hst-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: linear-gradient(180deg, #000 10%, transparent 90%);
    mask-image: linear-gradient(180deg, #000 10%, transparent 90%);
}
.hst-hero > .container { position: relative; z-index: 1; }
.hst-hero *, .hst-hero *::before, .hst-hero *::after { box-sizing: border-box; }
.hst-hero a { text-decoration: none; }
.hst-hero [hidden] { display: none !important; }
.hst-hero :focus-visible { outline: 3px solid rgba(147, 197, 253, .7); outline-offset: 2px; border-radius: 6px; }

.hst-crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; font-size: 13px; color: rgba(255, 255, 255, .6); }
.hst-crumbs li + li::before { content: "/"; margin-right: 6px; color: rgba(255, 255, 255, .35); }
.hst-crumbs a { color: rgba(255, 255, 255, .8); transition: color .2s; }
.hst-crumbs a:hover { color: #fff; }
.hst-crumbs [aria-current] { color: #fff; font-weight: 600; }

.hst-hero__grid { display: grid; gap: 28px; }
.hst-hero__main { min-width: 0; }

.hst-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #bfdbfe;
}
.hst-hero__title {
    margin: 14px 0 12px;
    font-size: clamp(1.9rem, 1.25rem + 2.8vw, 3.1rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -.02em;
    color: #fff;
}
.hst-hero__title span { display: block; color: #7cb4ff; }
.hst-hero__lead { margin: 0; padding-bottom: 18px; max-width: 600px; font-size: 16px; line-height: 1.7; color: rgba(255, 255, 255, .76); }
.hst-hero__lead b { color: #fff; }

.hst-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0 0 22px; list-style: none; }
.hst-chips li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, .88);
}
.hst-chips i { font-size: 12px; color: #4ade80; }

.hst-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hst-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s, transform .1s;
}
.hst-btn:active { transform: translateY(1px); }
.hst-btn--orange { background: var(--hs-orange); color: #fff; }
.hst-btn--orange:hover { background: var(--hs-orange-d); color: #fff; }
.hst-btn--ghost { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .22); color: #fff; }
.hst-btn--ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.hst-btn--light { background: #fff; border-color: var(--hs-line); color: var(--hs-ink); }
.hst-btn--light:hover { background: var(--hs-soft); border-color: #cbd8ee; color: var(--hs-ink); }

.hst-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 28px 0 0; list-style: none; }
.hst-stats li { padding: 14px 16px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; background: rgba(255, 255, 255, .05); }
.hst-stats strong { display: block; font-size: 1.4rem; font-weight: 900; line-height: 1.15; color: #fff; }
.hst-stats span { font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .62); }

/* ── Plan finder ──────────────────────────────────────────── */
.hst-finder { align-self: start; padding: 22px; border-radius: 22px; background: #fff; color: var(--hs-text); box-shadow: 0 30px 70px rgba(2, 8, 23, .4); }
.hst-finder__head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--hs-line); }
.hst-finder__icon {
    flex-shrink: 0;
    width: 46px; height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--hs-blue), #60a5fa);
    color: #fff;
    font-size: 18px;
    box-shadow: 0 10px 22px rgba(37, 99, 235, .3);
}
.hst-finder h2 { margin: 0; font-size: 1.2rem; font-weight: 900; line-height: 1.3; color: var(--hs-ink); }
.hst-finder__head p { margin: 2px 0 0; font-size: 13.5px; color: var(--hs-muted); }

.hst-finder__control { padding: 18px 0 4px; }
.hst-finder__row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 12px; }
.hst-finder__row label { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--hs-muted); }
.hst-finder__row output { font-size: 1.3rem; font-weight: 900; color: var(--hs-ink); }

.hst-finder input[type="range"] {
    --fill: 50%;
    display: block;
    width: 100%;
    height: 8px;
    margin: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--hs-blue) 0, var(--hs-blue) var(--fill), var(--hs-line) var(--fill));
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}
.hst-finder input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px; height: 24px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: var(--hs-blue);
    box-shadow: 0 2px 10px rgba(37, 99, 235, .5);
}
.hst-finder input[type="range"]::-moz-range-thumb {
    width: 16px; height: 16px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: var(--hs-blue);
    box-shadow: 0 2px 10px rgba(37, 99, 235, .5);
}
.hst-finder input[type="range"]:focus-visible { outline: 3px solid rgba(37, 99, 235, .35); outline-offset: 6px; }
.hst-finder__scale { display: flex; justify-content: space-between; padding-top: 10px; font-size: 12px; font-weight: 600; color: #94a3b8; }

.hst-finder__result { margin-top: 14px; padding: 18px; border: 1px solid var(--hs-line); border-radius: 16px; background: #f7f9fd; }
.hst-finder__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.hst-finder__label { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--hs-green); }
.hst-finder__top h3 { margin: 2px 0 0; font-size: 1.15rem; font-weight: 900; line-height: 1.3; color: var(--hs-ink); overflow-wrap: anywhere; }
.hst-tag {
    flex-shrink: 0;
    padding: 3px 9px;
    border-radius: 999px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}
.hst-finder__price { padding: 6px 0 12px; }
.hst-finder__price b { font-size: 2rem; font-weight: 900; line-height: 1.1; color: var(--hs-ink); }
.hst-finder__price small { margin-left: 3px; font-size: 14px; font-weight: 600; color: var(--hs-muted); }
.hst-finder__specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    margin: 0;
    padding: 12px 0 16px;
    border-top: 1px dashed #dbe4f2;
    list-style: none;
}
.hst-finder__specs li { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12.5px; color: var(--hs-muted); }
.hst-finder__specs i {
    flex-shrink: 0;
    width: 30px; height: 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #eff5ff;
    color: var(--hs-blue);
    font-size: 12px;
}
.hst-finder__specs span { min-width: 0; line-height: 1.3; }
.hst-finder__specs b { display: block; font-size: 14px; color: var(--hs-ink); overflow-wrap: anywhere; }
.hst-finder__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hst-finder__actions .hst-btn { height: 44px; padding: 0 12px; font-size: 14px; }

/* Pricing card highlighted by "Plan details" */
[data-plan-card] { scroll-margin-top: 110px; }
#pricing .wh-price-card.is-highlight {
    box-shadow: 0 0 0 3px var(--hs-orange, #f97316), 0 20px 50px rgba(249, 115, 22, .25) !important;
    transform: translateY(-4px);
    transition: box-shadow .3s, transform .3s;
}

/* ── Small phones ─────────────────────────────────────────── */
@media (max-width: 399.98px) {
    .hst-finder { padding: 18px; }
    .hst-finder__actions { grid-template-columns: minmax(0, 1fr); }
}

/* ── ≥576px ───────────────────────────────────────────────── */
@media (min-width: 576px) {
    .hst-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ── ≥768px ───────────────────────────────────────────────── */
@media (min-width: 768px) {
    .hst-hero { padding: 32px 0 56px; }
    .hst-finder { padding: 26px; }
}

/* ── ≥992px ───────────────────────────────────────────────── */
@media (min-width: 992px) {
    .hst-hero { padding: 44px 0 72px; }
    .hst-hero__grid { grid-template-columns: minmax(0, 1fr) 400px; align-items: center; gap: 48px; }
}

/* ── ≥1200px ──────────────────────────────────────────────── */
@media (min-width: 1200px) {
    .hst-hero__grid { grid-template-columns: minmax(0, 1fr) 420px; gap: 64px; }
}

@media (prefers-reduced-motion: reduce) {
    .hst-hero *, .hst-hero *::before, .hst-hero *::after { transition: none !important; }
    #pricing .wh-price-card.is-highlight { transform: none; }
}
