/*
 * German-VAT.com – landing page sections (public/index.html)
 * ==========================================================
 * Only what the landing page has on its own: typical cases, platform
 * carousel with the product mocks (hpm-*), the fee schedule and the
 * "why us" band. Tokens, frame, navigation, hero, buttons, steps, guides,
 * FAQ, CTA and footer are shared with all public pages: public.css.
 * Behaviour of the carousel: static/js/public_home.js.
 */

/* ══════════════════════════════════════════════════
   1. CASES
   ══════════════════════════════════════════════════ */
.hp-subhead {
    display: grid;
    gap: 12px;
    max-width: 760px;
    margin-top: 64px;
}

/* Eight entries: 1, 2 or 4 columns — never 3, which would leave a hole. */
.hp-cases {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 48px;
    margin-top: 28px;
}

.hp-case {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    padding: 22px 0;
    border-top: 1px solid var(--hp-line-2);
}

.hp-case:hover .hp-idx {
    color: var(--hp-acc-d);
}

.hp-case h3 {
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -.012em;
    color: var(--hp-ink);
}

.hp-case p {
    margin-top: 4px;
    font-size: 15.5px;
    color: var(--hp-mute);
    text-wrap: pretty;
}

.hp-case .hp-link {
    margin-top: 2px;
}

/* ══════════════════════════════════════════════════
   2. PLATFORM CAROUSEL (native scroll-snap)
   ══════════════════════════════════════════════════ */
.hp-swipe {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.hp-swipe::-webkit-scrollbar {
    display: none;
}

.hp-slide {
    flex: 0 0 min(1040px, 92%);
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    scroll-snap-align: start;
    border: 1px solid var(--hp-line);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

/* With the script running, the cards next to the current one step back. */
.hp-swipe.is-live .hp-slide {
    opacity: .4;
    scale: .985;
    cursor: pointer;
    transition: opacity .45s ease, scale .45s var(--hp-ease);
}

.hp-swipe.is-live .hp-slide.is-current {
    opacity: 1;
    scale: 1;
    cursor: auto;
}

.hp-slide-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding: 40px;
}

.hp-slide-no {
    font-size: 12px;
    letter-spacing: .06em;
    color: var(--hp-mute);
}

.hp-slide-copy h3 {
    font-size: clamp(22px, 2vw, 27px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.02em;
    color: var(--hp-ink);
    text-wrap: balance;
}

.hp-slide-copy p {
    font-size: 15.5px;
    color: var(--hp-mute);
}

.hp-swipe-ctrl {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 24px;
}

.hp-swipe-meta {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 20px;
}

.hp-swipe-track {
    flex: 0 1 220px;
    height: 2px;
    background: var(--hp-line-2);
    overflow: hidden;
}

.hp-swipe-bar {
    display: block;
    height: 100%;
    background: var(--hp-navy-2);
    transform: scaleX(.25);
    transform-origin: left;
    transition: transform .45s var(--hp-ease);
}

.hp-arrows {
    display: flex;
    gap: 8px;
}

.hp-arrow {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--hp-line-2);
    border-radius: 50%;
    background: #fff;
    color: var(--hp-navy-2);
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, opacity .2s ease;
}

.hp-arrow:hover:not(:disabled) {
    border-color: var(--hp-navy);
    background: var(--hp-navy);
    color: #fff;
}

.hp-arrow:disabled {
    opacity: .4;
    cursor: default;
}

/* — Product mocks (hpm-*): HTML stand-ins for portal screens, example data — */
.hpm {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 0;
    padding: 28px;
    border-left: 1px solid var(--hp-line);
    background: var(--hp-bg-2);
    font-size: 13px;
    line-height: 1.5;
    color: var(--hp-ink);
}

/* On wide cards the panels keep the width of a real portal column. */
.hpm > * {
    width: 100%;
    max-width: 640px;
}

.hpm b {
    font-weight: 600;
}

.hpm-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--hp-navy);
    font-size: 12px;
    color: #fff;
}

.hpm-bar b {
    font-weight: 700;
}

.hpm-bar > span {
    color: var(--hp-on-navy-2);
}

.hpm-panel {
    padding: 16px 18px;
    border: 1px solid var(--hp-line);
    border-radius: 10px;
    background: #fff;
}

.hpm-h {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 13.5px;
    font-weight: 600;
}

.hpm-h small {
    font-size: 12px;
    font-weight: 500;
    color: var(--hp-mute);
}

.hpm-tl {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hpm-tl li {
    position: relative;
    padding: 24px 8px 0 0;
    font-size: 12px;
    color: var(--hp-mute);
}

.hpm-tl li::before {
    content: '';
    position: absolute;
    top: 6px;
    right: 0;
    left: 0;
    height: 2px;
    background: var(--hp-line);
}

.hpm-tl li:last-child::before {
    display: none;
}

.hpm-tl li i {
    position: absolute;
    top: 1px;
    left: 0;
    width: 12px;
    height: 12px;
    border: 2px solid var(--hp-line-2);
    border-radius: 50%;
    background: #fff;
}

.hpm-tl li b {
    display: block;
    font-family: var(--hp-mono);
    font-size: 12.5px;
    color: var(--hp-ink);
}

.hpm-tl .is-done::before {
    background: var(--hp-acc);
}

.hpm-tl .is-done i {
    border-color: var(--hp-acc);
    background: var(--hp-acc);
}

.hpm-tl .is-next i {
    border-color: var(--hp-acc);
}

.hpm-tl .is-end i {
    border-color: var(--hp-navy);
    background: var(--hp-navy);
}

.hpm-mail {
    border: 1px solid var(--hp-line);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.hpm-mail-head {
    display: grid;
    gap: 2px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--hp-line);
    font-size: 12px;
    color: var(--hp-mute);
}

.hpm-mail-head b {
    font-size: 13.5px;
    color: var(--hp-ink);
}

.hpm-mail-body {
    display: grid;
    gap: 12px;
    justify-items: start;
    padding: 14px 18px 16px;
}

.hpm-btn {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 6px;
    background: var(--hp-navy-2);
    font-size: 12.5px;
    font-weight: 600;
    color: #fff;
}

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

.hpm-stepper li {
    padding-top: 8px;
    border-top: 3px solid var(--hp-line);
    font-size: 13px;
    font-weight: 600;
}

.hpm-stepper li span {
    display: block;
    font-family: var(--hp-mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--hp-mute);
}

.hpm-stepper .is-done {
    border-color: var(--hp-acc);
}

.hpm-stepper .is-now {
    border-color: var(--hp-navy-2);
}

.hpm-cols {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 12px;
}

.hpm-fig {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.hpm-fig th {
    padding: 0 0 6px;
    border-bottom: 1px solid var(--hp-line);
    font-size: 11.5px;
    font-weight: 500;
    text-align: left;
    color: var(--hp-mute);
}

.hpm-fig td {
    padding: 7px 0;
    border-bottom: 1px solid var(--hp-line);
}

.hpm-fig .n {
    padding-left: 10px;
    font-family: var(--hp-mono);
    text-align: right;
    white-space: nowrap;
}

.hpm-fig tbody tr:last-child td {
    border-bottom: 0;
    font-weight: 600;
}

.hpm-src {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    font-size: 12.5px;
}

.hpm-hint {
    margin: 12px 0;
    font-size: 12px;
    color: var(--hp-mute);
}

.hpm-pill {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
}

.hpm-pill.is-ok {
    background: var(--hp-acc-l);
    color: var(--hp-navy-2);
}

.hpm-pill.is-info {
    background: rgba(14, 165, 233, .12);
    color: #0369a1;
}

.hpm-pill.is-mute {
    background: var(--hp-bg-3);
    color: var(--hp-mute);
}

.hpm-letter {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 11px 0;
    border-top: 1px solid var(--hp-line);
}

.hpm-letter i {
    width: 30px;
    height: 36px;
    border: 1px solid var(--hp-line-2);
    border-radius: 4px;
    background:
        linear-gradient(var(--hp-line-2), var(--hp-line-2)) 6px 9px / 16px 2px no-repeat,
        linear-gradient(var(--hp-line), var(--hp-line)) 6px 15px / 16px 2px no-repeat,
        linear-gradient(var(--hp-line), var(--hp-line)) 6px 21px / 11px 2px no-repeat,
        #fff;
}

.hpm-letter b {
    display: block;
    font-size: 13px;
}

.hpm-letter small {
    display: block;
    font-size: 12px;
    color: var(--hp-mute);
}

.hpm-bubbles {
    display: grid;
    gap: 10px;
}

.hpm-bub {
    max-width: 86%;
    padding: 10px 14px;
    border: 1px solid var(--hp-line);
    border-radius: 12px 12px 12px 4px;
    background: var(--hp-bg-2);
    font-size: 13px;
}

.hpm-bub small {
    display: block;
    margin-bottom: 2px;
    font-size: 11px;
    font-weight: 600;
    color: var(--hp-mute);
}

.hpm-bub.is-own {
    justify-self: end;
    border-color: var(--hp-navy-2);
    border-radius: 12px 12px 4px 12px;
    background: var(--hp-navy-2);
    color: #fff;
}

.hpm-bub.is-own small {
    color: #b7c5d6;
}

/* ══════════════════════════════════════════════════
   3. PRICING — a fee schedule: four rows of equal weight, so the flat
   rate does not read as "everything included" (owner, 2026-10-06)
   ══════════════════════════════════════════════════ */
.hp-fees {
    border: 1px solid var(--hp-line);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.hp-fee {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 6.4fr) minmax(0, 2.2fr);
    grid-template-areas:
        "tag checks amt"
        "name checks amt"
        "sub checks link";
    grid-template-rows: auto auto 1fr;
    gap: 6px 40px;
    padding: 30px 32px;
    border-top: 1px solid var(--hp-line);
    transition: background-color .3s ease;
}

.hp-fee:first-child {
    border-top: 0;
}

.hp-fee:hover {
    background: #fafbfd;
}

.hp-fee-tag {
    grid-area: tag;
    font-family: var(--hp-mono);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--hp-mute);
}

.hp-fee h3 {
    grid-area: name;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -.015em;
    color: var(--hp-ink);
}

.hp-fee-sub {
    grid-area: sub;
    max-width: 36ch;
    margin-top: 4px;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--hp-mute);
}

.hp-fee-amt {
    grid-area: amt;
    justify-self: end;
    font-size: 30px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -.03em;
    text-align: right;
    color: var(--hp-ink);
    white-space: nowrap;
}

.hp-fee-amt small {
    display: block;
    margin-top: 2px;
    font-family: var(--hp-sans);
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--hp-mute);
}

.hp-fee .hp-checks {
    grid-area: checks;
    align-self: start;
}

.hp-fee .hp-checks li {
    font-size: 14.5px;
}

.hp-fee .hp-link {
    grid-area: link;
    align-self: end;
    justify-self: end;
}

.hp-price-note {
    max-width: 78ch;
    margin: 28px auto 0;
    font-size: 13.5px;
    text-align: center;
    color: var(--hp-mute);
}

/* ══════════════════════════════════════════════════
   4. WHY US (navy)
   ══════════════════════════════════════════════════ */
.hp-why .hp-title {
    font-size: clamp(25px, 2.6vw, 36px);
    font-weight: 500;
    line-height: 1.18;
    letter-spacing: -.022em;
}

.hp-why-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: 0 40px;
}

.hp-why-list li {
    padding: 22px 0 28px;
    border-top: 1px solid var(--hp-navy-line);
}

.hp-why-list h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
}

.hp-why-list p {
    margin-top: 6px;
    font-size: 15px;
    color: var(--hp-on-navy);
}

/* ══════════════════════════════════════════════════
   5. RESPONSIVE
   ══════════════════════════════════════════════════ */
@media (min-width: 1720px) {
    .hp-cases {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1500px) {
    .hp-slide {
        flex-basis: min(1360px, 76%);
    }
}

@media (max-width: 960px) {
    .hp-cases {
        grid-template-columns: minmax(0, 1fr);
    }

    .hp-fee {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "tag tag"
            "name amt"
            "sub sub"
            "checks checks"
            "link link";
        grid-template-rows: none;
        gap: 6px 16px;
        padding: 24px;
    }

    .hp-fee .hp-checks {
        margin-top: 10px;
    }

    .hp-fee .hp-link {
        justify-self: start;
    }
}

@media (max-width: 900px) {
    .hp-slide {
        flex-basis: 88%;
        grid-template-columns: minmax(0, 1fr);
    }

    .hpm > * {
        max-width: none;
    }

    .hp-slide-copy {
        padding: 28px 24px;
    }

    .hpm {
        padding: 20px;
        border-top: 1px solid var(--hp-line);
        border-left: 0;
    }

    .hpm-cols {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 560px) {
    .hp-fee {
        padding: 22px 20px 14px;
    }

    .hp-swipe-track {
        display: none;
    }
}

/* ══════════════════════════════════════════════════
   6. MOTION (the shared part lives in public.css)
   ══════════════════════════════════════════════════ */
@keyframes hp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .5); }
    70% { box-shadow: 0 0 0 9px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@media (prefers-reduced-motion: no-preference) {
    .hpm-tl .is-next i {
        animation: hp-pulse 2.4s ease-out infinite;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hp-swipe {
        scroll-behavior: auto;
    }
}
